Average Error: 17.7 → 1.3
Time: 1.1m
Precision: 64
Internal Precision: 384
\[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\]
\[\left(\frac{-t1}{t1 + u} \cdot v\right) \cdot \frac{1}{t1 + u}\]

Error

Bits error versus u

Bits error versus v

Bits error versus t1

Derivation

  1. Initial program 17.7

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\]
  2. Using strategy rm
  3. Applied times-frac1.3

    \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}}\]
  4. Using strategy rm
  5. Applied div-inv1.5

    \[\leadsto \frac{-t1}{t1 + u} \cdot \color{blue}{\left(v \cdot \frac{1}{t1 + u}\right)}\]
  6. Applied associate-*r*1.3

    \[\leadsto \color{blue}{\left(\frac{-t1}{t1 + u} \cdot v\right) \cdot \frac{1}{t1 + u}}\]
  7. Removed slow pow expressions.

Runtime

Time bar (total: 1.1m)Debug logProfile

herbie shell --seed '#(1062930989 876886121 3990119081 3032829768 3060892583 1929069376)' 
(FPCore (u v t1)
  :name "Rosa's DopplerBench"
  (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))