Average Error: 0.1 → 0.1
Time: 21.6s
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 r28914 = x;
        double r28915 = y;
        double r28916 = log(r28915);
        double r28917 = r28914 * r28916;
        double r28918 = z;
        double r28919 = r28917 - r28918;
        double r28920 = r28919 - r28915;
        return r28920;
}

double f(double x, double y, double z) {
        double r28921 = x;
        double r28922 = y;
        double r28923 = log(r28922);
        double r28924 = r28921 * r28923;
        double r28925 = z;
        double r28926 = r28924 - r28925;
        double r28927 = r28926 - r28922;
        return r28927;
}

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