help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

cycletorad

Convert cycle angle to radians angle

Declaration

Source position: math.pp line 253

function cycletorad(

  cycle: float

):float;

Description

Cycletorad transforms it's argument cycle (an angle expressed in cycles) to radians. (1 cycle is $2 \pi$ radians).

Errors

None.

See also

degtograd

  

Convert degree angle to grads angle

degtorad

  

Convert degree angle to radians angle.

radtodeg

  

Convert radians angle to degrees angle

radtograd

  

Convert radians angle to grads angle

radtocycle

  

Convert radians angle to cycle angle

Example

Program Example10;

{ Program to demonstrate the cycletorad function. }

Uses math;

begin
  writeln(cos(cycletorad(1/6))); // Should print 1/2
  writeln(cos(cycletorad(1/8))); // should be sqrt(2)/2
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505