Returns the absolute value or vector length of x.
Returns the adjunct of matrix m.
The inverse of m is equal to adj(m) divided by det(m).
Logical-and of predicate expressions.
Example
and(A=B,B=C)
Returns the inverse cosine of x.
Returns the inverse hyperbolic cosine of x.
Returns the inverse sine of x.
Returns the inverse hyperbolic sine of x.
Returns the inverse tangent of x.
Returns the inverse hyperbolic tangent of x.
Returns the angle of complex z.
Returns the smallest integer not less than x.
If x is true then continue, else stop.
Example
check(A=B)
Returns the number of combinations of n items taken k at a time,
choose(n,k)=n!/(k!*(n-k)!)
Returns the coefficient of x to the n in polynomial p.
The x argument can be omitted for polynomials in x.
Returns the cofactor of m for row i and column j.
Returns the complex conjugate of z.
Example
conj(3+4*i)
Returns "a" summed over indices i and j.
If i and j are omitted then 1 and 2 are used.
Returns the cosine of x.
Returns the hyperbolic cosine of x.
Returns the partial derivative of f with respect to x.
Returns the degree of polynomial p(x).
Returns the denominator of expression x.
Returns the determinant of matrix m.
Returns the cardinality of the nth index of tensor "a".
Evaluates expression x and displays the result.
Useful for printing from inside a "for" loop.
Evaluates each argument from left to right.
Returns the result of the last argument.
Returns the dot or inner product of tensors.
Draws a graph of f(x).
Drawing ranges can be set with xrange and yrange.
Error function of x.
Complementary error function of x.
Returns f evaluated at x=a.
Returns the exponential of x.
Returns the exponential cosine of x.
Returns the exponential sine of x.
Factors integer n.
factor(p,x)
Factors polynomial p(x).
The x can be omitted for polynomials in x.
Polynomial p should be factorable over integers.
For example,
Enter
100!
Result
93326215443944152681699238856266700490715968264381621468592963895217599993229915
608941463976156518286253697920827223758251185210916864000000000000000000000000
Returns f excluding any terms containing a, b, etc.
Converts rational numbers and integers to floating
point values. The symbol pi is also converted.
Enter
float(100!)
Result
9.33262e+157
Returns the largest integer not greater than x.
For i equals j through k evaluate a, b, etc.
Enter
x=0
y=2
for(k,1,9,x=sqrt(2+x),y=2*y/x)
float(y)
Result
3.14159
Returns the greatest common divisor.
Returns the nth Hermite polynomial in x.
Returns an n by n Hilbert matrix.
Returns the imaginary part of complex z.
Returns the inner product of tensors.
Same as the dot product.
Returns the integral of f with respect to x.
Returns the inverse of matrix m.
Returns 1 if n is a prime number, returns zero otherwise.
Returns the nth Laguerre polynomial in x.
If "a" is omitted then a=0 is used.
Returns the least common multiple.
Returns the nth Legendre polynomial in x.
If m is omitted then m=0 is used.
Returns the natural logarithm of x.
Returns the magnitude of complex z.
Returns the remainder of the result of "a" divided by b.
Returns the logical inverse of x.
Example
not(A=B)
Returns the numerator of expression x.
Logical-or of predicate expressions.
Example
or(A=B,A=C)
Returns the outer product of tensors.
Also known as the tensor product.
Returns complex z in polar form.
Returns the nth prime number, 1≤n≤10000.
Print x in tty mode.
For i equals j through k evaluate f.
Returns the product of all f.
Returns expression x without evaluating it first.
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).
Returns the number of indices that tensor "a" has.
Returns x with everything over a common denominator.
Returns the real part of complex z.
Returns complex z in rectangular form.
Returns the values of x such that p(x)=0.
The polynomial p should be factorable over integers.
Returns a vector for multiple roots.
Returns x in a simpler form.
Returns the sine of x.
Returns the hyperbolic sine of x.
Returns the square root of x.
In a script, it does what it says.
Substitutes "a" for b in c and returns the result.
For i equals j through k evaluate f.
Returns the sum of all f.
Returns the tangent of x.
Returns the hyperbolic tangent of x.
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.
Enter
taylor(1/cos(x),x,6)
Result
1 2 5 4 61 6
1 + --- x + ---- x + ----- x
2 24 720
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.
Returns the trace of matrix m.
The function trace(m) is equivalent to contract(m).
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.
Returns an n by n identity matrix.
Returns a zero tensor with dimensions i, j, etc.
Useful for creating a tensor and then setting the component values.
Enter
A=zero(2,2)
A[1,2]=a
A
Result
0 a
0 0