Average Error: 0.1 → 0.1
Time: 12.9s
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 r29764 = x;
        double r29765 = y;
        double r29766 = log(r29765);
        double r29767 = r29764 * r29766;
        double r29768 = z;
        double r29769 = r29767 - r29768;
        double r29770 = r29769 - r29765;
        return r29770;
}

double f(double x, double y, double z) {
        double r29771 = x;
        double r29772 = y;
        double r29773 = log(r29772);
        double r29774 = r29771 * r29773;
        double r29775 = z;
        double r29776 = r29774 - r29775;
        double r29777 = r29776 - r29772;
        return r29777;
}

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 2020046 +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))