Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
aamath(1)			 USER COMMANDS			     aamath(1)

       aamath -	renders	mathematical expressions as ASCII art

       aamath [	-q | -r	] [ expression ... ]

       aamath 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.

       -q     Quiet mode.

       -r     More compact radicals.

       The simplest types of expression	in aamath are constants	and variables.
       The following are recognized as constants:

       number A	number,	optionally in scientific notation, optionally followed
	      by  ellipsis.  Precision	is  limited  only by available memory,
	      since numbers are	represented internally as strings.

       inf    Infinity.

       nabla  The 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, aamath also accepts the following	opera-

       expr1 ^ expr1
	      expr1 raised to expr2.

	      Complex conjugate	of the expression.

       expr!  Factorial	of the expression.

       The following special functions are also	recognized:

	      Square root of the expression.

       root(expr, ord)
	      Root of order ord	of the expression.

       lim(expr, var ->	lim)
	      Limit of expr with var tending to	lim.

       int(expr, var [=	from ..	to])
	      Integral of expr with respect to var, optionally with with  lim-
	      its from and to.

       sum(expr, var [=	from ..	to])
	      Sum  of  expr for	values of var in the interval. The interval is

       prod(expr, var [= from .. to])
	      Product of expr for values of var	in the interval. The  interval
	      is optional.

       It needs	a better man page.

       Mauro  Persano  (mauro_persano (at), with help from bicoher-

Version	0.3			 March 1, 2005			     aamath(1)


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

home | help