It seem to be an implementation of Arctan from a post by Technical
ArcTan-Approximation
In Picaxe manual, section 2, page26, I can read :
As the arctan input is always a value between 0 and 1,
and
ATAN is supposed to work from 0 to 45 degrees
But when I simulate it, answer is always
0 from 1 to 50,
and 45 from 51 to 100
Unfortunately, the only example is
let b1 = atan 100 (answer b1 = 45)
From simulator :
atan(150)=63
atan(260)=72
atan(350)=76
atan(460)=79
....
atan(1000)=84
ArcTan-Approximation
In Picaxe manual, section 2, page26, I can read :
As the arctan input is always a value between 0 and 1,
and
ATAN is supposed to work from 0 to 45 degrees
But when I simulate it, answer is always
0 from 1 to 50,
and 45 from 51 to 100
Unfortunately, the only example is
let b1 = atan 100 (answer b1 = 45)
From simulator :
atan(150)=63
atan(260)=72
atan(350)=76
atan(460)=79
....
atan(1000)=84
Last edited: