I want to write a little function that solves the following equation for real values only (as opposed to imaginary):
a*x^2 + b*x + c = 0;
My attempt is working, but I am not successfully passing back the values r1 and r2 to the calling function.
Is this possible in
java? I thought everything except primitives were passed by reference in java!
Thanks
Siegfried