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 r29512 = x;
        double r29513 = y;
        double r29514 = log(r29513);
        double r29515 = r29512 * r29514;
        double r29516 = z;
        double r29517 = r29515 - r29516;
        double r29518 = r29517 - r29513;
        return r29518;
}

double f(double x, double y, double z) {
        double r29519 = x;
        double r29520 = y;
        double r29521 = log(r29520);
        double r29522 = r29519 * r29521;
        double r29523 = z;
        double r29524 = r29522 - r29523;
        double r29525 = r29524 - r29520;
        return r29525;
}

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