JavaView® v2.12

jv.thirdParty.expr
Class Expr

java.lang.Object
  |
  +--jv.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.

Version:
07.07.99 (kp) New functions added: cot, acot, acosh, asinh, atanh, acoth, sign.
31.01.99 (kp) New functions added: cosh, sinh, tanh, coth.
00.00.96 (Darius Bacon) Original version
Author:
Darius Bacon
See Also:
Serialized Form

Field Summary
static int ABS
          Absolut value.
static int ACOS
          Arcus cosine.
static int ACOSH
          Area cosinus hyperbolicus. (kp)
static int ACOT
          Arcus cotanges. (kp)
static int ACOTH
          Area cotangens hyperbolicus. (kp)
static int ADD
          Binary operator.
static int ASIN
          Arcus sine.
static int ASINH
          Area sinus hyperbolicus. (kp)
static int ATAN
          Arcus tanges.
static int ATANH
          Area tangens hyperbolicus. (kp)
static int CEIL
          Unary operator.
static int COS
          Cosine.
static int COSH
          Cosinus hyperbolicus. (kp)
static int COT
          Cotanges. (kp)
static int COTH
          Cotangens hyperbolicus. (kp)
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. (kp)
static int SIN
          Sine.
static int SINH
          Sinus hyperbolicus. (kp)
static int SQRT
          Square root
static int SUB
          Binary operator.
static int TAN
          Tangens.
static int TANH
          Tangens hyperbolicus. (kp)
 
Constructor Summary
Expr()
           
 
Method Summary
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)
           
static Expr make_literal(double v)
           
static Expr make_var_ref(Variable var)
           
 
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.

SUB

public static final int SUB
Binary operator.

MUL

public static final int MUL
Binary operator.

DIV

public static final int DIV
Binary operator.

POW

public static final int POW
Binary operator.

ABS

public static final int ABS
Absolut value.

ACOS

public static final int ACOS
Arcus cosine.

ASIN

public static final int ASIN
Arcus sine.

ATAN

public static final int ATAN
Arcus tanges.

ACOT

public static final int ACOT
Arcus cotanges. (kp)

CEIL

public static final int CEIL
Unary operator.

COS

public static final int COS
Cosine.

EXP

public static final int EXP
Exponential function.

FLOOR

public static final int FLOOR
Unary operator.

LOG

public static final int LOG
Natural logarithm.

NEG

public static final int NEG
Negative.

ROUND

public static final int ROUND
Unary operator.

SIN

public static final int SIN
Sine.

SQRT

public static final int SQRT
Square root

TAN

public static final int TAN
Tangens.

COT

public static final int COT
Cotanges. (kp)

SINH

public static final int SINH
Sinus hyperbolicus. (kp)

COSH

public static final int COSH
Cosinus hyperbolicus. (kp)

TANH

public static final int TANH
Tangens hyperbolicus. (kp)

COTH

public static final int COTH
Cotangens hyperbolicus. (kp)

ASINH

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

ACOSH

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

ATANH

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

ACOTH

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

SIGN

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

Expr

public Expr()
Method Detail

getValue

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

make_literal

public static Expr make_literal(double v)

make_var_ref

public static Expr make_var_ref(Variable var)

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® v2.12

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