org.jscience.mathematics.analysis
Class ComplexFunction

java.lang.Object
  extended by org.jscience.mathematics.analysis.ComplexFunction
All Implemented Interfaces:
java.io.Serializable, Field.Member, Ring.Member, AbelianGroup.Member, AbstractMapping, C1Function, ComplexMapping, NumberMapping, Member
Direct Known Subclasses:
ComplexPolynomial, ConstantComplexFunction

public abstract class ComplexFunction
extends java.lang.Object
implements ComplexMapping, C1Function, Field.Member

This class describes a function on the real numbers.

See Also:
Serialized Form

Constructor Summary
ComplexFunction()
           
 
Method Summary
 AbelianGroup.Member add(AbelianGroup.Member f)
          Returns the addition of this function and another.
 ComplexFunction add(ComplexFunction f)
          DOCUMENT ME!
 ComplexFunction compose(ComplexFunction f)
          DOCUMENT ME!
 Field.Member cos()
          Returns the cosine of this function.
abstract  ComplexFunction differentiate()
          Returns the differential of this function.
 ComplexFunction divide(ComplexFunction f)
          DOCUMENT ME!
 Field.Member divide(Field.Member f)
          Returns the quotient of this function and another.
 Field.Member exp()
          Returns the exp of this function.
 IntervalsList[] getIntervalsLists()
          DOCUMENT ME!
 Field.Member inverse()
          Returns this function inverse.
 Field.Member log()
          Returns the log of this function (actually the ln, see java.lang.Math).
abstract  Complex map(Complex x)
          DOCUMENT ME!
 java.lang.Number map(java.lang.Number x)
          DOCUMENT ME!
 ComplexFunction multiply(ComplexFunction f)
          DOCUMENT ME!
 Ring.Member multiply(Ring.Member f)
          Returns the multiplication of this function and another.
 AbelianGroup.Member negate()
          Returns the negative of this function.
 Field.Member power(double d)
          Returns this function raised to a power.
 void setIntervalsLists(IntervalsList[] lists)
          DOCUMENT ME!
 Field.Member sin()
          Returns the sine of this function.
 Field.Member sqrt()
          Returns the sqrt of this function.
 AbelianGroup.Member subtract(AbelianGroup.Member f)
          Returns the subtraction of this function and another.
 ComplexFunction subtract(ComplexFunction f)
          DOCUMENT ME!
 ComplexPolynomial taylorExpand(Complex a, int n)
          Returns the Taylor expansion of this function about a point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexFunction

public ComplexFunction()
Method Detail

map

public abstract Complex map(Complex x)
DOCUMENT ME!

Specified by:
map in interface ComplexMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

map

public java.lang.Number map(java.lang.Number x)
DOCUMENT ME!

Specified by:
map in interface NumberMapping
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

differentiate

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

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

getIntervalsLists

public IntervalsList[] getIntervalsLists()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setIntervalsLists

public void setIntervalsLists(IntervalsList[] lists)
DOCUMENT ME!

Parameters:
lists - DOCUMENT ME!

compose

public ComplexFunction compose(ComplexFunction f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

negate

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

Specified by:
negate in interface AbelianGroup.Member
Returns:
DOCUMENT ME!

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 - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

add

public ComplexFunction add(ComplexFunction f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

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 - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

subtract

public ComplexFunction subtract(ComplexFunction f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

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 - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

multiply

public ComplexFunction multiply(ComplexFunction f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

inverse

public Field.Member inverse()
Returns this function inverse.

Specified by:
inverse in interface Field.Member
Returns:
DOCUMENT ME!

divide

public Field.Member divide(Field.Member f)
Returns the quotient of this function and another.

Specified by:
divide in interface Field.Member
Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

divide

public ComplexFunction divide(ComplexFunction f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

power

public Field.Member power(double d)
Returns this function raised to a power.

Parameters:
d - DOCUMENT ME!
Returns:
DOCUMENT ME!

cos

public Field.Member cos()
Returns the cosine of this function.

Returns:
DOCUMENT ME!

sin

public Field.Member sin()
Returns the sine of this function.

Returns:
DOCUMENT ME!

log

public Field.Member log()
Returns the log of this function (actually the ln, see java.lang.Math).

Returns:
DOCUMENT ME!

exp

public Field.Member exp()
Returns the exp of this function.

Returns:
DOCUMENT ME!

sqrt

public Field.Member sqrt()
Returns the sqrt of this function.

Returns:
DOCUMENT ME!

taylorExpand

public ComplexPolynomial taylorExpand(Complex 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).