- Split input into 2 regimes
if (+ (- (fma x (* (* z t) (* y 18.0)) (fma (* t 4.0) (- a) (* c b))) (fma (* k j) 27.0 (* 4.0 (* i x)))) 0) < -1.2582142650713167e+302 or 7.19774038001308e+300 < (+ (- (fma x (* (* z t) (* y 18.0)) (fma (* t 4.0) (- a) (* c b))) (fma (* k j) 27.0 (* 4.0 (* i x)))) 0)
Initial program 5.6
\[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
Applied simplify6.8
\[\leadsto \color{blue}{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - (i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*}\]
- Using strategy
rm Applied associate-*r*6.4
\[\leadsto (\color{blue}{\left(\left(\left(t \cdot x\right) \cdot y\right) \cdot 18.0\right)} \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - (i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*\]
if -1.2582142650713167e+302 < (+ (- (fma x (* (* z t) (* y 18.0)) (fma (* t 4.0) (- a) (* c b))) (fma (* k j) 27.0 (* 4.0 (* i x)))) 0) < 7.19774038001308e+300
Initial program 5.0
\[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
Applied simplify3.8
\[\leadsto \color{blue}{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - (i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*}\]
- Using strategy
rm Applied *-un-lft-identity3.8
\[\leadsto (\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - \color{blue}{1 \cdot (i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*}\]
Applied add-sqr-sqrt33.4
\[\leadsto \color{blue}{\sqrt{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_*} \cdot \sqrt{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_*}} - 1 \cdot (i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*\]
Applied prod-diff33.4
\[\leadsto \color{blue}{(\left(\sqrt{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_*}\right) \cdot \left(\sqrt{(\left(\left(t \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_*}\right) + \left(-(i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_* \cdot 1\right))_* + (\left(-(i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*\right) \cdot 1 + \left((i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_* \cdot 1\right))_*}\]
Applied simplify0.4
\[\leadsto \color{blue}{\left((x \cdot \left(\left(z \cdot t\right) \cdot \left(y \cdot 18.0\right)\right) + \left((\left(t \cdot 4.0\right) \cdot \left(-a\right) + \left(c \cdot b\right))_*\right))_* - (\left(k \cdot j\right) \cdot 27.0 + \left(4.0 \cdot \left(i \cdot x\right)\right))_*\right)} + (\left(-(i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_*\right) \cdot 1 + \left((i \cdot \left(x \cdot 4.0\right) + \left(\left(27.0 \cdot k\right) \cdot j\right))_* \cdot 1\right))_*\]
Applied simplify0.3
\[\leadsto \left((x \cdot \left(\left(z \cdot t\right) \cdot \left(y \cdot 18.0\right)\right) + \left((\left(t \cdot 4.0\right) \cdot \left(-a\right) + \left(c \cdot b\right))_*\right))_* - (\left(k \cdot j\right) \cdot 27.0 + \left(4.0 \cdot \left(i \cdot x\right)\right))_*\right) + \color{blue}{0}\]
- Recombined 2 regimes into one program.
Applied simplify0.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;(x \cdot \left(\left(t \cdot z\right) \cdot \left(18.0 \cdot y\right)\right) + \left((\left(4.0 \cdot t\right) \cdot \left(-a\right) + \left(b \cdot c\right))_*\right))_* - (\left(k \cdot j\right) \cdot 27.0 + \left(4.0 \cdot \left(x \cdot i\right)\right))_* \le -1.2582142650713167 \cdot 10^{+302}:\\
\;\;\;\;(\left(\left(\left(x \cdot t\right) \cdot y\right) \cdot 18.0\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - (i \cdot \left(x \cdot 4.0\right) + \left(j \cdot \left(k \cdot 27.0\right)\right))_*\\
\mathbf{if}\;(x \cdot \left(\left(t \cdot z\right) \cdot \left(18.0 \cdot y\right)\right) + \left((\left(4.0 \cdot t\right) \cdot \left(-a\right) + \left(b \cdot c\right))_*\right))_* - (\left(k \cdot j\right) \cdot 27.0 + \left(4.0 \cdot \left(x \cdot i\right)\right))_* \le 7.19774038001308 \cdot 10^{+300}:\\
\;\;\;\;(x \cdot \left(\left(t \cdot z\right) \cdot \left(18.0 \cdot y\right)\right) + \left((\left(4.0 \cdot t\right) \cdot \left(-a\right) + \left(b \cdot c\right))_*\right))_* - (\left(k \cdot j\right) \cdot 27.0 + \left(4.0 \cdot \left(x \cdot i\right)\right))_*\\
\mathbf{else}:\\
\;\;\;\;(\left(\left(\left(x \cdot t\right) \cdot y\right) \cdot 18.0\right) \cdot z + \left((\left(-a\right) \cdot \left(4.0 \cdot t\right) + \left(b \cdot c\right))_*\right))_* - (i \cdot \left(x \cdot 4.0\right) + \left(j \cdot \left(k \cdot 27.0\right)\right))_*\\
\end{array}}\]