Average Error: 0.1 → 0.1
Time: 5.4s
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 r38685 = x;
        double r38686 = y;
        double r38687 = log(r38686);
        double r38688 = r38685 * r38687;
        double r38689 = z;
        double r38690 = r38688 - r38689;
        double r38691 = r38690 - r38686;
        return r38691;
}

double f(double x, double y, double z) {
        double r38692 = x;
        double r38693 = y;
        double r38694 = log(r38693);
        double r38695 = r38692 * r38694;
        double r38696 = z;
        double r38697 = r38695 - r38696;
        double r38698 = r38697 - r38693;
        return r38698;
}

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