2019-07-25 02:13 AM
STVD AND cosmic
I WANT TO calculate Thermistor temperature, but did not find a log funnction
2019-08-11 06:54 AM
Hi David
First in STVD you need to configure the linker to enable the standard library for floats as shown in my attachment.
volatile float r=100.0;
volatile float ln=log(r); // calculate Napierian logarithm
volatile float l10 = log10(r); // calculate logarithm to the base 10
include of course math.h
Hopefully it will help you.
Best regards
JC Toussaint
2019-08-11 05:37 PM
thanks!