Method atan
atan(UInt32)
Replaces the value on top of the stack with the atan of that value.
The value interpreted as an angle is measured in radians.
Declaration
public void atan(uint c)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | c | The desired precision. |
Remarks
The desired precision is controlled by the parameter c
where c
represents a break criteria of the internal iteration.
For a desired precesission of decimal digits c
can be calculated as:
msb(pow(10, digits))
or
(uint)Math.Ceiling(digits * 3.321928094887362) // * (log(2) + log(5)) / log(2))
.
The result however has to be rounded explicitely to get an exact decimal representation.
Note: In the current version, the function has not yet been finally optimized for performance
and the accuracy of the last digits has not yet been ensured!