pub struct IsolatingInterval {
pub lower: BigRational,
pub upper: BigRational,
pub sign_lower: i32,
pub sign_upper: i32,
}Expand description
Isolating interval for a root.
Fields§
§lower: BigRationalLower bound.
upper: BigRationalUpper bound.
sign_lower: i32Sign at lower bound.
sign_upper: i32Sign at upper bound.
Implementations§
Source§impl IsolatingInterval
impl IsolatingInterval
Sourcepub fn new(
lower: BigRational,
upper: BigRational,
sign_lower: i32,
sign_upper: i32,
) -> Self
pub fn new( lower: BigRational, upper: BigRational, sign_lower: i32, sign_upper: i32, ) -> Self
Create a new isolating interval.
Sourcepub fn width(&self) -> BigRational
pub fn width(&self) -> BigRational
Get interval width.
Sourcepub fn midpoint(&self) -> BigRational
pub fn midpoint(&self) -> BigRational
Get midpoint.
Trait Implementations§
Source§impl Clone for IsolatingInterval
impl Clone for IsolatingInterval
Source§fn clone(&self) -> IsolatingInterval
fn clone(&self) -> IsolatingInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IsolatingInterval
impl RefUnwindSafe for IsolatingInterval
impl Send for IsolatingInterval
impl Sync for IsolatingInterval
impl Unpin for IsolatingInterval
impl UnsafeUnpin for IsolatingInterval
impl UnwindSafe for IsolatingInterval
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