But if you define it like this.
final int val;
It can be set initially, like in a constructor, but then can't change again. If you set the variables to private without outside access the users...
Type: Posts; User: jim829
But if you define it like this.
final int val;
It can be set initially, like in a constructor, but then can't change again. If you set the variables to private without outside access the users...
You need to verify your calculations in the inverteren method.
Regards,
Jim
A subtle error I believe.
re = ((re * y.real()) - (im * y.imaginair())); <----- re here is the current re
im = ((re * y.imaginair()) + (im * y.real())); <---- re here is the just modified re...
Not certain if this is the problem but the following code simply assigns temp, temp2, and temp3 the same reference. So if you make a change in one, the others are affected too.
ComplexGet...