Average Error: 0.0 → 0.0
Time: 11.0s
Precision: 64
\[\frac{x - y}{1.0 - y}\]
\[\frac{x}{1.0 - y} - \frac{y}{1.0 - y}\]
\frac{x - y}{1.0 - y}
\frac{x}{1.0 - y} - \frac{y}{1.0 - y}
double f(double x, double y) {
        double r11207814 = x;
        double r11207815 = y;
        double r11207816 = r11207814 - r11207815;
        double r11207817 = 1.0;
        double r11207818 = r11207817 - r11207815;
        double r11207819 = r11207816 / r11207818;
        return r11207819;
}

double f(double x, double y) {
        double r11207820 = x;
        double r11207821 = 1.0;
        double r11207822 = y;
        double r11207823 = r11207821 - r11207822;
        double r11207824 = r11207820 / r11207823;
        double r11207825 = r11207822 / r11207823;
        double r11207826 = r11207824 - r11207825;
        return r11207826;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{x - y}{1.0 - y}\]
  2. Using strategy rm
  3. Applied div-sub0.0

    \[\leadsto \color{blue}{\frac{x}{1.0 - y} - \frac{y}{1.0 - y}}\]
  4. Final simplification0.0

    \[\leadsto \frac{x}{1.0 - y} - \frac{y}{1.0 - y}\]

Reproduce

herbie shell --seed 2019168 
(FPCore (x y)
  :name "Diagrams.Trail:splitAtParam  from diagrams-lib-1.3.0.3, C"
  (/ (- x y) (- 1.0 y)))