From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 22: | Line 21: | ||
} | } | ||
</pre> | </pre> | ||
<b>Output:</b><br> | <b>Output:</b><br> | ||
Revision as of 10:34, 13 November 2024
function ArcTan(const X: Extended): Extended;
Calculates the arctangent of a given number.
In Clomosy code, ArcTan returns the arctangent of X.
X is a real-type expression that gives an angle in radians.
Example
var
floatValue : single;
const
PI = 3.14;
{
// The ArcTan of PI/2 should give 1.0
floatValue = ArcTan(PI/2);
ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue));
}
Output:
ArcTan of PI/2 = 1,00365507798033