Average Error: 13.5 → 8.2
Time: 3.0m
Precision: 64
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
\[\sqrt{1 - \left(\left(\frac{M \cdot D}{2 \cdot d} \cdot \frac{1}{\ell}\right) \cdot h\right) \cdot \frac{M \cdot D}{2 \cdot d}} \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

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. Simplified12.1

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

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

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

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

Reproduce

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