maybeRational {cyclotomic}R Documentation

Cyclotomic as exact rational number if possible

Description

Cyclotomic number as exact rational number if possible.

Usage

maybeRational(cyc)

Arguments

cyc

a cyclotomic number

Value

A maybe value, just a rational number if cyc is a rational number, nothing otherwise.

See Also

isRational

Examples

maybeRational(zeta(4))
maybeRational(cosDeg(60)) # use `from_just` to get the value

[Package cyclotomic version 1.3.0 Index]