Average Error: 0.1 → 0.1
Time: 22.1s
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 r1120592 = x;
        double r1120593 = y;
        double r1120594 = log(r1120593);
        double r1120595 = r1120592 * r1120594;
        double r1120596 = z;
        double r1120597 = r1120595 - r1120596;
        double r1120598 = r1120597 - r1120593;
        return r1120598;
}

double f(double x, double y, double z) {
        double r1120599 = x;
        double r1120600 = y;
        double r1120601 = log(r1120600);
        double r1120602 = r1120599 * r1120601;
        double r1120603 = z;
        double r1120604 = r1120602 - r1120603;
        double r1120605 = r1120604 - r1120600;
        return r1120605;
}

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