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 r31854 = x;
        double r31855 = y;
        double r31856 = log(r31855);
        double r31857 = r31854 * r31856;
        double r31858 = z;
        double r31859 = r31857 - r31858;
        double r31860 = r31859 - r31855;
        return r31860;
}

double f(double x, double y, double z) {
        double r31861 = x;
        double r31862 = y;
        double r31863 = log(r31862);
        double r31864 = r31861 * r31863;
        double r31865 = z;
        double r31866 = r31864 - r31865;
        double r31867 = r31866 - r31862;
        return r31867;
}

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