-->
Page 1 of 2

Math Functions in the firmware - atan() etc

PostPosted: Wed Mar 23, 2016 7:08 pm
by Ansh Verma
Hello,

I am presently using one of the "nodemcu-master-14-modules-2016-02-25-04-41-19-float" firmware. I am unable to perform the atan() operation. It comes back with the error of "attempt to call field 'atan' (a nil value)"

My research on the internet points towards the error of it being a firmware issue. Does anybody has any recommendation?

~Ansh Verma

Re: Math Functions in the firmware - atan() etc

PostPosted: Thu Mar 24, 2016 2:49 pm
by onehorse
try atanf

Re: Math Functions in the firmware - atan() etc

PostPosted: Thu Mar 24, 2016 7:04 pm
by Ansh Verma
onehorse wrote:try atanf


I tried using this but doesn't work. As a matter of act non of the trigonometric operations work. All of the other mathematics operations (math.abs,sqrt etc) are doing perfect.

Re: Math Functions in the firmware - atan() etc

PostPosted: Tue Mar 29, 2016 8:12 pm
by TerryE
Look at the math lib in the github firmware repository. You will see that all of the trig functions have been removed for space reasons