Sign in Join
FPDoc Onlineexperiment

CycleToRad function

In unit Math

Convert cycle angle to radians angle.

Declaration

pascal
function CycleToRad(const Cycles: Single): Single

Description

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

Errors

None.

See also

Example: ex10

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

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