cycSqrt {cyclotomic} | R Documentation |
Square root of an integer or a rational number as a cyclotomic number. This is slow.
cycSqrt(x)
x |
an integer, a gmp rational number ( |
The square root of x
as a cyclotomic number.
cycSqrt(2)
phi <- (1 + cycSqrt(5)) / 2 # the golden ratio
phi^2 - phi # should be 1