home *** CD-ROM | disk | FTP | other *** search
Wrap
CCCCPPPPLLLLXXXX....IIIINNNNTTTTRRRROOOO((((3333CCCC++++++++)))) CCCCPPPPLLLLXXXX....IIIINNNNTTTTRRRROOOO((((3333CCCC++++++++)))) NNNNAAAAMMMMEEEE complex - introduction to C++ complex mathematics library SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._hhhh_>>>> _cccc_llll_aaaa_ssss_ssss _cccc_oooo_mmmm_pppp_llll_eeee_xxxx_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN This section describes functions and operators found in the C++ Complex Mathematics Library, _llll_iiii_bbbb_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._aaaa. These functions are not automatically loaded by the C++ compiler, _CCCC_CCCC(1); however, the link editor searches this library under the _----_llll_cccc_oooo_mmmm_pppp_llll_eeee_xxxx option. Declarations for these functions may be found in the _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee file _<<<<_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._hhhh_>>>>. When compiling programs using the complex library, users must provide the _----_llll_mmmm options on the _CCCC_CCCC command line to link the math library. The Complex Mathematics library implements the data type of complex numbers as a class, _cccc_oooo_mmmm_pppp_llll_eeee_xxxx. It overloads the standard input, output, arithmetic, assignment, and comparison operators, discussed in the manual pages for _cccc_pppp_llll_xxxx_oooo_pppp_ssss(3C++). It also overloads the standard exponential, logarithm, power, and square root functions, discussed in _cccc_pppp_llll_xxxx_eeee_xxxx_pppp(3C++), and the trigonometric functions of sine, cosine, hyperbolic sine, and hyperbolic cosine, discussed in _cccc_pppp_llll_xxxx_tttt_rrrr_iiii_gggg(3C++), for the class _cccc_oooo_mmmm_pppp_llll_eeee_xxxx. Routines for converting between Cartesian and polar coordinate systems are discussed in _cccc_aaaa_rrrr_tttt_pppp_oooo_llll(3C++). Error handling is described in _cccc_pppp_llll_xxxx_eeee_rrrr_rrrr(3C++). FFFFIIIILLLLEEEESSSS _IIII_NNNN_CCCC_DDDD_IIII_RRRR_////_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._hhhh _LLLL_IIII_BBBB_DDDD_IIII_RRRR_////_llll_iiii_bbbb_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._aaaa SSSSEEEEEEEE AAAALLLLSSSSOOOO _cccc_aaaa_rrrr_tttt_pppp_oooo_llll(3C++), _cccc_pppp_llll_xxxx_eeee_rrrr_rrrr(3C++), _cccc_pppp_llll_xxxx_oooo_pppp_ssss(3C++), _cccc_pppp_llll_xxxx_eeee_xxxx_pppp(3C++), and _cccc_pppp_llll_xxxx_tttt_rrrr_iiii_gggg(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. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS Functions in the Complex Mathematics Library (3C++) may return the conventional values _((((_0000_,,,, _0000_)))), _((((_0000_,,,, _++++_____HHHH_UUUU_GGGG_EEEE_)))), _((((_++++_____HHHH_UUUU_GGGG_EEEE_,,,, _0000_))))_,,,, or _((((_++++_____HHHH_UUUU_GGGG_EEEE_,,,, _++++_____HHHH_UUUU_GGGG_EEEE_)))), when the function is undefined for the given arguments or when the value is not representable. _((((_HHHH_UUUU_GGGG_EEEE is the largest-magnitude single-precision floating-point number and is defined in the file _<<<<_mmmm_aaaa_tttt_hhhh_...._hhhh_>>>>. The header file _<<<<_mmmm_aaaa_tttt_hhhh_...._hhhh_>>>> is included in the file _<<<<_cccc_oooo_mmmm_pppp_llll_eeee_xxxx_...._hhhh_>>>>.) In these cases, the external variable _eeee_rrrr_rrrr_nnnn_oooo [see _iiii_nnnn_tttt_rrrr_oooo(2)] is set to the value _EEEE_DDDD_OOOO_MMMM or _EEEE_RRRR_AAAA_NNNN_GGGG_EEEE. PPPPaaaaggggeeee 1111