com.rubecula.jquantity
Interface Transcendental

All Known Implementing Classes:
Value.transcendental2Arctan, Value.transcendentalExp, Value.transcendentalLog, Value.transcendentalSqrt, Value.transcendentalSquare, Value.transcendentalTanThetaBy2

interface Transcendental

This interface models the functions necessary for evaluating transcendental functions.

Version:
$Revision: 1.2 $
Author:
Robin Hillyard

Method Summary
 java.lang.String getCalcCommand()
          This method must be provided to yield the string for remotely invoking calc.
 Rational getDerivative(Rational argument)
          This method must be provided to yield the value of the first derivative of the function for the given argument.
 Value getExactValue(Value argument)
          This method must be provided to yield an exact value (if any - else null) for the given argument.
 Transcendental getInverse()
          This method must be provided to yield the transcendental for the inverse operation:
 Rational getValue(Rational argument)
          This method must be provided to yield the value of the transcendental function for the given argument.
 

Method Detail

getValue

public Rational getValue(Rational argument)
                  throws JQuantityException
This method must be provided to yield the value of the transcendental function for the given argument.

Parameters:
argument - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getExactValue

public Value getExactValue(Value argument)
                    throws JQuantityException
This method must be provided to yield an exact value (if any - else null) for the given argument.

Parameters:
argument - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getDerivative

public Rational getDerivative(Rational argument)
                       throws JQuantityException
This method must be provided to yield the value of the first derivative of the function for the given argument.

Parameters:
argument - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getInverse

public Transcendental getInverse()
This method must be provided to yield the transcendental for the inverse operation:

Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getCalcCommand

public java.lang.String getCalcCommand()
This method must be provided to yield the string for remotely invoking calc.

Returns:
the name of the command for the calc program to give an accurate version of the function value.