trigonometry {cyclotomic} | R Documentation |
Cosine and sine of a rational angle as a cyclotomic number.
cosDeg(theta)
sinDeg(theta)
cosRev(theta)
sinRev(theta)
theta |
an integer number, a gmp rational number, or a
fraction given as a character string (e.g. |
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.
A cyclotomic number.
cosDeg(60)
cosDeg("2/3")^2 + sinDeg("2/3")^2 == 1