Math.Asin(Value)

.Asin() method returns the arcsine (in radians) of a number.

Applies To

Description

Math.Asin() method returns the arcsine (in radians) of a number.

Properties and Methods

None

Available

The .Asin(Value) method is available in:

  • 15.03.016
  • All newer builds

Type

Decimal

Syntax

Math.Asin(Value);

Parameters

Parameter

Required

Description

Value

Yes

A number representing a sine where the value is between -1 and 1.

Any values outside -1 and 1 will result in a scripting error.

Example

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

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

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

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

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

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

Event.Form.MessageBox(lcMath);

 

/* Expected System Prompt Display:

Math.Asin(-1): -1.5707963267949

Math.Asin(-.5): -0.523598775598299

Math.Asin(0): 0

Math.Asin(.5): 0.523598775598299

Math.Asin(1): 1.5707963267949

*/