G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Exponential functions

Solved!
Go to solution

I want to include an exponential function in my code, but the exponential node only seems to include Logarithm Base 10. Why is there such a limited choice of math functions in G Web? Is there any way around? Thank you for your help.

0 Kudos
Message 1 of 4
(1,847 Views)
Solution
Accepted by rtowers141

Never mind. I'm building my exponential with complex trigonometric functions.

0 Kudos
Message 2 of 4
(1,834 Views)

As a future reference, another idea could be to use the JavaScript Library Interface to call existing JavaScript functions that might be useful. The JavaScript language has several Math functions that you can call with the JSLI.

 

The following is an example of using the JSLI to create a Node named Natural Log that will call the JavaScript global Math.log with one numeric argument and a numeric return value:

 

MilanR_0-1689179344874.png

 

And then I can use the Natural Log node on my diagram:

MilanR_1-1689179375172.pngMilanR_2-1689179387849.png

 

 


Milan
0 Kudos
Message 3 of 4
(1,735 Views)

Alternatively, you can convert ln to log(10). We used it and it worked fine.

 

ln(x) = log(x)/log(e)

 

ln x.png

Thanks & Regards,
Irfan
(CLD)
https://haliatech.com/
0 Kudos
Message 4 of 4
(1,667 Views)