Average Error: 0.1 → 0.1
Time: 4.5s
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 r26146 = x;
        double r26147 = y;
        double r26148 = log(r26147);
        double r26149 = r26146 * r26148;
        double r26150 = z;
        double r26151 = r26149 - r26150;
        double r26152 = r26151 - r26147;
        return r26152;
}

double f(double x, double y, double z) {
        double r26153 = x;
        double r26154 = y;
        double r26155 = log(r26154);
        double r26156 = r26153 * r26155;
        double r26157 = z;
        double r26158 = r26156 - r26157;
        double r26159 = r26158 - r26154;
        return r26159;
}

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