Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000333 [ALGLIB] AlgoPascal feature have not tried 2010-05-18 19:59 2010-06-16 10:52
Reporter artyomstv View Status public  
Assigned To SergeyB
Priority normal Resolution open  
Status assigned   Product Version
Summary 0000333: ap::complex power
Description It is useful to implement pow method for ap::complex class, like:

complex& operator^=(const double& p) {
    double r = pow(sqrt(x*x + y*y), p);
    double phi = p * (x >= 0. ? atan(y/x) : (y >= 0. ? atan(y/x) + M_PI : atan(y/x) - M_PI));
    x = r * cos(phi);
    y = r * sin(phi);
    return *this;
};
Additional Information
Programming language C++
Attached Files

- Relationships

-  Notes
(0000051)
SergeyB (administrator)
2010-05-19 08:45

Something like this will be added in the next release, thanks!

- Issue History
Date Modified Username Field Change
2010-05-18 19:59 artyomstv New Issue
2010-05-18 19:59 artyomstv Programming language => C++
2010-05-19 08:44 SergeyB Status new => assigned
2010-05-19 08:44 SergeyB Assigned To => SergeyB
2010-05-19 08:45 SergeyB Note Added: 0000051
2010-06-16 10:49 SergeyB Target Version => NEXT RELEASE


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker