Timeline for operations with complex numbers in C++
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 17, 2018 at 13:16 | history | edited | agneau |
edited tags
|
|
Mar 17, 2018 at 13:16 | comment | added | agneau | @TobySpeight no there's no good reason, I'm just doing homeworks! I'll add the tag | |
Mar 16, 2018 at 10:38 | comment | added | Toby Speight |
Is there a good reason not to use std::complex<double> here? If you're making your own for a learning exercise, you should add reinventing-the-wheel to your tags.
|
|
Mar 16, 2018 at 8:55 | comment | added | agneau | @greybeard because part of the exercise given to me by my teacher is to solve the problem without overloading | |
Mar 16, 2018 at 8:52 | vote | accept | agneau | ||
Mar 16, 2018 at 5:40 | answer | added | user1118321 | timeline score: 5 | |
Mar 16, 2018 at 5:22 | comment | added | Gareth Ma | So the angles? @user1118321 EDIT: It is radius and angle as we can see below arctangent and radius | |
Mar 16, 2018 at 3:38 | comment | added | user1118321 | @KGSHbteamMineTeamBeastO_ ro = the Greek letter rho (ρ) and fi is the Greek letter phi (φ). | |
Mar 16, 2018 at 0:14 | comment | added | greybeard | (This is not CR chat. Both yield complex results. I don't, but: Why not (operator…) overloading?) | |
Mar 16, 2018 at 0:11 | comment | added | agneau | @greybeard my aim is to make possible either a sum of complex+complex either complex+real. Do you know how can I do it without overloading? | |
Mar 16, 2018 at 0:08 | comment | added | agneau | @greybeard I will add some 'if' in order to cover safely every bad value at the denominator, but still I don't know how to improve the inverso function... as for the sum and product, I'm thinking to change them and to include them as members of the class | |
Mar 16, 2018 at 0:03 | comment | added | agneau | @KGSHbteamMineTeamBeastO_ ro it's the modulus of a complex number and fi it's the phase | |
Mar 15, 2018 at 23:51 | review | Suggested edits | |||
Mar 16, 2018 at 0:16 | |||||
Mar 15, 2018 at 23:50 | comment | added | Gareth Ma | what is ro and fi? (PS new C++ Learner still trying to learn, good at maths only insert laugh) | |
Mar 15, 2018 at 23:47 | comment | added | agneau | @greybeard Yeah that's right! I hadn't checked that case! And I have to work on the inverso function... Tomorrow I'll edit everything hopefully | |
Mar 15, 2018 at 23:38 | comment | added | greybeard |
(Same for Complex(0, y) . Does inverso() work? The set_Rez() should change ro "before Imz gets computed".)
|
|
Mar 15, 2018 at 23:32 | comment | added | greybeard |
(set_ro() /fi look dangerous for zero. Or non-paired use, come think of it.)
|
|
Mar 15, 2018 at 22:50 | review | First posts | |||
Mar 15, 2018 at 23:38 | |||||
Mar 15, 2018 at 22:50 | history | asked | agneau | CC BY-SA 3.0 |