Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Replies
    14
    Views
    1,876

    Re: Simple error can't figure out.

    Another useless loop. squared only set from the last loop.


    for (int n = 0; n < array.length; n++)
    {
    subtracted = array[n] - mean; //subtracts mean from the array
    ...
  2. Replies
    14
    Views
    1,876

    Re: Simple error can't figure out.

    for (int n = 0; n < array.length; n++)
    {
    sqroot = Math.sqrt(divided);
    }

    This loop is doesn't do anything useful. In fact most of your loops are useless. Very few of...
  3. Replies
    14
    Views
    1,876

    Re: Simple error can't figure out.

    Did you remove ALL of the integer divisions?
  4. Replies
    14
    Views
    1,876

    Re: Simple error can't figure out.

    Your computations are going to be wrong if you do all the math using ints. For example: 11/6 = 1
Results 1 to 4 of 4