Average Error: 0.1 → 0.1
Time: 18.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 r1021528 = x;
        double r1021529 = y;
        double r1021530 = log(r1021529);
        double r1021531 = r1021528 * r1021530;
        double r1021532 = z;
        double r1021533 = r1021531 - r1021532;
        double r1021534 = r1021533 - r1021529;
        return r1021534;
}

double f(double x, double y, double z) {
        double r1021535 = x;
        double r1021536 = y;
        double r1021537 = log(r1021536);
        double r1021538 = r1021535 * r1021537;
        double r1021539 = z;
        double r1021540 = r1021538 - r1021539;
        double r1021541 = r1021540 - r1021536;
        return r1021541;
}

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