86 lines
2.4 KiB
Plaintext
Executable File
86 lines
2.4 KiB
Plaintext
Executable File
Coraphyco - COnversion RAtios and PHYsical COnstnts in Forth
|
|
|
|
Words and constants for converting amounts between measurement
|
|
units.
|
|
|
|
GLOSSARY
|
|
|
|
-> r1 r2 r3 -- cora `convert'
|
|
|
|
Convert quantity r1 of units r2 to units r3 and display results.
|
|
r1 must be floating-point type (append `e' to decimal
|
|
representation). r2 and r3 are the base unit conversion factors
|
|
for r1 units and target units, respectively. Constants hve been
|
|
defined for a wide variety of units (See `help-const').
|
|
|
|
->E r1 r2 r3 -- cora `convert-E'
|
|
|
|
Convert quantity r1 of units r2 to units r3 and display results
|
|
in engineering notation. See `->'.
|
|
|
|
MKS r1 r2 -- cora `M-K-S'
|
|
|
|
Convert quantity r1 of units r2 to units r2 base units (m, kg,
|
|
ms, ...) and display results.
|
|
|
|
C>F r -- cora `C-to-F'
|
|
|
|
Convert Celcius temperature to Fahrenheit and display result.
|
|
|
|
F>C r -- cora `F-to-C'
|
|
|
|
Convert Fahrenheit temperature to Celcius and display result.
|
|
|
|
HELP -- cora `help'
|
|
|
|
Display this help text.
|
|
|
|
CONSTANTS
|
|
|
|
Linear measure (length/distance) (Standard unit: M))
|
|
|
|
M meter FT foot NMI nautical mile
|
|
KM kilometer IN inch AU astronomical unit
|
|
CM centimeter YD yard LY light year
|
|
MM millimeter MI mile PC parsec
|
|
|
|
Mass (standard unit: KG)
|
|
|
|
KG kilogram MT tonne/metric ton T ton
|
|
G gram LB pound OZ ounce
|
|
|
|
Time (standard unit: MS)
|
|
|
|
MS millisecond HR hour WK week
|
|
S second DAY YR year
|
|
MINUTE
|
|
|
|
Angle (standard unit: radian (dimensionless))
|
|
|
|
CIRCLE AMIN arc minute ASEC arc second
|
|
DEG degree
|
|
|
|
Area (standard unit: M^2)
|
|
|
|
M^2 square meter ACRE HECTARE
|
|
FT^2 square feet ARE
|
|
|
|
Volume (standard unit: M^3)
|
|
|
|
M^3 cubic meter PT pint TBSP tablespoon
|
|
CC cubic centimeter FLOZ fluid ounce TSP teaspoon
|
|
IN^3 cubic inch BBL petroleum barrel L liter
|
|
GAL gallon CUP ML milliliter
|
|
QT quart
|
|
|
|
Speed (standard unit: M/S)
|
|
|
|
M/S meters per second MACH speed of sound (STP)
|
|
C light in vacuum
|
|
|
|
Acceleration (standard unit: M/S^2)
|
|
|
|
M/S^2 meters per second per second
|
|
GEE standard gravitational acceleration
|
|
|