diff --git a/bin/amath.doc b/bin/amath.doc new file mode 100644 index 00000000..6bef2323 --- /dev/null +++ b/bin/amath.doc @@ -0,0 +1,166 @@ +NAME + amath - Simple command line calculator + +SYNOPSIS + [ --noansi ] [ --shell | expression ] + +DESCRIPTION + amath features a case sensitive command line interface, internal IEEE + 754 calculations with 15 significant digits, calculations with real and + complex numbers, variables and user defined functions, logarithmic and + exponential functions, trigonometric and hyperbolic function and + selected mathematical constants and rounding functions. + +OPTIONS + --noansi + Disable output of ANSI escape codes. Default is enable. + + --shell + Open an interactive shell. + +OPERATORS + + Mathematical addition + - Mathematical subtraction + * Mathematical multiplication + / Mathematical division + ^ Mathematical exponentiation + = Assignment of variable values + | Absolute value of number + +VARIABLES AND CONSTANT + pi Trigonometric constant + e Euler's number + i Imaginary unit + ins Result of last calculation + +MISCELLANEOUS FUNCTIONS + abs Absolute value of number + sgn Mathematical signum function + round Round to nearest integer number + trunc Discard fraction part of number + floor Mathematical floor function + ceil Mathematical ceiling function + sqrt Square root function (exp 1/2) + cbrt Cube root function (exp 1/3) + lb Binary logarithm function (base 2) + ln Natural logarithm function (base e) + lg Common logarithm function (base 10) + +TRIGONOMETRIC FUNCTIONS + sin Trigonometric sine function + cos Trigonometric cosine function + tan Trigonometric tangent function + cot Trigonometric cotangent function + sec Trigonometric secant function + csc Trigonometric cosecant function + crd Trigonometric chord function + exsec Trigonometric exsecant function + excsc Trigonometric excosecant function + arcsin Inverse trigonometric sine function + arccos Inverse trigonometric cosine function + arctan Inverse trigonometric tangent function + arccot Inverse trigonometric cotangent function + arcsec Inverse trigonometric secant function + arccsc Inverse trigonometric cosecant function + arccrd Inverse trigonometric chord function + arcexsec Inverse trigonometric exsecant function + arcexcsc Inverse trigonometric excosecant function + +HYPERBOLIC FUNCTIONS + sinh Hyperbolic sine function + cosh Hyperbolic cosine function + tanh Hyperbolic tangent function + coth Hyperbolic cotangent function + sech Hyperbolic secant function + csch Hyperbolic cosecant function + arcsinh Inverse hyperbolic sine function + arccosh Inverse hyperbolic cosine function + arctanh Inverse hyperbolic tangent function + arccoth Inverse hyperbolic cotangent function + arcsech Inverse hyperbolic secant function + arccsch Inverse hyperbolic cosecant function + +EARLY TRIGONOMETRIC FUNCTIONS + ver Versed sine function + vcs Versed cosine function + cvs Coversed sine function + cvc Coversed cosine function + hv Haversed sine function + hvc Haversed cosine function + hcv Hacoversed sine function + hcc Hacoversed cosine function + arcver Inverse versed sine function + arcvcs Inverse versed cosine function + arccvs Inverse coversed sine function + arccvc Inverse coversed cosine function + archv Inverse haversed sine function + archvc Inverse haversed cosine function + archcv Inverse hacoversed sine function + archcc Inverse hacoversed cosine function + +STATEMENTS + about Show about text + clear Clear console window + def Define function + delete Delete variable or function + digits Set number of significant digits + eval Evaluate arithmetic expression + execute Execute statements in a file + functions Show list of user defined functions + input Change numeral input system + help Show basic help text + output Change numeral output system + list Show content of a directory + show Show content of a file + load Load variable and functions from file + save Save variable and functions to file + variables Show list of variables + version Show version string + license Show copyright and license texts + memory Show internal memory usage + exit Exit program + +EXIT STATUS + amath exits 0 on success and >0 if an error occurs. + +EXAMPLES + Add two numbers: + $ amath 1.3 + 2.6 + + Find cosine of pi/2: + $ amath "cos(pi/2)" + + Find square root of minus 25: + $ amath "sqrt(-25)" + + Show only 5 digits in the result of a division: + $ amath "digits 5;34/11" + + Script block with functions: + round(1.5461);round(-1.5461); + ceil(43.5461);ceil(-43.5461); + floor(39.9531);floor(-39.9531); + trunc(23.827);trunc(-23.827); + sqrt(100);sqrt(52.23); + + Script block with user defined functions: + f(x)=x*2+1; + g(y)=y^2+y*1.5+2; + a=2;b=3;c=a+b; + f(2.2);c+1.1; + +BUGS + Please report any other bugs that you encounter via: + https://gitlab.com/rnger/amath/issues. + +HOMEPAGE + https://amath.innolan.net/ + +AUTHORS + Written by Carsten Sonne Larsen . Floating point to + string conversion is based on software written by Ryan Juckett. The + code in complex calculations is derived from software written by + Stephen L. Moshier. The code in MemSet and MemCopy is derived from + software contributed to Berkeley by Mike Hibler and Chris Torek. + +January 11 2021 Version 1.9.0 diff --git a/bin/amath.readme b/bin/amath.readme new file mode 100644 index 00000000..fca3d000 --- /dev/null +++ b/bin/amath.readme @@ -0,0 +1,41 @@ +Short: Simple command line calculator +Author: Carsten Larsen +Uploader: carsten.larsen@mail.com +Type: misc/math +Version: 1.9.0 +Architecture: m68k-amigaos >= 2.04 +URL: https://amath.innolan.net + +Features +======== + +- Case sensitive command line interface +- Native IEEE 754 with 15 significant digits +- Calculations with real and complex numbers +- Variables and user defined functions +- Logarithmic and exponential functions +- Trigonometric and hyperbolic functions +- Mathematical constants and rounding functions +- Disk functions to load, save and view content +- Comprehensive and easy to use builtin help +- Optimized 68000, 68020 and 68030 versions +- Unlimited number of ARexx interfaces +- Freely distributable sources (BSD license) + +Usage +===== + +Open amath in its own window: +> amath + +Do a calculation in shell: +> amath 1.2+1.4 + +Get an interactive prompt in shell: +> amath shell + +Show version string: +> amath version + +Run regression tests: +> amath --test diff --git a/bin/catalog/english.info b/bin/catalog/english.info new file mode 100644 index 00000000..a6eedda8 Binary files /dev/null and b/bin/catalog/english.info differ diff --git a/bin/prog/Catalog.info b/bin/prog/Catalog.info new file mode 100644 index 00000000..c9ab1f36 Binary files /dev/null and b/bin/prog/Catalog.info differ diff --git a/bin/prog/HISTORY.info b/bin/prog/HISTORY.info new file mode 100644 index 00000000..35223115 Binary files /dev/null and b/bin/prog/HISTORY.info differ diff --git a/bin/prog/LICENSE.info b/bin/prog/LICENSE.info new file mode 100644 index 00000000..1efe1abd Binary files /dev/null and b/bin/prog/LICENSE.info differ diff --git a/bin/prog/Script.info b/bin/prog/Script.info new file mode 100644 index 00000000..67b45c5d Binary files /dev/null and b/bin/prog/Script.info differ diff --git a/bin/prog/Test.info b/bin/prog/Test.info new file mode 100644 index 00000000..e5d34764 Binary files /dev/null and b/bin/prog/Test.info differ diff --git a/bin/prog/amath.020.info b/bin/prog/amath.020.info new file mode 100644 index 00000000..bf1558fd Binary files /dev/null and b/bin/prog/amath.020.info differ diff --git a/bin/prog/amath.030.info b/bin/prog/amath.030.info new file mode 100644 index 00000000..d3ed3044 Binary files /dev/null and b/bin/prog/amath.030.info differ diff --git a/bin/prog/amath.doc.info b/bin/prog/amath.doc.info new file mode 100644 index 00000000..263b3aca Binary files /dev/null and b/bin/prog/amath.doc.info differ diff --git a/bin/prog/amath.info b/bin/prog/amath.info new file mode 100644 index 00000000..f3d7186a Binary files /dev/null and b/bin/prog/amath.info differ diff --git a/bin/root/amath.info b/bin/root/amath.info new file mode 100644 index 00000000..c2cf177b Binary files /dev/null and b/bin/root/amath.info differ diff --git a/bin/script/complex1.info b/bin/script/complex1.info new file mode 100644 index 00000000..1723ad29 Binary files /dev/null and b/bin/script/complex1.info differ diff --git a/bin/script/complex2.info b/bin/script/complex2.info new file mode 100644 index 00000000..441d492f Binary files /dev/null and b/bin/script/complex2.info differ diff --git a/bin/script/complex3.info b/bin/script/complex3.info new file mode 100644 index 00000000..de2934ed Binary files /dev/null and b/bin/script/complex3.info differ diff --git a/bin/script/function1.info b/bin/script/function1.info new file mode 100644 index 00000000..4ba0112e Binary files /dev/null and b/bin/script/function1.info differ diff --git a/bin/script/function2.info b/bin/script/function2.info new file mode 100644 index 00000000..5a4c82aa Binary files /dev/null and b/bin/script/function2.info differ diff --git a/bin/script/function3.info b/bin/script/function3.info new file mode 100644 index 00000000..dbe13135 Binary files /dev/null and b/bin/script/function3.info differ diff --git a/bin/script/operators.info b/bin/script/operators.info new file mode 100644 index 00000000..891afb93 Binary files /dev/null and b/bin/script/operators.info differ diff --git a/bin/script/userfuncs.info b/bin/script/userfuncs.info new file mode 100644 index 00000000..bf559c6c Binary files /dev/null and b/bin/script/userfuncs.info differ diff --git a/bin/script/variables.info b/bin/script/variables.info new file mode 100644 index 00000000..da2ce3d5 Binary files /dev/null and b/bin/script/variables.info differ