pub struct RealNumber {
pub cauchy_seq: Vec<f64>,
pub modulus: String,
}Expand description
A constructive real number as a Cauchy sequence with a modulus.
Fields§
§cauchy_seq: Vec<f64>Approximations: cauchy_seq[n] approximates the real to within 2^{-n}.
modulus: StringA description of the modulus of convergence.
Implementations§
Source§impl RealNumber
impl RealNumber
Sourcepub fn equality_is_undecidable(&self) -> bool
pub fn equality_is_undecidable(&self) -> bool
Equality of constructive reals is co-enumerable (not decidable in general).
Sourcepub fn is_apartness_relation(&self) -> bool
pub fn is_apartness_relation(&self) -> bool
Two constructive reals x, y are apart (x # y) if |x - y| > 2^{-n} for some n — this is a positive, decidable relation.
Auto Trait Implementations§
impl Freeze for RealNumber
impl RefUnwindSafe for RealNumber
impl Send for RealNumber
impl Sync for RealNumber
impl Unpin for RealNumber
impl UnsafeUnpin for RealNumber
impl UnwindSafe for RealNumber
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