This is the unit-formulas Reference Manual, version 0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 08:00:28 2024 GMT+0.
unit-formulas/unit-formulas.asd
unit-formulas/package.lisp
unit-formulas/unit-printer.lisp
unit-formulas/unit-class.lisp
unit-formulas/unit-query.lisp
unit-formulas/unit-definitions.lisp
unit-formulas/unit-operations.lisp
unit-formulas/unit-data.lisp
unit-formulas/formulas.lisp
unit-formulas/transform-units.lisp
The main system appears first, followed by any subsystem dependency.
unit-formulas
Formulas with unit checking and conversion
GPLv2
0
iterate
(system).
alexandria
(system).
package.lisp
(file).
unit-printer.lisp
(file).
unit-class.lisp
(file).
unit-query.lisp
(file).
unit-definitions.lisp
(file).
unit-operations.lisp
(file).
unit-data.lisp
(file).
formulas.lisp
(file).
transform-units.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
unit-formulas/unit-formulas.asd
unit-formulas/package.lisp
unit-formulas/unit-printer.lisp
unit-formulas/unit-class.lisp
unit-formulas/unit-query.lisp
unit-formulas/unit-definitions.lisp
unit-formulas/unit-operations.lisp
unit-formulas/unit-data.lisp
unit-formulas/formulas.lisp
unit-formulas/transform-units.lisp
unit-formulas/unit-printer.lisp
package.lisp
(file).
unit-formulas
(system).
*base-units*
(special variable).
*unit-print-list*
(special variable).
print-unit-vector
(function).
unit-formulas/unit-class.lisp
package.lisp
(file).
unit-printer.lisp
(file).
unit-formulas
(system).
initialize-instance
(method).
make-load-form
(method).
print-object
(method).
unit
(class).
*default-convert-from*
(special variable).
*default-convert-to*
(special variable).
*formulae*
(special variable).
*units*
(special variable).
additive-unit-p
(method).
convert-from
(reader method).
(setf convert-from)
(writer method).
convert-to
(reader method).
(setf convert-to)
(writer method).
factor-of
(reader method).
(setf factor-of)
(writer method).
formula-unit-p
(method).
units-of
(reader method).
(setf units-of)
(writer method).
unit-formulas/unit-query.lisp
package.lisp
(file).
unit-class.lisp
(file).
unit-formulas
(system).
identify-unit
(function).
query-unit
(function).
*quantities*
(special variable).
unit-formulas/unit-definitions.lisp
package.lisp
(file).
unit-operations.lisp
(file).
unit-class.lisp
(file).
unit-formulas
(system).
define-units
(macro).
define-factors
(macro).
unit-formulas/unit-operations.lisp
package.lisp
(file).
unit-class.lisp
(file).
unit-formulas
(system).
*convert-unit-behaviour*
(special variable).
convert-unit
(function).
dimensionless-p
(generic function).
make-unit
(macro).
reduce-unit
(function).
same-unit-p
(generic function).
add-units
(function).
divide-units
(function).
expt-units
(function).
multiply-units
(function).
sqrt-units
(function).
subtract-units
(function).
unit-formulas/unit-data.lisp
package.lisp
(file).
unit-definitions.lisp
(file).
unit-formulas
(system).
import-novak-derived
(macro).
import-novak-simple
(macro).
unit-formulas/formulas.lisp
package.lisp
(file).
unit-operations.lisp
(file).
unit-definitions.lisp
(file).
unit-formulas
(system).
defformula
(macro).
defformula*
(macro).
defformulae*
(macro).
define-operators
(macro).
print-object
(method).
*operators*
(special variable).
make-argument-list
(function).
make-formula-environment
(function).
name-of
(reader method).
(setf name-of)
(writer method).
reduce-argument-list
(function).
replace-formula-terminals
(function).
strip-constants-from-spec
(function).
unitify-formula-terminals
(function).
value-of
(reader method).
(setf value-of)
(writer method).
variable-with-unit
(class).
verify-formula
(function).
unit-formulas/transform-units.lisp
package.lisp
(file).
unit-formulas
(system).
invert-unit
(generic function).
transform-units
(generic function).
bag-units
(function).
find-best-unit-match
(function).
find-best-units
(function).
incomplete-unit-transformation
(condition).
incomplete-unit-transformation-input-unit
(reader method).
incomplete-unit-transformation-missing-units-of
(reader method).
incomplete-unit-transformation-output-unit
(reader method).
invert-unit-vector
(function).
score-unit
(function).
subtract-unit-vectors
(function).
Packages are listed by definition order.
unit-formulas
alexandria
.
common-lisp
.
iterate
.
*convert-unit-behaviour*
(special variable).
convert-unit
(function).
defformula
(macro).
defformula*
(macro).
defformulae*
(macro).
define-operators
(macro).
define-units
(macro).
dimensionless-p
(generic function).
identify-unit
(function).
invert-unit
(generic function).
make-unit
(macro).
query-unit
(function).
reduce-unit
(function).
same-unit-p
(generic function).
transform-units
(generic function).
unit
(class).
*base-units*
(special variable).
*default-convert-from*
(special variable).
*default-convert-to*
(special variable).
*formulae*
(special variable).
*operators*
(special variable).
*quantities*
(special variable).
*unit-print-list*
(special variable).
*units*
(special variable).
add-units
(function).
additive-unit-p
(generic function).
bag-units
(function).
convert-from
(generic reader).
(setf convert-from)
(generic writer).
convert-to
(generic reader).
(setf convert-to)
(generic writer).
define-factors
(macro).
divide-units
(function).
expt-units
(function).
factor-of
(generic reader).
(setf factor-of)
(generic writer).
find-best-unit-match
(function).
find-best-units
(function).
formula-unit-p
(generic function).
import-novak-derived
(macro).
import-novak-simple
(macro).
incomplete-unit-transformation
(condition).
incomplete-unit-transformation-input-unit
(generic reader).
incomplete-unit-transformation-missing-units-of
(generic reader).
incomplete-unit-transformation-output-unit
(generic reader).
invert-unit-vector
(function).
make-argument-list
(function).
make-formula-environment
(function).
multiply-units
(function).
name-of
(generic reader).
(setf name-of)
(generic writer).
print-unit-vector
(function).
reduce-argument-list
(function).
replace-formula-terminals
(function).
score-unit
(function).
sqrt-units
(function).
strip-constants-from-spec
(function).
subtract-unit-vectors
(function).
subtract-units
(function).
unitify-formula-terminals
(function).
units-of
(generic reader).
(setf units-of)
(generic writer).
value-of
(generic reader).
(setf value-of)
(generic writer).
variable-with-unit
(class).
verify-formula
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
This creates a formula using positional arguments, with much less error checking. If wrong unit is passed it will still fail, because symbol will be passed to the formula.
This creates a formula using positional arguments, with much less error checking. If wrong unit is passed it will still fail, because symbol will be passed to the formula. Formula-expression allows for nesting of formulas.
Makes an unit object with value and unit description. The second one is not evaluated.
Returns a keyword designating a physical quantity the unit is of, or nil if none can be identified , as only those directly defined can be.
Return a plist of unit value and unit exponents
Accepts a UNIT and returns the inversion of it.
TRANSFORM-UNITS, a method of performing complex conversions on units. The concept is that a grab bag of units (UNIT-BAG) can be supplied as a list along with an input unit and desired output unit. TRANSFORM-UNITS will calculate the needed transformation from the INPUT-UNITS to OUTPUT-UNITS, using the provided units in UNIT-BAG. TRANSFORM-UNITS creates a condition of type INCOMPLETE-UNIT-TRANSFORMATION if UNIT-BAG lacks the units necessary to reach the requested OUTPUT-UNIT.
variable-with-unit
) stream) ¶1
:factor
(make-array (length unit-formulas::*base-units*) :initial-element 0)
:units
unit-formulas::*default-convert-to*
:convert-to
unit-formulas::*default-convert-from*
:convert-from
The default operation used to convert from units, typically this is division.
The default operation used to convert to units, typically this is multiplication.
A hashtable that holds a list of registred formulae.
List of symbols naming unit synonyms for base quantities
Preps the list UNIT-BAG for use by reducing all units and their inversions. Returns multiple values consisting of dimensioned and dimensionless units.
Loops over the unit-bag checking the score of the unit and returns the unit with the lowest score.
Inverts the direction of all dimensions in a unit-vector.
Eliminate constants and sort in-spec (same thing as create env above).
Take arguments and argument list and match them, returning a list of properly sorted argument values, and error if units don’t match.
Take unitified environment and transform it into list passable to defun, with all units conversions in place.
Returns an integer representing the complexity of the unit compared with unit-vector. The unit with the lowest score cancels more of the unit-vector.
SUBTRACT-UNIT-VECTORS, subtracts each index of two vectors
Takes variable/constant bindings in env and replaces them in formula
Takes unitified formula and returns it’s return unit, if correct, signals error if not.
incomplete-unit-transformation
)) ¶incomplete-unit-transformation
)) ¶incomplete-unit-transformation
)) ¶variable-with-unit
)) ¶automatically generated reader method
name
.
variable-with-unit
)) ¶automatically generated writer method
name
.
variable-with-unit
)) ¶variable-with-unit
)) ¶Value of constant, if constant
error
.
(quote nil)
:input-unit
This slot is read-only.
(quote nil)
:output-unit
This slot is read-only.
:missing-units-of
This slot is read-only.
Jump to: | (
A B C D E F G I M N P Q R S T U V |
---|
Jump to: | (
A B C D E F G I M N P Q R S T U V |
---|
Jump to: | *
C F I M N O S U V |
---|
Jump to: | *
C F I M N O S U V |
---|
Jump to: | C F I P S T U V |
---|
Jump to: | C F I P S T U V |
---|