Search:

Type: Posts; User: jim829

Search: Search took 0.10 seconds.

  1. Thread: Complex Numbers

    by jim829
    Replies
    18
    Views
    1,418

    [SOLVED] Re: Complex Numbers

    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...
  2. Thread: Complex Numbers

    by jim829
    Replies
    18
    Views
    1,418

    [SOLVED] Re: Complex Numbers

    You need to verify your calculations in the inverteren method.

    Regards,
    Jim
  3. Thread: Complex Numbers

    by jim829
    Replies
    18
    Views
    1,418

    [SOLVED] Re: Complex Numbers

    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...
  4. Thread: Complex Numbers

    by jim829
    Replies
    18
    Views
    1,418

    [SOLVED] Re: Complex Numbers

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