JSci.maths.analysis
Class RealFunctionND

java.lang.Object
  extended by JSci.maths.analysis.RealFunctionND
All Implemented Interfaces:
java.io.Serializable, Ring.Member, AbelianGroup.Member, Member

public abstract class RealFunctionND
extends java.lang.Object
implements Ring.Member

This class describes a function on an n-dimensional space.

See Also:
Serialized Form

Field Summary
protected  int dim
           
 
Constructor Summary
protected RealFunctionND(int dim)
           
 
Method Summary
 AbelianGroup.Member add(AbelianGroup.Member f)
          Returns the addition of this function and another.
 RealFunctionND add(RealFunctionND f)
           
static RealFunctionND constant(int dim, double k)
           
 int dimension()
          Returns the dimension of the space this function is on.
 RealFunctionND divide(RealFunctionND 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.
abstract  double map(double[] x)
           
 RealFunctionND multiply(RealFunctionND 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.
 RealFunctionND subtract(RealFunctionND f)
           
 RealFunctionND tensor(RealFunction f)
           
 RealFunctionND tensor(RealFunctionND f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dim

protected final int dim
Constructor Detail

RealFunctionND

protected RealFunctionND(int dim)
Method Detail

map

public abstract double map(double[] x)

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

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 RealFunctionND add(RealFunctionND 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 RealFunctionND subtract(RealFunctionND 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 RealFunctionND multiply(RealFunctionND 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 RealFunctionND divide(RealFunctionND f)

tensor

public RealFunctionND tensor(RealFunction f)

tensor

public RealFunctionND tensor(RealFunctionND f)

constant

public static RealFunctionND constant(int dim,
                                      double k)