I'll just add that core matrix complex doesn't prevent you from using rationals, as most of the math happens on real/imaginary matrix pairs. However, any time you try to return a scalar value (not a matrix), it wraps the result using the alanforr library, so you'd be potentially restricted there, though I'm not sure if the alanforr library would automatically cast or error out. If someone came up with another complex library, it probably wouldn't be too hard to make that swappable, just as the underlying matrix implantations are presently (in core.matrix.complex).
Chris On Mon, Nov 2, 2015, 7:03 AM 'Alan Forrester' via Clojure < clojure@googlegroups.com> wrote: > On 2 Nov 2015, at 13:11, Grahack <christophegrag...@gmail.com> wrote: > > > I'm resurrecting this thread in case there is something new that > happened concerning complex numbers that was not logged here. > > So was there some progress made? > > > > I also wanted to add that mixing rationals and complex wuold be super > cool, like: > > > > (* 1/2 i) => i/2) > > There is now a complex number library that the Java commons-math3 Complex > library: > > https://github.com/alanforr/complex/. > > This library does not mix rationals and complex since the underlying Java > library uses doubles. > > Mike Anderson has written a complex matrix library: > > https://github.com/mikera/core.matrix.complex. > > Alan > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/lY1r6zw6LeU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Chris Sent via mobile -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.