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 r31368 = x;
        double r31369 = y;
        double r31370 = log(r31369);
        double r31371 = r31368 * r31370;
        double r31372 = z;
        double r31373 = r31371 - r31372;
        double r31374 = r31373 - r31369;
        return r31374;
}

double f(double x, double y, double z) {
        double r31375 = x;
        double r31376 = y;
        double r31377 = log(r31376);
        double r31378 = r31375 * r31377;
        double r31379 = z;
        double r31380 = r31378 - r31379;
        double r31381 = r31380 - r31376;
        return r31381;
}

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