10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix equations error

This commit is contained in:
Mickaël Véril 2019-09-19 18:54:23 +02:00
parent 74e2936f61
commit d5465af13a
2 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,7 @@ draft: false
var row=document.createElement("tr")
var rowd=[]
rowd.push(String.raw`${LatexInline[0]} ${el.start.toLaTeX()} \rightarrow ${el.end.toLaTeX()}${LatexInline[1]}`)
var e=[el.Eabs,el.Efluo,el.EZPE,el.Ezz]
var e=[el.Eabs,el.Efluo,el.EZPE,el.Eadia,el.Ezz]
e.forEach((val)=>rowd.push(val.toFixed(2)))
rowd.forEach((d)=>{
td=document.createElement("td")
@ -118,6 +118,7 @@ draft: false
<th>\(E_{abs}\)</th>
<th>\(E_{fluo}\)</th>
<th>\(\Delta E_{ZPE}\)</th>
<th>\(E_{adia}\)</th>
<th>\(E_{00}\)</th>
</tr>
</table>

View File

@ -71,8 +71,11 @@ class excitation{
this.Efluo=Efluo;
this.EZPE=EZPE;
}
get Eadia() {
return (this.Eabs+this.Efluo)/2
}
get Ezz() {
return this.Eabs-this.Efluo+this.EZPE
return this.Eadia+this.EZPE
}
toString() {
return this.start+ ', ' + this.end +', '+ this.Eabs.toPrecision(3);