Average Error: 0.1 → 0.1
Time: 30.4s
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 r38086 = x;
        double r38087 = y;
        double r38088 = log(r38087);
        double r38089 = r38086 * r38088;
        double r38090 = z;
        double r38091 = r38089 - r38090;
        double r38092 = r38091 - r38087;
        return r38092;
}

double f(double x, double y, double z) {
        double r38093 = x;
        double r38094 = y;
        double r38095 = log(r38094);
        double r38096 = r38093 * r38095;
        double r38097 = z;
        double r38098 = r38096 - r38097;
        double r38099 = r38098 - r38094;
        return r38099;
}

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 2019199 +o rules:numerics
(FPCore (x y z)
  :name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
  (- (- (* x (log y)) z) y))