Mantis - ALGLIB
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
333 | AlgoPascal | feature | have not tried | 2010-05-18 19:59 | 2010-06-16 10:52 |
|
|||||
Reporter: | artyomstv | Platform: | |||
Assigned To: | SergeyB | OS: | |||
Priority: | normal | OS Version: | |||
Status: | assigned | Product Version: | |||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
Programming language: | C++ | ||||
|
|||||
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; }; |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: | |||||
|
|||||
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 |
Notes | |||||
|
|||||
|
|