Forum archive 2000-2006

Michael Gage - pola

Michael Gage - pola

by Arnold Pizer -
Number of replies: 0
inactiveTopicpolar topic started 5/21/2002; 12:05:42 PM
last post 5/21/2002; 12:05:42 PM
userMichael Gage - polar  blueArrow
5/21/2002; 12:05:42 PM (reads: 1631, responses: 0)

Description

polar

Syntax

polar(cplx, r_format=>fmt, theta_format=>fmt)

Params

cplx is a complex number object (e.g. created with $cplx= new Complex(1,1) )
fmt is a perl (C like format specification) such as "%0.5f" -- 5 decimal place fixed point number

Options

Option keyOption valueDefault
r_formatthe format for the modulus, r (or rho) "%0.3f"
theta_formatthe format for the argument, theta "%0.3f"

Action

Calculates the polar representation of the complex number

Returns

A string representing the complex number using "e to the i theta" notation

See Also

"PGcomplexmacros"

 

<| Post or View Comments |>