maybeRational | 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.
isRational
maybeRational(zeta(4))
maybeRational(cosDeg(60)) # use `from_just` to get the value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.