Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I use a long double complex?

Status
Not open for further replies.

tgel76

Programmer
Jul 2, 2001
17
GB
Hi,
How can I declare a variable as lon double complex?
I want to use powl()and sqrtl() functions with complex number that I have calculate before and they are very big...

thanks
 
class complex
{
double r;
double y;
public:
complex& operator*=(complex x)
{
r*=x.r;
r-=y*x.y;
y=y*x.r+x.y*r;
return *this;
}
....
};

John Fill
1c.bmp


ivfmd@mail.md
 
You may also use complex class (include the complex.h file) that comes with the standard C++ library (Borland). It even has support for mathematical functions like log, exp, pow, sqrt etc. Ankan.

Please do correct me if I am wrong. s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top