aliasmask wrote:

Okay, I updated the arcTan and arcSin to be more accurate. Let me know if you get weird values because there are a couple of options to calculate those differently.

Okay, I downloaded the Mathlib2.2 from the download link at the top of this page and it started working fine. Just to be sure, this is the arcTan macro i got with the Mathlib2.2:

**Code:**

[H: radians = arg(0)]

[H: arcTangent = radians]

[H: sign = 1]

[H, for(i,3,150,2), code: {

[H: sign = if(sign == -1,1,-1)]

[H: arcTangent = arcTangent + (sign * power(radians,i) / i)]

}]

[H: macro.return = arcTangent]

Then I created the following macro to get atan(2)...

**Code:**

/self

[r,MACRO('arcTan@Lib:Math'):2]<br>

[r: myNumber = macro.return]

I got the result 3821168523081063463477134266326310553728605.688206467618381063500077081915933 - whereas it should be 1.10714871779409, right?

Am I doing something wrong?