Menu

Tree [8213a5] master /
 History

HTTPS access


File Date Author Commit
 html 2019-05-20 John D. Robertson John D. Robertson [70ec3a] Save data
 Jmakefile 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 Makefile 2024-01-20 John D. Robertson John D. Robertson [94fbe6] save work
 README.md 2021-02-16 John D. Robertson John D. Robertson [7a066a] Minor edit
 cfgmap.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 cfgmap.h 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 circle.clc 2024-01-04 John D. Robertson John D. Robertson [dc5dd1] Affine / Linear appears to work.
 clc.1 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 clc.c 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 clc.h 2024-01-20 John D. Robertson John D. Robertson [fb17dc] save work
 clc.sh 2024-01-06 John D. Robertson John D. Robertson [eb0307] Initially working for Windows
 clc_cmd.c 2024-01-21 John D. Robertson John D. Robertson [8213a5] save work
 clc_config 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 clc_do_cmd.c 2024-01-04 John D. Robertson John D. Robertson [dc5dd1] Affine / Linear appears to work.
 clc_process_line.c 2024-01-20 John D. Robertson John D. Robertson [fb17dc] save work
 completion.c 2024-01-05 John D. Robertson John D. Robertson [c38745] before mxe work
 completion.h 2019-04-04 John D. Robertson John D. Robertson [dc7172] Added command line completion
 const.c 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 const.h 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 dflt_clc_config.c 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 dir.h 2019-04-06 John D. Robertson John D. Robertson [de0bbe] Save work
 driver.sh 2024-01-05 John D. Robertson John D. Robertson [27e6f6] save work
 dummy.clc 2016-10-10 John D. Robertson John D. Robertson [78b645] Initial commit
 entropy.clc 2024-01-04 John D. Robertson John D. Robertson [cafe23] save work
 expr.c 2024-01-09 John D. Robertson John D. Robertson [37f3be] Rename bison & flex source files
 expr.h 2024-01-06 John D. Robertson John D. Robertson [77fc44] Working for units coercion
 ez.h 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 ez_libc.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 ez_libc.h 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 func.c 2023-12-28 John D. Robertson John D. Robertson [81c5d1] Affine space units problem apparently solved.
 func.h 2019-04-08 John D. Robertson John D. Robertson [eb585b] Migrated stuff out of clc.c
 global.c 2024-01-21 John D. Robertson John D. Robertson [b8889b] sort out distro
 idealGasLaw.clc 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 map.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 map.h 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 output.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 output.h 2019-04-08 John D. Robertson John D. Robertson [eb585b] Migrated stuff out of clc.c
 parse.h 2024-01-06 John D. Robertson John D. Robertson [77fc44] Working for units coercion
 parse.l 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 parse.y 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 physval.c 2024-01-05 John D. Robertson John D. Robertson [27e6f6] save work
 physval.h 2024-01-04 John D. Robertson John D. Robertson [dc5dd1] Affine / Linear appears to work.
 ptrvec.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 ptrvec.h 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 regex.sh 2019-04-13 John D. Robertson John D. Robertson [c29448] save work
 separation.clc 2024-01-04 John D. Robertson John D. Robertson [ebfc18] Finishing touches for testing
 str.c 2023-12-28 John D. Robertson John D. Robertson [2d947b] Progress with mingw compile
 str.h 2023-12-28 John D. Robertson John D. Robertson [2d947b] Progress with mingw compile
 symentry.c 2024-01-20 John D. Robertson John D. Robertson [fb17dc] save work
 symentry.h 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 temp.clc 2024-01-04 John D. Robertson John D. Robertson [dc5dd1] Affine / Linear appears to work.
 ttbl.c 2023-12-28 John D. Robertson John D. Robertson [e22e9f] Many updates from trip to Nashville
 ttbl.h 2019-04-10 John D. Robertson John D. Robertson [b25ad9] Added text table class
 unit.c 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 unit.h 2024-01-19 John D. Robertson John D. Robertson [0e657b] edit command partially working
 util.c 2024-01-21 John D. Robertson John D. Robertson [895b4f] sort out distro
 util.h 2024-01-20 John D. Robertson John D. Robertson [fb17dc] save work

Read Me

engcalc

engcalc is a command line driven calculator program which can perform
dimensional analysis, and manage physical units for you. The name of the
executable program is clc for historical reasons, and which is an acronym for
"command line calculator". clc is integrated with the GNU readline and
history libraries, and provides TAB key completion for many items.

Usage

When run interactively, clc displays a command prompt, "clc>", indicating it
is ready to process typed input. All inputs fall into two categories; backslash
commands, which begin with a '\', or math expressions, possibly with symbol
assignment. Here is a simple session:

clc> 
OUTPUT: Units System= mks, Mode= decimal, Format String= %Lg
AtWt = 4.0026 gram/mole
Wt = 4.44822 N
V = 0.0378541 m^3
T = 305.372 K
n = Wt/G/AtWt = 113.175 mole
P = n * R * T / V = 7.59103e+06 pa
clc> \do for Wt= 1 kgf. to 3 kgf. in 10 print n,P

 Wt (N)  | n (mole) |   P (pa)    |
---------|----------|-------------|
 9.80665 |  249.508 | 1.67354e+07 |
 11.9859 |  304.954 | 2.04543e+07 |
 14.1652 |  360.401 | 2.41733e+07 |
 16.3444 |  415.847 | 2.78923e+07 |
 18.5237 |  471.293 | 3.16112e+07 |
 20.7029 |  526.739 | 3.53302e+07 |
 22.8822 |  582.186 | 3.90492e+07 |
 25.0614 |  637.632 | 4.27681e+07 |
 27.2407 |  693.078 | 4.64871e+07 |
   29.42 |  748.524 | 5.02061e+07 |

Building