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 r24389 = x;
        double r24390 = y;
        double r24391 = log(r24390);
        double r24392 = r24389 * r24391;
        double r24393 = z;
        double r24394 = r24392 - r24393;
        double r24395 = r24394 - r24390;
        return r24395;
}

double f(double x, double y, double z) {
        double r24396 = x;
        double r24397 = y;
        double r24398 = log(r24397);
        double r24399 = r24396 * r24398;
        double r24400 = z;
        double r24401 = r24399 - r24400;
        double r24402 = r24401 - r24397;
        return r24402;
}

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))