#[non_exhaustive]pub struct FunctionBound {
pub function: &'static str,
pub units_of_u2: f64,
pub growth_units_of_u2: f64,
pub growth: &'static str,
pub absolute: f64,
}Expand description
The declared error bound of one elementary function of DoubleDouble:
|z − f(x)| ≤ (units_of_u2 + growth_units_of_u2 · G) u² |f(x)| + absolute,
for results of magnitude in [2⁻⁹⁶⁸, Ω] (below: + η).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.function: &'static strThe function, as named in Rust ("exp", "powi", …).
units_of_u2: f64The constant term, in units of u² = 2⁻¹⁰⁶.
growth_units_of_u2: f64The coefficient of the growth term G, in units of u² (0 if none).
growth: &'static strWhat G is: "", "|n|" (powi), "|y ln x|" (powf) or
"|tan x|" (tan).
absolute: f64The absolute floor (2⁻²⁰⁰ for the circular functions, else 0).
Trait Implementations§
Source§impl Clone for FunctionBound
impl Clone for FunctionBound
impl Copy for FunctionBound
Source§impl Debug for FunctionBound
impl Debug for FunctionBound
Source§impl PartialEq for FunctionBound
impl PartialEq for FunctionBound
impl StructuralPartialEq for FunctionBound
Auto Trait Implementations§
impl Freeze for FunctionBound
impl RefUnwindSafe for FunctionBound
impl Send for FunctionBound
impl Sync for FunctionBound
impl Unpin for FunctionBound
impl UnsafeUnpin for FunctionBound
impl UnwindSafe for FunctionBound
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