Average Error: 0.1 → 0.1
Time: 14.1s
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 r27973 = x;
        double r27974 = y;
        double r27975 = log(r27974);
        double r27976 = r27973 * r27975;
        double r27977 = z;
        double r27978 = r27976 - r27977;
        double r27979 = r27978 - r27974;
        return r27979;
}

double f(double x, double y, double z) {
        double r27980 = x;
        double r27981 = y;
        double r27982 = log(r27981);
        double r27983 = r27980 * r27982;
        double r27984 = z;
        double r27985 = r27983 - r27984;
        double r27986 = r27985 - r27981;
        return r27986;
}

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