Anonymous | Login | Signup for a new account | 2024-11-21 21:36 MSK |
Main | My View | View Issues | Change Log | Roadmap | Docs |
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 | ||||||||||||
|
Notes | |
(0000051) SergeyB (administrator) 2010-05-19 08:45 |
Something like this will be added in the next release, thanks! |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |