edu.buffalo.fs7.mathlib
Class CosMap

java.lang.Object
  |
  +--edu.buffalo.fs7.mathlib.MathObject
        |
        +--edu.buffalo.fs7.mathlib.MathMap
              |
              +--edu.buffalo.fs7.mathlib.CosMap
All Implemented Interfaces:
java.lang.Cloneable

public class CosMap
extends MathMap

Class representing the real cos() function. It can operate on complex numbers, but only takes the real part.

See Also:
MathMap, Parse

Fields inherited from class edu.buffalo.fs7.mathlib.MathObject
mathlib
 
Constructor Summary
CosMap()
          creates the cos function
 
Method Summary
 MathObject apply(MathObject o)
          applies the real cos function to the real part of the complex number given as an argument
 java.lang.String toString()
          returns string representation of the cos map
 
Methods inherited from class edu.buffalo.fs7.mathlib.MathObject
clone, toParseableString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CosMap

public CosMap()
creates the cos function
Method Detail

apply

public MathObject apply(MathObject o)
applies the real cos function to the real part of the complex number given as an argument
Overrides:
apply in class MathMap
See Also:
Complex, Norm

toString

public java.lang.String toString()
returns string representation of the cos map
Overrides:
toString in class MathObject
Following copied from class: edu.buffalo.fs7.mathlib.MathObject
See Also:
MathObject.toParseableString()