Search:

Type: Posts; User: javaStooge

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    5,618

    Re: Complex Number Calculations

    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.
  2. Replies
    8
    Views
    5,618

    Re: Complex Number Calculations

    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...
  3. Replies
    8
    Views
    5,618

    Re: Complex Number Calculations

    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...
  4. Replies
    8
    Views
    5,618

    Re: Complex Number Calculations

    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...
  5. Replies
    8
    Views
    5,618

    Complex Number Calculations

    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....
Results 1 to 5 of 5