Skip to main content
9 events
when toggle format what by license comment
Jan 6, 2016 at 8:09 history closed Will Jagy
José Figueroa-O'Farrill
Lucia
Alexey Ustinov
Wolfgang
Needs details or clarity
Jan 6, 2016 at 7:24 comment added eric exp(2+3i) is a complex number in all the existing software I've used; a complex number is a pair of reals; a real number is the usual PITA if you want more accuracy than double/long etc. If you're writing a new software library then it might be a good idea to spend some time playing with existing libraries to see what they do?
Jan 5, 2016 at 23:46 review Close votes
Jan 6, 2016 at 8:09
Jan 5, 2016 at 23:41 comment added user26415 @eric - I am not looking for software to use: I am writing a new software library to compute with those numbers. That library with have +, -, *, /, but also transcendentals. "take you into" would mean that the type coming out of some functions would depend on the arguments of the functions, which could be problematic. Hence my question: if the user uses my library to calculate exp(2+3i), for example, what would be reasonable to return? Or what do other existing software, like pari, ... do?
Jan 5, 2016 at 23:26 comment added user26415 OK - I'll retire my question... or maybe not. Mark is getting me the kind of answer I was looking for.
Jan 5, 2016 at 23:25 review First posts
Jan 5, 2016 at 23:41
Jan 5, 2016 at 23:25 answer added Mark Fischler timeline score: 1
Jan 5, 2016 at 23:21 comment added eric This question is unanswerable in my mind unless you are far more precise about what you mean by "some operations". Magma, sage, pari etc all implement number fields and there Z[i] is implemented exactly; some operations take you into Q(i) which is also implemented exactly; others, like transcendental operations, take you into the complexes so then you just round. This is not really a site for computer software either; try stackoverflow? But people won't know what software to suggest until they know more precisely what you want to do.
Jan 5, 2016 at 23:14 history asked user26415 CC BY-SA 3.0