Sign in Join
FPDoc Onlineexperiment

ArcSin function

In unit Math

Return inverse sine.

Declaration

pascal
function ArcSin(x: Single): Single

Description

Arcsin returns the inverse sine of its argument x. The argument x should lie between -1 and 1.

Errors

If the argument x is not in the allowed range, an EInvalidArgument exception is raised.

See also

Example: ex2

pascal
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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.