Average Error: 0.1 → 0.1
Time: 5.2s
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 r24063 = x;
        double r24064 = y;
        double r24065 = log(r24064);
        double r24066 = r24063 * r24065;
        double r24067 = z;
        double r24068 = r24066 - r24067;
        double r24069 = r24068 - r24064;
        return r24069;
}

double f(double x, double y, double z) {
        double r24070 = x;
        double r24071 = y;
        double r24072 = log(r24071);
        double r24073 = r24070 * r24072;
        double r24074 = z;
        double r24075 = r24073 - r24074;
        double r24076 = r24075 - r24071;
        return r24076;
}

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