|
|
Notes on JavaScript Calculator - sCal | Operation on lowest level = a simple calculator: click on-screen buttons or use keyboard -- best for inserting values or programming. On a higher level, some functions are available as buttons or from drop-down select menus: designated by x}. These operate directly on entire value in x-display, not just last term, when the [>x] clicked. (The [^] takes all values left of it as base, all to the right as exponent.) Trade values in and out of Memory to control. -Experiment-. Test on known data.
*} Programs invoked with the [JS] button, give much more control: replace alpha-characters with numeric, or insert after /*com'nt-prompt*/ ) before closing ')'. Write legitimate JavaScript expressions --evaluated according to interpreter's parser. NaN is Not a Number, can often correct.
Programming is on the highest level. Definitely view source code. Programming experience is desireable, but with minimal effort, one's most-used functions can be inserted in the source (well commented for the purpose). Copy - Paste from any TEXT file. s} comments can be set to display.
GNU General Public License Free, user-modifiable, NO WARANTEE. (c) 2003
R. Mohaupt. http://scal-2.sourceforge.net |
|
JavaScript Calculator Expansion - sCal2 | Basic sCal is designed for a small window, (floating over larger screens with other programs running, or alone on PDAs) to perform simple scientific calculations with a limited library of add-on procedures.
    sCal2 is no vast increase in computing power but, doubling the footprint, adds: Catagories to systematically handle many times the conversion/procedure selection; [1/x] buttons to reciprocate conversions, eg. ft>m [>x] gets m>ft with [1/x], tan(x) becomes cotan(x), etc --but sometimes makes no sense, eg. 1/deg.C != deg.F;
n[0..19] array of additional variables for 20 more memory slots {click the desired [n-] button to put x to it} or programming input prompts and output labels. Procedures using this feature are designated by n}, invoke with the [JS] button, occasionally w/[=], run/rerun with new values [=, Enter], usually [c] clear between programs;
[nx] followed by the desired [n-] cell-button, moves that cell value to the x-disp. Similarly, [n[]] puts the next [n-] name in x, and [nc] clears all.
* sCal needs a JS-enabled browser and no additional files, for maximum portability.
* More documentation may be created. * Compact display and file size are goals. |
|