org.jscience.mathematics.analysis
Class ConstantDoubleFunction

java.lang.Object
  extended by org.jscience.mathematics.analysis.DoubleFunction
      extended by org.jscience.mathematics.analysis.ConstantDoubleFunction
All Implemented Interfaces:
java.io.Serializable, Field.Member, Ring.Member, AbelianGroup.Member, AbstractMapping, C1Function, C2Function, PrimitiveMapping, Member

public class ConstantDoubleFunction
extends DoubleFunction
implements C2Function

The constant function.

See Also:
Serialized Form

Constructor Summary
ConstantDoubleFunction(double c)
          Constructs a constant function.
 
Method Summary
 DoubleFunction differentiate()
          DOCUMENT ME!
 double map(double x)
          DOCUMENT ME!
 DoubleFunction secondDerivative()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.mathematics.analysis.DoubleFunction
add, add, compose, cos, divide, divide, exp, getIntervalsList, inverse, log, map, map, map, multiply, multiply, negate, power, setIntervalsList, sin, sqrt, subtract, subtract, taylorExpand, tensor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantDoubleFunction

public ConstantDoubleFunction(double c)
Constructs a constant function.

Parameters:
c - DOCUMENT ME!
Method Detail

map

public double map(double x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Specified by:
map in class DoubleFunction
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.IntervalList.

differentiate

public DoubleFunction differentiate()
DOCUMENT ME!

Specified by:
differentiate in interface C1Function
Specified by:
differentiate in class DoubleFunction
Returns:
DOCUMENT ME!

secondDerivative

public DoubleFunction secondDerivative()
DOCUMENT ME!

Specified by:
secondDerivative in interface C2Function
Returns:
DOCUMENT ME!