Average Error: 0.1 → 0.1
Time: 5.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 r22372 = x;
        double r22373 = y;
        double r22374 = log(r22373);
        double r22375 = r22372 * r22374;
        double r22376 = z;
        double r22377 = r22375 - r22376;
        double r22378 = r22377 - r22373;
        return r22378;
}

double f(double x, double y, double z) {
        double r22379 = x;
        double r22380 = y;
        double r22381 = log(r22380);
        double r22382 = r22379 * r22381;
        double r22383 = z;
        double r22384 = r22382 - r22383;
        double r22385 = r22384 - r22380;
        return r22385;
}

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