|
NAMEaamath - renders mathematical expressions as ASCII artSYNOPSISaamath [ -q | -r ] [ expression ... ]DESCRIPTIONaamath is a program that accepts math expressions in infix notation and outputs them as ASCII art renderings. Expressions can either be entered as command line arguments, or supplied on standard input.OPTIONS
EXPRESSIONSThe simplest types of expression in aamath are constants and variables. The following are recognized as constants:
A variable is represented by an alphabetic character, optionally followed by a sequence of alphanumeric characters. A variable may have a subscript: these are represented by an underline character (_) followed by an expression. If followed by a backslash character (\), the variable name will be rendered with an over score. Variables names may also be followed by one or more primes (apostrophes). Functions are represented by the function name, which follows the same syntax of variable names (including optional subscripts, over score, and primes), followed by comma-separated function arguments between parentheses. Trigonometric functions are rendered differently if they are raised to a power: the exponent will appear between the function name and the argument. Matrices are represented by a sequence of expressions between square brackets; commas separate elements of the same row, and semicolons separate rows. Other than the standard arithmetic and logical operators, which obey the usual precedence rules, aamath also accepts the following operations:
The following special functions are also recognized:
BUGSIt needs a better man page.AUTHORMauro Persano (mauro_persano (at) yahoo.com), with help from bicoherent.
Visit the GSP FreeBSD Man Page Interface. |