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

Error

Bits error versus x

Bits error versus y

Target

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

Derivation

  1. Initial program 0.3

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

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

Runtime

Time bar (total: 5.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(4264597979 3606047659 1296707469 2465566978 3247870922 1926957238)'
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, C"

  :target
  (/ (/ x y) 3.0)

  (/ x (* y 3.0)))