Skip to main content
Participant
Jul 21, 2018 12:22 PM UTC
Question

can these formulas (excel) be converted to calculate on a pdf form

these are the formulas

3 separate cells

=ROUND((10^7.96427)*10^((-1628.445/(T24+273.15)))*10^((-100151/(T24+273.15)^2)),2)

=ROUND((10^7.96427)*10^((-1628.445/(T25+273.15)))*10^((-100151/(T25+273.15)^2)),2)

=(Y27-(0.00066*760*(T24-T25)*(1+(0.00115*T25))))/Y26

Thanks in advance

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Inspiring
Jul 21, 2018 4:08 PM UTC

Yes they can. JavaScript uses the same symbols for the 4 basic arithmetic operations, uses the Math.exp() method for all exponentiation. JavaScript even includes the "if ... else" statement for conditional execution of blocks of code. Unlike Excel which has an error condition for division by zero, JavaScript does not, so one must test for a zero divisor and skip the action..

Translate
Participant
Jul 21, 2018 4:33 PM UTC

i unfortunately have no experience writing javascript.

i tired a in the example below but could not get the proper calculation

event.value=Math.exp((10^7.96427)*10^((-1628.445/(WBC+273.15)))*10^((-100151/(WBC+273.15)^2)),2)

event.value=Math.exp((10^7.96427)*10^((-1628.445/(DBC+273.15)))*10^((-100151/(DBC+273.15)^2)),2)

Y27-(0.00066*760*(T24-T25)*(1+(0.00115*T25))))/Y26

Where have i gone wrong?

Translate
Participant
Jul 21, 2018 4:44 PM UTC

ultimately i would like to calculate relative humidity from dry bulb and wet bulb temperature. there are a couple different ways to calculate, however can not get any proper calculation as i am javascript illiterate. attached original formulas and an excel sheet that does what i need (formulas imbedded)

https://www.sksato.co.jp/html_e/files/Psychrometer1.1E.xls

any help would be muchly appreciated.

Translate