DelphiBasics
ArcSin
Function
The Arc Sine of a number, returned in radians Math unit
 function ArcSin(const Number Extended):Extended;
Description
The ArcSin function is a mathematical function giving the value in radians of the Arc Sine of Number.
 
PI radians  = 180 degrees
Notes
The System unit supports only the following angular functions:

ArcTan
Sin
Cos

Related commands
ArcCosThe Arc Cosine of a number, returned in radians
ArcTanThe Arc Tangent of a number, returned in radians
CosThe Cosine of a number
SinThe Sine of a number
TanThe Tangent of a number
 Download this web site as a Windows program.




 
Example code : The ArcSin of 0.5 gives 30 degrees
var
  float : single;
begin
  // The ArcSin of 0.5 should give 30 degrees
  float := ArcSin(0.5);
  float := RadToDeg(float);  // Convert result to degrees
  ShowMessage('ArcSin of 0.5 = '+FloatToStr(float)+' degrees');
end;
Show full unit code
  ArcSin of 0.5 = 30 degrees
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page