public abstract class Expr
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ABS
Absolute value.
|
static int |
ACOS
Arcus cosine.
|
static int |
ACOSH
Area cosinus hyperbolicus.
|
static int |
ACOT
Arcus cotangens.
|
static int |
ACOTH
Area cotangens hyperbolicus.
|
static int |
ADD
Binary operator.
|
static int |
ARG
Argument of complex number from principal branch, 0 for real numbers.
|
static int |
ASIN
Arcus sine.
|
static int |
ASINH
Area sinus hyperbolicus.
|
static int |
ATAN
Arcus tangens.
|
static int |
ATANH
Area tangens hyperbolicus.
|
static int |
CEIL
Unary operator.
|
static int |
CMPLX
Complex real component, same for real numbers (kp)
|
static int |
CONJ
Complex conjugate, identity for real numbers.
|
static int |
COS
Cosine.
|
static int |
COSH
Cosinus hyperbolicus.
|
static int |
COT
Cotangens.
|
static int |
COTH
Cotangens hyperbolicus.
|
static int |
DIV
Binary operator.
|
static int |
EXP
Exponential function.
|
static int |
FLOOR
Unary operator.
|
static int |
IM
Complex real component, same for real numbers (kp)
|
static int |
INV
Complex inversion 1/z, same for real numbers (kp)
|
static int |
LOG
Natural logarithm, principal branch of complex log.
|
static int |
MUL
Binary operator.
|
static int |
NEG
Negative.
|
static int |
POW
Binary operator.
|
static int |
RE
Complex real component, same for real numbers (kp)
|
static int |
ROUND
Unary operator.
|
static int |
SIGN
Sign of argument.
|
static int |
SIN
Sine.
|
static int |
SINH
Sinus hyperbolicus.
|
static int |
SQRT
Square root
|
static int |
SUB
Binary operator.
|
static int |
TAN
Tangens.
|
static int |
TANH
Tangens hyperbolicus.
|
static int |
TYPE_COMPLEX |
static int |
TYPE_DEPENDS |
static int |
TYPE_REAL
Type of an expression.
|
Constructor and Description |
---|
Expr() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
contains(Variable var)
Check if current expression uses the given variable.
|
abstract PuComplex |
getComplexValue()
Return the complex value given the current variable values.
|
abstract double |
getValue()
Return the value given the current variable values.
|
boolean |
isComplex()
Return whether double or complex.
|
static Expr |
make_app1(int rator,
Expr rand)
Create a unary expression.
|
static Expr |
make_app2(int rator,
Expr rand0,
Expr rand1)
Create a binary expression.
|
void |
setComplex(boolean bVal)
Return whether double or complex.
|
public static final int ADD
public static final int SUB
public static final int MUL
public static final int DIV
public static final int POW
public static final int ABS
public static final int ACOS
public static final int ASIN
public static final int ATAN
public static final int ACOT
public static final int CEIL
public static final int COS
public static final int EXP
public static final int FLOOR
public static final int LOG
public static final int NEG
public static final int ROUND
public static final int SIN
public static final int SQRT
public static final int TAN
public static final int COT
public static final int SINH
public static final int COSH
public static final int TANH
public static final int COTH
public static final int ASINH
public static final int ACOSH
public static final int ATANH
public static final int ACOTH
public static final int SIGN
public static final int ARG
public static final int CONJ
public static final int INV
public static final int RE
public static final int IM
public static final int CMPLX
public static final int TYPE_REAL
public static final int TYPE_COMPLEX
public static final int TYPE_DEPENDS
public boolean isComplex()
public void setComplex(boolean bVal)
public abstract PuComplex getComplexValue()
public abstract double getValue()
public abstract boolean contains(Variable var)
public static Expr make_app1(int rator, Expr rand)
rator
- unary operatorrand
- operand"