pub struct HyperrealApprox {
pub seq: Vec<f64>,
pub filter: PrincipalUltrafilter,
}Expand description
A computable hyperreal approximation via a sequence of reals modulo a principal ultrafilter.
seq[principal] gives the “value” in the ultrapower for the principal ultrafilter.
Fields§
§seq: Vec<f64>The underlying sequence (length = index set size of the ultrafilter).
filter: PrincipalUltrafilterThe ultrafilter used to form the equivalence class.
Implementations§
Source§impl HyperrealApprox
impl HyperrealApprox
Sourcepub fn constant(r: f64, n: usize, principal: usize) -> Self
pub fn constant(r: f64, n: usize, principal: usize) -> Self
Construct the constant hyperreal r (constant sequence).
Sourcepub fn value(&self) -> f64
pub fn value(&self) -> f64
Return the representative value for this hyperreal (value at principal element).
Sourcepub fn is_standard_zero(&self) -> bool
pub fn is_standard_zero(&self) -> bool
Check if this hyperreal is “infinitesimal” by standard: |value| < eps for small eps.
In a principal ultrafilter model, infinitesimals are just zero at the representative.
Sourcepub fn standard_part(&self) -> f64
pub fn standard_part(&self) -> f64
“Standard part”: return the value at the principal element (only meaningful for finite elements).
Trait Implementations§
Source§impl Clone for HyperrealApprox
impl Clone for HyperrealApprox
Source§fn clone(&self) -> HyperrealApprox
fn clone(&self) -> HyperrealApprox
Returns a duplicate of the value. Read more
1.0.0 · 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 HyperrealApprox
impl RefUnwindSafe for HyperrealApprox
impl Send for HyperrealApprox
impl Sync for HyperrealApprox
impl Unpin for HyperrealApprox
impl UnsafeUnpin for HyperrealApprox
impl UnwindSafe for HyperrealApprox
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