Average Error: 0.1 → 0.1
Time: 18.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 r30890 = x;
        double r30891 = y;
        double r30892 = log(r30891);
        double r30893 = r30890 * r30892;
        double r30894 = z;
        double r30895 = r30893 - r30894;
        double r30896 = r30895 - r30891;
        return r30896;
}

double f(double x, double y, double z) {
        double r30897 = x;
        double r30898 = y;
        double r30899 = log(r30898);
        double r30900 = r30897 * r30899;
        double r30901 = z;
        double r30902 = r30900 - r30901;
        double r30903 = r30902 - r30898;
        return r30903;
}

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