- Posts: 8
- Thank you received: 0
Logarithm
7 years 11 months ago #120284
by yeepah
Hy
I feel dumb
I try to install this code as compoment file .comp:
float thermistor2temperature(float R) {
float T;
if (R<=0)
R=0.001; // avoid log(0)
T = 1.0/ ( 1.0/T0 + (1.0/
* log(R/R0) );
return T;
I do include #include <rtapi_math.h>
During compilation i get error : implicit declaration of function 'log'
What am I doing wrong???
thanks
I feel dumb
I try to install this code as compoment file .comp:
float thermistor2temperature(float R) {
float T;
if (R<=0)
R=0.001; // avoid log(0)
T = 1.0/ ( 1.0/T0 + (1.0/
return T;
I do include #include <rtapi_math.h>
During compilation i get error : implicit declaration of function 'log'
What am I doing wrong???
thanks
Please Log in or Create an account to join the conversation.
7 years 11 months ago #120317
by yeepah
Thanks for your answer
But still don't want corporate. log( anything) always return implicit declaration of fonction 'log'
It's really weird and i don't know in which direction to look to find a solution
But still don't want corporate. log( anything) always return implicit declaration of fonction 'log'
It's really weird and i don't know in which direction to look to find a solution
Please Log in or Create an account to join the conversation.
7 years 11 months ago #120325
by yeepah
I thought that also. And I try it again.
I even try with with a log alone like
double R = log(133)
but it return alway the same error
I'm a bit lost
Do you have an idea were can i find a log code function. I could write it but my mathematique skill are a bit poor.
I even try with with a log alone like
double R = log(133)
but it return alway the same error
I'm a bit lost
Do you have an idea were can i find a log code function. I could write it but my mathematique skill are a bit poor.
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds