home *** CD-ROM | disk | FTP | other *** search
- CPLXEXP(3C) Last changed: 3-22-99
-
-
- NNAAMMEE
- eexxpp, lloogg, ppooww, ssqqrrtt - Exponential, logarithm, power, square root
- functions for the C++ complex library
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ccoommpplleexx..hh>>
-
- ccllaassss ccoommpplleexx {{
-
- ppuubblliicc::
- ffrriieenndd ccoommpplleexx eexxpp((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx lloogg((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ppooww((ddoouubbllee,, ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, iinntt));;
- ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, ddoouubbllee));;
- ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ssqqrrtt((ccoommpplleexx));;
-
- }};;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems (--oo3322 ABI only)
-
- DDEESSCCRRIIPPTTIIOONN
- NOTE: This man page applies only to the --oo3322 ABI. The MIPSpro
- --nn3322 and --6644 ABIs support the template-based complex class which
- is included in the C++ standard library and is automatically
- loaded by the MIPSpro C++ compiler. The --llmm option must still be
- used to link the math library.
-
- The following math functions are overloaded by the complex library,
- where:
- - _x, _y, and _z are of type ccoommpplleexx.
-
- _z == eexxpp((_x)) Returns _e_x.
-
- _z == lloogg((_x)) Returns the natural logarithm of _x.
-
- _z == ppooww((_x,, _y)) Returns _x_y.
-
- _z == ssqqrrtt((_x)) Returns the square root of _x, contained in the first or
- fourth quadrants of the complex plane.
-
- DDIIAAGGNNOOSSTTIICCSS
- eexxpp returns ((00,, 00)) when the real part of _x is so small, or the
- imaginary part is so large, as to cause overflow. When the real part
- is large enough to cause overflow, eexxpp returns ((HHUUGGEE,, HHUUGGEE)) if the
- cosine and sine of the imaginary part of _x are positive, ((HHUUGGEE,, --HHUUGGEE))
- if the cosine is positive and the sine is not, ((--HHUUGGEE,, HHUUGGEE)) if the
- sine is positive and the cosine is not, and ((--HHUUGGEE,, --HHUUGGEE)) if neither
- sine nor cosine is positive. In all of these cases, _e_r_r_n_o is set to
- EERRAANNGGEE.
-
- lloogg returns ((--HHUUGGEE,, 00)) and sets _e_r_r_n_o to EEDDOOMM when _x is ((00,, 00)). A
- message indicating that SSIINNGG error is printed on the standard error
- output.
-
- These error-handling procedures may be changed with the function
- ccoommpplleexx__eerrrroorr [ccppllxxeerrrr(3C)].
-
- SSEEEE AALLSSOO
- ccoommpplleexx(3C), ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxttrriigg(3C)
-
- This man page is available only online. C++ complex math library math
- library functions
-