pub struct Expansion<C: Coefficient> { /* private fields */ }Expand description
An expansion in the smallest infinitesimal of a value. See the module documentation.
Implementations§
Source§impl<C: Coefficient> Expansion<C>
impl<C: Coefficient> Expansion<C>
Sourcepub fn fraction(
num: Vec<C>,
den: Vec<C>,
q: u32,
) -> Result<Expansion<C>, ExpansionError>
pub fn fraction( num: Vec<C>, den: Vec<C>, q: u32, ) -> Result<Expansion<C>, ExpansionError>
The expansion of num/den, polynomials in s^(1/q) with den nonzero.
Sourcepub fn constant(c: C) -> Expansion<C>
pub fn constant(c: C) -> Expansion<C>
A value constant in s: the coefficient itself at order 0.
Sourcepub fn source(source: Arc<dyn Source<C>>, floor: i64, q: u32) -> Expansion<C>
pub fn source(source: Arc<dyn Source<C>>, floor: i64, q: u32) -> Expansion<C>
The expansion a Source gives, lowest order floor, on the grid q.
Sourcepub fn ramification(&self) -> u32
pub fn ramification(&self) -> u32
The ramification q: order k is the coefficient of s^(k/q).
Sourcepub fn coefficient(&self, k: i64) -> Result<C, ExpansionError>
pub fn coefficient(&self, k: i64) -> Result<C, ExpansionError>
The coefficient of s^(k/q).
pub fn add(&self, o: &Expansion<C>) -> Expansion<C>
pub fn neg(&self) -> Expansion<C>
Sourcepub fn sub(&self, o: &Expansion<C>) -> Expansion<C>
pub fn sub(&self, o: &Expansion<C>) -> Expansion<C>
The difference coefficient by coefficient, so a term both sides share cancels in the coefficient’s own arithmetic.
pub fn mul(&self, o: &Expansion<C>) -> Expansion<C>
Sourcepub fn leading_through(
&self,
through: i64,
) -> Result<Option<(i64, C)>, ExpansionError>
pub fn leading_through( &self, through: i64, ) -> Result<Option<(i64, C)>, ExpansionError>
The first nonzero term at or below the order through: its order and coefficient; None
when every coefficient through it is zero.
Sourcepub fn recip(&self, order: i64, lead: C) -> Expansion<C>
pub fn recip(&self, order: i64, lead: C) -> Expansion<C>
1/self for a value whose leading term is lead·s^(order/q).
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Expansion<C>
impl<C> !RefUnwindSafe for Expansion<C>
impl<C> Send for Expansion<C>
impl<C> Sync for Expansion<C>
impl<C> Unpin for Expansion<C>
impl<C> UnsafeUnpin for Expansion<C>
impl<C> !UnwindSafe for Expansion<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more