Average Error: 13.5 → 8.0
Time: 4.1m
Precision: 64
Internal Precision: 128
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
\[w0 \cdot \sqrt{1 - \left(\left(\left(\frac{1}{2 \cdot d} \cdot \left(D \cdot M\right)\right) \cdot h\right) \cdot \frac{1}{\ell}\right) \cdot \frac{D \cdot M}{2 \cdot d}}\]

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

Derivation

  1. Initial program 13.5

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

    \[\leadsto \color{blue}{\sqrt{1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot \frac{h}{\ell}} \cdot w0}\]
  3. Using strategy rm
  4. Applied div-inv13.5

    \[\leadsto \sqrt{1 - \left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot \color{blue}{\left(h \cdot \frac{1}{\ell}\right)}} \cdot w0\]
  5. Applied associate-*r*10.2

    \[\leadsto \sqrt{1 - \color{blue}{\left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}\right) \cdot h\right) \cdot \frac{1}{\ell}}} \cdot w0\]
  6. Using strategy rm
  7. Applied associate-*l*8.7

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

    \[\leadsto \sqrt{1 - \color{blue}{\frac{M \cdot D}{2 \cdot d} \cdot \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot h\right) \cdot \frac{1}{\ell}\right)}} \cdot w0\]
  10. Using strategy rm
  11. Applied div-inv8.0

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

    \[\leadsto w0 \cdot \sqrt{1 - \left(\left(\left(\frac{1}{2 \cdot d} \cdot \left(D \cdot M\right)\right) \cdot h\right) \cdot \frac{1}{\ell}\right) \cdot \frac{D \cdot M}{2 \cdot d}}\]

Reproduce

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