System.SineCosine
Delphi
procedure SineCosine(const X: Extended; var Sin, Cos: Extended);
C++
extern DELPHI_PACKAGE void __fastcall SineCosine(const Extended X, Extended &Sin, Extended &Cos);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
Returns sin(X) and cos(X).
System.SineCosine returns both the sine and cosine of X.
X must represent radians.
On x86, this function is based on the FSINCOS instruction.
var
X, S, C: Extended;
begin
X := Pi / 4.0;
SineCosine(X, S, C);
Writeln(S);
Writeln(C);
// ...