icomplex.h
00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00026
#ifndef __IMPROLA_COMPLEX_H__
00027
#define __IMPROLA_COMPLEX_H__
00028
00029
#include <cmath>
00030
00031 namespace mutk
00032 {
00033
00036 class Complex
00037 {
00038
00041
friend Complex operator+(
Complex c1,
Complex c2);
00042
00045
friend Complex operator+(
Complex c,
double r);
00046
00049
friend Complex operator+(
double r,
Complex c);
00050
00053
friend Complex operator-(
Complex c1,
Complex c2);
00054
00057
friend Complex operator-(
Complex c,
double r);
00058
00061
friend Complex operator-(
double r,
Complex c);
00062
00065
friend Complex operator*(
Complex c1,
Complex c2);
00066
00069
friend Complex operator*(
Complex c,
double r);
00070
00073
friend Complex operator*(
double r,
Complex c);
00074
00077
friend Complex operator/(
Complex c,
double r);
00078
00081
friend Complex operator/(
Complex c1,
Complex c2);
00082
00083
public:
00087
Complex(
void);
00088
00091
Complex(
double r);
00092
00095
Complex(
double r,
double i);
00096
00099
double abs(
void);
00100
00103
double arg(
void);
00104
00107 double real;
00108
00111 double imag;
00112 };
00113
00114 }
00115
00116
#endif // __IMPROLA_COMPLEX_H__
00117
Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by
1.3.7