Average Error: 18.5 → 12.0
Time: 10.9s
Precision: 64
Internal Precision: 576
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]
\[\begin{array}{l} \mathbf{if}\;V \cdot \ell \le -2.936321304819802 \cdot 10^{-151}:\\ \;\;\;\;\sqrt{\sqrt{\frac{A}{V \cdot \ell}}} \cdot \left(\sqrt{\sqrt{\frac{A}{V \cdot \ell}}} \cdot c0\right)\\ \mathbf{elif}\;V \cdot \ell \le 3.7350521951066 \cdot 10^{-313} \lor \neg \left(V \cdot \ell \le 2.765492179940775 \cdot 10^{+294}\right):\\ \;\;\;\;\sqrt{\frac{\frac{A}{V}}{\ell}} \cdot c0\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{\frac{1}{V \cdot \ell}} \cdot \sqrt{A}\right) \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 3 regimes
  2. if (* V l) < -2.936321304819802e-151

    1. Initial program 13.8

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

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

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

    if -2.936321304819802e-151 < (* V l) < 3.7350521951066e-313 or 2.765492179940775e+294 < (* V l)

    1. Initial program 40.4

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

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

    if 3.7350521951066e-313 < (* V l) < 2.765492179940775e+294

    1. Initial program 9.7

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

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

      \[\leadsto \sqrt{\color{blue}{A \cdot \frac{1}{V \cdot \ell}}} \cdot c0\]
    6. Applied sqrt-prod0.6

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;V \cdot \ell \le -2.936321304819802 \cdot 10^{-151}:\\ \;\;\;\;\sqrt{\sqrt{\frac{A}{V \cdot \ell}}} \cdot \left(\sqrt{\sqrt{\frac{A}{V \cdot \ell}}} \cdot c0\right)\\ \mathbf{elif}\;V \cdot \ell \le 3.7350521951066 \cdot 10^{-313} \lor \neg \left(V \cdot \ell \le 2.765492179940775 \cdot 10^{+294}\right):\\ \;\;\;\;\sqrt{\frac{\frac{A}{V}}{\ell}} \cdot c0\\ \mathbf{else}:\\ \;\;\;\;\left(\sqrt{\frac{1}{V \cdot \ell}} \cdot \sqrt{A}\right) \cdot c0\\ \end{array}\]

Runtime

Time bar (total: 10.9s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes18.712.010.08.777%
herbie shell --seed 2018286 +o rules:numerics
(FPCore (c0 A V l)
  :name "Henrywood and Agarwal, Equation (3)"
  (* c0 (sqrt (/ A (* V l)))))