[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'math' (#rtl)

arcsin

Return inverse sine

Declaration

Source position: math.pp line 241

function arcsin(

  x: float

):float;

Description

Arcsinreturns the inverse sine of its argument x. The argument xshould lie between -1 and 1.

Errors

If the argument xis not in the allowed range, an EInvalidArgumentexception is raised.

See also

arccos

  

Return inverse cosine

arcosh

  

Return inverse hyperbolic cosine

arsinh

  

Return inverse hyperbolic sine

artanh

  

Return inverse hyperbolic tangent

Example

Program Example1;

{ Program to demonstrate the arcsin function. }

Uses math;

  Procedure WriteRadDeg(X : float);

  begin
    Writeln(X:8:5,' rad = ',radtodeg(x):8:5,' degrees.')
  end;

begin
  WriteRadDeg (arcsin(1));
  WriteRadDeg (arcsin(sqrt(3)/2));
  WriteRadDeg (arcsin(sqrt(2)/2));
  WriteRadDeg (arcsin(1/2));
  WriteRadDeg (arcsin(0));
  WriteRadDeg (arcsin(-1));
end.