Average Error: 18.6 → 11.9
Time: 56.0s
Precision: 64
Internal Precision: 576
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
\[\begin{array}{l} \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le -3.1075060750859332 \cdot 10^{+94}:\\ \;\;\;\;\sqrt{\frac{1}{\ell \cdot V}} \cdot \left(\sqrt{A} \cdot c0\right)\\ \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le -3.888209825783696 \cdot 10^{-14}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\sqrt[3]{\frac{A}{V}} \cdot \sqrt[3]{\frac{A}{V}}}{\frac{\ell}{\sqrt[3]{\frac{A}{V}}}}}\\ \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le 4.158883047889409 \cdot 10^{-100} \lor \neg \left(\sqrt[3]{\frac{A}{V}} \le 8.507545563998866 \cdot 10^{+100}\right):\\ \;\;\;\;\sqrt{\sqrt{\frac{A}{\ell \cdot V}}} \cdot \left(\sqrt{\sqrt{\frac{A}{\ell \cdot V}}} \cdot c0\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{\frac{A}{V}}}{\sqrt{\ell}} \cdot c0\\ \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 (cbrt (/ A V)) < -3.1075060750859332e+94

    1. Initial program 33.7

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

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

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

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

    if -3.1075060750859332e+94 < (cbrt (/ A V)) < -3.888209825783696e-14

    1. Initial program 15.9

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

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

      \[\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*9.3

      \[\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}}}}}}\]

    if -3.888209825783696e-14 < (cbrt (/ A V)) < 4.158883047889409e-100 or 8.507545563998866e+100 < (cbrt (/ A V))

    1. Initial program 21.1

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

      \[\leadsto c0 \cdot \sqrt{\color{blue}{\sqrt{\frac{A}{V \cdot \ell}} \cdot \sqrt{\frac{A}{V \cdot \ell}}}}\]
    4. Applied sqrt-prod21.3

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

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

    if 4.158883047889409e-100 < (cbrt (/ A V)) < 8.507545563998866e+100

    1. Initial program 15.4

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

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

      \[\leadsto c0 \cdot \color{blue}{\frac{\sqrt{\frac{A}{V}}}{\sqrt{\ell}}}\]
  3. Recombined 4 regimes into one program.
  4. Applied simplify11.9

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le -3.1075060750859332 \cdot 10^{+94}:\\ \;\;\;\;\sqrt{\frac{1}{\ell \cdot V}} \cdot \left(\sqrt{A} \cdot c0\right)\\ \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le -3.888209825783696 \cdot 10^{-14}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\sqrt[3]{\frac{A}{V}} \cdot \sqrt[3]{\frac{A}{V}}}{\frac{\ell}{\sqrt[3]{\frac{A}{V}}}}}\\ \mathbf{if}\;\sqrt[3]{\frac{A}{V}} \le 4.158883047889409 \cdot 10^{-100} \lor \neg \left(\sqrt[3]{\frac{A}{V}} \le 8.507545563998866 \cdot 10^{+100}\right):\\ \;\;\;\;\sqrt{\sqrt{\frac{A}{\ell \cdot V}}} \cdot \left(\sqrt{\sqrt{\frac{A}{\ell \cdot V}}} \cdot c0\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\sqrt{\frac{A}{V}}}{\sqrt{\ell}} \cdot c0\\ \end{array}}\]

Runtime

Time bar (total: 56.0s)Debug logProfile

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