pub struct Polynomial<T> { /* private fields */ }
Implementations§
Source§impl<T: Display + One + Zero + PartialEq> Polynomial<T>
impl<T: Display + One + Zero + PartialEq> Polynomial<T>
Sourcepub fn to_display<'a, 'b>(
&'b self,
variable: &'a str,
) -> DisplayPolynomial<'a, 'b, T>
pub fn to_display<'a, 'b>( &'b self, variable: &'a str, ) -> DisplayPolynomial<'a, 'b, T>
Examples found in repository?
examples/basic.rs (line 10)
4fn main() {
5 let a = Polynomial::new(coefficients![1f32, 2.0, 3.0, 0.0]);
6 let b = Polynomial::new(coefficients![1f32, 0.0, 1.0]);
7 let (q, r) = a.div_rem(&b);
8 println!(
9 "({0}) / ({1}) = ({1}) * ({2}) + {3}",
10 a.to_display("ω"),
11 b.to_display("ω"),
12 q.to_display("ω"),
13 r.to_display("ω")
14 );
15
16 let x = Complex::new(0f32, 1.0);
17 let e = a.eval(x);
18 println!("{} = {} for x = {}", a.to_display("x"), e, x);
19
20 let d = a.eval_der(1f32, 2);
21 println!("({})'' = {} for z = {}", a.to_display("z"), d, 1f32);
22}
Source§impl<T> Polynomial<T>
impl<T> Polynomial<T>
pub fn order(&self) -> i32
pub fn reverse_coeffs(&self) -> &SmallVec<[T; 8]>
pub fn into_coeffs(self) -> SmallVec<[T; 8]>
pub fn into_reverse_coeffs(self) -> SmallVec<[T; 8]>
pub fn coeffs(&self) -> SmallVec<[T; 8]>where
T: Clone,
Sourcepub fn new(coefficients: SmallVec<[T; 8]>) -> Selfwhere
T: Zero,
pub fn new(coefficients: SmallVec<[T; 8]>) -> Selfwhere
T: Zero,
Examples found in repository?
examples/basic.rs (line 5)
4fn main() {
5 let a = Polynomial::new(coefficients![1f32, 2.0, 3.0, 0.0]);
6 let b = Polynomial::new(coefficients![1f32, 0.0, 1.0]);
7 let (q, r) = a.div_rem(&b);
8 println!(
9 "({0}) / ({1}) = ({1}) * ({2}) + {3}",
10 a.to_display("ω"),
11 b.to_display("ω"),
12 q.to_display("ω"),
13 r.to_display("ω")
14 );
15
16 let x = Complex::new(0f32, 1.0);
17 let e = a.eval(x);
18 println!("{} = {} for x = {}", a.to_display("x"), e, x);
19
20 let d = a.eval_der(1f32, 2);
21 println!("({})'' = {} for z = {}", a.to_display("z"), d, 1f32);
22}
pub fn new_reversed(rev_coeffs: SmallVec<[T; 8]>) -> Selfwhere
T: Zero,
Sourcepub fn eval<X, Y>(&self, x: X) -> Y
pub fn eval<X, Y>(&self, x: X) -> Y
Examples found in repository?
examples/basic.rs (line 17)
4fn main() {
5 let a = Polynomial::new(coefficients![1f32, 2.0, 3.0, 0.0]);
6 let b = Polynomial::new(coefficients![1f32, 0.0, 1.0]);
7 let (q, r) = a.div_rem(&b);
8 println!(
9 "({0}) / ({1}) = ({1}) * ({2}) + {3}",
10 a.to_display("ω"),
11 b.to_display("ω"),
12 q.to_display("ω"),
13 r.to_display("ω")
14 );
15
16 let x = Complex::new(0f32, 1.0);
17 let e = a.eval(x);
18 println!("{} = {} for x = {}", a.to_display("x"), e, x);
19
20 let d = a.eval_der(1f32, 2);
21 println!("({})'' = {} for z = {}", a.to_display("z"), d, 1f32);
22}
pub fn eval_precise<X, Y>(&self, x: X) -> Y
Sourcepub fn eval_der<X, Y>(&self, x: X, n: i32) -> Y
pub fn eval_der<X, Y>(&self, x: X, n: i32) -> Y
Examples found in repository?
examples/basic.rs (line 20)
4fn main() {
5 let a = Polynomial::new(coefficients![1f32, 2.0, 3.0, 0.0]);
6 let b = Polynomial::new(coefficients![1f32, 0.0, 1.0]);
7 let (q, r) = a.div_rem(&b);
8 println!(
9 "({0}) / ({1}) = ({1}) * ({2}) + {3}",
10 a.to_display("ω"),
11 b.to_display("ω"),
12 q.to_display("ω"),
13 r.to_display("ω")
14 );
15
16 let x = Complex::new(0f32, 1.0);
17 let e = a.eval(x);
18 println!("{} = {} for x = {}", a.to_display("x"), e, x);
19
20 let d = a.eval_der(1f32, 2);
21 println!("({})'' = {} for z = {}", a.to_display("z"), d, 1f32);
22}
pub fn eval_der_precise<X, Y>(&self, x: X, n: i32) -> Y
Sourcepub fn div_rem(&self, rhs: &Self) -> (Self, Self)
pub fn div_rem(&self, rhs: &Self) -> (Self, Self)
Examples found in repository?
examples/basic.rs (line 7)
4fn main() {
5 let a = Polynomial::new(coefficients![1f32, 2.0, 3.0, 0.0]);
6 let b = Polynomial::new(coefficients![1f32, 0.0, 1.0]);
7 let (q, r) = a.div_rem(&b);
8 println!(
9 "({0}) / ({1}) = ({1}) * ({2}) + {3}",
10 a.to_display("ω"),
11 b.to_display("ω"),
12 q.to_display("ω"),
13 r.to_display("ω")
14 );
15
16 let x = Complex::new(0f32, 1.0);
17 let e = a.eval(x);
18 println!("{} = {} for x = {}", a.to_display("x"), e, x);
19
20 let d = a.eval_der(1f32, 2);
21 println!("({})'' = {} for z = {}", a.to_display("z"), d, 1f32);
22}
Trait Implementations§
Source§impl<T> Add<&Polynomial<T>> for &Polynomial<T>
impl<T> Add<&Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn add(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
+
operation. Read moreSource§impl<T> Add<&Polynomial<T>> for Polynomial<T>
impl<T> Add<&Polynomial<T>> for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn add(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
+
operation. Read moreSource§impl<T> Add<Polynomial<T>> for &Polynomial<T>
impl<T> Add<Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Polynomial<T>) -> Polynomial<T>
fn add(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
+
operation. Read moreSource§impl<T> Add for Polynomial<T>
impl<T> Add for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
+
operator.Source§fn add(self, rhs: Polynomial<T>) -> Polynomial<T>
fn add(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
+
operation. Read moreSource§impl<T> AddAssign<&Polynomial<T>> for Polynomial<T>
impl<T> AddAssign<&Polynomial<T>> for Polynomial<T>
Source§fn add_assign(&mut self, rhs: &Polynomial<T>)
fn add_assign(&mut self, rhs: &Polynomial<T>)
Performs the
+=
operation. Read moreSource§impl<T> AddAssign for Polynomial<T>
impl<T> AddAssign for Polynomial<T>
Source§fn add_assign(&mut self, rhs: Polynomial<T>)
fn add_assign(&mut self, rhs: Polynomial<T>)
Performs the
+=
operation. Read moreSource§impl<T: Clone> Clone for Polynomial<T>
impl<T: Clone> Clone for Polynomial<T>
Source§fn clone(&self) -> Polynomial<T>
fn clone(&self) -> Polynomial<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for Polynomial<T>
impl<T: Debug> Debug for Polynomial<T>
Source§impl Mul<&Polynomial<BigInt>> for &BigInt
impl Mul<&Polynomial<BigInt>> for &BigInt
Source§type Output = Polynomial<BigInt>
type Output = Polynomial<BigInt>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<BigInt>) -> Polynomial<BigInt>
fn mul(self, rhs: &Polynomial<BigInt>) -> Polynomial<BigInt>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<BigInt>> for BigInt
impl Mul<&Polynomial<BigInt>> for BigInt
Source§type Output = Polynomial<BigInt>
type Output = Polynomial<BigInt>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<BigInt>) -> Polynomial<BigInt>
fn mul(self, rhs: &Polynomial<BigInt>) -> Polynomial<BigInt>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<BigUint>> for &BigUint
impl Mul<&Polynomial<BigUint>> for &BigUint
Source§type Output = Polynomial<BigUint>
type Output = Polynomial<BigUint>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<BigUint>) -> Polynomial<BigUint>
fn mul(self, rhs: &Polynomial<BigUint>) -> Polynomial<BigUint>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<BigUint>> for BigUint
impl Mul<&Polynomial<BigUint>> for BigUint
Source§type Output = Polynomial<BigUint>
type Output = Polynomial<BigUint>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<BigUint>) -> Polynomial<BigUint>
fn mul(self, rhs: &Polynomial<BigUint>) -> Polynomial<BigUint>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<BigInt>>> for &BigRational
impl Mul<&Polynomial<Ratio<BigInt>>> for &BigRational
Source§fn mul(self, rhs: &Polynomial<BigRational>) -> Polynomial<BigRational>
fn mul(self, rhs: &Polynomial<BigRational>) -> Polynomial<BigRational>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<BigInt>>> for BigRational
impl Mul<&Polynomial<Ratio<BigInt>>> for BigRational
Source§fn mul(self, rhs: &Polynomial<BigRational>) -> Polynomial<BigRational>
fn mul(self, rhs: &Polynomial<BigRational>) -> Polynomial<BigRational>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<i32>>> for &Rational32
impl Mul<&Polynomial<Ratio<i32>>> for &Rational32
Source§fn mul(self, rhs: &Polynomial<Rational32>) -> Polynomial<Rational32>
fn mul(self, rhs: &Polynomial<Rational32>) -> Polynomial<Rational32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<i32>>> for Rational32
impl Mul<&Polynomial<Ratio<i32>>> for Rational32
Source§fn mul(self, rhs: &Polynomial<Rational32>) -> Polynomial<Rational32>
fn mul(self, rhs: &Polynomial<Rational32>) -> Polynomial<Rational32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<i64>>> for &Rational64
impl Mul<&Polynomial<Ratio<i64>>> for &Rational64
Source§fn mul(self, rhs: &Polynomial<Rational64>) -> Polynomial<Rational64>
fn mul(self, rhs: &Polynomial<Rational64>) -> Polynomial<Rational64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<i64>>> for Rational64
impl Mul<&Polynomial<Ratio<i64>>> for Rational64
Source§fn mul(self, rhs: &Polynomial<Rational64>) -> Polynomial<Rational64>
fn mul(self, rhs: &Polynomial<Rational64>) -> Polynomial<Rational64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<isize>>> for &Rational
impl Mul<&Polynomial<Ratio<isize>>> for &Rational
Source§fn mul(self, rhs: &Polynomial<Rational>) -> Polynomial<Rational>
fn mul(self, rhs: &Polynomial<Rational>) -> Polynomial<Rational>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<Ratio<isize>>> for Rational
impl Mul<&Polynomial<Ratio<isize>>> for Rational
Source§fn mul(self, rhs: &Polynomial<Rational>) -> Polynomial<Rational>
fn mul(self, rhs: &Polynomial<Rational>) -> Polynomial<Rational>
Performs the
*
operation. Read moreSource§impl<T> Mul<&Polynomial<T>> for &Polynomial<T>
impl<T> Mul<&Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn mul(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl<T> Mul<&Polynomial<T>> for Polynomial<T>
impl<T> Mul<&Polynomial<T>> for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn mul(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<f32>> for &f32
impl Mul<&Polynomial<f32>> for &f32
Source§type Output = Polynomial<f32>
type Output = Polynomial<f32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<f32>) -> Polynomial<f32>
fn mul(self, rhs: &Polynomial<f32>) -> Polynomial<f32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<f32>> for f32
impl Mul<&Polynomial<f32>> for f32
Source§type Output = Polynomial<f32>
type Output = Polynomial<f32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<f32>) -> Polynomial<f32>
fn mul(self, rhs: &Polynomial<f32>) -> Polynomial<f32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<f64>> for &f64
impl Mul<&Polynomial<f64>> for &f64
Source§type Output = Polynomial<f64>
type Output = Polynomial<f64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<f64>) -> Polynomial<f64>
fn mul(self, rhs: &Polynomial<f64>) -> Polynomial<f64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<f64>> for f64
impl Mul<&Polynomial<f64>> for f64
Source§type Output = Polynomial<f64>
type Output = Polynomial<f64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<f64>) -> Polynomial<f64>
fn mul(self, rhs: &Polynomial<f64>) -> Polynomial<f64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i16>> for &i16
impl Mul<&Polynomial<i16>> for &i16
Source§type Output = Polynomial<i16>
type Output = Polynomial<i16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i16>) -> Polynomial<i16>
fn mul(self, rhs: &Polynomial<i16>) -> Polynomial<i16>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i16>> for i16
impl Mul<&Polynomial<i16>> for i16
Source§type Output = Polynomial<i16>
type Output = Polynomial<i16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i16>) -> Polynomial<i16>
fn mul(self, rhs: &Polynomial<i16>) -> Polynomial<i16>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i32>> for &i32
impl Mul<&Polynomial<i32>> for &i32
Source§type Output = Polynomial<i32>
type Output = Polynomial<i32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i32>) -> Polynomial<i32>
fn mul(self, rhs: &Polynomial<i32>) -> Polynomial<i32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i32>> for i32
impl Mul<&Polynomial<i32>> for i32
Source§type Output = Polynomial<i32>
type Output = Polynomial<i32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i32>) -> Polynomial<i32>
fn mul(self, rhs: &Polynomial<i32>) -> Polynomial<i32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i64>> for &i64
impl Mul<&Polynomial<i64>> for &i64
Source§type Output = Polynomial<i64>
type Output = Polynomial<i64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i64>) -> Polynomial<i64>
fn mul(self, rhs: &Polynomial<i64>) -> Polynomial<i64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i64>> for i64
impl Mul<&Polynomial<i64>> for i64
Source§type Output = Polynomial<i64>
type Output = Polynomial<i64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i64>) -> Polynomial<i64>
fn mul(self, rhs: &Polynomial<i64>) -> Polynomial<i64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i8>> for &i8
impl Mul<&Polynomial<i8>> for &i8
Source§type Output = Polynomial<i8>
type Output = Polynomial<i8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i8>) -> Polynomial<i8>
fn mul(self, rhs: &Polynomial<i8>) -> Polynomial<i8>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<i8>> for i8
impl Mul<&Polynomial<i8>> for i8
Source§type Output = Polynomial<i8>
type Output = Polynomial<i8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<i8>) -> Polynomial<i8>
fn mul(self, rhs: &Polynomial<i8>) -> Polynomial<i8>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<isize>> for &isize
impl Mul<&Polynomial<isize>> for &isize
Source§type Output = Polynomial<isize>
type Output = Polynomial<isize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<isize>) -> Polynomial<isize>
fn mul(self, rhs: &Polynomial<isize>) -> Polynomial<isize>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<isize>> for isize
impl Mul<&Polynomial<isize>> for isize
Source§type Output = Polynomial<isize>
type Output = Polynomial<isize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<isize>) -> Polynomial<isize>
fn mul(self, rhs: &Polynomial<isize>) -> Polynomial<isize>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u16>> for &u16
impl Mul<&Polynomial<u16>> for &u16
Source§type Output = Polynomial<u16>
type Output = Polynomial<u16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u16>) -> Polynomial<u16>
fn mul(self, rhs: &Polynomial<u16>) -> Polynomial<u16>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u16>> for u16
impl Mul<&Polynomial<u16>> for u16
Source§type Output = Polynomial<u16>
type Output = Polynomial<u16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u16>) -> Polynomial<u16>
fn mul(self, rhs: &Polynomial<u16>) -> Polynomial<u16>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u32>> for &u32
impl Mul<&Polynomial<u32>> for &u32
Source§type Output = Polynomial<u32>
type Output = Polynomial<u32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u32>) -> Polynomial<u32>
fn mul(self, rhs: &Polynomial<u32>) -> Polynomial<u32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u32>> for u32
impl Mul<&Polynomial<u32>> for u32
Source§type Output = Polynomial<u32>
type Output = Polynomial<u32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u32>) -> Polynomial<u32>
fn mul(self, rhs: &Polynomial<u32>) -> Polynomial<u32>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u64>> for &u64
impl Mul<&Polynomial<u64>> for &u64
Source§type Output = Polynomial<u64>
type Output = Polynomial<u64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u64>) -> Polynomial<u64>
fn mul(self, rhs: &Polynomial<u64>) -> Polynomial<u64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u64>> for u64
impl Mul<&Polynomial<u64>> for u64
Source§type Output = Polynomial<u64>
type Output = Polynomial<u64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u64>) -> Polynomial<u64>
fn mul(self, rhs: &Polynomial<u64>) -> Polynomial<u64>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u8>> for &u8
impl Mul<&Polynomial<u8>> for &u8
Source§type Output = Polynomial<u8>
type Output = Polynomial<u8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u8>) -> Polynomial<u8>
fn mul(self, rhs: &Polynomial<u8>) -> Polynomial<u8>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<u8>> for u8
impl Mul<&Polynomial<u8>> for u8
Source§type Output = Polynomial<u8>
type Output = Polynomial<u8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<u8>) -> Polynomial<u8>
fn mul(self, rhs: &Polynomial<u8>) -> Polynomial<u8>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<usize>> for &usize
impl Mul<&Polynomial<usize>> for &usize
Source§type Output = Polynomial<usize>
type Output = Polynomial<usize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<usize>) -> Polynomial<usize>
fn mul(self, rhs: &Polynomial<usize>) -> Polynomial<usize>
Performs the
*
operation. Read moreSource§impl Mul<&Polynomial<usize>> for usize
impl Mul<&Polynomial<usize>> for usize
Source§type Output = Polynomial<usize>
type Output = Polynomial<usize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: &Polynomial<usize>) -> Polynomial<usize>
fn mul(self, rhs: &Polynomial<usize>) -> Polynomial<usize>
Performs the
*
operation. Read moreSource§impl<T> Mul<&T> for &Polynomial<T>
impl<T> Mul<&T> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§impl<T> Mul<&T> for Polynomial<T>
impl<T> Mul<&T> for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§impl Mul<Polynomial<BigInt>> for &BigInt
impl Mul<Polynomial<BigInt>> for &BigInt
Source§type Output = Polynomial<BigInt>
type Output = Polynomial<BigInt>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<BigInt>) -> Polynomial<BigInt>
fn mul(self, rhs: Polynomial<BigInt>) -> Polynomial<BigInt>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<BigInt>> for BigInt
impl Mul<Polynomial<BigInt>> for BigInt
Source§type Output = Polynomial<BigInt>
type Output = Polynomial<BigInt>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<BigInt>) -> Polynomial<BigInt>
fn mul(self, rhs: Polynomial<BigInt>) -> Polynomial<BigInt>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<BigUint>> for &BigUint
impl Mul<Polynomial<BigUint>> for &BigUint
Source§type Output = Polynomial<BigUint>
type Output = Polynomial<BigUint>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<BigUint>) -> Polynomial<BigUint>
fn mul(self, rhs: Polynomial<BigUint>) -> Polynomial<BigUint>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<BigUint>> for BigUint
impl Mul<Polynomial<BigUint>> for BigUint
Source§type Output = Polynomial<BigUint>
type Output = Polynomial<BigUint>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<BigUint>) -> Polynomial<BigUint>
fn mul(self, rhs: Polynomial<BigUint>) -> Polynomial<BigUint>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<BigInt>>> for &BigRational
impl Mul<Polynomial<Ratio<BigInt>>> for &BigRational
Source§fn mul(self, rhs: Polynomial<BigRational>) -> Polynomial<BigRational>
fn mul(self, rhs: Polynomial<BigRational>) -> Polynomial<BigRational>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<BigInt>>> for BigRational
impl Mul<Polynomial<Ratio<BigInt>>> for BigRational
Source§fn mul(self, rhs: Polynomial<BigRational>) -> Polynomial<BigRational>
fn mul(self, rhs: Polynomial<BigRational>) -> Polynomial<BigRational>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<i32>>> for &Rational32
impl Mul<Polynomial<Ratio<i32>>> for &Rational32
Source§fn mul(self, rhs: Polynomial<Rational32>) -> Polynomial<Rational32>
fn mul(self, rhs: Polynomial<Rational32>) -> Polynomial<Rational32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<i32>>> for Rational32
impl Mul<Polynomial<Ratio<i32>>> for Rational32
Source§fn mul(self, rhs: Polynomial<Rational32>) -> Polynomial<Rational32>
fn mul(self, rhs: Polynomial<Rational32>) -> Polynomial<Rational32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<i64>>> for &Rational64
impl Mul<Polynomial<Ratio<i64>>> for &Rational64
Source§fn mul(self, rhs: Polynomial<Rational64>) -> Polynomial<Rational64>
fn mul(self, rhs: Polynomial<Rational64>) -> Polynomial<Rational64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<i64>>> for Rational64
impl Mul<Polynomial<Ratio<i64>>> for Rational64
Source§fn mul(self, rhs: Polynomial<Rational64>) -> Polynomial<Rational64>
fn mul(self, rhs: Polynomial<Rational64>) -> Polynomial<Rational64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<isize>>> for &Rational
impl Mul<Polynomial<Ratio<isize>>> for &Rational
Source§fn mul(self, rhs: Polynomial<Rational>) -> Polynomial<Rational>
fn mul(self, rhs: Polynomial<Rational>) -> Polynomial<Rational>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<Ratio<isize>>> for Rational
impl Mul<Polynomial<Ratio<isize>>> for Rational
Source§fn mul(self, rhs: Polynomial<Rational>) -> Polynomial<Rational>
fn mul(self, rhs: Polynomial<Rational>) -> Polynomial<Rational>
Performs the
*
operation. Read moreSource§impl<T> Mul<Polynomial<T>> for &Polynomial<T>
impl<T> Mul<Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<T>) -> Polynomial<T>
fn mul(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<f32>> for &f32
impl Mul<Polynomial<f32>> for &f32
Source§type Output = Polynomial<f32>
type Output = Polynomial<f32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<f32>) -> Polynomial<f32>
fn mul(self, rhs: Polynomial<f32>) -> Polynomial<f32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<f32>> for f32
impl Mul<Polynomial<f32>> for f32
Source§type Output = Polynomial<f32>
type Output = Polynomial<f32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<f32>) -> Polynomial<f32>
fn mul(self, rhs: Polynomial<f32>) -> Polynomial<f32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<f64>> for &f64
impl Mul<Polynomial<f64>> for &f64
Source§type Output = Polynomial<f64>
type Output = Polynomial<f64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<f64>) -> Polynomial<f64>
fn mul(self, rhs: Polynomial<f64>) -> Polynomial<f64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<f64>> for f64
impl Mul<Polynomial<f64>> for f64
Source§type Output = Polynomial<f64>
type Output = Polynomial<f64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<f64>) -> Polynomial<f64>
fn mul(self, rhs: Polynomial<f64>) -> Polynomial<f64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i16>> for &i16
impl Mul<Polynomial<i16>> for &i16
Source§type Output = Polynomial<i16>
type Output = Polynomial<i16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i16>) -> Polynomial<i16>
fn mul(self, rhs: Polynomial<i16>) -> Polynomial<i16>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i16>> for i16
impl Mul<Polynomial<i16>> for i16
Source§type Output = Polynomial<i16>
type Output = Polynomial<i16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i16>) -> Polynomial<i16>
fn mul(self, rhs: Polynomial<i16>) -> Polynomial<i16>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i32>> for &i32
impl Mul<Polynomial<i32>> for &i32
Source§type Output = Polynomial<i32>
type Output = Polynomial<i32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i32>) -> Polynomial<i32>
fn mul(self, rhs: Polynomial<i32>) -> Polynomial<i32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i32>> for i32
impl Mul<Polynomial<i32>> for i32
Source§type Output = Polynomial<i32>
type Output = Polynomial<i32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i32>) -> Polynomial<i32>
fn mul(self, rhs: Polynomial<i32>) -> Polynomial<i32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i64>> for &i64
impl Mul<Polynomial<i64>> for &i64
Source§type Output = Polynomial<i64>
type Output = Polynomial<i64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i64>) -> Polynomial<i64>
fn mul(self, rhs: Polynomial<i64>) -> Polynomial<i64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i64>> for i64
impl Mul<Polynomial<i64>> for i64
Source§type Output = Polynomial<i64>
type Output = Polynomial<i64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i64>) -> Polynomial<i64>
fn mul(self, rhs: Polynomial<i64>) -> Polynomial<i64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i8>> for &i8
impl Mul<Polynomial<i8>> for &i8
Source§type Output = Polynomial<i8>
type Output = Polynomial<i8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i8>) -> Polynomial<i8>
fn mul(self, rhs: Polynomial<i8>) -> Polynomial<i8>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<i8>> for i8
impl Mul<Polynomial<i8>> for i8
Source§type Output = Polynomial<i8>
type Output = Polynomial<i8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<i8>) -> Polynomial<i8>
fn mul(self, rhs: Polynomial<i8>) -> Polynomial<i8>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<isize>> for &isize
impl Mul<Polynomial<isize>> for &isize
Source§type Output = Polynomial<isize>
type Output = Polynomial<isize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<isize>) -> Polynomial<isize>
fn mul(self, rhs: Polynomial<isize>) -> Polynomial<isize>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<isize>> for isize
impl Mul<Polynomial<isize>> for isize
Source§type Output = Polynomial<isize>
type Output = Polynomial<isize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<isize>) -> Polynomial<isize>
fn mul(self, rhs: Polynomial<isize>) -> Polynomial<isize>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u16>> for &u16
impl Mul<Polynomial<u16>> for &u16
Source§type Output = Polynomial<u16>
type Output = Polynomial<u16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u16>) -> Polynomial<u16>
fn mul(self, rhs: Polynomial<u16>) -> Polynomial<u16>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u16>> for u16
impl Mul<Polynomial<u16>> for u16
Source§type Output = Polynomial<u16>
type Output = Polynomial<u16>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u16>) -> Polynomial<u16>
fn mul(self, rhs: Polynomial<u16>) -> Polynomial<u16>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u32>> for &u32
impl Mul<Polynomial<u32>> for &u32
Source§type Output = Polynomial<u32>
type Output = Polynomial<u32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u32>) -> Polynomial<u32>
fn mul(self, rhs: Polynomial<u32>) -> Polynomial<u32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u32>> for u32
impl Mul<Polynomial<u32>> for u32
Source§type Output = Polynomial<u32>
type Output = Polynomial<u32>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u32>) -> Polynomial<u32>
fn mul(self, rhs: Polynomial<u32>) -> Polynomial<u32>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u64>> for &u64
impl Mul<Polynomial<u64>> for &u64
Source§type Output = Polynomial<u64>
type Output = Polynomial<u64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u64>) -> Polynomial<u64>
fn mul(self, rhs: Polynomial<u64>) -> Polynomial<u64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u64>> for u64
impl Mul<Polynomial<u64>> for u64
Source§type Output = Polynomial<u64>
type Output = Polynomial<u64>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u64>) -> Polynomial<u64>
fn mul(self, rhs: Polynomial<u64>) -> Polynomial<u64>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u8>> for &u8
impl Mul<Polynomial<u8>> for &u8
Source§type Output = Polynomial<u8>
type Output = Polynomial<u8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u8>) -> Polynomial<u8>
fn mul(self, rhs: Polynomial<u8>) -> Polynomial<u8>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<u8>> for u8
impl Mul<Polynomial<u8>> for u8
Source§type Output = Polynomial<u8>
type Output = Polynomial<u8>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<u8>) -> Polynomial<u8>
fn mul(self, rhs: Polynomial<u8>) -> Polynomial<u8>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<usize>> for &usize
impl Mul<Polynomial<usize>> for &usize
Source§type Output = Polynomial<usize>
type Output = Polynomial<usize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<usize>) -> Polynomial<usize>
fn mul(self, rhs: Polynomial<usize>) -> Polynomial<usize>
Performs the
*
operation. Read moreSource§impl Mul<Polynomial<usize>> for usize
impl Mul<Polynomial<usize>> for usize
Source§type Output = Polynomial<usize>
type Output = Polynomial<usize>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<usize>) -> Polynomial<usize>
fn mul(self, rhs: Polynomial<usize>) -> Polynomial<usize>
Performs the
*
operation. Read moreSource§impl<T> Mul<T> for &Polynomial<T>
impl<T> Mul<T> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: T) -> Polynomial<T>
fn mul(self, rhs: T) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl<T> Mul<T> for Polynomial<T>
impl<T> Mul<T> for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: T) -> Polynomial<T>
fn mul(self, rhs: T) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl<T> Mul for Polynomial<T>
impl<T> Mul for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: Polynomial<T>) -> Polynomial<T>
fn mul(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
*
operation. Read moreSource§impl<T> MulAssign<&Polynomial<T>> for Polynomial<T>
impl<T> MulAssign<&Polynomial<T>> for Polynomial<T>
Source§fn mul_assign(&mut self, rhs: &Polynomial<T>)
fn mul_assign(&mut self, rhs: &Polynomial<T>)
Performs the
*=
operation. Read moreSource§impl<T> MulAssign for Polynomial<T>
impl<T> MulAssign for Polynomial<T>
Source§fn mul_assign(&mut self, rhs: Polynomial<T>)
fn mul_assign(&mut self, rhs: Polynomial<T>)
Performs the
*=
operation. Read moreSource§impl<T> Neg for &Polynomial<T>
impl<T> Neg for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn neg(self) -> Polynomial<T>
fn neg(self) -> Polynomial<T>
Performs the unary
-
operation. Read moreSource§impl<T> Neg for Polynomial<T>
impl<T> Neg for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn neg(self) -> Polynomial<T>
fn neg(self) -> Polynomial<T>
Performs the unary
-
operation. Read moreSource§impl<T> One for Polynomial<T>
impl<T> One for Polynomial<T>
Source§impl<T: Ord> Ord for Polynomial<T>
impl<T: Ord> Ord for Polynomial<T>
Source§fn cmp(&self, other: &Polynomial<T>) -> Ordering
fn cmp(&self, other: &Polynomial<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for Polynomial<T>
impl<T: PartialEq> PartialEq for Polynomial<T>
Source§impl<T: PartialOrd> PartialOrd for Polynomial<T>
impl<T: PartialOrd> PartialOrd for Polynomial<T>
Source§impl<T> Sub<&Polynomial<T>> for &Polynomial<T>
impl<T> Sub<&Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn sub(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
-
operation. Read moreSource§impl<T> Sub<&Polynomial<T>> for Polynomial<T>
impl<T> Sub<&Polynomial<T>> for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: &Polynomial<T>) -> Polynomial<T>
fn sub(self, rhs: &Polynomial<T>) -> Polynomial<T>
Performs the
-
operation. Read moreSource§impl<T> Sub<Polynomial<T>> for &Polynomial<T>
impl<T> Sub<Polynomial<T>> for &Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Polynomial<T>) -> Polynomial<T>
fn sub(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
-
operation. Read moreSource§impl<T> Sub for Polynomial<T>
impl<T> Sub for Polynomial<T>
Source§type Output = Polynomial<T>
type Output = Polynomial<T>
The resulting type after applying the
-
operator.Source§fn sub(self, rhs: Polynomial<T>) -> Polynomial<T>
fn sub(self, rhs: Polynomial<T>) -> Polynomial<T>
Performs the
-
operation. Read moreSource§impl<T> SubAssign<&Polynomial<T>> for Polynomial<T>
impl<T> SubAssign<&Polynomial<T>> for Polynomial<T>
Source§fn sub_assign(&mut self, rhs: &Polynomial<T>)
fn sub_assign(&mut self, rhs: &Polynomial<T>)
Performs the
-=
operation. Read moreSource§impl<T> SubAssign for Polynomial<T>
impl<T> SubAssign for Polynomial<T>
Source§fn sub_assign(&mut self, rhs: Polynomial<T>)
fn sub_assign(&mut self, rhs: Polynomial<T>)
Performs the
-=
operation. Read moreSource§impl<T> Zero for Polynomial<T>
impl<T> Zero for Polynomial<T>
impl<T: Eq> Eq for Polynomial<T>
impl<T> StructuralPartialEq for Polynomial<T>
Auto Trait Implementations§
impl<T> Freeze for Polynomial<T>where
T: Freeze,
impl<T> RefUnwindSafe for Polynomial<T>where
T: RefUnwindSafe,
impl<T> Send for Polynomial<T>where
T: Send,
impl<T> Sync for Polynomial<T>where
T: Sync,
impl<T> Unpin for Polynomial<T>where
T: Unpin,
impl<T> UnwindSafe for Polynomial<T>where
T: RefUnwindSafe + 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