*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> c++/cartpol (3)              


CARTPOL(3C++)							 CARTPOL(3C++)

NAME    [Toc]    [Back]

     polar - functions for the C++ Complex Math	Library

SYNOPSIS    [Toc]    [Back]

     #include <complex.h>

     class complex {


	       friend double  abs(complex);
	       friend double  arg(complex);
	       friend complex conj(complex);
	       friend double  imag(complex);
	       friend double  norm(complex);
	       friend complex polar(double, double = 0);
	       friend double  real(complex);

DESCRIPTION    [Toc]    [Back]

     The following functions are defined for complex, where:
      -	d, m, and a are	of type	integer	and
      -	x and y	are of type complex.

     d <b>= abs(x<b>)	    Returns the	absolute value or magnitude of x.

     d <b>= norm(x<b>)    Returns the	square of the magnitude	of x.  It is faster
		    than abs, but more likely to cause an overflow error.  It
		    is intended	for comparison of magnitudes.

     d <b>= arg(x<b>)	    Returns the	angle of x, measured in	radians	in the range
		    -J to J.

     y <b>= conj(x<b>)    Returns the	complex	conjugate of x.	 That is, if x is
		    (real, imag), then conj(x<b>) is (real, -imag).

     y <b>= polar(m<b>, a<b>)
		    Creates a complex given a pair of polar coordinates,
		    magnitude m, and angle a, measured in radians.

     d <b>= real(x<b>)    Returns the	real part of x.

     d <b>= imag(x<b>)    Returns the	imaginary part of x.

SEE ALSO    [Toc]    [Back]

     complex(3C++), cplxerr(3C++), cplxops(3C++), cplxexp(3C++), and

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
cplxops IRIX operators for the C++ complex math library
cplxerr IRIX error-handling function for the C++ Complex Math Library
intro_libm IRIX Introduction to math library routines
math HP-UX math functions, constants, and types
cplxtrig IRIX trigonometric and hyperbolic functions for the C++ complex library
cplxexp IRIX exponential, logarithm, power, square root functions for the C++ complex library
crtmathfnc IRIX Define a new math function for expressions
Math::BigFloat IRIX Arbitrary length float math package
Math::BigInt IRIX Arbitrary size integer math package
cmul Tru64 Complex functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service