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 r27224 = x;
        double r27225 = y;
        double r27226 = log(r27225);
        double r27227 = r27224 * r27226;
        double r27228 = z;
        double r27229 = r27227 - r27228;
        double r27230 = r27229 - r27225;
        return r27230;
}

double f(double x, double y, double z) {
        double r27231 = x;
        double r27232 = y;
        double r27233 = log(r27232);
        double r27234 = r27231 * r27233;
        double r27235 = z;
        double r27236 = r27234 - r27235;
        double r27237 = r27236 - r27232;
        return r27237;
}

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 2020047 
(FPCore (x y z)
  :name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
  :precision binary64
  (- (- (* x (log y)) z) y))