Average Error: 29.3 → 0.9
Time: 39.0s
Precision: binary64
Cost: 46536
\[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
\[\begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+68}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}\right), x\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+21}:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{457.9610022158428 + t}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(-6976.8927133548 + t \cdot -15.234687407\right)}}\right)\\ \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+
  x
  (/
   (*
    y
    (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
   (+
    (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
    0.607771387771))))
(FPCore (x y z t a b)
 :precision binary64
 (if (<= z -1.02e+68)
   (fma
    y
    (+
     3.13060547623
     (+
      (+ (/ 457.9610022158428 (* z z)) (/ t (* z z)))
      (/ -36.52704169880642 z)))
    x)
   (if (<= z 1.4e+21)
     (+
      x
      (/
       y
       (/
        (fma
         (fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
         z
         0.607771387771)
        (fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
     (fma
      -36.52704169880642
      (/ y z)
      (+
       (fma 3.13060547623 y (+ x (/ y (/ (* z z) (+ 457.9610022158428 t)))))
       (/
        y
        (/
         (pow z 3.0)
         (+
          (+ a 1112.0901850848957)
          (+ -6976.8927133548 (* t -15.234687407))))))))))
double code(double x, double y, double z, double t, double a, double b) {
	return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= -1.02e+68) {
		tmp = fma(y, (3.13060547623 + (((457.9610022158428 / (z * z)) + (t / (z * z))) + (-36.52704169880642 / z))), x);
	} else if (z <= 1.4e+21) {
		tmp = x + (y / (fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
	} else {
		tmp = fma(-36.52704169880642, (y / z), (fma(3.13060547623, y, (x + (y / ((z * z) / (457.9610022158428 + t))))) + (y / (pow(z, 3.0) / ((a + 1112.0901850848957) + (-6976.8927133548 + (t * -15.234687407)))))));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)))
end
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (z <= -1.02e+68)
		tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(457.9610022158428 / Float64(z * z)) + Float64(t / Float64(z * z))) + Float64(-36.52704169880642 / z))), x);
	elseif (z <= 1.4e+21)
		tmp = Float64(x + Float64(y / Float64(fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b))));
	else
		tmp = fma(-36.52704169880642, Float64(y / z), Float64(fma(3.13060547623, y, Float64(x + Float64(y / Float64(Float64(z * z) / Float64(457.9610022158428 + t))))) + Float64(y / Float64((z ^ 3.0) / Float64(Float64(a + 1112.0901850848957) + Float64(-6976.8927133548 + Float64(t * -15.234687407)))))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.02e+68], N[(y * N[(3.13060547623 + N[(N[(N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.4e+21], N[(x + N[(y / N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-36.52704169880642 * N[(y / z), $MachinePrecision] + N[(N[(3.13060547623 * y + N[(x + N[(y / N[(N[(z * z), $MachinePrecision] / N[(457.9610022158428 + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(N[Power[z, 3.0], $MachinePrecision] / N[(N[(a + 1112.0901850848957), $MachinePrecision] + N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+68}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}\right), x\right)\\

\mathbf{elif}\;z \leq 1.4 \cdot 10^{+21}:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{457.9610022158428 + t}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(-6976.8927133548 + t \cdot -15.234687407\right)}}\right)\\


\end{array}

Error

Target

Original29.3
Target1.1
Herbie0.9
\[\begin{array}{l} \mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\ \;\;\;\;x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\ \mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\ \;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\ \end{array} \]

Derivation

  1. Split input into 3 regimes
  2. if z < -1.02e68

    1. Initial program 63.5

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Simplified62.8

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)} \]
      Proof

      [Start]63.5

      \[ x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]

      +-commutative [=>]63.5

      \[ \color{blue}{\frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} + x} \]

      associate-*r/ [<=]62.8

      \[ \color{blue}{y \cdot \frac{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}} + x \]

      fma-def [=>]62.8

      \[ \color{blue}{\mathsf{fma}\left(y, \frac{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right)} \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right)} + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, \left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right)} + a, b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t, a\right)}, b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)} + t, a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, z \cdot 3.13060547623 + 11.1667541262, t\right)}, a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right)}, t\right), a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\color{blue}{z \cdot \left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right)} + 0.607771387771}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\color{blue}{\mathsf{fma}\left(z, \left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721, 0.607771387771\right)}}, x\right) \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right)} + 11.9400905721, 0.607771387771\right)}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \left(z + 15.234687407\right) \cdot z + 31.4690115749, 11.9400905721\right)}, 0.607771387771\right)}, x\right) \]

      *-commutative [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \left(z + 15.234687407\right)} + 31.4690115749, 11.9400905721\right), 0.607771387771\right)}, x\right) \]

      fma-def [=>]62.8

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right)}, 11.9400905721\right), 0.607771387771\right)}, x\right) \]
    3. Taylor expanded in z around inf 0.6

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\left(3.13060547623 + \left(457.9610022158428 \cdot \frac{1}{{z}^{2}} + \frac{t}{{z}^{2}}\right)\right) - 36.52704169880642 \cdot \frac{1}{z}}, x\right) \]
    4. Simplified0.6

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)}, x\right) \]
      Proof

      [Start]0.6

      \[ \mathsf{fma}\left(y, \left(3.13060547623 + \left(457.9610022158428 \cdot \frac{1}{{z}^{2}} + \frac{t}{{z}^{2}}\right)\right) - 36.52704169880642 \cdot \frac{1}{z}, x\right) \]

      associate--l+ [=>]0.6

      \[ \mathsf{fma}\left(y, \color{blue}{3.13060547623 + \left(\left(457.9610022158428 \cdot \frac{1}{{z}^{2}} + \frac{t}{{z}^{2}}\right) - 36.52704169880642 \cdot \frac{1}{z}\right)}, x\right) \]

      associate-*r/ [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\color{blue}{\frac{457.9610022158428 \cdot 1}{{z}^{2}}} + \frac{t}{{z}^{2}}\right) - 36.52704169880642 \cdot \frac{1}{z}\right), x\right) \]

      metadata-eval [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{\color{blue}{457.9610022158428}}{{z}^{2}} + \frac{t}{{z}^{2}}\right) - 36.52704169880642 \cdot \frac{1}{z}\right), x\right) \]

      unpow2 [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{\color{blue}{z \cdot z}} + \frac{t}{{z}^{2}}\right) - 36.52704169880642 \cdot \frac{1}{z}\right), x\right) \]

      unpow2 [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{\color{blue}{z \cdot z}}\right) - 36.52704169880642 \cdot \frac{1}{z}\right), x\right) \]

      associate-*r/ [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) - \color{blue}{\frac{36.52704169880642 \cdot 1}{z}}\right), x\right) \]

      metadata-eval [=>]0.6

      \[ \mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) - \frac{\color{blue}{36.52704169880642}}{z}\right), x\right) \]

    if -1.02e68 < z < 1.4e21

    1. Initial program 2.2

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Simplified1.0

      \[\leadsto \color{blue}{x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}} \]
      Proof

      [Start]2.2

      \[ x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]

      associate-/l* [=>]1.0

      \[ x + \color{blue}{\frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\color{blue}{\mathsf{fma}\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721, z, 0.607771387771\right)}}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749, z, 11.9400905721\right)}, z, 0.607771387771\right)}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right)}, z, 11.9400905721\right), z, 0.607771387771\right)}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\color{blue}{\mathsf{fma}\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a, z, b\right)}}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t, z, a\right)}, z, b\right)}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z \cdot 3.13060547623 + 11.1667541262, z, t\right)}, z, a\right), z, b\right)}} \]

      fma-def [=>]1.0

      \[ x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right)}, z, t\right), z, a\right), z, b\right)}} \]

    if 1.4e21 < z

    1. Initial program 57.2

      \[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]
    2. Simplified54.2

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)} \]
      Proof

      [Start]57.2

      \[ x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \]

      +-commutative [=>]57.2

      \[ \color{blue}{\frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} + x} \]

      associate-*r/ [<=]54.2

      \[ \color{blue}{y \cdot \frac{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}} + x \]

      fma-def [=>]54.2

      \[ \color{blue}{\mathsf{fma}\left(y, \frac{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right)} \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\color{blue}{z \cdot \left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right)} + b}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{fma}\left(z, \left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a, b\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right)} + a, b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t, a\right)}, b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right)} + t, a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, z \cdot 3.13060547623 + 11.1667541262, t\right)}, a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right)}, t\right), a\right), b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}, x\right) \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\color{blue}{z \cdot \left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right)} + 0.607771387771}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\color{blue}{\mathsf{fma}\left(z, \left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721, 0.607771387771\right)}}, x\right) \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right)} + 11.9400905721, 0.607771387771\right)}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \left(z + 15.234687407\right) \cdot z + 31.4690115749, 11.9400905721\right)}, 0.607771387771\right)}, x\right) \]

      *-commutative [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \left(z + 15.234687407\right)} + 31.4690115749, 11.9400905721\right), 0.607771387771\right)}, x\right) \]

      fma-def [=>]54.2

      \[ \mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right)}, 11.9400905721\right), 0.607771387771\right)}, x\right) \]
    3. Taylor expanded in z around inf 13.3

      \[\leadsto \color{blue}{-36.52704169880642 \cdot \frac{y}{z} + \left(\frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}} + \left(3.13060547623 \cdot y + \left(\frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}} + x\right)\right)\right)} \]
    4. Simplified0.9

      \[\leadsto \color{blue}{\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(-6976.8927133548 + -15.234687407 \cdot t\right)}}\right)} \]
      Proof

      [Start]13.3

      \[ -36.52704169880642 \cdot \frac{y}{z} + \left(\frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}} + \left(3.13060547623 \cdot y + \left(\frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}} + x\right)\right)\right) \]

      fma-def [=>]13.3

      \[ \color{blue}{\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}} + \left(3.13060547623 \cdot y + \left(\frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}} + x\right)\right)\right)} \]

      +-commutative [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \color{blue}{\left(3.13060547623 \cdot y + \left(\frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}} + x\right)\right) + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}}\right) \]

      fma-def [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \color{blue}{\mathsf{fma}\left(3.13060547623, y, \frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}} + x\right)} + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}\right) \]

      +-commutative [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, \color{blue}{x + \frac{y \cdot \left(457.9610022158428 + t\right)}{{z}^{2}}}\right) + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}\right) \]

      associate-/l* [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \color{blue}{\frac{y}{\frac{{z}^{2}}{457.9610022158428 + t}}}\right) + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}\right) \]

      unpow2 [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{\color{blue}{z \cdot z}}{457.9610022158428 + t}}\right) + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}\right) \]

      +-commutative [=>]13.3

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{\color{blue}{t + 457.9610022158428}}}\right) + \frac{y \cdot \left(\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)\right)}{{z}^{3}}\right) \]

      associate-/l* [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \color{blue}{\frac{y}{\frac{{z}^{3}}{\left(1112.0901850848957 + a\right) - 15.234687407 \cdot \left(457.9610022158428 + t\right)}}}\right) \]

      cancel-sign-sub-inv [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\color{blue}{\left(1112.0901850848957 + a\right) + \left(-15.234687407\right) \cdot \left(457.9610022158428 + t\right)}}}\right) \]

      +-commutative [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\color{blue}{\left(a + 1112.0901850848957\right)} + \left(-15.234687407\right) \cdot \left(457.9610022158428 + t\right)}}\right) \]

      metadata-eval [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \color{blue}{-15.234687407} \cdot \left(457.9610022158428 + t\right)}}\right) \]

      distribute-lft-in [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \color{blue}{\left(-15.234687407 \cdot 457.9610022158428 + -15.234687407 \cdot t\right)}}}\right) \]

      metadata-eval [=>]0.9

      \[ \mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{t + 457.9610022158428}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(\color{blue}{-6976.8927133548} + -15.234687407 \cdot t\right)}}\right) \]
  3. Recombined 3 regimes into one program.
  4. Final simplification0.9

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+68}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}\right), x\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+21}:\\ \;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{457.9610022158428 + t}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(-6976.8927133548 + t \cdot -15.234687407\right)}}\right)\\ \end{array} \]

Alternatives

Alternative 1
Error0.4
Cost25864
\[\begin{array}{l} t_1 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 - z \cdot \left(-15.234687407 - z\right)\right)\right)}\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\frac{457.9610022158428}{z \cdot z} + \left(\left(\frac{t}{z \cdot z} + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{{z}^{3}}\right) + \frac{-36.52704169880642}{z}\right)\right), x\right)\\ \mathbf{elif}\;t_1 \leq 2 \cdot 10^{+306}:\\ \;\;\;\;x + t_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-36.52704169880642, \frac{y}{z}, \mathsf{fma}\left(3.13060547623, y, x + \frac{y}{\frac{z \cdot z}{457.9610022158428 + t}}\right) + \frac{y}{\frac{{z}^{3}}{\left(a + 1112.0901850848957\right) + \left(-6976.8927133548 + t \cdot -15.234687407\right)}}\right)\\ \end{array} \]
Alternative 2
Error0.4
Cost19337
\[\begin{array}{l} t_1 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 - z \cdot \left(-15.234687407 - z\right)\right)\right)}\\ \mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 2 \cdot 10^{+306}\right):\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\frac{457.9610022158428}{z \cdot z} + \left(\left(\frac{t}{z \cdot z} + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{{z}^{3}}\right) + \frac{-36.52704169880642}{z}\right)\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;x + t_1\\ \end{array} \]
Alternative 3
Error1.5
Cost7748
\[\begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{+20}:\\ \;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \left(\left(\frac{457.9610022158428}{z \cdot z} + \frac{t}{z \cdot z}\right) + \frac{-36.52704169880642}{z}\right), x\right)\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{+17}:\\ \;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 - z \cdot \left(-15.234687407 - z\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\right) + \frac{y}{z} \cdot \frac{457.9610022158428 + t}{z}\\ \end{array} \]
Alternative 4
Error1.5
Cost2633
\[\begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+20} \lor \neg \left(z \leq 5 \cdot 10^{+29}\right):\\ \;\;\;\;\left(x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\right) + \frac{y}{z} \cdot \frac{457.9610022158428 + t}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 - z \cdot \left(-15.234687407 - z\right)\right)\right)}\\ \end{array} \]
Alternative 5
Error1.7
Cost2377
\[\begin{array}{l} \mathbf{if}\;z \leq -7.2 \cdot 10^{+15} \lor \neg \left(z \leq 82000000\right):\\ \;\;\;\;\left(x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\right) + \frac{y}{z} \cdot \frac{457.9610022158428 + t}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 - z \cdot \left(-15.234687407 - z\right)\right)\right)}\\ \end{array} \]
Alternative 6
Error2.2
Cost1993
\[\begin{array}{l} \mathbf{if}\;z \leq -18000 \lor \neg \left(z \leq 16.5\right):\\ \;\;\;\;\left(x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\right) + \frac{y}{z} \cdot \frac{457.9610022158428 + t}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\ \end{array} \]
Alternative 7
Error4.1
Cost1609
\[\begin{array}{l} \mathbf{if}\;z \leq -3.85 \cdot 10^{+15} \lor \neg \left(z \leq 2 \cdot 10^{-12}\right):\\ \;\;\;\;\left(x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\right) + \frac{y}{z} \cdot \frac{457.9610022158428 + t}{z}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + b \cdot -32.324150453290734\right)\right) + \left(x + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\ \end{array} \]
Alternative 8
Error6.0
Cost1480
\[\begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{+43}:\\ \;\;\;\;x + y \cdot 3.13060547623\\ \mathbf{elif}\;z \leq 2 \cdot 10^{-12}:\\ \;\;\;\;y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + b \cdot -32.324150453290734\right)\right) + \left(x + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + 0.31942702700572795}\\ \end{array} \]
Alternative 9
Error6.0
Cost1480
\[\begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{+43}:\\ \;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 + \frac{-3.241970391368047 + t \cdot -0.10203362558171805}{z \cdot z}\right)}\\ \mathbf{elif}\;z \leq 2 \cdot 10^{-12}:\\ \;\;\;\;y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + b \cdot -32.324150453290734\right)\right) + \left(x + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + 0.31942702700572795}\\ \end{array} \]
Alternative 10
Error9.6
Cost1220
\[\begin{array}{l} \mathbf{if}\;z \leq -0.0018:\\ \;\;\;\;x + \frac{y \cdot \left(0.31942702700572795 + \frac{-3.7269864963038164}{z}\right)}{0.10203362558171805 + \frac{-13.890428343630997}{z \cdot z}}\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-105}:\\ \;\;\;\;x + \frac{y}{\frac{0.607771387771}{b}}\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{-166}:\\ \;\;\;\;x + y \cdot \left(1.6453555072203998 \cdot \left(z \cdot a\right)\right)\\ \mathbf{elif}\;z \leq 2 \cdot 10^{-12}:\\ \;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + 0.31942702700572795}\\ \end{array} \]
Alternative 11
Error20.0
Cost848
\[\begin{array}{l} t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\ t_2 := x + y \cdot 3.13060547623\\ \mathbf{if}\;z \leq -3 \cdot 10^{-213}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -6.2 \cdot 10^{-307}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 6.3 \cdot 10^{-208}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{-176}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 12
Error9.1
Cost841
\[\begin{array}{l} \mathbf{if}\;z \leq -0.017 \lor \neg \left(z \leq 2 \cdot 10^{-12}\right):\\ \;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + 0.31942702700572795}\\ \mathbf{else}:\\ \;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\ \end{array} \]
Alternative 13
Error9.4
Cost713
\[\begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{+43} \lor \neg \left(z \leq 2 \cdot 10^{-12}\right):\\ \;\;\;\;x + y \cdot 3.13060547623\\ \mathbf{else}:\\ \;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\ \end{array} \]
Alternative 14
Error9.4
Cost713
\[\begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{+43} \lor \neg \left(z \leq 2 \cdot 10^{-12}\right):\\ \;\;\;\;x + y \cdot 3.13060547623\\ \mathbf{else}:\\ \;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\ \end{array} \]
Alternative 15
Error30.5
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -7.2 \cdot 10^{-141}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{-71}:\\ \;\;\;\;1.6453555072203998 \cdot \left(y \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 16
Error32.2
Cost64
\[x \]

Error

Reproduce

herbie shell --seed 2022364 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
  :precision binary64

  :herbie-target
  (if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))

  (+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))