pub struct Poly<T: Coeff> {
pub terms: Vec<Mono<T>>,
}Expand description
polynomial
Fields§
§terms: Vec<Mono<T>>Implementations§
Source§impl<T: Coeff> Poly<T>
impl<T: Coeff> Poly<T>
pub fn apply<S: Into<Cow<'static, str>>>(&self, func: S) -> Poly<T>
pub fn is_symbol(&self) -> bool
pub fn merge_terms(&mut self)
pub fn group_by(&mut self, bases: Vec<Base<T>>)
pub fn collect_by(&self, factors: &[Factor<T>]) -> (Vec<Poly<T>>, Poly<T>)
pub fn simplify_by_identity( &self, left_side: Poly<T>, right_side: Poly<T>, ) -> Poly<T>
pub fn expand(&mut self)
pub fn extract_common_factors(&mut self) -> Vec<Factor<T>>
pub fn factorize(&self)
Trait Implementations§
Source§impl<T: Coeff> AddAssign for Poly<T>
impl<T: Coeff> AddAssign for Poly<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<T: Coeff> MulAssign for Poly<T>
impl<T: Coeff> MulAssign for Poly<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<T: Coeff> Ord for Poly<T>
impl<T: Coeff> Ord for Poly<T>
Source§impl<T: Coeff> PartialOrd for Poly<T>
impl<T: Coeff> PartialOrd for Poly<T>
Source§impl<T: Coeff> SubAssign for Poly<T>
impl<T: Coeff> SubAssign for Poly<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl<T: Eq + Coeff> Eq for Poly<T>
impl<T: Coeff> StructuralPartialEq for Poly<T>
Auto Trait Implementations§
impl<T> Freeze for Poly<T>
impl<T> RefUnwindSafe for Poly<T>where
T: RefUnwindSafe,
impl<T> Send for Poly<T>where
T: Send,
impl<T> Sync for Poly<T>where
T: Sync,
impl<T> Unpin for Poly<T>where
T: Unpin,
impl<T> UnwindSafe for Poly<T>where
T: UnwindSafe,
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