Average Error: 0.1 → 0.1
Time: 21.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 r32664 = x;
        double r32665 = y;
        double r32666 = log(r32665);
        double r32667 = r32664 * r32666;
        double r32668 = z;
        double r32669 = r32667 - r32668;
        double r32670 = r32669 - r32665;
        return r32670;
}

double f(double x, double y, double z) {
        double r32671 = x;
        double r32672 = y;
        double r32673 = log(r32672);
        double r32674 = r32671 * r32673;
        double r32675 = z;
        double r32676 = r32674 - r32675;
        double r32677 = r32676 - r32672;
        return r32677;
}

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