double code(double c0, double A, double V, double l) {
return ((double) (c0 * ((double) sqrt(((double) (A / ((double) (V * l))))))));
}
double code(double c0, double A, double V, double l) {
return ((double) (((double) (((double) fabs(((double) (((double) cbrt(A)) / ((double) (((double) cbrt(l)) * ((double) cbrt(V)))))))) * c0)) * ((double) sqrt(((double) (((double) (((double) cbrt(A)) / ((double) cbrt(V)))) / ((double) cbrt(l))))))));
}



Bits error versus c0



Bits error versus A



Bits error versus V



Bits error versus l
Results
Initial program 18.8
rmApplied associate-/r*18.6
rmApplied add-cube-cbrt19.0
Applied add-cube-cbrt19.1
Applied add-cube-cbrt19.2
Applied times-frac19.2
Applied times-frac15.1
Applied sqrt-prod6.8
Applied associate-*r*6.8
Simplified1.1
Final simplification1.1
herbie shell --seed 2020181
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))