- Split input into 2 regimes
if (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))) < -inf.0 or 5.05465991236478e+304 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y))))
Initial program 58.6
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
Taylor expanded around inf 36.6
\[\leadsto \color{blue}{\left(t \cdot \left(j \cdot c\right) + a \cdot \left(i \cdot b\right)\right) - i \cdot \left(j \cdot y\right)}\]
Simplified35.9
\[\leadsto \color{blue}{(\left(b \cdot a - y \cdot j\right) \cdot i + \left(\left(c \cdot j\right) \cdot t\right))_*}\]
if -inf.0 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))) < 5.05465991236478e+304
Initial program 0.8
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
- Using strategy
rm Applied prod-diff0.8
\[\leadsto \left(x \cdot \color{blue}{\left((y \cdot z + \left(-a \cdot t\right))_* + (\left(-a\right) \cdot t + \left(a \cdot t\right))_*\right)} - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
Applied distribute-rgt-in0.8
\[\leadsto \left(\color{blue}{\left((y \cdot z + \left(-a \cdot t\right))_* \cdot x + (\left(-a\right) \cdot t + \left(a \cdot t\right))_* \cdot x\right)} - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
Applied associate--l+0.8
\[\leadsto \color{blue}{\left((y \cdot z + \left(-a \cdot t\right))_* \cdot x + \left((\left(-a\right) \cdot t + \left(a \cdot t\right))_* \cdot x - b \cdot \left(c \cdot z - i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
Applied associate-+l+0.8
\[\leadsto \color{blue}{(y \cdot z + \left(-a \cdot t\right))_* \cdot x + \left(\left((\left(-a\right) \cdot t + \left(a \cdot t\right))_* \cdot x - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\right)}\]
- Recombined 2 regimes into one program.
Final simplification7.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;\left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) = -\infty:\\
\;\;\;\;(\left(b \cdot a - j \cdot y\right) \cdot i + \left(\left(c \cdot j\right) \cdot t\right))_*\\
\mathbf{elif}\;\left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(z \cdot y - t \cdot a\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) \le 5.05465991236478 \cdot 10^{+304}:\\
\;\;\;\;(y \cdot z + \left(-t \cdot a\right))_* \cdot x + \left(\left(t \cdot c - y \cdot i\right) \cdot j + \left((\left(-a\right) \cdot t + \left(t \cdot a\right))_* \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;(\left(b \cdot a - j \cdot y\right) \cdot i + \left(\left(c \cdot j\right) \cdot t\right))_*\\
\end{array}\]