Average Error: 0.1 → 0.1
Time: 11.3s
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 r48808 = x;
        double r48809 = y;
        double r48810 = log(r48809);
        double r48811 = r48808 * r48810;
        double r48812 = z;
        double r48813 = r48811 - r48812;
        double r48814 = r48813 - r48809;
        return r48814;
}

double f(double x, double y, double z) {
        double r48815 = x;
        double r48816 = y;
        double r48817 = log(r48816);
        double r48818 = r48815 * r48817;
        double r48819 = z;
        double r48820 = r48818 - r48819;
        double r48821 = r48820 - r48816;
        return r48821;
}

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