Average Error: 13.9 → 8.2
Time: 28.7s
Precision: 64
Internal Precision: 320
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
\[\sqrt{1 - \frac{\frac{M}{\frac{d}{D}} \cdot h}{\frac{1}{\frac{\frac{\frac{M}{\frac{d}{D}}}{4}}{\ell}}}} \cdot w0\]

Error

Bits error versus w0

Bits error versus M

Bits error versus D

Bits error versus h

Bits error versus l

Bits error versus d

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 13.9

    \[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
  2. Initial simplification13.5

    \[\leadsto \sqrt{1 - \frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}}{\frac{\ell}{h}}} \cdot w0\]
  3. Using strategy rm
  4. Applied associate-/r/10.7

    \[\leadsto \sqrt{1 - \color{blue}{\frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}}{\ell} \cdot h}} \cdot w0\]
  5. Using strategy rm
  6. Applied associate-*l/10.7

    \[\leadsto \sqrt{1 - \color{blue}{\frac{\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot h}{\ell}}} \cdot w0\]
  7. Simplified9.0

    \[\leadsto \sqrt{1 - \frac{\color{blue}{\left(h \cdot \frac{M}{\frac{d}{D}}\right) \cdot \frac{\frac{M}{\frac{d}{D}}}{4}}}{\ell}} \cdot w0\]
  8. Using strategy rm
  9. Applied associate-/l*8.2

    \[\leadsto \sqrt{1 - \color{blue}{\frac{h \cdot \frac{M}{\frac{d}{D}}}{\frac{\ell}{\frac{\frac{M}{\frac{d}{D}}}{4}}}}} \cdot w0\]
  10. Using strategy rm
  11. Applied clear-num8.2

    \[\leadsto \sqrt{1 - \frac{h \cdot \frac{M}{\frac{d}{D}}}{\color{blue}{\frac{1}{\frac{\frac{\frac{M}{\frac{d}{D}}}{4}}{\ell}}}}} \cdot w0\]
  12. Final simplification8.2

    \[\leadsto \sqrt{1 - \frac{\frac{M}{\frac{d}{D}} \cdot h}{\frac{1}{\frac{\frac{\frac{M}{\frac{d}{D}}}{4}}{\ell}}}} \cdot w0\]

Runtime

Time bar (total: 28.7s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes8.28.26.91.30%
herbie shell --seed 2018296 
(FPCore (w0 M D h l d)
  :name "Henrywood and Agarwal, Equation (9a)"
  (* w0 (sqrt (- 1 (* (pow (/ (* M D) (* 2 d)) 2) (/ h l))))))