- Split input into 2 regimes
if (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (- (* j (* c t)) (* y (* j i)))) < -5.756495905662776e+307 or 3.3508103339192373e+301 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (- (* j (* c t)) (* y (* j i))))
Initial program 47.3
\[\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 45.2
\[\leadsto \color{blue}{\left(j \cdot \left(c \cdot t\right) + b \cdot \left(a \cdot i\right)\right) - j \cdot \left(y \cdot i\right)}\]
Simplified36.1
\[\leadsto \color{blue}{i \cdot \left(a \cdot b - j \cdot y\right) + \left(j \cdot t\right) \cdot c}\]
if -5.756495905662776e+307 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (- (* j (* c t)) (* y (* j i)))) < 3.3508103339192373e+301
Initial program 2.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 0.9
\[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right)}\]
- Recombined 2 regimes into one program.
Final simplification7.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le -5.756495905662776 \cdot 10^{+307}:\\
\;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\
\mathbf{elif}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le 3.3508103339192373 \cdot 10^{+301}:\\
\;\;\;\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\
\end{array}\]