LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you do ln (x) - natural log of x, in CVI?

Is there a function in CVI that does the natural log of x: lnx? 

There is the ReciprocalOfEuler (1/e), log10OfEuler (log10 (e) ) and Euler (e) function. 

 

But I didn't see one for ln of x.  Can someone help or guide me to a solution.  Thanks.

0 Kudos
Message 1 of 3
(4,717 Views)

The C standard library function   log ((double x) will do it, also logf(float x) and logl (long double x)

 

You'd think the function name would be ln (x) but it isn't and that's why it sometimes gets overlooked I think.

 

Menchar

0 Kudos
Message 2 of 3
(4,716 Views)
Thank you.
0 Kudos
Message 3 of 3
(4,710 Views)