Average Error: 0.1 → 0.1
Time: 24.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 r1025851 = x;
        double r1025852 = y;
        double r1025853 = log(r1025852);
        double r1025854 = r1025851 * r1025853;
        double r1025855 = z;
        double r1025856 = r1025854 - r1025855;
        double r1025857 = r1025856 - r1025852;
        return r1025857;
}

double f(double x, double y, double z) {
        double r1025858 = x;
        double r1025859 = y;
        double r1025860 = log(r1025859);
        double r1025861 = r1025858 * r1025860;
        double r1025862 = z;
        double r1025863 = r1025861 - r1025862;
        double r1025864 = r1025863 - r1025859;
        return r1025864;
}

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