JavaView© v3.95.000

jv.thirdParty.expr
Class Expr

java.lang.Object
  extended byjv.thirdParty.expr.Expr
All Implemented Interfaces:
java.io.Serializable

public abstract class Expr
extends java.lang.Object
implements java.io.Serializable

A mathematical expression, built out of literal numbers, variables, arithmetic operators, and elementary functions. The operator names are from java.lang.Math.

See Also:
Serialized Form

Field Summary
static int ABS
          Absolut value.
static int ACOS
          Arcus cosine.
static int ACOSH
          Area cosinus hyperbolicus.
static int ACOT
          Arcus cotanges.
static int ACOTH
          Area cotangens hyperbolicus.
static int ADD
          Binary operator.
static int ASIN
          Arcus sine.
static int ASINH
          Area sinus hyperbolicus.
static int ATAN
          Arcus tanges.
static int ATANH
          Area tangens hyperbolicus.
static int CEIL
          Unary operator.
static int COS
          Cosine.
static int COSH
          Cosinus hyperbolicus.
static int COT
          Cotanges.
static int COTH
          Cotangens hyperbolicus.
static int DIV
          Binary operator.
static int EXP
          Exponential function.
static int FLOOR
          Unary operator.
static int LOG
          Natural logarithm.
static int MUL
          Binary operator.
static int NEG
          Negative.
static int POW
          Binary operator.
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.
 
Constructor Summary
Expr()
           
 
Method Summary
abstract  boolean contains(Variable _var)
          Check if current expression uses the given variable.
abstract  double getValue()
          Return the value given the current variable values.
static Expr make_app1(int rator, Expr rand)
           
static Expr make_app2(int rator, Expr rand0, Expr rand1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Binary operator.

See Also:
Constant Field Values

SUB

public static final int SUB
Binary operator.

See Also:
Constant Field Values

MUL

public static final int MUL
Binary operator.

See Also:
Constant Field Values

DIV

public static final int DIV
Binary operator.

See Also:
Constant Field Values

POW

public static final int POW
Binary operator.

See Also:
Constant Field Values

ABS

public static final int ABS
Absolut value.

See Also:
Constant Field Values

ACOS

public static final int ACOS
Arcus cosine.

See Also:
Constant Field Values

ASIN

public static final int ASIN
Arcus sine.

See Also:
Constant Field Values

ATAN

public static final int ATAN
Arcus tanges.

See Also:
Constant Field Values

ACOT

public static final int ACOT
Arcus cotanges. (kp)

See Also:
Constant Field Values

CEIL

public static final int CEIL
Unary operator.

See Also:
Constant Field Values

COS

public static final int COS
Cosine.

See Also:
Constant Field Values

EXP

public static final int EXP
Exponential function.

See Also:
Constant Field Values

FLOOR

public static final int FLOOR
Unary operator.

See Also:
Constant Field Values

LOG

public static final int LOG
Natural logarithm.

See Also:
Constant Field Values

NEG

public static final int NEG
Negative.

See Also:
Constant Field Values

ROUND

public static final int ROUND
Unary operator.

See Also:
Constant Field Values

SIN

public static final int SIN
Sine.

See Also:
Constant Field Values

SQRT

public static final int SQRT
Square root

See Also:
Constant Field Values

TAN

public static final int TAN
Tangens.

See Also:
Constant Field Values

COT

public static final int COT
Cotanges. (kp)

See Also:
Constant Field Values

SINH

public static final int SINH
Sinus hyperbolicus. (kp)

See Also:
Constant Field Values

COSH

public static final int COSH
Cosinus hyperbolicus. (kp)

See Also:
Constant Field Values

TANH

public static final int TANH
Tangens hyperbolicus. (kp)

See Also:
Constant Field Values

COTH

public static final int COTH
Cotangens hyperbolicus. (kp)

See Also:
Constant Field Values

ASINH

public static final int ASINH
Area sinus hyperbolicus. (kp)

See Also:
Constant Field Values

ACOSH

public static final int ACOSH
Area cosinus hyperbolicus. (kp)

See Also:
Constant Field Values

ATANH

public static final int ATANH
Area tangens hyperbolicus. (kp)

See Also:
Constant Field Values

ACOTH

public static final int ACOTH
Area cotangens hyperbolicus. (kp)

See Also:
Constant Field Values

SIGN

public static final int SIGN
Sign of argument. (kp)

See Also:
Constant Field Values
Constructor Detail

Expr

public Expr()
Method Detail

getValue

public abstract double getValue()
Return the value given the current variable values.


contains

public abstract boolean contains(Variable _var)
Check if current expression uses the given variable.


make_app1

public static Expr make_app1(int rator,
                             Expr rand)
Parameters:
rator - unary operator
rand - operand

make_app2

public static Expr make_app2(int rator,
                             Expr rand0,
                             Expr rand1)
Parameters:
rator - binary operator
rand0 - left operand
rand1 - right operand

JavaView© v3.95.000

The software JavaView© is copyright protected. All Rights Reserved.