-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
complexComplex numbersComplex numbersdesignDesign of APIs or of the language itselfDesign of APIs or of the language itselffeatureIndicates new feature / enhancement requestsIndicates new feature / enhancement requests
Description
I'm wondering if it is good to have AbstractComplex, I think this is pretty useful since there can be different representation format for complex number as well, and they should share some similar interface and be treated both as complex number. e.g
- complex number can be represented as radius and angle
- or in my case I would like to define a symbolic type for complex number, which will directly inherit most of the complex number interfaces and make a lot function "just work"
- in some cases we only use
exp(theta*im), it only need one floating point or number. - I believe there can be more...
on the other hand, currently use some traits might help, but this will make complex numbers different from other numbers...
PS. integers have Integer, real numbers have Real, but complex number have none... it is not fair :-)
simeonschaub, oxinabox, DilumAluthge, StefanKarpinski, nickrobinson251 and 10 more
Metadata
Metadata
Assignees
Labels
complexComplex numbersComplex numbersdesignDesign of APIs or of the language itselfDesign of APIs or of the language itselffeatureIndicates new feature / enhancement requestsIndicates new feature / enhancement requests