JSci.maths.analysis
Class Cosine

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

public class Cosine
extends RealFunction

The cosine function.

See Also:
Serialized Form

Constructor Summary
Cosine()
          Constructs a cosine function of the form cos(x).
Cosine(double A, double w, double k)
          Constructs a cosine function of the form A cos(wx+k).
 
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

Cosine

public Cosine()
Constructs a cosine function of the form cos(x).


Cosine

public Cosine(double A,
              double w,
              double k)
Constructs a cosine function of the form A cos(wx+k).

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