pub struct Root {
pub x: f64,
pub value: f64,
pub lower: f64,
pub upper: f64,
pub iterations: usize,
pub evaluations: usize,
pub status: Status,
}Expand description
A root located inside a sign-change bracket.
Fields§
§x: f64Best estimate: the bracket end with the smaller |f|.
value: f64f(x).
lower: f64Lower end of the final bracket.
upper: f64Upper end of the final bracket. The function changes sign across
[lower, upper], or lower == upper == x with value == 0.
iterations: usizeIterations performed.
evaluations: usizeFunction evaluations performed.
status: StatusStatus::Converged, or Status::BudgetExhausted if the
iteration cap was hit first; the bracket is valid either way.
Implementations§
Trait Implementations§
impl Copy for Root
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl Freeze for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnwindSafe for Root
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