Great! Thank you for the detailed response Mr. Brannon. That really helped to clear things up for me. I was at a cross roads with the output, but I think I can figure it out from here.
Type: Posts; User: javaStooge
Great! Thank you for the detailed response Mr. Brannon. That really helped to clear things up for me. I was at a cross roads with the output, but I think I can figure it out from here.
So, I should just use a character variable i instead of assigning i a value of sqrt(-1)? Given that, the code still seems much easier than what I've seen elsewhere on the web. I think I am missing...
You are right, it is redundant to state the obvious with a method that is meant to perform only one function in the program. I think I was just playing around and glad
that it worked when I tried...
thank you for the feedback Norm. I used a different formula for the division that didn't involve Math.pow(). I hope that I am doing the right thing here.
public class Program5 {
static...
Problem: A complex number is defined as z=a+i*b, where a is the real part, and b is the imaginary part. In other words, in order to define a complex number, we need the two floating numbers a and b....