Average Error: 10.3 → 0.2
Time: 12.5s
Precision: 64
Internal precision: 128
\[\frac{x}{y \cdot y}\]
\[\frac{\frac{x}{y}}{y}\]

Error

Bits error versus x

Bits error versus y

Target

Original10.3
Comparison0.2
Herbie0.2
\[ \frac{\frac{x}{y}}{y} \]

Derivation

  1. Initial program 10.3

    \[\frac{x}{y \cdot y}\]
  2. Applied simplify 10.3

    \[\leadsto \color{blue}{\frac{x}{{y}^2}}\]
  3. Using strategy rm
  4. Applied square-mult 10.3

    \[\leadsto \frac{x}{\color{blue}{y \cdot y}}\]
  5. Applied associate-/r* 0.2

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

Runtime

Time bar (total: 12.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2062144227 2589379893 960355457 705222441 266915846 1982656757)'
(FPCore (x y)
  :name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"

  :target
  (/ (/ x y) y)

  (/ x (* y y)))