Average Error: 0.1 → 0.1
Time: 4.9s
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 r24385 = x;
        double r24386 = y;
        double r24387 = log(r24386);
        double r24388 = r24385 * r24387;
        double r24389 = z;
        double r24390 = r24388 - r24389;
        double r24391 = r24390 - r24386;
        return r24391;
}

double f(double x, double y, double z) {
        double r24392 = x;
        double r24393 = y;
        double r24394 = log(r24393);
        double r24395 = r24392 * r24394;
        double r24396 = z;
        double r24397 = r24395 - r24396;
        double r24398 = r24397 - r24393;
        return r24398;
}

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 2019353 +o rules:numerics
(FPCore (x y z)
  :name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
  :precision binary64
  (- (- (* x (log y)) z) y))