/home/ooechs/Ecj2Java/src/ac/essex/ooechs/ecj/ecj2java/example/individuals/MathsSolution2.java
|
package ac.essex.ooechs.ecj.ecj2java.example.individuals;
/**
Fitness: 967
Generated by ECJ2Java on Fri Dec 08 10:40:50 GMT 2006
**/
public class MathsSolution2 {
public double calculate(double x, double y) {
double func_3 = x * x;
double func_4 = func_3 > 0? Math.sqrt(func_3) : 0;
double func_7 = x + x;
double func_8 = func_7 > 0? Math.sqrt(func_7) : 0;
double func_11 = y == 0 ? 0 : x / y;
double func_12 = func_11 == 0 ? 0 : func_8 / func_11;
return func_4 + func_12;
}
}