How to multiply (a + bi)(a + bi) with this Complex Number Class?

Ohhh okay thank you that makes a lot more sense now! It actually is functional code now ha.

Would you happen to know the operation which would be exp(a+bi,n), where n is also a defined variable?
This post had several operations for math, but not exponential operations [Exponential grids / mobius transformations]. I’ve found this example elsewhere online, but it’s written for java.

    // return a new Complex object whose value is the complex exponential of this
    public Complex exp() {
        return new Complex(Math.exp(re) * Math.cos(im), Math.exp(re) * Math.sin(im));
    }