Average Error: 0.1 → 0.1
Time: 17.3s
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 r30588 = x;
        double r30589 = y;
        double r30590 = log(r30589);
        double r30591 = r30588 * r30590;
        double r30592 = z;
        double r30593 = r30591 - r30592;
        double r30594 = r30593 - r30589;
        return r30594;
}

double f(double x, double y, double z) {
        double r30595 = x;
        double r30596 = y;
        double r30597 = log(r30596);
        double r30598 = r30595 * r30597;
        double r30599 = z;
        double r30600 = r30598 - r30599;
        double r30601 = r30600 - r30596;
        return r30601;
}

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