Average Error: 0.2 → 0.2
Time: 39.8s
Precision: 64
Internal Precision: 384
\[\left(1.0 - \frac{1.0}{x \cdot 9.0}\right) - \frac{y}{3.0 \cdot \sqrt{x}}\]
\[\left(1.0 - \frac{\frac{1.0}{x}}{9.0}\right) - \frac{y}{3.0 \cdot \sqrt{x}}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.2
Target0.2
Herbie0.2
\[\left(1.0 - \frac{\frac{1.0}{x}}{9.0}\right) - \frac{y}{3.0 \cdot \sqrt{x}}\]

Derivation

  1. Initial program 0.2

    \[\left(1.0 - \frac{1.0}{x \cdot 9.0}\right) - \frac{y}{3.0 \cdot \sqrt{x}}\]
  2. Using strategy rm
  3. Applied associate-/r*0.2

    \[\leadsto \left(1.0 - \color{blue}{\frac{\frac{1.0}{x}}{9.0}}\right) - \frac{y}{3.0 \cdot \sqrt{x}}\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 39.8s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit +o reduce:binary-search
(FPCore (x y)
  :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"

  :herbie-target
  (- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x))))

  (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))