Mantis - ALGLIB
Viewing Issue Advanced Details
333 AlgoPascal feature have not tried 2010-05-18 19:59 2010-06-16 10:52
artyomstv  
SergeyB  
normal  
assigned  
open  
none    
none  
C++
0000333: ap::complex power
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;
};
Issue History
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

Notes
(0000051)
SergeyB   
2010-05-19 08:45   
Something like this will be added in the next release, thanks!