I have tried to build the firmware from docker by modifying or removing comments from the lmathlib.c file without success.
Any help is welcome.
Thanks in advance
Explore... Chat... Share...
function sin(x)
local p=-x*x*x
local f=6
local r=x+p/f
for j=1,60 do
p=-p*x*x
f=f*2*(j+1)*(j+j+3)
r=r+p/f
end
return r
end
function cos(x)
return sin(math.pi/2-x)
end
function tan(x)
return sin(x)/cos(x)
end
function arcsin(x)
local suma=x
for i=1,60 do
suma = suma + (dfi(2*i-1)/dfp(2*i))*(math.pow(x,2*i+1)/(2*i+1))
print("Suma: "..suma)
end
return suma
end
function dfp(x)
local par=1
for i=2,x,2 do
par = par * i
end
return par
end
function dfi(x)
local impar=1
for i=1,x,2 do
impar = impar * i
end
return impar
end
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]