Average Error: 0.1 → 0.1
Time: 4.7s
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 r23250 = x;
        double r23251 = y;
        double r23252 = log(r23251);
        double r23253 = r23250 * r23252;
        double r23254 = z;
        double r23255 = r23253 - r23254;
        double r23256 = r23255 - r23251;
        return r23256;
}

double f(double x, double y, double z) {
        double r23257 = x;
        double r23258 = y;
        double r23259 = log(r23258);
        double r23260 = r23257 * r23259;
        double r23261 = z;
        double r23262 = r23260 - r23261;
        double r23263 = r23262 - r23258;
        return r23263;
}

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 2019352 +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))