ftp.nice.ch/pub/next/science/mathematics/statPerlman.5.4.N.bd.tar.gz#/stat/doc/calc.man

This is calc.man in view mode; [Download] [Up]

CALC(1)                            |STAT                   November 2, 1985

NAME
     calc - algebraic formula calculator with variables

SYNOPSIS
     calc [files]

DESCRIPTION
     _c_a_l_c is a calculator for doing real arithmetic using familiar infix
     notation.  _c_a_l_c uses a calculation method based on the popular program
     VisiCalc in that it allows variables to be define by equations.  For
     example,
                                 A = B + C * D
     says that whatever B, C, and D are, A is equal to the above function
     of them.  If B, C, or D change, then so does the value of A because it
     depends on them.  (To set A to the value of a function of several
     variables so that it doesn't change over time, you prepend a # before
     the = sign to emphasize you want the current value.) In _c_a_l_c, you get
     the prompt, "CALC: ", and you type in an expression to be calculated.
     You can use numbers and even variables.  For example,

     12 + 123/6
     a = b^2 + log (sqrt (c))
     AVeryLongVariableName = (a+b) - c*d/e ^ f%log (sqrt (exp (abs (x))))

     The usual operators and precedences are available along with the
     common mathematical functions.  Parentheses can be used for clarity.

EXAMPLE
     The following example computes the roots of the equation:
                          y = a * x^2  +  b * x  +  c
     where a, b, and c are left undefined.

     y         = (((a * (x ^ 2)) + (b * x)) + c)
     radical   = sqrt(((b * b) - ((4 * a) * c)))
     root1     = ((-b - radical) / (2 * a))
     root2     = ((-b + radical) / (2 * a))

SEE ALSO
     The CALC Manual in the |STAT Handbook

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.