for a weather station I have to calculate the dewpoint. The formula for that is:
double t=temp_c;
double h=humidity;
dewpoint = 243,04*(log(h/100)+ ((17,625*t)/(243,04+t)))/ (17,625-log(h/100)-((17,625*t)/(243,04+t)));
After including the "log" my script crashes. Do I delete only "log" the scripts work´s. Of course with wrong result.
I use Arduino API for ESP8266. The compilation shows no error, and uploading is also no problem.
I tried it first without including math.h because I can´t find one in Internet. It seems that it ís included in Master library for ESP8266.
But I tried it also with "#include <MATH.h>". In both cases the same result: no compilation and upload error. But the scripts seems to crash.
If I delete the both "log" in the formaular it runs.
Has anyone a solution for the problem ?