V1[]
Indications are, SIN
, COS
and TAN
in SmileBasic V1 are identical to those in V2.
V2[]
SIN
, COS
, and TAN
are system functions which take one parameter (an angle, in units of radians), and give, respectively, the sine, cosine, and tangent of that angle. TAN
appears to be the least accurate of these three functions; it is better to stick to using SIN
and COS
if possible.
If -0 is used as a parameter to any of the trigonometric functions, the system will stop responding (crash). This bug was fixed between v2.2 and v2.4, with v2.4 instead returning an Overflow error.
V3[]
Indications are, SIN
, COS
and TAN
in SmileBasic V3 are identical to those in V2.4.