WeBWorKdocs

sq_webwork:


Home
Current UR
courses
Visitor
page
Intro to
WeBWorK
WeBWorK 2
Twiki
WW
Community
Grant Support
& awards
Discussion
group
Problem
library
Write/modify
problems
Create &
manage course
Tutorial on
running a course
HowTos
FAQ
WeBWorK2
FAQ
Software
Download
How to
Install WW server
Feedback
Site Map
Change
preferences
Change
password





Prev | Next | manpages

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 |>


Prev | Next | manpages

Last update: Wednesday, January 10, 2007 at 10:22:31 PM.
This site maintained using Manila and Frontier software.