Average Error: 0.1 → 0.1
Time: 12.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 r523706 = x;
        double r523707 = y;
        double r523708 = log(r523707);
        double r523709 = r523706 * r523708;
        double r523710 = z;
        double r523711 = r523709 - r523710;
        double r523712 = r523711 - r523707;
        return r523712;
}

double f(double x, double y, double z) {
        double r523713 = x;
        double r523714 = y;
        double r523715 = log(r523714);
        double r523716 = r523713 * r523715;
        double r523717 = z;
        double r523718 = r523716 - r523717;
        double r523719 = r523718 - r523714;
        return r523719;
}

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