Hi there, I have to calculate the pithagorean triplets up to 500 (it's an exercise I found on the deitel and deitel book) and I got a little stuck, in that it looks like I am getting an infinite loop. The exercise says to use a triple for loop, but obviously something is wrong there, well, I got something wrong there.
ANyway, here are the files:

//TripletsTest.java
public class TripletsTest{
    public static void main( String[] args){
        Triplets theTriplets = new Triplets(500);
        theTriplets.calculateTriplets();
        }   
    }



and



/*
Triplets.java
Write an application that displays a table of Pythagorean triple for side1, side2 and hypothenuse.
*/
public class Triplets{

    private double side1;//double because Math.pow takes 2 double arguments
    private double side2;
    private double hypothenuse;
    private int limitValue;

    //constructor
    public Triplets(int limit){
        limitValue = limit;
        }

    public void calculateTriplets(){

        for(int i = 0; i <= limitValue; i++,side1++){
                side1 = Math.pow(side1, 2);     

                for(int j = 0; j <= limitValue; j++,side2++){
                    side2 = Math.pow(side2, 2);             

                    for(int k = 0; k <= limitValue; k++,hypothenuse++ ){
                        hypothenuse = Math.pow(hypothenuse, 2);

                        if((side1 + side2) == hypothenuse ){
                                System.out.printf("%f\t: %f\t: %f\t",
                                side1, side2, hypothenuse );                            
                            }//if                           
                        }//inner loop
                    }//side2 loop
            }//outer loop       
        }           
    }

Any suggestion at all?
thanks

As an experiment, try this:

    double value = 0;
    for(int i = 0; i <= 500; i++)
    {
        value++;
        value = Math.pow(value,2);
        System.out.printf("%d: %f%n", i, value);
        if(value == Double.POSITIVE_INFINITY) break;
    }

Notice that it only takes 11 times through the loop before it gets to infinity and stops. That's what your application is doing, except that it has no break to stop it when it gets to infinity, and once side2 and hypothenuse are both infinite then (side1 + side2) == hypothenuse will always be true. This happens almost immediately, so your application is printing out about 126 million lines (501 x 501 x 501), but it's not infinite.

I added System.out.println Statements throughout your different loops and it kept repeating THIRD LOOP meaning your final loop is where it is getting stuck.

Other than that I can't really find whats wrong myself. Add lots of System.out.println() to your code to see whats being repeated and what is not. That's what I do when I get into complex loops.

Alright so I went through and changed your code a little bit. Don't know if it will help you at all. Anyways, I thought maybe because the ints were private that the loops were not recognizing them, which is why you were stuck in an infinite loop. Not sure if that is correct or not so correct me if i'm wrong. Here is my code. It doesn't get stuck in an infinite loop.

/*
Triplets.java
Write an application that displays a table of Pythagorean triple for side1, side2 and hypothenuse.
*/

import java.lang.Math;

public class Triplets {

    public static void main (String[] args) {

        int limitValue = Integer.parseInt(args[0]);
        calculateTriplets(limitValue);

    }

    public static void calculateTriplets(int limitValue){

        double side1=0;
        double side2=0;
        double hypothenuse=0;

        for(int i = 0; i < limitValue; i++, side1++){

            side1 = Math.pow(side1, 2.0);   

            System.out.println("FIRST LOOP");  

            for(int j = 0; j < limitValue; j++, side2++){

                side2 = Math.pow(side2, 2.0);

                System.out.println("SECOND LOOP");               

                for(int k = 0; k < limitValue; k++, hypothenuse++){

                    hypothenuse = Math.pow(hypothenuse, 2.0);

                    System.out.println("THIRD LOOP");  

                    if((side1 + side2) == hypothenuse ){

                        System.out.println("S1: " + side1 + "\tS2: " + side2
                            + "\tHypot.: " + hypothenuse);

                    }                                              
                }            
            }      
        }    
    }              
}




//TripletsTest.java
public class TripletsTest {

    public static void main( String[] args){

        Triplets program = new Triplets();
        System.out.println("\n" + "Start Triplets Test");
        String[] arg = {"10"};
        program.main(arg);
        System.out.println("End of Triplets Test" + "\n");

    } 

}

Here is what my terminal is outputting:

Start Triplets Test
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 0.0 S2: 0.0 Hypot.: 0.0
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
FIRST LOOP
SECOND LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
THIRD LOOP
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.0 S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.0 S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 25.0    S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 676.0   S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 458329.0    S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 2.100663889E11  S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 4.4127887745906175E22   S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 1.9472704769152963E45   S2: Infinity    Hypot.: Infinity
FIRST LOOP
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
SECOND LOOP
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
THIRD LOOP
S1: 3.7918623102659254E90   S2: Infinity    Hypot.: Infinity
End of Triplets Test

thanks for you comments guys.
@bguild. It is interesting to find out that somehow all the values (I printed off them allSystem.out.println("\nSide1 is " + side1 + " side2 is " + side2+ " hypothenuse is " + hypothenuse);)
get to infinity, what I don't undestand is why they get to infinity in the first place. Then I realized that perhaps it's because I don't set any limit
to side1, side2 and hypothenuse, in that they keep incrementing, so that's might be why. SO I run a little test, and changed the three loops to this

        for(int i = 0; i <= limitValue && side1 <= limitValue; i++,side1++){
                side1 = Math.pow(side1, 2);     

                for(int j = 0; j <= limitValue && side2 <= limitValue; j++,side2++){
                    side2 = Math.pow(side2, 2);             

                    for(int k = 0; k <= limitValue && hypothenuse <= limitValue; k++,hypothenuse++ ){
                        hypothenuse = Math.pow(hypothenuse, 2);
System.out.println("\nSide1 is " + side1 + " side2 is " + side2+  " hypothenuse is " + hypothenuse);                    
                        if((side1 + side2) == hypothenuse ){
                                System.out.printf("%f\t: %f\t: %f\t",
                                side1, side2, hypothenuse );    

                            }//if                           
                        }//inner loop
                    }//side2 loop
            }//outer loop       

I added 3 more conditions to make sure that side1, side2 and hypothenuse don't grow to infinite, but still I got some funny output, here's what I got:

Side1 is 0.0 side2 is 0.0 hypothenuse is 0.0
0.000000        : 0.000000      : 0.000000
Side1 is 0.0 side2 is 0.0 hypothenuse is 1.0

Side1 is 0.0 side2 is 0.0 hypothenuse is 4.0

Side1 is 0.0 side2 is 0.0 hypothenuse is 25.0

Side1 is 0.0 side2 is 0.0 hypothenuse is 676.0

uhm...what do you make of it? I mean whu is the hypothenuse going up to 676 if the limit is 500? and why the loop runs only a few times?

@pattmorter
I don't think the fact that the variables are private could affect the ability of the loop to use them. The loops are in a public method, so they can access them and also they should be automatically set to 0.0 if the constructor is not present...I believe
No idea what's going on here

that said, taking this as example http://www.daniweb.com/software-development/cpp/threads/345155/calculating-the-pythagorean-triples and adapting it to java I came up with this:

...
for(int i = 1; i <= limitValue; i++){
                side1 = i;
                for(int j = 1; j <= limitValue; j++){
                    side2 = j;
                    for(int k = 1; k <= limitValue; k++){
                        hypothenuse = k;
                        if((Math.pow(side1,2)) + (Math.pow(side2,2)) == (Math.pow(hypothenuse,2))){
                        //System.out.println("third loop");
                                System.out.printf("%f\t: %f\t: %f\t\n",
                                side1, side2, hypothenuse );    

                            }//if
                    }
                }
            }
...

which produced what looks like the desired output (I went up to 50 and not 500):

3.000000        : 4.000000      : 5.000000
4.000000        : 3.000000      : 5.000000
5.000000        : 12.000000     : 13.000000
6.000000        : 8.000000      : 10.000000
7.000000        : 24.000000     : 25.000000
8.000000        : 6.000000      : 10.000000
8.000000        : 15.000000     : 17.000000
9.000000        : 12.000000     : 15.000000
9.000000        : 40.000000     : 41.000000
10.000000       : 24.000000     : 26.000000
12.000000       : 5.000000      : 13.000000
12.000000       : 9.000000      : 15.000000
12.000000       : 16.000000     : 20.000000
12.000000       : 35.000000     : 37.000000
14.000000       : 48.000000     : 50.000000
15.000000       : 8.000000      : 17.000000
15.000000       : 20.000000     : 25.000000
15.000000       : 36.000000     : 39.000000
16.000000       : 12.000000     : 20.000000
16.000000       : 30.000000     : 34.000000
18.000000       : 24.000000     : 30.000000
20.000000       : 15.000000     : 25.000000
20.000000       : 21.000000     : 29.000000
21.000000       : 20.000000     : 29.000000
21.000000       : 28.000000     : 35.000000
24.000000       : 7.000000      : 25.000000
24.000000       : 10.000000     : 26.000000
24.000000       : 18.000000     : 30.000000
24.000000       : 32.000000     : 40.000000
27.000000       : 36.000000     : 45.000000
28.000000       : 21.000000     : 35.000000
30.000000       : 16.000000     : 34.000000
30.000000       : 40.000000     : 50.000000
32.000000       : 24.000000     : 40.000000
35.000000       : 12.000000     : 37.000000
36.000000       : 15.000000     : 39.000000
36.000000       : 27.000000     : 45.000000
40.000000       : 9.000000      : 41.000000
40.000000       : 30.000000     : 50.000000
48.000000       : 14.000000     : 50.000000

the thing is...why this is right and the other one is wrong?!

One problem was that you weren't testing every possible value of hypothenuse. Notice in the good code it checks every possible value from 1 to limitvalue. That may be a bit brute-force since most of the values tested turn out to be useless, but at least it is guaranteed to find every good value.

You incremented hypothenuse by huge leaps, skipping over most of the possible values every time you did a hypothenuse = Math.pow(hypothenuse,2). So instead of the boring predictable 1,2,3... you end up with a 1,4,25,676....

Also, the good code tests each possible value for hypothenuse many, many times, while you only tested each value once. You really need to test each value of the hypothenuse once for every possible pair of sides, not just once in total. I mean for side1 = 1 and side2 = 1, test every possible hypothenuse from 1 to limitvalue, then do it all again for side1 = 1 and side2 = 2, starting back at hypothenuse = 1. That's an enormous number of tests, but at least it guarantees that you won't miss anything. On the other hand, your broken code started at hypothenuse = 1 and then just kept counting up, never looking back.

thanks bguild, it all makes sense now that you have explained it. I guess I have lost the actual value of the variable while I was incrementing it, will try to be more careful next time : - )!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.