trigonometry {cyclotomic} | R Documentation |
Cosine and sine of a rational number
Description
Cosine and sine of a rational angle as a cyclotomic number.
Usage
cosDeg(theta)
sinDeg(theta)
cosRev(theta)
sinRev(theta)
Arguments
theta |
an integer number, a gmp rational number, or a
fraction given as a character string (e.g. |
Details
The function cosDeg
, resp. sinDeg
, returns the cosine,
resp. the sine, of its argument assumed to be given in degrees.
The function cosRev
, resp. sinRev
, returns the cosine,
resp. the sine, of its argument assumed to be given in revolutions.
Value
A cyclotomic number.
Examples
cosDeg(60)
cosDeg("2/3")^2 + sinDeg("2/3")^2 == 1
[Package cyclotomic version 1.3.0 Index]