Skip to main content

AdelicRat

Type Alias AdelicRat 

Source
pub type AdelicRat = Adelic<RnsFrac>;
Expand description

Rational instantiation.

Aliased Type§

pub struct AdelicRat { /* private fields */ }

Implementations§

Source§

impl AdelicRat

Source

pub fn from_fraction(p: &BigInt, q: &BigInt, basis: Basis) -> Self

From an exact reduced p/q over basis.

Source

pub fn try_exact(&self) -> Result<(BigInt, BigInt), RangeError>

The exact (p, q), or a detected reconstruction failure.