Average Error: 18.9 → 2.2
Time: 13.8s
Precision: binary64
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
\[c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \left(\sqrt{\sqrt[3]{\sqrt[3]{A}} \cdot \frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{V} \cdot \sqrt[3]{\ell}}}\right)\right)\]
c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \left(\sqrt{\sqrt[3]{\sqrt[3]{A}} \cdot \frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{V} \cdot \sqrt[3]{\ell}}}\right)\right)
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
 :precision binary64
 (*
  c0
  (*
   (fabs (/ (cbrt A) (cbrt V)))
   (*
    (sqrt (* (cbrt (cbrt A)) (/ (cbrt (cbrt A)) (* (cbrt l) (cbrt l)))))
    (sqrt (/ (cbrt (cbrt A)) (* (cbrt V) (cbrt l))))))))
double code(double c0, double A, double V, double l) {
	return c0 * sqrt(A / (V * l));
}
double code(double c0, double A, double V, double l) {
	return c0 * (fabs(cbrt(A) / cbrt(V)) * (sqrt(cbrt(cbrt(A)) * (cbrt(cbrt(A)) / (cbrt(l) * cbrt(l)))) * sqrt(cbrt(cbrt(A)) / (cbrt(V) * cbrt(l)))));
}

Error

Bits error versus c0

Bits error versus A

Bits error versus V

Bits error versus l

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 18.9

    \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
  2. Using strategy rm
  3. Applied add-cube-cbrt_binary64_114619.2

    \[\leadsto c0 \cdot \sqrt{\frac{\color{blue}{\left(\sqrt[3]{A} \cdot \sqrt[3]{A}\right) \cdot \sqrt[3]{A}}}{V \cdot \ell}}\]
  4. Applied associate-/l*_binary64_105619.2

    \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{\frac{V \cdot \ell}{\sqrt[3]{A}}}}}\]
  5. Simplified17.9

    \[\leadsto c0 \cdot \sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{\color{blue}{\frac{V}{\frac{\sqrt[3]{A}}{\ell}}}}}\]
  6. Using strategy rm
  7. Applied div-inv_binary64_110817.9

    \[\leadsto c0 \cdot \sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{\frac{V}{\color{blue}{\sqrt[3]{A} \cdot \frac{1}{\ell}}}}}\]
  8. Applied add-cube-cbrt_binary64_114618.0

    \[\leadsto c0 \cdot \sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{\frac{\color{blue}{\left(\sqrt[3]{V} \cdot \sqrt[3]{V}\right) \cdot \sqrt[3]{V}}}{\sqrt[3]{A} \cdot \frac{1}{\ell}}}}\]
  9. Applied times-frac_binary64_111717.2

    \[\leadsto c0 \cdot \sqrt{\frac{\sqrt[3]{A} \cdot \sqrt[3]{A}}{\color{blue}{\frac{\sqrt[3]{V} \cdot \sqrt[3]{V}}{\sqrt[3]{A}} \cdot \frac{\sqrt[3]{V}}{\frac{1}{\ell}}}}}\]
  10. Applied times-frac_binary64_111716.2

    \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V} \cdot \sqrt[3]{V}}{\sqrt[3]{A}}} \cdot \frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\ell}}}}}\]
  11. Applied sqrt-prod_binary64_11277.9

    \[\leadsto c0 \cdot \color{blue}{\left(\sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V} \cdot \sqrt[3]{V}}{\sqrt[3]{A}}}} \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\ell}}}}\right)}\]
  12. Simplified6.0

    \[\leadsto c0 \cdot \left(\color{blue}{\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|} \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\ell}}}}\right)\]
  13. Simplified6.0

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \color{blue}{\sqrt{\frac{\sqrt[3]{A}}{\ell \cdot \sqrt[3]{V}}}}\right)\]
  14. Using strategy rm
  15. Applied add-cube-cbrt_binary64_11466.0

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\sqrt[3]{\color{blue}{\left(\sqrt[3]{A} \cdot \sqrt[3]{A}\right) \cdot \sqrt[3]{A}}}}{\ell \cdot \sqrt[3]{V}}}\right)\]
  16. Applied cbrt-prod_binary64_11426.1

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\color{blue}{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}} \cdot \sqrt[3]{\sqrt[3]{A}}}}{\ell \cdot \sqrt[3]{V}}}\right)\]
  17. Applied associate-/l*_binary64_10566.1

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\color{blue}{\frac{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}}}{\frac{\ell \cdot \sqrt[3]{V}}{\sqrt[3]{\sqrt[3]{A}}}}}}\right)\]
  18. Simplified5.5

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}}}{\color{blue}{\frac{\ell}{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{V}}}}}}\right)\]
  19. Using strategy rm
  20. Applied div-inv_binary64_11085.5

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}}}{\frac{\ell}{\color{blue}{\sqrt[3]{\sqrt[3]{A}} \cdot \frac{1}{\sqrt[3]{V}}}}}}\right)\]
  21. Applied add-cube-cbrt_binary64_11465.6

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}}}{\frac{\color{blue}{\left(\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}\right) \cdot \sqrt[3]{\ell}}}{\sqrt[3]{\sqrt[3]{A}} \cdot \frac{1}{\sqrt[3]{V}}}}}\right)\]
  22. Applied times-frac_binary64_11175.6

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A} \cdot \sqrt[3]{A}}}{\color{blue}{\frac{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}{\sqrt[3]{\sqrt[3]{A}}} \cdot \frac{\sqrt[3]{\ell}}{\frac{1}{\sqrt[3]{V}}}}}}\right)\]
  23. Applied cbrt-prod_binary64_11425.6

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\frac{\color{blue}{\sqrt[3]{\sqrt[3]{A}} \cdot \sqrt[3]{\sqrt[3]{A}}}}{\frac{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}{\sqrt[3]{\sqrt[3]{A}}} \cdot \frac{\sqrt[3]{\ell}}{\frac{1}{\sqrt[3]{V}}}}}\right)\]
  24. Applied times-frac_binary64_11174.9

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \sqrt{\color{blue}{\frac{\sqrt[3]{\sqrt[3]{A}}}{\frac{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}{\sqrt[3]{\sqrt[3]{A}}}} \cdot \frac{\sqrt[3]{\sqrt[3]{A}}}{\frac{\sqrt[3]{\ell}}{\frac{1}{\sqrt[3]{V}}}}}}\right)\]
  25. Applied sqrt-prod_binary64_11272.2

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \color{blue}{\left(\sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\frac{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}{\sqrt[3]{\sqrt[3]{A}}}}} \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\frac{\sqrt[3]{\ell}}{\frac{1}{\sqrt[3]{V}}}}}\right)}\right)\]
  26. Simplified2.2

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \left(\color{blue}{\sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \sqrt[3]{\sqrt[3]{A}}}} \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\frac{\sqrt[3]{\ell}}{\frac{1}{\sqrt[3]{V}}}}}\right)\right)\]
  27. Simplified2.2

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \left(\sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \sqrt[3]{\sqrt[3]{A}}} \cdot \color{blue}{\sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{V}}}}\right)\right)\]
  28. Final simplification2.2

    \[\leadsto c0 \cdot \left(\left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right| \cdot \left(\sqrt{\sqrt[3]{\sqrt[3]{A}} \cdot \frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \sqrt{\frac{\sqrt[3]{\sqrt[3]{A}}}{\sqrt[3]{V} \cdot \sqrt[3]{\ell}}}\right)\right)\]

Reproduce

herbie shell --seed 2020277 
(FPCore (c0 A V l)
  :name "Henrywood and Agarwal, Equation (3)"
  :precision binary64
  (* c0 (sqrt (/ A (* V l)))))