Several arithmetic operators (+, -, *, /) are implemented to work with specific isotope value object to allow shorthand data type conversions and calculations. Operations are generally only permitted if the two isotope objects being combined have matching attributes (isotope name, major isotope, etc.).
intensity +- intensity abundance +- abundance delta +- delta alpha - 1 delta * 1000 ff * ratio delta * delta intensity / intensity ratio / ratio ff / ff delta / delta
intensity+-intensity allows the addition of intensity values, the result is a another
alpha - 1 is a shorthand for converting a fractionation factor from
alpha to epsilon notation. The ff object has to be in alpha notation,
otherwise this is just interpreted as a regular arithmetic operation
and the result will no longer be an isotope object.
eps + 1 is the reverse operation.
delta * 1000 is a shorthand for converting a raw delta
value to permil notation or permil to ppm. The same works for fractionation factors
in epsilon notation.
delta / 1000 is the reverse
ff*delta are a shorthand for
fractionating an isotope object with a factionation factor,
fractionate for details
delta*delta, is a shorthand for shifting the reference frame of the
first delta value to that of the second (requires the compound measured in the
second to be the reference of the first!), see
intensity/intensity allows the creation of an isotope
ff/ff allows the creation of another isotope
fractionation_factor object but requires that
either the denominator names or numerator names of the two objects are identical (i.e. they "cancel").
This is a shorthand for the to_ff function.
delta/delta creates an
fractionation_factor object that
describes the fractionation factor between the two compounds, requires the reference
name of the two delta values to be identical. This is a shorthand for the to_ff function.