Package: Math Filed on [Indigo]Documentation>Math.Tioga Maintainer: Michael Plass Date: December 2, 1982 DF file: [Indigo]Top>Math.DF Purpose: This package comprises several "pure math" routines, callable either through JaM or directly from a Cedar program. Mesa interfaces: Complex - Operations on numbers. LinearSystem - For solving systems of linear equations. Polynomial - Operations on real polynomials. Quadratic - Quadratic equation solver. Vector - Operations on two-dimensional vectors. JaM functions: To use the JaM functions, load MathJaM. Complex Complex numbers are represented by two real numbers on top of the stack. == Complex.Add => Complex.Sub => Complex.Mul => Complex.Div => Complex.FromPolar => Complex.Abs => Complex.SqrAbs => Complex.Arg => Complex.Exp => Complex.Ln => Complex.Sqr => Complex.Sqrt => LinearSystem (should be reworked; for now the commands take the matrix in row-major order, followed by the right-hand column vector, and leave the solution vector on the stack. The matrices and vectors are pushed on the stack as a bunch of reals, with no additional structure.) LinearSystem.Solve2 LinearSystem.Solve3 LinearSystem.Solve4 LinearSystem.Solve5 LinearSystem.Solve6 Polynomial Polynomials are represented on the stack by the real coefficients, in decreasing order, followed by the degree. == . . . Polynomial.Eval => Polynomial.Add => Polynomial.Sub => Polynomial.Mul => Polynomial.Differentiate => Polynomial.Integrate => Polynomial.Roots => (Quadratic and Vector do not have JaM commands) Κ˜IunitšΟnœ5˜L˜L˜"L˜)L˜"L˜!L˜"L˜#—˜ M˜‰L˜L˜L˜L˜L˜—šœ ˜ Mšœo˜oLšœΟdœ žœžœ˜EL˜-L˜+L˜+L˜+L˜5L˜1L˜-M˜/———…—T ^