JSci.maths.analysis
Class RealFunction

java.lang.Object
  extended by JSci.maths.analysis.RealFunction
All Implemented Interfaces:
java.io.Serializable, Ring.Member, AbelianGroup.Member, Mapping, Member
Direct Known Subclasses:
Cosine, Exponential, Power, RealPolynomial, Sine, Tangent

public abstract class RealFunction
extends java.lang.Object
implements Mapping, Ring.Member

This class describes a function on the real numbers.

See Also:
Serialized Form

Constructor Summary
RealFunction()
           
 
Method Summary
 AbelianGroup.Member add(AbelianGroup.Member f)
          Returns the addition of this function and another.
 RealFunction add(RealFunction f)
           
 RealFunction compose(RealFunction f)
           
static RealFunction constant(double k)
           
abstract  RealFunction differentiate()
          Returns the differential of this function.
 int dimension()
          Returns the dimension of the space this function is on.
 RealFunction divide(RealFunction f)
           
 Ring.Member divide(Ring.Member f)
          Returns the division of this function and another.
 java.lang.Object getSet()
           
 Ring.Member inverse()
          Returns the multiplicative inverse (reciprocal) of this function.
 RealFunction multiply(RealFunction f)
           
 Ring.Member multiply(Ring.Member f)
          Returns the multiplication of this function and another.
 AbelianGroup.Member negate()
          Returns the negative of this function.
 AbelianGroup.Member subtract(AbelianGroup.Member f)
          Returns the subtraction of this function and another.
 RealFunction subtract(RealFunction f)
           
 RealPolynomial taylorExpand(double a, int n)
          Returns the Taylor expansion of this function about a point.
 RealFunction2D tensor(RealFunction f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface JSci.maths.Mapping
map
 

Constructor Detail

RealFunction

public RealFunction()
Method Detail

dimension

public final int dimension()
Returns the dimension of the space this function is on.


getSet

public java.lang.Object getSet()
Specified by:
getSet in interface Member

compose

public RealFunction compose(RealFunction f)

negate

public AbelianGroup.Member negate()
Returns the negative of this function.

Specified by:
negate in interface AbelianGroup.Member

add

public AbelianGroup.Member add(AbelianGroup.Member f)
Returns the addition of this function and another.

Specified by:
add in interface AbelianGroup.Member
Parameters:
f - a group member

add

public RealFunction add(RealFunction f)

subtract

public AbelianGroup.Member subtract(AbelianGroup.Member f)
Returns the subtraction of this function and another.

Specified by:
subtract in interface AbelianGroup.Member
Parameters:
f - a group member

subtract

public RealFunction subtract(RealFunction f)

multiply

public Ring.Member multiply(Ring.Member f)
Returns the multiplication of this function and another.

Specified by:
multiply in interface Ring.Member
Parameters:
f - a ring member

multiply

public RealFunction multiply(RealFunction f)

inverse

public Ring.Member inverse()
Returns the multiplicative inverse (reciprocal) of this function.


divide

public Ring.Member divide(Ring.Member f)
Returns the division of this function and another.


divide

public RealFunction divide(RealFunction f)

tensor

public RealFunction2D tensor(RealFunction f)

taylorExpand

public RealPolynomial taylorExpand(double a,
                                   int n)
Returns the Taylor expansion of this function about a point.

Parameters:
a - the point at which to expand about.
n - the number of terms to expand to.
Returns:
the Taylor series of f(x+a).

differentiate

public abstract RealFunction differentiate()
Returns the differential of this function.


constant

public static RealFunction constant(double k)