Average Error: 19.6 → 2.3
Time: 25.3s
Precision: binary64
\[[V, l]=\mathsf{sort}([V, l])\]
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
\[\left(\sqrt{\frac{1}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \left(c0 \cdot \left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|\right)\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\sqrt[3]{\ell}}}}} \]
c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\left(\sqrt{\frac{1}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \left(c0 \cdot \left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|\right)\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\sqrt[3]{\ell}}}}}
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
 :precision binary64
 (*
  (* (sqrt (/ 1.0 (* (cbrt l) (cbrt l)))) (* c0 (fabs (/ (cbrt A) (cbrt V)))))
  (sqrt (/ (cbrt A) (/ (cbrt V) (/ 1.0 (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 (sqrt(1.0 / (cbrt(l) * cbrt(l))) * (c0 * fabs(cbrt(A) / cbrt(V)))) * sqrt(cbrt(A) / (cbrt(V) / (1.0 / 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 19.6

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

    \[\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*_binary6419.9

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

    \[\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_binary6418.7

    \[\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_binary6418.8

    \[\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_binary6417.9

    \[\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_binary6416.8

    \[\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_binary648.2

    \[\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. Applied associate-*r*_binary649.3

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

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

    \[\leadsto \left(c0 \cdot \left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\frac{1}{\color{blue}{\left(\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}\right) \cdot \sqrt[3]{\ell}}}}}} \]
  16. Applied *-un-lft-identity_binary647.5

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

    \[\leadsto \left(c0 \cdot \left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\frac{\sqrt[3]{V}}{\color{blue}{\frac{1}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}} \cdot \frac{1}{\sqrt[3]{\ell}}}}}} \]
  18. Applied *-un-lft-identity_binary647.5

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

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

    \[\leadsto \left(c0 \cdot \left|\frac{\sqrt[3]{A}}{\sqrt[3]{V}}\right|\right) \cdot \sqrt{\frac{\sqrt[3]{A}}{\color{blue}{\frac{\sqrt[3]{1}}{\frac{1}{\sqrt[3]{\ell} \cdot \sqrt[3]{\ell}}} \cdot \frac{\sqrt[3]{V}}{\frac{1}{\sqrt[3]{\ell}}}}}} \]
  21. Applied *-un-lft-identity_binary647.5

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

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

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

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

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

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

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

Reproduce

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