JSci.maths.analysis
Class RealFunction

java.lang.Object
  extended byJSci.maths.analysis.RealFunction
All Implemented Interfaces:
AbelianGroup.Member, Mapping, Member, Ring.Member, java.io.Serializable
Direct Known Subclasses:
Exponential, RealPolynomial

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)
           
abstract  RealFunction differentiate()
          Returns the differential 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 matrix.
 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

compose

public RealFunction compose(RealFunction f)

negate

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

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)

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.