home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / c++ / cplxexp.z / cplxexp
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  69 lines

  1. CPLXEXP(3C)                                           Last changed: 3-22-99
  2.  
  3.  
  4. NNAAMMEE
  5.      eexxpp, lloogg, ppooww, ssqqrrtt - Exponential, logarithm, power, square root
  6.      functions for the C++ complex library
  7.  
  8. SSYYNNOOPPSSIISS
  9.      ##iinncclluuddee <<ccoommpplleexx..hh>>
  10.  
  11.      ccllaassss ccoommpplleexx {{
  12.  
  13.      ppuubblliicc::
  14.           ffrriieenndd ccoommpplleexx eexxpp((ccoommpplleexx));;
  15.           ffrriieenndd ccoommpplleexx lloogg((ccoommpplleexx));;
  16.           ffrriieenndd ccoommpplleexx ppooww((ddoouubbllee,, ccoommpplleexx));;
  17.           ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, iinntt));;
  18.           ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, ddoouubbllee));;
  19.           ffrriieenndd ccoommpplleexx ppooww((ccoommpplleexx,, ccoommpplleexx));;
  20.           ffrriieenndd ccoommpplleexx ssqqrrtt((ccoommpplleexx));;
  21.  
  22.      }};;
  23.  
  24. IIMMPPLLEEMMEENNTTAATTIIOONN
  25.      IRIX systems (--oo3322 ABI only)
  26.  
  27. DDEESSCCRRIIPPTTIIOONN
  28.           NOTE: This man page applies only to the --oo3322 ABI.  The MIPSpro
  29.           --nn3322 and --6644 ABIs support the template-based complex class which
  30.           is included in the C++ standard library and is automatically
  31.           loaded by the MIPSpro C++ compiler.  The --llmm option must still be
  32.           used to link the math library.
  33.  
  34.      The following math functions are overloaded by the complex library,
  35.      where:
  36.       - _x, _y, and _z are of type ccoommpplleexx.
  37.  
  38.      _z == eexxpp((_x))     Returns _e_x.
  39.  
  40.      _z == lloogg((_x))     Returns the natural logarithm of _x.
  41.  
  42.      _z == ppooww((_x,, _y))  Returns _x_y.
  43.  
  44.      _z == ssqqrrtt((_x))    Returns the square root of _x, contained in the first or
  45.                     fourth quadrants of the complex plane.
  46.  
  47. DDIIAAGGNNOOSSTTIICCSS
  48.      eexxpp returns ((00,, 00)) when the real part of _x is so small, or the
  49.      imaginary part is so large, as to cause overflow.  When the real part
  50.      is large enough to cause overflow, eexxpp returns ((HHUUGGEE,, HHUUGGEE)) if the
  51.      cosine and sine of the imaginary part of _x are positive, ((HHUUGGEE,, --HHUUGGEE))
  52.      if the cosine is positive and the sine is not, ((--HHUUGGEE,, HHUUGGEE)) if the
  53.      sine is positive and the cosine is not, and ((--HHUUGGEE,, --HHUUGGEE)) if neither
  54.      sine nor cosine is positive.  In all of these cases, _e_r_r_n_o is set to
  55.      EERRAANNGGEE.
  56.  
  57.      lloogg returns ((--HHUUGGEE,, 00)) and sets _e_r_r_n_o to EEDDOOMM when _x is ((00,, 00)).  A
  58.      message indicating that SSIINNGG error is printed on the standard error
  59.      output.
  60.  
  61.      These error-handling procedures may be changed with the function
  62.      ccoommpplleexx__eerrrroorr [ccppllxxeerrrr(3C)].
  63.  
  64. SSEEEE AALLSSOO
  65.      ccoommpplleexx(3C), ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxttrriigg(3C)
  66.  
  67.      This man page is available only online.  C++ complex math library math
  68.      library functions
  69.