Average Error: 0.1 → 0.1
Time: 18.6s
Precision: 64
\[\left(\left(x \cdot \log y - y\right) - z\right) + \log t\]
\[\left(x \cdot \log y - y\right) - \left(z - \log t\right)\]
\left(\left(x \cdot \log y - y\right) - z\right) + \log t
\left(x \cdot \log y - y\right) - \left(z - \log t\right)
double f(double x, double y, double z, double t) {
        double r63129 = x;
        double r63130 = y;
        double r63131 = log(r63130);
        double r63132 = r63129 * r63131;
        double r63133 = r63132 - r63130;
        double r63134 = z;
        double r63135 = r63133 - r63134;
        double r63136 = t;
        double r63137 = log(r63136);
        double r63138 = r63135 + r63137;
        return r63138;
}

double f(double x, double y, double z, double t) {
        double r63139 = x;
        double r63140 = y;
        double r63141 = log(r63140);
        double r63142 = r63139 * r63141;
        double r63143 = r63142 - r63140;
        double r63144 = z;
        double r63145 = t;
        double r63146 = log(r63145);
        double r63147 = r63144 - r63146;
        double r63148 = r63143 - r63147;
        return r63148;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\left(\left(x \cdot \log y - y\right) - z\right) + \log t\]
  2. Using strategy rm
  3. Applied associate-+l-0.1

    \[\leadsto \color{blue}{\left(x \cdot \log y - y\right) - \left(z - \log t\right)}\]
  4. Final simplification0.1

    \[\leadsto \left(x \cdot \log y - y\right) - \left(z - \log t\right)\]

Reproduce

herbie shell --seed 2019198 
(FPCore (x y z t)
  :name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, A"
  (+ (- (- (* x (log y)) y) z) (log t)))