Log math LN(x) function Flexy Basic IDE

I am trying to calculate LMTD in the flexy. It requires LN(x) function. Is it possible to calculate LN(x) in basic IDE?

No, it’s not possible in BASIC. It may be possible in Java using the Math.log() function?

Thanks Kyle.

It’s working now. I have added the below javascript in viewon page.

G = getEwonTagVal(‘G_TEMP’);
S = getEwonTagVal(‘S_TEMP’);
D = getEwonTagVal(‘D_TEMP’);
O = getEwonTagVal(‘O_TEMP’);
var lmtd = ((G-O)-(S-D))/(Math.log((G-O)/(S-D)));
{
setViewOnTagVal(‘math’, lmtd);
}

1 Like

Excellent! Nice job!