[][src]Trait maths_traits::analysis::ordered::ArchimedeanProperty

pub trait ArchimedeanProperty: AddOrdered + AddAssociative { }

The property that if x < y, there exists some natural n where n*x = x*...*x > y

This is often interpreted as the structure having no "infinite" elements, since any element can be reached from any other non-zero element (even the smallest of elements) through only repeated addition.

Now, it is worth noting that in practice, implementing structs might still have some form of infinite elements, so long as they aren't "distinguished" in some way. In particular, IEEE floating points have INF, -INF, and NaN as standard values, all of which violate this property however, in order to simplify the API and still have f32 and f64 be considered reals, these values are interpreted as errors. Of course, in general, new structs implementing this trait should avoid this if possible.

Implementations on Foreign Types

impl ArchimedeanProperty for i8[src]

impl ArchimedeanProperty for i16[src]

impl ArchimedeanProperty for i32[src]

impl ArchimedeanProperty for i64[src]

impl ArchimedeanProperty for i128[src]

impl ArchimedeanProperty for isize[src]

impl ArchimedeanProperty for u8[src]

impl ArchimedeanProperty for u16[src]

impl ArchimedeanProperty for u32[src]

impl ArchimedeanProperty for u64[src]

impl ArchimedeanProperty for u128[src]

impl ArchimedeanProperty for usize[src]

impl ArchimedeanProperty for f32[src]

impl ArchimedeanProperty for f64[src]

Loading content...

Implementors

Loading content...