Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>mathematical functions</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Mathematical Functions

Usage

   #include <complex.hpp>

   friend complex exp(const complex&);
   friend complex log(const complex&);
   friend complex log10(const complex&);
   friend complex sqrt(const complex&);
   friend double abs(const complex&);
   friend complex pow(const complex&, double);
   friend complex pow(const complex&, const complex &);
   friend complex pow(double, const complex&);
   friend complex pow(const complex&, int);

Description

   The functions described in this section overload functions contained in
   the C math library to provide consistent complex support.

   In the following z is treated as a variable of type complex with a real

   part x and an imaginary part y both of type double. The variables a, z
   and z1 are of type complex, u is of type double and n is of type integer.

   a = log(z)      Returns the logarithm base e of z.
   a = log10(z)    Returns the logarithm base 10 of z.
   a = exp(z)      Returns the value of ez.
   a = sqrt(z)     Returns the square root of z, .z.
   u = abs(z)      Returns the absolute value of z, .(x.+y.)
   a = pow(z,n)    Returns z to the integer power of n.
   a = pow(z,u)    Returns z to the power of u.
   a = pow(z,z1)   Returns z to the power of z1.
   a = pow(u,z)    Returns u to the power of z.

See Also

   Complex Class, operators, trigonometric and hyperbolic functions, complex
   functions, mathematical functions



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson