Struct integral_exponential_polynomial::Polynomial [] [src]

pub struct Polynomial { /* fields omitted */ }

Methods

impl Polynomial
[src]

Returns a new polynomial with at most one term. When either coefficient or base is zero, an empty polynomial is returned.

Arguments

  • coeff - A BigInt represents the coefficient of the term
  • base - A BigUint represents the base of the component function ```

Returns the result for applying the given value to the polynomial.

Arguments

  • value - The value to be applied to the polynomial

Example

use num::{BigInt, BigUint, pow};
let p = Polynomial::one_term(BigInt::from(10), BigUint::from(20u8));
assert_eq!(p.apply(30), (BigInt::from(10) *
                         BigInt::from(pow(BigUint::from(20u8), 30))));

Trait Implementations

impl Eq for Polynomial
[src]

impl PartialEq for Polynomial
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Polynomial
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Polynomial
[src]

Formats the value using the given formatter.

impl Add for Polynomial
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for Polynomial
[src]

The resulting type after applying the - operator

The method for the - operator

impl AddAssign for Polynomial
[src]

The method for the += operator

impl SubAssign for Polynomial
[src]

The method for the -= operator

impl Display for Polynomial
[src]

Formats the value using the given formatter.