Average Error: 0.1 → 0.1
Time: 5.0s
Precision: 64
\[\left(x \cdot \log y - z\right) - y\]
\[\left(x \cdot \log y - z\right) - y\]
\left(x \cdot \log y - z\right) - y
\left(x \cdot \log y - z\right) - y
double f(double x, double y, double z) {
        double r25027 = x;
        double r25028 = y;
        double r25029 = log(r25028);
        double r25030 = r25027 * r25029;
        double r25031 = z;
        double r25032 = r25030 - r25031;
        double r25033 = r25032 - r25028;
        return r25033;
}

double f(double x, double y, double z) {
        double r25034 = x;
        double r25035 = y;
        double r25036 = log(r25035);
        double r25037 = r25034 * r25036;
        double r25038 = z;
        double r25039 = r25037 - r25038;
        double r25040 = r25039 - r25035;
        return r25040;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\left(x \cdot \log y - z\right) - y\]
  2. Final simplification0.1

    \[\leadsto \left(x \cdot \log y - z\right) - y\]

Reproduce

herbie shell --seed 2020003 
(FPCore (x y z)
  :name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
  :precision binary64
  (- (- (* x (log y)) z) y))