Average Error: 0.1 → 0.1
Time: 14.7s
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 r26505 = x;
        double r26506 = y;
        double r26507 = log(r26506);
        double r26508 = r26505 * r26507;
        double r26509 = z;
        double r26510 = r26508 - r26509;
        double r26511 = r26510 - r26506;
        return r26511;
}

double f(double x, double y, double z) {
        double r26512 = x;
        double r26513 = y;
        double r26514 = log(r26513);
        double r26515 = r26512 * r26514;
        double r26516 = z;
        double r26517 = r26515 - r26516;
        double r26518 = r26517 - r26513;
        return r26518;
}

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