Average Error: 13.7 → 8.1
Time: 35.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{D \cdot M}{2 \cdot d}}{\ell} \cdot \left(h \cdot \frac{D \cdot M}{2 \cdot d}\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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 13.7

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

    \[\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 div-inv13.4

    \[\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. Simplified11.5

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

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

    \[\leadsto \sqrt{1 - \frac{\frac{M \cdot D}{2 \cdot d}}{\ell} \cdot \frac{M \cdot D}{\color{blue}{\frac{d \cdot 2}{h}}}} \cdot w0\]
  11. Applied associate-/r/8.1

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

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

Runtime

Time bar (total: 35.7s)Debug logProfile

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