Average Error: 19.2 → 8.1
Time: 33.3s
Precision: 64
Internal Precision: 576
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
\[\begin{array}{l} \mathbf{if}\;\frac{1}{V \cdot \ell} \le -7.465383823055828 \cdot 10^{+70}:\\ \;\;\;\;c0 \cdot \frac{\left|\sqrt[3]{\frac{A}{V}}\right|}{\sqrt{\frac{\ell}{\sqrt[3]{\frac{A}{V}}}}}\\ \mathbf{if}\;\frac{1}{V \cdot \ell} \le -7.087541814506718 \cdot 10^{-61}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\ \mathbf{if}\;\frac{1}{V \cdot \ell} \le 1.1469551436298865 \cdot 10^{-276}:\\ \;\;\;\;c0 \cdot \frac{\left|\sqrt[3]{\frac{A}{V}}\right|}{\sqrt{\frac{\ell}{\sqrt[3]{\frac{A}{V}}}}}\\ \mathbf{if}\;\frac{1}{V \cdot \ell} \le 2.1241746677251365 \cdot 10^{+307}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \left(\sqrt{\frac{\sqrt[3]{\frac{A}{V}}}{\frac{\ell}{\sqrt[3]{A}}}} \cdot \sqrt{\frac{\sqrt[3]{\frac{A}{V}}}{\sqrt[3]{V}}}\right)\\ \end{array}\]

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. Split input into 4 regimes
  2. if (/ 1 (* V l)) < -7.465383823055828e+70 or -7.087541814506718e-61 < (/ 1 (* V l)) < 1.1469551436298865e-276

    1. Initial program 25.9

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
    2. Using strategy rm
    3. Applied associate-/r*19.9

      \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{\frac{A}{V}}{\ell}}}\]
    4. Using strategy rm
    5. Applied add-cube-cbrt20.2

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

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

      \[\leadsto c0 \cdot \color{blue}{\frac{\sqrt{\sqrt[3]{\frac{A}{V}} \cdot \sqrt[3]{\frac{A}{V}}}}{\sqrt{\frac{\ell}{\sqrt[3]{\frac{A}{V}}}}}}\]
    9. Applied simplify13.6

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

    if -7.465383823055828e+70 < (/ 1 (* V l)) < -7.087541814506718e-61

    1. Initial program 2.7

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]

    if 1.1469551436298865e-276 < (/ 1 (* V l)) < 2.1241746677251365e+307

    1. Initial program 9.9

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

      \[\leadsto c0 \cdot \color{blue}{\frac{\sqrt{A}}{\sqrt{V \cdot \ell}}}\]

    if 2.1241746677251365e+307 < (/ 1 (* V l))

    1. Initial program 58.6

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
    2. Using strategy rm
    3. Applied associate-/r*34.8

      \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{\frac{A}{V}}{\ell}}}\]
    4. Using strategy rm
    5. Applied add-cube-cbrt35.0

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

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

      \[\leadsto c0 \cdot \sqrt{\frac{\sqrt[3]{\frac{A}{V}} \cdot \sqrt[3]{\frac{A}{V}}}{\frac{\ell}{\color{blue}{\frac{\sqrt[3]{A}}{\sqrt[3]{V}}}}}}\]
    9. Applied associate-/r/34.9

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

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

      \[\leadsto c0 \cdot \color{blue}{\left(\sqrt{\frac{\sqrt[3]{\frac{A}{V}}}{\frac{\ell}{\sqrt[3]{A}}}} \cdot \sqrt{\frac{\sqrt[3]{\frac{A}{V}}}{\sqrt[3]{V}}}\right)}\]
  3. Recombined 4 regimes into one program.

Runtime

Time bar (total: 33.3s)Debug logProfile

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