Average Error: 0.4 → 0.2
Time: 13.8s
Precision: 64
Internal precision: 128
\[\frac{x \cdot 100.0}{x + y}\]
\[\frac{x}{1} \cdot \frac{100.0}{x + y}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.4
Comparison0.2
Herbie0.2
\[ \frac{x}{1} \cdot \frac{100.0}{x + y} \]

Derivation

  1. Initial program 0.4

    \[\frac{x \cdot 100.0}{x + y}\]
  2. Using strategy rm
  3. Applied *-un-lft-identity 0.4

    \[\leadsto \frac{x \cdot 100.0}{\color{blue}{1 \cdot \left(x + y\right)}}\]
  4. Applied times-frac 0.2

    \[\leadsto \color{blue}{\frac{x}{1} \cdot \frac{100.0}{x + y}}\]
  5. Removed slow pow expressions

Runtime

Time bar (total: 13.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2749909609 1288820154 1964416840 3269033344 1588175242 3386040604)'
(FPCore (x y)
  :name "Development.Shake.Progress:message from shake-0.15.5"

  :target
  (* (/ x 1) (/ 100.0 (+ x y)))

  (/ (* x 100.0) (+ x y)))