From Clomosy Docs

(Created page with "The ArcTan function is a mathematical function giving the value in radians of the Arc Tangent of Number.<br> PI radians = 180 degrees '''Example:'''<br> '''var''' floatValue : single;<br> '''const''' PI = 3.14;<br> '''begin''' // The ArcTan of PI/2 should give 1.0 floatValue := ArcTan(PI/2); ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue)); '''end;'''")
 
No edit summary
Line 1: Line 1:
function ArcTan(const Number Extended):Extended;
The ArcTan function is a mathematical function giving the value in radians of the Arc Tangent of Number.<br>
The ArcTan function is a mathematical function giving the value in radians of the Arc Tangent of Number.<br>


Line 13: Line 15:
   ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue));
   ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue));
  '''end;'''
  '''end;'''
'''Output:'''<br>
ArcTan of PI/2 = 1,00365507798033

Revision as of 06:25, 1 March 2023

function ArcTan(const Number Extended):Extended;

The ArcTan function is a mathematical function giving the value in radians of the Arc Tangent of Number.

PI radians = 180 degrees

Example:

var
  floatValue : single;
const PI = 3.14;
begin // The ArcTan of PI/2 should give 1.0 floatValue := ArcTan(PI/2); ShowMessage('ArcTan of PI/2 = '+FloatToStr(floatValue)); end;

Output:

ArcTan of PI/2 = 1,00365507798033