PolarToComplex
ptolemy.actor.lib.conversions.PolarToComplex

This actor reads two double tokens (magnitude and angle) and outputs a single complex token. The output is a complex token representation of the coordinates given at the inputs in polar form. The complex token has two parts: the first part correspond to the real part, which is magnitude * cos(angle, and the second part is the imaginary part, which is magnitude * sin(angle). Note that the angle input is assumed to be in radians. If either input is NaN or infinity, then the output is NaN or infinity.

Author(s): Michael Leung, Edward A. Lee, Paul Whitaker
Version:$Id: PolarToComplex.java,v 1.31 2005/10/28 20:15:46 cxh Exp $
Pt.Proposed Rating:Green (pwhitake)
Pt.Accepted Rating:Green (pwhitake)


magnitude
The input port for the magnitude component, which has type DoubleToken.

angle
The input port for the angle component (in radians), which has type DoubleToken.

output
The port for the output, which has type ComplexToken.