A Complex Number Class For Java

--

Photo by Michiel Leunens on Unsplash

Does Java have an implementation for complex numbers? No, it doesn’t have a dedicated Class. It’s strange but not all that strange (Complex Number implementation is trivial), the JDK does not have one but here is an implementation I have written: https://github.com/mcaliman/JavaComplexNumber

However, there are third-party libraries for working with Complex, for example:

Apache Commons http://commons.apache.org/proper/commons-math/userguide/complex.html

My project is work in progress. Stay tuned! Next implementation: Generics, support for BigDecimal. What would you like me to add about?

You can find this post and others on my blog: trueprogramming.com

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Massimo Caliman
Massimo Caliman

Written by Massimo Caliman

Software Architect, Developer, Java enthusiast

No responses yet

Write a response