Average Error: 0.1 → 0.1
Time: 5.3s
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 r37709 = x;
        double r37710 = y;
        double r37711 = log(r37710);
        double r37712 = r37709 * r37711;
        double r37713 = z;
        double r37714 = r37712 - r37713;
        double r37715 = r37714 - r37710;
        return r37715;
}

double f(double x, double y, double z) {
        double r37716 = x;
        double r37717 = y;
        double r37718 = log(r37717);
        double r37719 = r37716 * r37718;
        double r37720 = z;
        double r37721 = r37719 - r37720;
        double r37722 = r37721 - r37717;
        return r37722;
}

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