Average Error: 11.4 → 2.0
Time: 19.8s
Precision: 64
Internal precision: 128
\[\frac{x \cdot \left(y - z\right)}{t - z}\]
\[\frac{x}{1} \cdot \frac{y - z}{t - z}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Target

Original11.4
Comparison2.0
Herbie2.0
\[ \frac{x}{\frac{t - z}{y - z}} \]

Derivation

  1. Initial program 11.4

    \[\frac{x \cdot \left(y - z\right)}{t - z}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity 11.4

    \[\leadsto \frac{x \cdot \left(y - z\right)}{\color{blue}{1 \cdot \left(t - z\right)}}\]
  4. Applied times-frac 2.0

    \[\leadsto \color{blue}{\frac{x}{1} \cdot \frac{y - z}{t - z}}\]
  5. Removed slow pow expressions

Runtime

Time bar (total: 19.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(187545069 1771008971 4032983805 554011668 3980958710 3820943808)'
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"

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

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