ASIN

Returns the arc sine (inverse sine) of a numeric input.

Signature

    ┌─────────┐
IN ─┤  ASIN   ├─ OUT
    └─────────┘
FUNCTION ASIN : ANY_REAL
  VAR_INPUT
    IN : ANY_REAL;
  END_VAR
END_FUNCTION

The return type matches the input type. ASIN accepts REAL, LREAL.

Inputs

Name

Type

Description

IN

ANY_REAL

Value in the range [-1.0, 1.0].

Outputs

Name

Type

Description

Return value

ANY_REAL

The arc sine of IN in radians, in the range [-pi/2, pi/2]. Same type as IN.

Description

Returns the arc sine of IN in radians. The input must be in the range [-1.0, 1.0]. The result is in the range [-pi/2, pi/2].

Example

result := ASIN(REAL#0.0);   (* result = 0.0 *)
value := ASIN(LREAL#1.0);   (* value ~ 1.5707963 *)

See Also

  • SIN — sine

  • ACOS — arc cosine

  • ATAN — arc tangent

References