Download Eigenmath.pdf
Example scripts
quantum harmonic oscillator
hydrogen wavefunctions
gamma matrix algebra
free particle dirac equation
maxwell in tensor form
static spherical metric
bondi metric
circular polarization
elliptical polarization
vector calculus demo
rotation matrix demo
Returns the absolute value or vector length of x.
src
Returns the adjunct of matrix m.
The inverse of m is equal to adj(m) divided by det(m).
src
Logical-and of predicate expressions.
src
Returns the inverse cosine of x.
src
Returns the inverse hyperbolic cosine of x.
src
Returns the inverse sine of x.
src
Returns the inverse hyperbolic sine of x.
src
Returns the inverse tangent of x.
src
Returns the inverse hyperbolic tangent of x.
src
Returns the angle of complex z.
src
Returns the smallest integer not less than x.
src
If x is true then continue, else stop.
src
Returns the number of combinations of n items taken k at a time.
src
Returns expression x with circular and hyperbolic functions converted to exponential forms.
Sometimes this will simplify an expression.
src
Returns the coefficient of x to the n in polynomial p.
The x argument can be omitted for polynomials in x.
src
Returns the cofactor of m for row i and column j.
src
Returns the complex conjugate of z.
src
Returns "a" summed over indices i and j.
If i and j are omitted then 1 and 2 are used.
contract(m) is equivalent to the trace of matrix m.
src
Returns the cosine of x.
src
Returns the hyperbolic cosine of x.
src
Returns the cross product of vectors u and v.
Returns the curl of vector u.
Returns the partial derivative of f with respect to x.
src
Returns the definite integral of f with respect to x
evaluated from "a" to b.
The argument list can be extended for multiple integrals.
For example, defint(f,x,a,b,y,c,d).
src
Returns the degree of polynomial p(x).
src
Returns the denominator of expression x.
src
Returns the determinant of matrix m.
src
Returns the cardinality of the nth index of tensor "a".
src
Evaluates each argument from left to right.
Returns the result of the last argument.
src
Returns the dot or inner product of tensors.
src
Draws a graph of f(x).
Drawing ranges can be set with xrange and yrange.
src
Error function of x.
src
Complementary error function of x.
src
Returns f evaluated at x=a.
src
Returns the exponential of x.
src
Returns the partial fraction expansion of the ratio of polynomials r in x.
src
Returns the exponential cosine of x.
src
Returns the exponential sine of x.
src
Factors integer n.
src
factor(p,x)
Factors polynomial p of x.
The x can be omitted for polynomials in x.
The polynomial should be factorable over integers.
The argument list can be extended for multivariate polynomials.
For example, factor(p,x,y) factors p over x and then over y.
src
Can be entered as x!
src
Returns f excluding any terms containing a, b, etc.
src
Converts rational numbers and integers to floating point values.
The symbol pi is also converted.
src
Returns the largest integer not greater than x.
src
For i equals j through k evaluate a, b, etc.
src
Returns the greatest common divisor.
src
Returns the nth Hermite polynomial in x.
src
Returns an n by n Hilbert matrix.
src
Returns the imaginary part of complex z.
src
Returns the inner product of tensors.
Same as the dot product.
src
Returns the integral of f with respect to x.
src
Returns the inverse of matrix m.
src
Returns 1 if n is a prime number, returns zero otherwise.
src
Returns the nth Laguerre polynomial in x.
If "a" is omitted then a=0 is used.
src
Returns the least common multiple.
src
Returns the leading coefficient of polynomial p in x.
src
Returns the nth Legendre polynomial in x.
If m is omitted then m=0 is used.
src
Returns the natural logarithm of x.
src
Returns the magnitude of complex z.
src
Returns the remainder of the result of "a" divided by b.
src
Returns the logical negation of x.
src
Returns all of the roots, both real and complex,
of polynomial p in x.
The roots are computed numerically.
The coefficients of p can be real or complex.
src
Returns the numerator of expression x.
src
Logical-or of predicate expressions.
src
Returns the outer product of tensors.
Also known as the tensor product.
src
Returns complex z in polar form.
src
Returns the nth prime number.
The domain of n is 1 to 10000.
src
Evaluate expressions and print the results.
Useful for printing from inside a "for" loop.
src
For i equals j through k evaluate f.
Returns the product of all f.
src
Returns expression x without evaluating it first.
src
Returns the quotient of polynomial p(x) over q(x).
The last argument can be omitted for polynomials in x.
The remainder can be calculated by p-q*quotient(p,q).
src
Returns the number of indices that tensor "a" has.
src
Returns x with everything over a common denominator.
src
Returns the real part of complex z.
src
Returns complex z in rectangular form.
src
Returns the values of x such that p(x)=0.
The polynomial p should be factorable over integers.
Returns a vector for multiple roots.
src
Returns x in a simpler form.
src
Returns the sine of x.
src
Returns the hyperbolic sine of x.
src
Returns the square root of x.
src
In a script, it does what it says.
src
Substitutes "a" for b in c and returns the result.
src
For i equals j through k evaluate f.
Returns the sum of all f.
src
Returns the tangent of x.
src
Returns the hyperbolic tangent of x.
src
Returns the Taylor expansion of f(x) around x=a.
If "a" is omitted then a=0 is used.
The argument n is the degree of the expansion.
src
If "a" is true then b is returned
else if c is true then d is returned, etc.
If the number of arguments is odd then the last argument is returned
when all else fails.
src
Returns the transpose of "a" with respect to indices i and j.
If i and j are omitted then 1 and 2 are used.
Hence a matrix can be transposed with a single argument.
src
Returns an n by n identity matrix.
src
Returns a null tensor with dimensions i, j, etc.
Useful for creating a tensor and then setting the component values.
src