pub struct Integral {
pub value: f64,
pub error_estimate: f64,
pub evaluations: usize,
pub panels: usize,
pub status: Status,
}Expand description
The value of an integral and how far it can be trusted.
Fields§
§value: f64The integral estimate.
error_estimate: f64Estimate of |value - exact|.
evaluations: usizeIntegrand evaluations performed.
panels: usizePanels in the final partition.
status: StatusWhether the tolerance was met; otherwise the estimate says how close it came.
Implementations§
Source§impl Integral
impl Integral
Sourcepub fn converged(self) -> NumericResult<Self>
pub fn converged(self) -> NumericResult<Self>
The integral if the tolerance was met.
§Errors
NumericError::NotConverged with the error estimate reached.
Trait Implementations§
impl Copy for Integral
impl StructuralPartialEq for Integral
Auto Trait Implementations§
impl Freeze for Integral
impl RefUnwindSafe for Integral
impl Send for Integral
impl Sync for Integral
impl Unpin for Integral
impl UnwindSafe for Integral
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