home *** CD-ROM | disk | FTP | other *** search
- COMPLEX(3C) Last changed: 3-22-99
-
-
- NNAAMMEE
- ccoommpplleexx - Introduction to C++ complex mathematics library
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ccoommpplleexx..hh>>
- ccllaassss 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.
-
- This section describes functions and operators found in the C++
- Complex Mathematics Library, lliibbccoommpplleexx..aa. These functions are not
- automatically loaded by the C++ compiler, CCCC(1); however, the link
- editor searches this library under the --llccoommpplleexx option. Declarations
- for these functions may be found in the <<ccoommpplleexx..hh>> ##iinncclluuddee file.
- When compiling programs using the complex library, users must provide
- the --llmm options on the CCCC command line to link the math library.
-
- The Complex Mathematics library implements the data type of complex
- numbers as a class, ccoommpplleexx. It overloads the standard input, output,
- arithmetic, assignment, and comparison operators, discussed in the
- manual pages for ccppllxxooppss(3C). It also overloads the standard
- exponential, logarithm, power, and square root functions, discussed in
- ccppllxxeexxpp(3C), and the trigonometric functions of sine, cosine,
- hyperbolic sine, and hyperbolic cosine, discussed in ccppllxxttrriigg(3C), for
- the class ccoommpplleexx. Routines for converting between Cartesian and
- polar coordinate systems are discussed in ccaarrttppooll(3C). Error handling
- is described in ccppllxxeerrrr(3C).
-
- DDIIAAGGNNOOSSTTIICCSS
- Functions in the Complex Mathematics Library may return the
- conventional values ((00,, 00)), ((00,, +__+HHUUGGEE)), ((+__+HHUUGGEE,, 00)),, or ((+__+HHUUGGEE,, +__+HHUUGGEE)),
- when the function is undefined for the given arguments or when the
- value is not representable. ((HHUUGGEE is the largest-magnitude single-
- precision floating-point number and is defined in the file <<mmaatthh..hh>>.
- The header file <<mmaatthh..hh>> is included in the file <<ccoommpplleexx..hh>>.) In
- these cases, the external variable eerrrrnnoo [see iinnttrroo(2)] is set to the
- value EEDDOOMM or EERRAANNGGEE.
-
- FFIILLEESS
- IINNCCDDIIRR//ccoommpplleexx..hh
- LLIIBBDDIIRR//lliibbccoommpplleexx..aa
-
- SSEEEE AALLSSOO
- ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C), ccppllxxttrriigg(3C)
-
- Stroustrup, B., ``Complex Arithmetic in C++,'' Chapter 1 of the _C++
- _L_a_n_g_u_a_g_e _S_y_s_t_e_m _R_e_l_e_a_s_e _2._1 _L_i_b_r_a_r_y _M_a_n_u_a_l
-
- This man page is available only online.
-