I would like to use some of math related function calls like pow, sin, sqrt...
But it seems math function doesn't work with SDK.
Either #include<math.h> on user_main or -lm on the Linker doesn't work too.
Do you have any idea to work them out?
Code: Select all
double pow(double x,double y)
double z , p=1;
//y<0 ? z=-y : z=y ;
z = fabs(y);
z = y;
for(int i=0; i<z ; ++i)
p *= x;
double fabs(double x)
return( x<0 ? -x : x );
How do you use a functional math library? I've been just reading Programming Interviews Exposed: Secrets to Landing Your Next Job by John Mongan and Noah Kindler. I'm a programming intern from Rethymno studying online now in one of the American colleges.
Erasmus student CV, Rethymno, Greece
Who is online
Users browsing this forum: No registered users and 12 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!