chickadee » unitconv » define-quantity

(define-quantity name expr)syntax

Defines a derivative quantity NAME.

EXPR is an S-expression with the following syntax:

quantity-expr ::=  base-quantity
                 | derived-quantity
                 | (* quantity-expr quantity-expr)
                 | (* quantity-expr integer)
                 | (/ quantity-expr quantity-expr)
                 | (/ quantity-expr integer)
                 | (** quantity-expr integer)

where

base-quantity
one of the predefined base quantities
derived-quantity
a quantity created by define-quantity
**
exponentiation operator