Average Error: 9.9 → 0.2
Time: 17.4s
Precision: 64
Internal Precision: 384
\[\frac{x}{y \cdot y}\]
\[\frac{\frac{x}{y}}{y}\]

Error

Bits error versus x

Bits error versus y

Target

Original9.9
Target0.2
Herbie0.2
\[\frac{\frac{x}{y}}{y}\]

Derivation

  1. Initial program 9.9

    \[\frac{x}{y \cdot y}\]
  2. Using strategy rm
  3. Applied associate-/r*0.2

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

Runtime

Time bar (total: 17.4s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(FPCore (x y)
  :name "Physics.ForceLayout:coulombForce from force-layout-0.4.0.2"

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

  (/ x (* y y)))