Average Error: 0.1 → 0.1
Time: 5.0s
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 r28484 = x;
        double r28485 = y;
        double r28486 = log(r28485);
        double r28487 = r28484 * r28486;
        double r28488 = z;
        double r28489 = r28487 - r28488;
        double r28490 = r28489 - r28485;
        return r28490;
}

double f(double x, double y, double z) {
        double r28491 = x;
        double r28492 = y;
        double r28493 = log(r28492);
        double r28494 = r28491 * r28493;
        double r28495 = z;
        double r28496 = r28494 - r28495;
        double r28497 = r28496 - r28492;
        return r28497;
}

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