Average Error: 18.5 → 11.7
Time: 40.4s
Precision: 64
Internal Precision: 576
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
\[\begin{array}{l} \mathbf{if}\;\left(\sqrt[3]{\frac{1}{V \cdot \ell}} \cdot \sqrt[3]{\frac{1}{V \cdot \ell}}\right) \cdot \sqrt[3]{\frac{1}{V \cdot \ell}} \le -3.611867736711434 \cdot 10^{+255}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{V}}{\ell}}\\ \mathbf{if}\;\left(\sqrt[3]{\frac{1}{V \cdot \ell}} \cdot \sqrt[3]{\frac{1}{V \cdot \ell}}\right) \cdot \sqrt[3]{\frac{1}{V \cdot \ell}} \le -3.0663734610701675 \cdot 10^{-195}:\\ \;\;\;\;\left(\sqrt{\sqrt{\frac{A}{V \cdot \ell}}} \cdot c0\right) \cdot \sqrt{\sqrt{A \cdot \frac{1}{V \cdot \ell}}}\\ \mathbf{if}\;\left(\sqrt[3]{\frac{1}{V \cdot \ell}} \cdot \sqrt[3]{\frac{1}{V \cdot \ell}}\right) \cdot \sqrt[3]{\frac{1}{V \cdot \ell}} \le 5.660430664225705 \cdot 10^{-300}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{V}}{\ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \left(\sqrt{A} \cdot \sqrt{\frac{1}{V \cdot \ell}}\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 3 regimes
  2. if (* (* (cbrt (/ 1 (* V l))) (cbrt (/ 1 (* V l)))) (cbrt (/ 1 (* V l)))) < -3.611867736711434e+255 or -3.0663734610701675e-195 < (* (* (cbrt (/ 1 (* V l))) (cbrt (/ 1 (* V l)))) (cbrt (/ 1 (* V l)))) < 5.660430664225705e-300

    1. Initial program 37.1

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

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

    if -3.611867736711434e+255 < (* (* (cbrt (/ 1 (* V l))) (cbrt (/ 1 (* V l)))) (cbrt (/ 1 (* V l)))) < -3.0663734610701675e-195

    1. Initial program 7.8

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

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

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

      \[\leadsto \color{blue}{\left(c0 \cdot \sqrt{\sqrt{A \cdot \frac{1}{V \cdot \ell}}}\right) \cdot \sqrt{\sqrt{A \cdot \frac{1}{V \cdot \ell}}}}\]
    7. Applied simplify8.0

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

    if 5.660430664225705e-300 < (* (* (cbrt (/ 1 (* V l))) (cbrt (/ 1 (* V l)))) (cbrt (/ 1 (* V l))))

    1. Initial program 14.9

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

      \[\leadsto c0 \cdot \sqrt{\color{blue}{A \cdot \frac{1}{V \cdot \ell}}}\]
    4. Applied sqrt-prod6.7

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

Runtime

Time bar (total: 40.4s)Debug logProfile

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