com.rubecula.jquantity
Class Value.transcendentalSqrt

java.lang.Object
  extended bycom.rubecula.jquantity.Value.transcendentalSqrt
All Implemented Interfaces:
Transcendental
Enclosing class:
Value

private static class Value.transcendentalSqrt
extends java.lang.Object
implements Transcendental


Constructor Summary
private Value.transcendentalSqrt()
           
 
Method Summary
 java.lang.String getCalcCommand()
          This method must be provided to yield the string for remotely invoking calc.
 Rational getDerivative(Rational x)
          This method must be provided to yield the value of the first derivative of the function for the given argument.
 Value getExactValue(Value x)
          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 x)
          This method must be provided to yield the value of the transcendental function for the given argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value.transcendentalSqrt

private Value.transcendentalSqrt()
Method Detail

getValue

public Rational getValue(Rational x)
                  throws JQuantityException
Description copied from interface: Transcendental
This method must be provided to yield the value of the transcendental function for the given argument.

Specified by:
getValue in interface Transcendental
Parameters:
x - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getExactValue

public Value getExactValue(Value x)
                    throws JQuantityException
Description copied from interface: Transcendental
This method must be provided to yield an exact value (if any - else null) for the given argument.

Specified by:
getExactValue in interface Transcendental
Parameters:
x - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getDerivative

public Rational getDerivative(Rational x)
                       throws JQuantityException
Description copied from interface: Transcendental
This method must be provided to yield the value of the first derivative of the function for the given argument.

Specified by:
getDerivative in interface Transcendental
Parameters:
x - the argument of the function.
Returns:
the result of applying the funtion to the argument
Throws:
JQuantityException

getInverse

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

Specified by:
getInverse in interface Transcendental
Returns:
the result of applying the funtion to the argument

getCalcCommand

public java.lang.String getCalcCommand()
Description copied from interface: Transcendental
This method must be provided to yield the string for remotely invoking calc.

Specified by:
getCalcCommand in interface Transcendental
Returns:
the name of the command for the calc program to give an accurate version of the function value.