Average Error: 58.1 → 58.1
Time: 21.6s
Precision: 64
\[x = 77617 \land y = 33096\]
\[\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}\]
\[\mathsf{expm1}\left(\mathsf{log1p}\left({y}^{6} \cdot 333.75\right)\right) + \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)\]
\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}
\mathsf{expm1}\left(\mathsf{log1p}\left({y}^{6} \cdot 333.75\right)\right) + \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)
double f(double x, double y) {
        double r45013 = 333.75;
        double r45014 = y;
        double r45015 = 6.0;
        double r45016 = pow(r45014, r45015);
        double r45017 = r45013 * r45016;
        double r45018 = x;
        double r45019 = r45018 * r45018;
        double r45020 = 11.0;
        double r45021 = r45020 * r45018;
        double r45022 = r45021 * r45018;
        double r45023 = r45022 * r45014;
        double r45024 = r45023 * r45014;
        double r45025 = r45024 - r45016;
        double r45026 = 121.0;
        double r45027 = 4.0;
        double r45028 = pow(r45014, r45027);
        double r45029 = r45026 * r45028;
        double r45030 = r45025 - r45029;
        double r45031 = 2.0;
        double r45032 = r45030 - r45031;
        double r45033 = r45019 * r45032;
        double r45034 = r45017 + r45033;
        double r45035 = 5.5;
        double r45036 = 8.0;
        double r45037 = pow(r45014, r45036);
        double r45038 = r45035 * r45037;
        double r45039 = r45034 + r45038;
        double r45040 = r45031 * r45014;
        double r45041 = r45018 / r45040;
        double r45042 = r45039 + r45041;
        return r45042;
}

double f(double x, double y) {
        double r45043 = y;
        double r45044 = 6.0;
        double r45045 = pow(r45043, r45044);
        double r45046 = 333.75;
        double r45047 = r45045 * r45046;
        double r45048 = log1p(r45047);
        double r45049 = expm1(r45048);
        double r45050 = 11.0;
        double r45051 = x;
        double r45052 = r45050 * r45051;
        double r45053 = r45052 * r45051;
        double r45054 = r45053 * r45043;
        double r45055 = r45054 * r45043;
        double r45056 = 4.0;
        double r45057 = pow(r45043, r45056);
        double r45058 = 121.0;
        double r45059 = 2.0;
        double r45060 = fma(r45057, r45058, r45059);
        double r45061 = r45045 + r45060;
        double r45062 = r45055 - r45061;
        double r45063 = r45051 * r45051;
        double r45064 = 5.5;
        double r45065 = 8.0;
        double r45066 = pow(r45043, r45065);
        double r45067 = r45059 * r45043;
        double r45068 = r45051 / r45067;
        double r45069 = fma(r45064, r45066, r45068);
        double r45070 = fma(r45062, r45063, r45069);
        double r45071 = r45049 + r45070;
        return r45071;
}

Error

Derivation

  1. Initial program 58.1

    \[\left(\left(333.75 \cdot {y}^{6} + \left(x \cdot x\right) \cdot \left(\left(\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - {y}^{6}\right) - 121 \cdot {y}^{4}\right) - 2\right)\right) + 5.5 \cdot {y}^{8}\right) + \frac{x}{2 \cdot y}\]
  2. Simplified58.1

    \[\leadsto \color{blue}{\mathsf{fma}\left({y}^{6}, 333.75, \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)\right)}\]
  3. Using strategy rm
  4. Applied fma-udef58.1

    \[\leadsto \color{blue}{{y}^{6} \cdot 333.75 + \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)}\]
  5. Using strategy rm
  6. Applied expm1-log1p-u58.1

    \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left({y}^{6} \cdot 333.75\right)\right)} + \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)\]
  7. Final simplification58.1

    \[\leadsto \mathsf{expm1}\left(\mathsf{log1p}\left({y}^{6} \cdot 333.75\right)\right) + \mathsf{fma}\left(\left(\left(\left(11 \cdot x\right) \cdot x\right) \cdot y\right) \cdot y - \left({y}^{6} + \mathsf{fma}\left({y}^{4}, 121, 2\right)\right), x \cdot x, \mathsf{fma}\left(5.5, {y}^{8}, \frac{x}{2 \cdot y}\right)\right)\]

Reproduce

herbie shell --seed 2019325 +o rules:numerics
(FPCore (x y)
  :name "Rump's expression from Stadtherr's award speech"
  :precision binary64
  :pre (and (== x 77617) (== y 33096))
  (+ (+ (+ (* 333.75 (pow y 6)) (* (* x x) (- (- (- (* (* (* (* 11 x) x) y) y) (pow y 6)) (* 121 (pow y 4))) 2))) (* 5.5 (pow y 8))) (/ x (* 2 y))))