Average Error: 0.0 → 0.0
Time: 9.7s
Precision: 64
Internal precision: 128
\[\frac{x - y}{z - y}\]
\[\frac{x}{z - y} - \frac{y}{z - y}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original0.0
Comparison0.0
Herbie0.0
\[ \frac{x}{z - y} - \frac{y}{z - y} \]

Derivation

  1. Initial program 0.0

    \[\frac{x - y}{z - y}\]
  2. Using strategy rm
  3. Applied div-sub 0.0

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

Runtime

Time bar (total: 9.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(45457370 3071477651 601856090 399305796 4080808607 2565393162)'
(FPCore (x y z)
  :name "Graphics.Rasterific.Shading:$sgradientColorAt from Rasterific-0.6.1"

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

  (/ (- x y) (- z y)))