Search code examples
delphidelphi-7

Tan Inverse delphi


I'm looking for a function that calculates the inverse of tan on delphi. I haven't been able to find a function in delphi that calculates the inverse of tan so any help is greatly appreciated.


Solution

  • You are looking for either: System.ArcTan or Math.ArcTan2.

    You might find ArcTan2 to be more appropriate depending on your needs. The Wikipedia article on the subject might help you understand the difference between ArcTan2 and ArcTan.