Go to file
Homu 338e4799e6 Auto merge of #231 - AtheMathmo:generic-epsilon, r=hauleth
Implementing epsilon function to retrieve EPSILON constant

Hey!

This PR exposes a new `epsilon` function in the `Float` trait so that users can access the `EPSILON` constant on the float types. I figured as this was such a minimal change it was easier to get a PR in offering the change then write up an issue.

For me this is a valuable addition. When writing linear algebra or other optimization routines with generic floats we often want to check if some stopping criteria is reached, often something like: `(a - b).abs() < eps`. Having access to a standard _small value_ would make this a little easier.
2016-09-23 04:25:29 +09:00
.travis Add travis build test of 0.7.0 channel 2016-08-17 23:12:20 +02:00
benches bigint: allow `Sub` to work in-place on the RHS 2016-07-08 17:34:12 -07:00
bigint num, bigint, complex, rational, traits: 0.1.35 2016-08-18 08:28:34 -07:00
complex num, bigint, complex, rational, traits: 0.1.35 2016-08-18 08:28:34 -07:00
doc Update repo and doc links 2015-11-12 18:40:13 -08:00
integer integer: add path-dependency versions 2016-04-14 00:25:51 -07:00
iter iter: add path-dependency versions 2016-04-14 00:37:04 -07:00
macros Fix num-macros for nightly 2016-09-18 22:24:38 +02:00
rational num, bigint, complex, rational, traits: 0.1.35 2016-08-18 08:28:34 -07:00
src Move functions remaining in num to num-traits 2016-05-13 10:38:14 +02:00
traits Adding default implementation 2016-09-22 19:56:44 +01:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.rustup.sh Move .multirust.sh to .rustup.sh 2016-07-12 00:34:27 -07:00
.travis.yml .travis.yml: add a verbose build 2016-03-25 18:30:27 -07:00
Cargo.toml num, bigint, complex, rational, traits: 0.1.35 2016-08-18 08:28:34 -07:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
Makefile Makefile: add complex and iter 2016-03-25 17:50:51 -07:00
README.md Update intros to better reflect the breadth of num 2015-11-21 16:39:00 -08:00

README.md

num

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like `Integer, and generic range iterators.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.1"

and this to your crate root:

extern crate num;