Average Error: 0.1 → 0.1
Time: 5.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 r31655 = x;
        double r31656 = y;
        double r31657 = log(r31656);
        double r31658 = r31655 * r31657;
        double r31659 = z;
        double r31660 = r31658 - r31659;
        double r31661 = r31660 - r31656;
        return r31661;
}

double f(double x, double y, double z) {
        double r31662 = x;
        double r31663 = y;
        double r31664 = log(r31663);
        double r31665 = r31662 * r31664;
        double r31666 = z;
        double r31667 = r31665 - r31666;
        double r31668 = r31667 - r31663;
        return r31668;
}

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