Skip to content

Where to apply an Absolute/Relative distinction? #140

@keilw

Description

@keilw

Based on input from https://reference.wolfram.com/language/tutorial/TemperatureUnits.html
or https://www.quora.com/What-are-absolute-units (the latter contradicts itself quite a bit because after saying "Measurement units can be either absolute or relative… " it continues like "However, physical measurements are often relative. ") Let's figure out, if Unit or Quantity are the best place for such Absolute/Relative indicator?

It is drafted in Quantity (mainly to find out the payload it adds on top of other elements like the measurement level) but e.g. the Mathematica/Wolfram examples are pretty clear about using specialized Unit definitions like Kelvin vs. KelvinDifference for that.

Not entirely sure, which is best, something like an attribute on Unit which could allow Units.KELVIN vs. Units.KELVIN_DIFFERENCE (I recall @desruisseaux mentioned that option once in an earlier thread) or an attribute on Quantity?

Also how should it be defined either statically or dynamically and how does it affect unit and quantity operations?

Needs #95
Needs #131

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions