JSci.maths.analysis
Class Power

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

public class Power
extends RealFunction

The power function. For polynomials or integer exponents use the classes in JSci.maths.polynomials.

See Also:
Serialized Form

Constructor Summary
Power()
          Constructs a power function of the form x.
Power(double A, double n)
          Constructs a power function of the form Axn.
Power(double A, double k, double n)
          Constructs a power function of the form A(x+k)n.
 
Method Summary
 RealFunction differentiate()
          Returns the differential of this function.
 double map(double x)
          A user-defined function.
 
Methods inherited from class JSci.maths.analysis.RealFunction
add, add, compose, constant, dimension, divide, divide, getSet, inverse, multiply, multiply, negate, subtract, subtract, taylorExpand, tensor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Power

public Power()
Constructs a power function of the form x.


Power

public Power(double A,
             double n)
Constructs a power function of the form Axn.


Power

public Power(double A,
             double k,
             double n)
Constructs a power function of the form A(x+k)n.

Method Detail

map

public double map(double x)
Description copied from interface: Mapping
A user-defined function.


differentiate

public RealFunction differentiate()
Description copied from class: RealFunction
Returns the differential of this function.

Specified by:
differentiate in class RealFunction