BasicUncertainty class final

Implemented types

Constructors

BasicUncertainty(Arithmetic delegate, num uncertainty)
const

Properties

delegate → Arithmetic
final
fractionalUncertainty num
Calculate the fractional uncertainty. http://spiff.rit.edu/classes/phys273/uncert/uncert.html
no setter
hashCode int
The hash code for this object.
no setteroverride
percentageUncertainty num
Calculate the percentage uncertainty. http://spiff.rit.edu/classes/phys273/uncert/uncert.html
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uncertainty num
final

Methods

added(num n) Measurement
"Adding a constant: the absolute uncertainty is unchanged" https://people.umass.edu/phys286/Propagating_uncertainty.pdf
compareTo(NumericalValue other) int
Uses a mathematical approach. https://stackoverflow.com/questions/3188672/how-to-elegantly-check-if-a-number-is-within-a-range
override
divided(num n) Measurement
multiplied(num n) Measurement
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtracted(num n) Measurement
toNum() num
toString() String
A string representation of this object.
override

Operators

operator *(NumericalValue o) Measurement
operator +(NumericalValue o) Measurement
"Adding a constant: the absolute uncertainty is unchanged" https://people.umass.edu/phys286/Propagating_uncertainty.pdf
operator -(NumericalValue o) Measurement
operator /(NumericalValue o) Measurement
operator <(NumericalValue o) bool
operator <=(NumericalValue o) bool
operator ==(Object other) bool
The equality operator.
override
operator >(NumericalValue o) bool
operator >=(NumericalValue o) bool