Average Error: 13.4 → 8.8
Time: 40.9s
Precision: 64
Internal Precision: 128
\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}\]
\[\left|\sqrt{1 - \left(\frac{\frac{D}{2 \cdot d} \cdot M}{\ell} \cdot \left(\frac{D}{2 \cdot d} \cdot M\right)\right) \cdot h}\right| \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.4

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

    \[\leadsto \color{blue}{\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 div-inv13.0

    \[\leadsto \sqrt{1 - \frac{\frac{M \cdot D}{2 \cdot d} \cdot \frac{M \cdot D}{2 \cdot d}}{\color{blue}{\ell \cdot \frac{1}{h}}}} \cdot w0\]
  5. Applied times-frac8.1

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

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

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

    \[\leadsto \sqrt{\color{blue}{\sqrt{1 - \frac{1}{\ell \cdot \frac{2 \cdot d}{M \cdot D}} \cdot \frac{\frac{M \cdot D}{2 \cdot d}}{\frac{1}{h}}} \cdot \sqrt{1 - \frac{1}{\ell \cdot \frac{2 \cdot d}{M \cdot D}} \cdot \frac{\frac{M \cdot D}{2 \cdot d}}{\frac{1}{h}}}}} \cdot w0\]
  12. Applied rem-sqrt-square8.1

    \[\leadsto \color{blue}{\left|\sqrt{1 - \frac{1}{\ell \cdot \frac{2 \cdot d}{M \cdot D}} \cdot \frac{\frac{M \cdot D}{2 \cdot d}}{\frac{1}{h}}}\right|} \cdot w0\]
  13. Simplified8.8

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

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

Reproduce

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