Average Error: 0.1 → 0.1
Time: 5.2s
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 r40520 = x;
        double r40521 = y;
        double r40522 = log(r40521);
        double r40523 = r40520 * r40522;
        double r40524 = z;
        double r40525 = r40523 - r40524;
        double r40526 = r40525 - r40521;
        return r40526;
}

double f(double x, double y, double z) {
        double r40527 = x;
        double r40528 = y;
        double r40529 = log(r40528);
        double r40530 = r40527 * r40529;
        double r40531 = z;
        double r40532 = r40530 - r40531;
        double r40533 = r40532 - r40528;
        return r40533;
}

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