MVT API

math.objects
Class Constant

java.lang.Object
  |
  +--math.objects.Expression
        |
        +--math.objects.Constant
Direct Known Subclasses:
IntegerConstant, RationalConstant, RealConstant

public abstract class Constant
extends Expression

The class Constant is used to create mathematical Constant objects. It extends the Expression class.

Since:
JDK1.1
Author:
Peter Staab
, Pete Fox , both for the Mathematical Visualization Project for the Department of Applied Mathematics, University of Colorado at Boulder

Constructor Summary
Constant()
           
 
Method Summary
 Expression differentiate(Variable var)
          A method that returns the derivative of the Constant object using the summation rule of differentiation
 Expression simplify()
          A method that returns a Expression representation of the Constant object in a simplified form--as is.
 
Methods inherited from class math.objects.Expression
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant()
Method Detail

simplify

public Expression simplify()
A method that returns a Expression representation of the Constant object in a simplified form--as is.

Specified by:
simplify in class Expression
Returns:
an Expression object in a simplified form

differentiate

public Expression differentiate(Variable var)
A method that returns the derivative of the Constant object using the summation rule of differentiation

Specified by:
differentiate in class Expression
Parameters:
var - the variable of differentiation
Returns:
an Constant object containing zero representing the derivative of the Constant object

MVT API

mvt.icons