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 r22653 = x;
        double r22654 = y;
        double r22655 = log(r22654);
        double r22656 = r22653 * r22655;
        double r22657 = z;
        double r22658 = r22656 - r22657;
        double r22659 = r22658 - r22654;
        return r22659;
}

double f(double x, double y, double z) {
        double r22660 = x;
        double r22661 = y;
        double r22662 = log(r22661);
        double r22663 = r22660 * r22662;
        double r22664 = z;
        double r22665 = r22663 - r22664;
        double r22666 = r22665 - r22661;
        return r22666;
}

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