[−][src]Struct rustnomial::Integral
Implementations
impl<N, P: FreeSizePolynomial<N> + Evaluable<N>> Integral<N, P>
[src]
impl<N, P: FreeSizePolynomial<N> + Evaluable<N> + Clone> Integral<N, P>
[src]
impl<N: Sub<Output = N>, P: FreeSizePolynomial<N> + Evaluable<N>> Integral<N, P>
[src]
pub fn eval(&self, start: N, end: N) -> N
[src]
Returns the area of the integral from the first point to the second point.
Example
use rustnomial::{Polynomial, Integrable}; let polynomial = Polynomial::new(vec![2.0, 1.0]); let integral = polynomial.integral(); assert_eq!(2.0, integral.eval(0.0, 1.0)); assert_eq!(6.0, integral.eval(0.0, 2.0)); assert_eq!(4.0, integral.eval(1.0, 2.0));
Trait Implementations
impl<N: Clone, P: Clone + FreeSizePolynomial<N> + Evaluable<N>> Clone for Integral<N, P>
[src]
impl<N: Debug, P: Debug + FreeSizePolynomial<N> + Evaluable<N>> Debug for Integral<N, P>
[src]
impl<N, P: FreeSizePolynomial<N> + Evaluable<N> + SizedPolynomial<N> + Display> Display for Integral<N, P> where
N: IsPositive + Zero + One + Copy + IsNegativeOne + PartialEq + Display + Abs,
[src]
N: IsPositive + Zero + One + Copy + IsNegativeOne + PartialEq + Display + Abs,
Auto Trait Implementations
impl<N, P> RefUnwindSafe for Integral<N, P> where
N: RefUnwindSafe,
P: RefUnwindSafe,
[src]
N: RefUnwindSafe,
P: RefUnwindSafe,
impl<N, P> Send for Integral<N, P> where
N: Send,
P: Send,
[src]
N: Send,
P: Send,
impl<N, P> Sync for Integral<N, P> where
N: Sync,
P: Sync,
[src]
N: Sync,
P: Sync,
impl<N, P> Unpin for Integral<N, P> where
N: Unpin,
P: Unpin,
[src]
N: Unpin,
P: Unpin,
impl<N, P> UnwindSafe for Integral<N, P> where
N: UnwindSafe,
P: UnwindSafe,
[src]
N: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,