Anonymous | Login | Signup for a new account | 2024-09-08 03:35 MSK |
Main | My View | View Issues | Change Log | Roadmap | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | ||||||||
Status | assigned | OS | ||||||||||
Projection | none | OS Version | ||||||||||
ETA | none | Fixed in Version | Product Version | |||||||||
Target Version | 3.0.0.rc1 | Product Build | ||||||||||
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 | ||||||||||||
Programming language | C++ | |||||||||||
Attached Files | ||||||||||||
|
![]() |
|
(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 |