Average Error: 0.1 → 0.1
Time: 17.5s
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 r1047421 = x;
        double r1047422 = y;
        double r1047423 = log(r1047422);
        double r1047424 = r1047421 * r1047423;
        double r1047425 = z;
        double r1047426 = r1047424 - r1047425;
        double r1047427 = r1047426 - r1047422;
        return r1047427;
}

double f(double x, double y, double z) {
        double r1047428 = x;
        double r1047429 = y;
        double r1047430 = log(r1047429);
        double r1047431 = r1047428 * r1047430;
        double r1047432 = z;
        double r1047433 = r1047431 - r1047432;
        double r1047434 = r1047433 - r1047429;
        return r1047434;
}

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