maybeRational {cyclotomic} | R Documentation |
Cyclotomic number as exact rational number if possible.
maybeRational(cyc)
cyc |
a cyclotomic number |
A maybe
value, just
a rational number if cyc
is a rational number, nothing
otherwise.
maybeRational(zeta(4))
maybeRational(cosDeg(60)) # use `from_just` to get the value