This site Web
Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us

Sunlit Design > The Sun API > Documentation > sdATan Function


Index


- Introduction
+ Using the Functions
+ User Guide
+ Function Reference
+ Constants

Contact Developer

Downloads

sdATan Function

Description

Returns the arctangent of a number. The arctangent is the angle whose tangent is Value. The returned angle is given in degrees in the range -90 to 90.

Syntax

sdATan(Value)

Value   A double precision number, is the tangent of the angle you want.

Return Values

sdATan returns a double precision number.  

Errors

If this function finds any errors in it's input parameter(s) it returns -99999999

Remarks

This degree based function is provided because most programming environments provide only radian based functions.

You can convert a degree value to it's Degrees:Minute:Seconds components using the sdDUnpackx function and to a printable text format using sdD2Text function.

Example

 To find the angle which has a tangent of -.5:
    sdATan(-.5) equals -26.565051177077979...