Average Error: 26.6 → 0.8
Time: 1.0min
Precision: binary64
Cost: 75272
Math TeX FPCore C \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}\]
↓
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.6281278315350795 \cdot 10^{+39} \lor \neg \left(x \leq 6.795307804012348 \cdot 10^{+46}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 2\right) \cdot \frac{z}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \frac{x \cdot \left(x \cdot y\right)}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right)\right) - \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + 275.038832832 \cdot \frac{x \cdot x}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right) + -2 \cdot \frac{x \cdot y}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\\
\end{array}\]
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} ↓
\begin{array}{l}
\mathbf{if}\;x \leq -1.6281278315350795 \cdot 10^{+39} \lor \neg \left(x \leq 6.795307804012348 \cdot 10^{+46}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 2\right) \cdot \frac{z}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \frac{x \cdot \left(x \cdot y\right)}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right)\right) - \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + 275.038832832 \cdot \frac{x \cdot x}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right) + -2 \cdot \frac{x \cdot y}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\\
\end{array} (FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606))) ↓
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.6281278315350795e+39) (not (<= x 6.795307804012348e+46)))
(-
(+ (+ (* x 4.16438922228) (/ 3655.120465407641 x)) (/ y (* x x)))
(+ 110.11392429848108 (/ 130977.50649958356 (* x x))))
(+
(-
(+
(*
(- x 2.0)
(/
z
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))
(+
(*
4.16438922228
(/
(pow x 5.0)
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))
(+
(*
70.37071397084
(/
(pow x 4.0)
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))
(/
(* x (* x y))
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))))
(+
(*
19.87956841479999
(/
(pow x 3.0)
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))
(*
275.038832832
(/
(* x x)
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))))
(*
-2.0
(/
(* x y)
(+
(pow x 4.0)
(+
(* x 313.399215894)
(+
47.066876606
(* x (* x (+ 263.505074721 (* x 43.3400022514)))))))))))) double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
↓
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.6281278315350795e+39) || !(x <= 6.795307804012348e+46)) {
tmp = (((x * 4.16438922228) + (3655.120465407641 / x)) + (y / (x * x))) - (110.11392429848108 + (130977.50649958356 / (x * x)));
} else {
tmp = ((((x - 2.0) * (z / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))) + ((4.16438922228 * (pow(x, 5.0) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))) + ((70.37071397084 * (pow(x, 4.0) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))) + ((x * (x * y)) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))))) - ((19.87956841479999 * (pow(x, 3.0) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))) + (275.038832832 * ((x * x) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514))))))))))) + (-2.0 * ((x * y) / (pow(x, 4.0) + ((x * 313.399215894) + (47.066876606 + (x * (x * (263.505074721 + (x * 43.3400022514)))))))));
}
return tmp;
}
Try it out Enter valid numbers for all inputs
Target Original 26.6 Target 0.5 Herbie 0.8
\[\begin{array}{l}
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;\left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\end{array}\]
Alternatives Alternative 1 Error 0.6 Cost 2696
\[\begin{array}{l}
\mathbf{if}\;x \leq -2.5935894075575574 \cdot 10^{+39} \lor \neg \left(x \leq 1.379915533616411 \cdot 10^{+52}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot \frac{z + x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}\]
Alternative 2 Error 1.9 Cost 2440
\[\begin{array}{l}
\mathbf{if}\;x \leq -1.127219345480494 \cdot 10^{+16} \lor \neg \left(x \leq 2.25550138098064 \cdot 10^{+35}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot \frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}\]
Alternative 3 Error 1.8 Cost 2440
\[\begin{array}{l}
\mathbf{if}\;x \leq -12335511.506067034 \lor \neg \left(x \leq 1.4246719417432672 \cdot 10^{+17}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}\]
Alternative 4 Error 2.3 Cost 2184
\[\begin{array}{l}
\mathbf{if}\;x \leq -9.026779232908714 \cdot 10^{+36} \lor \neg \left(x \leq 1.4621033240230302 \cdot 10^{+35}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot \frac{z + x \cdot \left(y + x \cdot 137.519416416\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}\]
Alternative 5 Error 2.7 Cost 2184
\[\begin{array}{l}
\mathbf{if}\;x \leq -0.17614395995223925 \lor \neg \left(x \leq 1.9960170958710715\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;0.3041881842569256 \cdot \left(x \cdot \left(z + x \cdot y\right)\right) - \left(\left(x \cdot y\right) \cdot 0.0424927283095952 + \left(z \cdot 0.0424927283095952 + \left(x \cdot x\right) \cdot \left(z \cdot 1.787568985856513 + 5.843575199059174\right)\right)\right)\\
\end{array}\]
Alternative 6 Error 4.4 Cost 1672
\[\begin{array}{l}
\mathbf{if}\;x \leq -0.20056122210261773 \lor \neg \left(x \leq 0.4270998902787421\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot \left(\left(z + x \cdot y\right) \cdot 0.0212463641547976 - \left(x \cdot z\right) \cdot 0.14147091005106402\right)\\
\end{array}\]
Alternative 7 Error 6.8 Cost 1416
\[\begin{array}{l}
\mathbf{if}\;x \leq -0.23311757163645572 \lor \neg \left(x \leq 278554481538231.25\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot \left(\left(z + x \cdot y\right) \cdot 0.0212463641547976 - \left(x \cdot z\right) \cdot 0.14147091005106402\right)\\
\end{array}\]
Alternative 8 Error 6.7 Cost 1160
\[\begin{array}{l}
\mathbf{if}\;x \leq -0.17614395995223925 \lor \neg \left(x \leq 21.695285600705567\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;0.3041881842569256 \cdot \left(x \cdot z\right) - \left(z + x \cdot y\right) \cdot 0.0424927283095952\\
\end{array}\]
Alternative 9 Error 14.9 Cost 520
\[\begin{array}{l}
\mathbf{if}\;x \leq -0.2650696675736684 \lor \neg \left(x \leq 1.9960170958710715\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}\]
Alternative 10 Error 41.7 Cost 192
\[z \cdot -0.0424927283095952\]
Alternative 11 Error 61.9 Cost 64
\[1\]
Error Derivation Split input into 2 regimes if x < -1.62812783153507955e39 or 6.79530780401234759e46 < x Initial program 60.5
\[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}\]
Taylor expanded around inf 0.9
\[\leadsto \color{blue}{\left(\frac{y}{{x}^{2}} + \left(4.16438922228 \cdot x + 3655.120465407641 \cdot \frac{1}{x}\right)\right) - \left(130977.50649958356 \cdot \frac{1}{{x}^{2}} + 110.11392429848108\right)}\]
Simplified0.9
\[\leadsto \color{blue}{\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)}\]
Simplified0.9
\[\leadsto \color{blue}{\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)}\]
if -1.62812783153507955e39 < x < 6.79530780401234759e46 Initial program 1.0
\[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}\]
Taylor expanded around 0 0.9
\[\leadsto \color{blue}{\left(\frac{x \cdot z}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + \left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + \frac{{x}^{2} \cdot y}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)}\right)\right)\right) - \left(2 \cdot \frac{z}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + \left(2 \cdot \frac{x \cdot y}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)} + 275.038832832 \cdot \frac{{x}^{2}}{{x}^{4} + \left(313.399215894 \cdot x + \left(263.505074721 \cdot {x}^{2} + \left(43.3400022514 \cdot {x}^{3} + 47.066876606\right)\right)\right)}\right)\right)\right)}\]
Simplified0.7
\[\leadsto \color{blue}{\left(\left(\left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)} + \frac{x \cdot \left(x \cdot y\right)}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)}\right)\right) + \frac{z}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)} \cdot \left(x - 2\right)\right) - \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)} + 275.038832832 \cdot \frac{x \cdot x}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)}\right)\right) + -2 \cdot \frac{x \cdot y}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + 43.3400022514 \cdot x\right)\right)\right)\right)}}\]
Simplified0.7
\[\leadsto \color{blue}{\left(\left(\left(x - 2\right) \cdot \frac{z}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \frac{x \cdot \left(x \cdot y\right)}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right)\right) - \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + 275.038832832 \cdot \frac{x \cdot x}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right) + -2 \cdot \frac{x \cdot y}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}}\]
Recombined 2 regimes into one program. Final simplification0.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \leq -1.6281278315350795 \cdot 10^{+39} \lor \neg \left(x \leq 6.795307804012348 \cdot 10^{+46}\right):\\
\;\;\;\;\left(\left(x \cdot 4.16438922228 + \frac{3655.120465407641}{x}\right) + \frac{y}{x \cdot x}\right) - \left(110.11392429848108 + \frac{130977.50649958356}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(x - 2\right) \cdot \frac{z}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(4.16438922228 \cdot \frac{{x}^{5}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \left(70.37071397084 \cdot \frac{{x}^{4}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + \frac{x \cdot \left(x \cdot y\right)}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right)\right) - \left(19.87956841479999 \cdot \frac{{x}^{3}}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)} + 275.038832832 \cdot \frac{x \cdot x}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\right)\right) + -2 \cdot \frac{x \cdot y}{{x}^{4} + \left(x \cdot 313.399215894 + \left(47.066876606 + x \cdot \left(x \cdot \left(263.505074721 + x \cdot 43.3400022514\right)\right)\right)\right)}\\
\end{array}\]
Reproduce herbie shell --seed 2021044
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))