Units: A Unit Conversion Program and Scientific Calculator: Unit Expressions

Next: Nonlinear Conversions, Previous: Unit Definitions, Up: Top [Contents][Index]

## 5 Unit Expressions

• Operators: |  | The usual arithmetic operators, with a few extras
• Sums and Differences of Units: |  | Adding and subtracting units
• Numbers as Units: |  | A number is a dimensionless unit
• Built-in Functions: |  | Trigonometric functions, logarithms, roots
• Previous Result: |  | Inserting the result of the previous conversion
• Complicated Unit Expressions: |  | A complicated example
• Backwards Compatibility: |  | Alternate behavior for ‘`*`’ and ‘`-`’