Average Error: 0.1 → 0.1
Time: 4.8s
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 r22183 = x;
        double r22184 = y;
        double r22185 = log(r22184);
        double r22186 = r22183 * r22185;
        double r22187 = z;
        double r22188 = r22186 - r22187;
        double r22189 = r22188 - r22184;
        return r22189;
}

double f(double x, double y, double z) {
        double r22190 = x;
        double r22191 = y;
        double r22192 = log(r22191);
        double r22193 = r22190 * r22192;
        double r22194 = z;
        double r22195 = r22193 - r22194;
        double r22196 = r22195 - r22191;
        return r22196;
}

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