Average Error: 0.1 → 0.1
Time: 5.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 r28801 = x;
        double r28802 = y;
        double r28803 = log(r28802);
        double r28804 = r28801 * r28803;
        double r28805 = z;
        double r28806 = r28804 - r28805;
        double r28807 = r28806 - r28802;
        return r28807;
}

double f(double x, double y, double z) {
        double r28808 = x;
        double r28809 = y;
        double r28810 = log(r28809);
        double r28811 = r28808 * r28810;
        double r28812 = z;
        double r28813 = r28811 - r28812;
        double r28814 = r28813 - r28809;
        return r28814;
}

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