TrigFunction
ptolemy.actor.lib.TrigFunction

Produce an output token on each firing with a value that is equal to the specified trigonometric function of the input. The input and output types are DoubleToken. The functions are exactly those in the java.lang.Math class. They are: (NOTE: The above documentation is adapted from the class documentation for java.lang.Math as released in JDK 1.3).

(NOTE: This actor will eventually be augmented to do hyperbolic trig functions, and possibly to operate on matrices and arrays).

The following functions in java.lang.Math are implemented elsewhere:



Author(s): Edward A. Lee
Version:$Id: TrigFunction.java,v 1.40 2006/03/28 23:56:45 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Yellow (pwhitake)




function
The function to compute. This is a string-valued attribute that defaults to "sin".