| Modifier and Type | Class and Description |
|---|---|
class |
Diff
The diff(f,x) operator.
|
| Modifier and Type | Field and Description |
|---|---|
protected PostfixMathCommandI |
ChainRuleDiffRules.pfmc |
| Modifier and Type | Method and Description |
|---|---|
PostfixMathCommandI |
ChainRuleDiffRules.getPfmc()
returns the PostfixMathCommandI for the function.
|
| Constructor and Description |
|---|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String rule)
Create a differention rule for function with 1 argument
|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String[] inRules)
Create a differentation rule for function with n arguments.
|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String rule1,
String rule2)
Create a differention rule for function with 2 arguments.
|
PassThroughDiffRule(String inName,
PostfixMathCommandI inPfmc) |
| Modifier and Type | Class and Description |
|---|---|
class |
GAdd
Add function for use with arbitary groups.
|
class |
GComparative
Implements logical operations on a group.
|
class |
GDivide
Divide function for use with arbitary groups.
|
class |
GList
List function for use with arbitary groups.
|
class |
GLogical
Implements logical operators for a group.
|
class |
GMod
Modulus operator for group.
|
class |
GMultiply
Multiplication operator for a group.
|
class |
GNot
Not function for use with arbitary groups.
|
class |
GPower
Power operator for a group.
|
class |
GSubtract
Subtract operator for a group.
|
class |
GUMinus
Unitary division for a group.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Inverse
Find the inverses of a matrix.
|
class |
Rank
Find the rank of a matrix.
|
class |
Solve
z = solve(x,y) solves x*z = y where x,y,z are real matricies.
|
| Modifier and Type | Method and Description |
|---|---|
ASTFunNode |
MatrixNodeFactory.buildFunctionNode(String name,
PostfixMathCommandI pfmc,
Node[] arguments)
Builds a function with n arguments
|
Dimensions |
MatrixNodeFactory.calcDim(String name,
PostfixMathCommandI pfmc,
Node[] arguments)
Calculates the dimension of node using the dimensions
of the children.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MArrayAccess |
class |
MAssign
A matrix enabled assignment function.
|
class |
MDiff |
class |
MIf
The if(condExpr,posExpr,negExpr) function.
|
class |
MList
A enhanced version of list, allows matrices and tensors.
|
class |
MMap |
class |
MPower
An overloaded Power function compatible with MatrixJep.
|
class |
MSum |
| Constructor and Description |
|---|
PFunction(PolynomialCreator pc,
String name,
PostfixMathCommandI pfmc,
PNodeI[] args) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BinaryOperatorI
A matrix enabled binary operator.
|
interface |
NaryOperatorI
A matrix enabled operator with N arguments.
|
interface |
UnaryOperatorI
A matrix enabled unary operator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayAccess
A postfix MathCommand which facilitates the getting and setting of vector and matrix elements.
|
class |
Determinant
Calculate the Determinant of a matrix
det([[1,2],[3,4]]) -> 1*4-2*3 = -2
|
class |
Diagonal
Creates a diagonal matrix, with a given vector as diagonals elements.
|
class |
Ele
ele(x,i) returns the i-th element of a vector x.
|
class |
ElementComparative
Multiplies any number of Vectors or Matrices element by element.
|
class |
ElementDivide
Multiplies any number of Vectors or Matrices element by element.
|
class |
ElementMultiply
Multiplies any number of Vectors or Matricies element by element.
|
class |
ExteriorProduct
An overloaded operator, either cross product or power.
|
class |
GenMat
Generate vectors and matrices.
|
class |
GetDiagonal
Extracts diagonal from a square matrix.
|
class |
Id
Creates an identity matrix.
|
class |
Length
Returns the length of a vector.
|
class |
MAdd
An extension of the Add command to allow it to add MVector's and Matrix's.
|
class |
MDivide
An extension of the Divide class with vectors and matricies.
|
class |
MDot
The MDot operator.
|
class |
MMultiply
An extension of the Multiply to with vectors and matricies.
|
class |
MSubtract
An extension of the Add command to allow it to add MVector's and Matrix's.
|
class |
MUMinus
Unitary minus for matrices.
|
class |
Size
Returns the size of an Scaler, Vector or Matrix.
|
class |
Trace
Calculate the trace of a matrix
trace([[1,2],[3,4]]) -> 1+4 = 5
|
class |
Transpose
Transpose a matrix.
|
class |
VEle
ele(x,i) returns the i-th element of a vector x.
|
class |
VList
A enhanced version of List, allows matrices and tensors.
|
class |
VMap
evaluates a function on every element of a vector or matrix.
|
class |
VPower
An overloaded power function, if both arguments are vectors returns
the exteriour product, else return standard power.
|
class |
VRange
A enhanced version of List, allows matrices and tensors.
|
class |
VSum
Adds the elements of a vector or matrix.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Eval
Symbolic eval(x^3,x,2) operator.
|
class |
MacroFunction
A function specified by a string.
|
| Modifier and Type | Method and Description |
|---|---|
ASTConstant |
NodeFactory.buildConstantNode(PostfixMathCommandI pfmc,
Node[] children)
Creates a ASTConstant whose value of applying the operator to its arguments.
|
ASTFunNode |
NodeFactory.buildFunctionNode(String name,
PostfixMathCommandI pfmc,
Node[] arguments)
Builds a function with n arguments
This method should be sub-classed
|
Object |
XJep.evaluate(PostfixMathCommandI pfmc,
Node node) |
| Constructor and Description |
|---|
XOperator(String name,
PostfixMathCommandI pfmc,
int flags)
construct a new operator.
|
XOperator(String name,
PostfixMathCommandI pfmc,
int flags,
int precedence)
Allows a given precedent to be set.
|
XOperator(String name,
String symbol,
PostfixMathCommandI pfmc,
int flags)
construct a new operator, with a different name and symbol
|
XOperator(String name,
String symbol,
PostfixMathCommandI pfmc,
int flags,
int precedence)
Allows a given precedent to be set.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Define
Allows functions to be defined in equations.
|
class |
FromBase |
class |
Max
A max function Max(x^2,x,1,10) finds the max of x^2 with x running from 1 to 10.
|
class |
MaxArg |
class |
Min
A min function Min(x^2,x,1,10) finds the min of x^2 with x running from 1 to 10.
|
class |
MinArg |
class |
Product
A product function product(x^2,x,1,10) finds the product of x^2 with x running from 1 to 10.
|
class |
Simpson
The Simpson rule for approximation to a definite integral.
|
class |
Sum
A sum function Sum(x^2,x,1,10) finds the sum of x^2 with x running from 1 to 10.
|
class |
SumType
Base class for functions like Sum(x^2,x,1,10) which finds the sum of x^2 with x running from 1 to 10.
|
class |
ToBase
Convert a number to a string in a given base.
|
class |
Trapezium
The trapezium rule for approximation to a definite integral.
|
class |
XAssign
An assignment operator so we can do
x=3+4.
|
| Modifier and Type | Method and Description |
|---|---|
PostfixMathCommandI |
FunctionTable.get(String s)
returns the PostfixMathCommandI for function with name s.
|
PostfixMathCommandI |
Operator.getPFMC() |
PostfixMathCommandI |
ASTFunNode.getPFMC()
Returns the math command class associated with this node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JEP.addFunction(String functionName,
PostfixMathCommandI function)
Adds a new function to the parser.
|
Object |
EvaluatorVisitor.eval(PostfixMathCommandI pfmc,
Node[] children)
Evaluates a PostfixMathCommandI with given arguments.
|
Object |
FunctionTable.put(String s,
PostfixMathCommandI pfmc)
adds the PostfixMathCommandI for the function with name s.
|
void |
ASTFunNode.setFunction(String name_in,
PostfixMathCommandI pfmc_in)
Sets the function for a node.
|
void |
Operator.setPFMC(PostfixMathCommandI pfmc) |
| Constructor and Description |
|---|
Operator(String name,
PostfixMathCommandI pfmc)
construct a new operator.
|
Operator(String name,
String symbol,
PostfixMathCommandI pfmc)
construct a new operator, with a different name and symbol
|
| Modifier and Type | Method and Description |
|---|---|
PostfixMathCommandI |
CommandElement.getPFMC() |
| Modifier and Type | Method and Description |
|---|---|
void |
CommandElement.setPFMC(PostfixMathCommandI commandI) |
| Modifier and Type | Class and Description |
|---|---|
class |
Abs |
class |
Add
Addition function.
|
class |
ArcCosine
The acos function.
|
class |
ArcCosineH
Implements the arcCosH function.
|
class |
ArcSine |
class |
ArcSineH
Implements the arcSinH function.
|
class |
ArcTangent |
class |
ArcTangent2
atan2(y, x) Returns the angle whose tangent is y/x.
|
class |
ArcTanH
Implements the arcTanH function.
|
class |
Arg
Argument of a complex number
|
class |
Assign
An assignment operator so we can do
x=3+4.
|
class |
Binomial
Binomial coeficients: binom(n,i).
|
class |
Ceil
A PostfixMathCommandI which find the smallest integer above the number
ceil(pi) give 4
ceil(-i) give -3
|
class |
Comparative
Implements the comparative operations
Caverts should work where arguments are Double, Complex or String
for the last two only != and == work.
|
class |
ComplexPFMC
Converts a pair of real numbers to a complex number Complex(x,y)=x+i y.
|
class |
Conjugate
The complex conjugate of a number conj(c)
|
class |
Cosine |
class |
CosineH |
class |
Cross |
class |
Divide |
class |
Dot |
class |
Exp
The exp function.
|
class |
Floor
A PostfixMathCommandI which find the smallest integer below the number
ceil(pi) give 3
ceil(-i) give -4
|
class |
If
The if(condExpr,posExpr,negExpr) function.
|
class |
Imaginary |
class |
List
The list function.
|
class |
Logarithm
Log bass 10.
|
class |
Logical |
class |
Modulus |
class |
Multiply |
class |
NaturalLogarithm
Natural logarithm.
|
class |
Not |
class |
Polar
Converts a pair of real numbers to a complex number Complex(x,y)=x+i y.
|
class |
PostfixMathCommand
Function classes extend this class.
|
class |
Power |
class |
Random
Encapsulates the Math.random() function.
|
class |
Range
The list function.
|
class |
Real |
class |
Round
A PostfixMathCommandI which rounds a number
round(pi) finds the closest integer to the argument
round(pi,3) rounds the argument to 3 decimal places
|
class |
Sine |
class |
SineH |
class |
SquareRoot |
class |
Str
Converts an object into its string representation.
|
class |
Subtract |
class |
Tangent |
class |
TanH |
class |
UMinus |
Copyright © 2018. All rights reserved.