# FreeBSD Manual Pages

aamath(1) USER COMMANDS aamath(1)NAMEaamath - renders mathematical expressions as ASCII artSYNOPSISaamath[-q|-r] [expression... ]DESCRIPTIONaamathis 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-qQuiet mode.-rMore compact radicals.EXPRESSIONSThe simplest types of expression inaamathare constants and variables. The following are recognized as constants:numberA number, optionally in scientific notation, optionally followed by ellipsis. Precision is limited only by available memory, since numbers are represented internally as strings.infInfinity.nablaThe nabla operator....Ellipsis. A variable is represented by an alphabetic character, optionally fol- lowed 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 vari- able 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 sep- arate rows. Other than the standard arithmetic and logical operators, which obey the usual precedence rules,aamathalso accepts the following opera- tions:expr1^expr1expr1raised toexpr2.~(expr)Complex conjugate of the expression.expr!Factorial of the expression. The following special functions are also recognized:sqrt(expr)Square root of the expression.root(expr,ord)Root of orderordof the expression.lim(expr,var->lim)Limit ofexprwithvartending tolim.int(expr,var[=from..to])Integral ofexprwith respect tovar, optionally with with lim- itsfromandto.sum(expr,var[=from..to])Sum ofexprfor values ofvarin the interval. The interval is optional.prod(expr,var[=from..to])Product ofexprfor values ofvarin the interval. The interval is optional.BUGSIt needs a better man page.AUTHORMauro Persano (mauro_persano (at) yahoo.com), with help from bicoher- ent. Version 0.3 March 1, 2005 aamath(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXPRESSIONS | BUGS | AUTHOR

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=aamath&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>