No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
a
plusminus.gemspec

README.rdoc

plusminus

This gem provides a way to calculate uncertainties of measurements.

5.129213.pm(0.01).to_s    #=> "5.13"

You can access the value and delta fields:

5.129213.pm(0.01).value   #=> 5.129213
5.129213.pm(0.01).delta   #=> 0.01

Error propagation is handled for operations

3.2.pm(0.1) + 4.5.pm(0.1)
# => 7.7.pm(0.2)
3.2.pm(0.1) * 4.5.pm(0.1)
# => 14.4.pm(0.77)

Contributing to plusminus

  • Fork

  • Branch

  • Commit

  • Pull request

Copyright

Copyright © 2012 Bernát Kalló. See LICENSE.txt for further details.