jsci.maths.analysis
Class RealFunction
- java.lang.Object
-
- 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
Constructors Constructor and Description RealFunction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description AbelianGroup.Memberadd(AbelianGroup.Member f)Returns the addition of this function and another.RealFunctionadd(RealFunction f)RealFunctioncompose(RealFunction f)static RealFunctionconstant(double k)abstract RealFunctiondifferentiate()Returns the differential of this function.intdimension()Returns the dimension of the space this function is on.RealFunctiondivide(RealFunction f)Ring.Memberdivide(Ring.Member f)Returns the division of this function and another.java.lang.ObjectgetSet()Ring.Memberinverse()Returns the multiplicative inverse (reciprocal) of this function.RealFunctionmultiply(RealFunction f)Ring.Membermultiply(Ring.Member f)Returns the multiplication of this function and another.AbelianGroup.Membernegate()Returns the negative of this function.AbelianGroup.Membersubtract(AbelianGroup.Member f)Returns the subtraction of this function and another.RealFunctionsubtract(RealFunction f)RealPolynomialtaylorExpand(double a, int n)Returns the Taylor expansion of this function about a point.RealFunction2Dtensor(RealFunction f)
-
-
-
Method Detail
-
dimension
public final int dimension()
Returns the dimension of the space this function is on.
-
compose
public RealFunction compose(RealFunction f)
-
negate
public AbelianGroup.Member negate()
Returns the negative of this function.- Specified by:
negatein interfaceAbelianGroup.Member
-
add
public AbelianGroup.Member add(AbelianGroup.Member f)
Returns the addition of this function and another.- Specified by:
addin interfaceAbelianGroup.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:
subtractin interfaceAbelianGroup.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:
multiplyin interfaceRing.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)
-
-
DMelt 3.0 © DataMelt by jWork.ORG