From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
<pre>
<pre>
var
var
Line 22: Line 21:
  }
  }
</pre>
</pre>
<b>Base Syntax</b><br>
 
<pre>
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));
}
</pre>


<b>Output:</b><br>
<b>Output:</b><br>
Line 44: Line 30:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|title=ArcTan Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn about ArcTan on Clomosy. Understand how to use the ArcTan function for calculating the arctangent of a value in your projects.}}

Latest revision as of 13:29, 24 December 2024

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:

See Also