Math.Atan(Value)

.Atan() method returns the arctangent (in radians) of a number.

Applies To

  • Math

Description

Math.Atan() method returns the arctangent (in radians) of a number.

Properties and Methods

None

Available

The .Atan(Value) method is available in:

  • 15.03.016
  • All newer builds

Type

Decimal

Syntax

Math.Atan(Value);

Parameters

Parameter

Required

Description

Value

Yes

Any number.

Any values that are not a number will result in a scripting error.

Example

//--Returns the arctangent, an angle in radians

var lcMath = 'Math.Atan(-1): ' + Convert.ToString(Math.Atan(-1)) + '\n';

lcMath += 'Math.Atan(-5): ' + Convert.ToString(Math.Atan(-5)) + '\n';

lcMath += 'Math.Atan(0): ' + Convert.ToString(Math.Atan(0)) + '\n';

lcMath += 'Math.Atan(25): ' + Convert.ToString(Math.Atan(25)) + '\n';

lcMath += 'Math.Atan(1): ' + Convert.ToString(Math.Atan(1));

Event.Form.MessageBox(lcMath);

 

/* Expected System Prompt Display:

Math.Atan(-1): -0.785398163397448

Math.Atan(-.5): -1.37340076694502

Math.Atan(0): 0

Math.Atan(.5): 1.53081763967161

Math.Atan(1): 0.785398163397448

*/