Home  |  Delphi .net Home  |  System.Math  |  ATan Method
ATan  
Method  
Gets the angle whose Tangent is the given number
Math Class
System NameSpace
CF1.  Function ATan ( Number : Double; ) : Double; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Returns the ArcTangent (ATan) value in radians of the given Number.
 
PI Radians = 180 degrees
Notes
Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.Math
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  float : Double;
begin
  // The ArcTan of 1.0 should give 45 degrees
  float := System.Math.ATan(1.0);

  // Convert to degrees to show the value
  float := float * 180 / PI;

  Console.WriteLine('ATan(1.0) = {0} degrees', float.ToString);

  Console.ReadLine;
end.
Show full unit code
  ATan(1.0) = 45 degrees
 
 
Delphi Programming © Neil Moffatt All rights reserved.  |  Contact the author