Average Error: 10.2 → 1.2
Time: 22.7s
Precision: 64
Internal precision: 128
\[x + \frac{y \cdot \left(z - t\right)}{a - t}\]
\[x + \frac{y}{\frac{a - t}{z - t}}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Target

Original10.2
Comparison1.2
Herbie1.2
\[ x + \frac{y}{\frac{a - t}{z - t}} \]

Derivation

  1. Initial program 10.2

    \[x + \frac{y \cdot \left(z - t\right)}{a - t}\]
  2. Using strategy rm
  3. Applied associate-/l* 1.2

    \[\leadsto x + \color{blue}{\frac{y}{\frac{a - t}{z - t}}}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 22.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3802151675 1252409106 1481606512 2724497556 1328803811 821348235)'
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"

  :target
  (+ x (/ y (/ (- a t) (- z t))))

  (+ x (/ (* y (- z t)) (- a t))))