
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
(* j (- (* c a) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- c) b (* y x)) z (* (fma (- x) t (* j c)) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-c, b, (y * x)), z, (fma(-x, t, (j * c)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites46.4%
Taylor expanded in i around 0
Applied rewrites65.1%
Final simplification85.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))))
(if (<= (+ t_1 (* j (- (* c a) (* y i)))) INFINITY)
(+ t_1 (* (* j c) a))
(fma (fma (- c) b (* y x)) z (* (fma (- x) t (* j c)) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)));
double tmp;
if ((t_1 + (j * ((c * a) - (y * i)))) <= ((double) INFINITY)) {
tmp = t_1 + ((j * c) * a);
} else {
tmp = fma(fma(-c, b, (y * x)), z, (fma(-x, t, (j * c)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) tmp = 0.0 if (Float64(t_1 + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) <= Inf) tmp = Float64(t_1 + Float64(Float64(j * c) * a)); else tmp = fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\\
\mathbf{if}\;t\_1 + j \cdot \left(c \cdot a - y \cdot i\right) \leq \infty:\\
\;\;\;\;t\_1 + \left(j \cdot c\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.1%
Taylor expanded in y around 0
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6481.6
Applied rewrites81.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites46.4%
Taylor expanded in i around 0
Applied rewrites65.1%
Final simplification78.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i 1.02e+92)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- a) x (* i b)) t (* (fma (- b) c (* y x)) z)))
(fma (fma (- x) t (* j c)) a (* (fma (- j) y (* b t)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= 1.02e+92) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-a, x, (i * b)), t, (fma(-b, c, (y * x)) * z)));
} else {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-j, y, (b * t)) * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= 1.02e+92) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, fma(fma(Float64(-a), x, Float64(i * b)), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z))); else tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-j), y, Float64(b * t)) * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, 1.02e+92], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq 1.02 \cdot 10^{+92}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, i \cdot b\right), t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\right)\\
\end{array}
\end{array}
if i < 1.02000000000000003e92Initial program 75.1%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites83.6%
if 1.02000000000000003e92 < i Initial program 56.0%
Taylor expanded in c around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites79.4%
Final simplification82.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (fma (fma (- z) c (* i t)) b (* (fma (- i) y (* c a)) j))))
(if (<= b -100000.0)
t_2
(if (<= b -7.5e-246)
(fma (* y x) z (* t_1 a))
(if (<= b 1.3e+106)
(fma t_1 a (* (fma (- j) y (* b t)) i))
(if (<= b 1.1e+159) (* (* (fma b (/ i a) (- x)) a) t) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (j * c));
double t_2 = fma(fma(-z, c, (i * t)), b, (fma(-i, y, (c * a)) * j));
double tmp;
if (b <= -100000.0) {
tmp = t_2;
} else if (b <= -7.5e-246) {
tmp = fma((y * x), z, (t_1 * a));
} else if (b <= 1.3e+106) {
tmp = fma(t_1, a, (fma(-j, y, (b * t)) * i));
} else if (b <= 1.1e+159) {
tmp = (fma(b, (i / a), -x) * a) * t;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), y, Float64(c * a)) * j)) tmp = 0.0 if (b <= -100000.0) tmp = t_2; elseif (b <= -7.5e-246) tmp = fma(Float64(y * x), z, Float64(t_1 * a)); elseif (b <= 1.3e+106) tmp = fma(t_1, a, Float64(fma(Float64(-j), y, Float64(b * t)) * i)); elseif (b <= 1.1e+159) tmp = Float64(Float64(fma(b, Float64(i / a), Float64(-x)) * a) * t); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -100000.0], t$95$2, If[LessEqual[b, -7.5e-246], N[(N[(y * x), $MachinePrecision] * z + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e+106], N[(t$95$1 * a + N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e+159], N[(N[(N[(b * N[(i / a), $MachinePrecision] + (-x)), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{if}\;b \leq -100000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-246}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x, z, t\_1 \cdot a\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+106}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+159}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, \frac{i}{a}, -x\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1e5 or 1.1e159 < b Initial program 76.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites74.8%
Taylor expanded in x around 0
Applied rewrites74.9%
if -1e5 < b < -7.50000000000000049e-246Initial program 75.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites87.2%
Taylor expanded in i around 0
Applied rewrites80.5%
Taylor expanded in x around inf
Applied rewrites72.7%
if -7.50000000000000049e-246 < b < 1.3000000000000001e106Initial program 68.1%
Taylor expanded in c around 0
Applied rewrites79.8%
Taylor expanded in z around 0
Applied rewrites80.2%
if 1.3000000000000001e106 < b < 1.1e159Initial program 44.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6488.9
Applied rewrites88.9%
Taylor expanded in a around inf
Applied rewrites89.9%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (fma (fma (- c) b (* y x)) z (* t_1 a))))
(if (<= z -1.55e-5)
t_2
(if (<= z -4.5e-46)
(fma (fma (- z) c (* i t)) b (* (fma (- i) y (* c a)) j))
(if (<= z 4.6e-36) (fma t_1 a (* (fma (- j) y (* b t)) i)) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (j * c));
double t_2 = fma(fma(-c, b, (y * x)), z, (t_1 * a));
double tmp;
if (z <= -1.55e-5) {
tmp = t_2;
} else if (z <= -4.5e-46) {
tmp = fma(fma(-z, c, (i * t)), b, (fma(-i, y, (c * a)) * j));
} else if (z <= 4.6e-36) {
tmp = fma(t_1, a, (fma(-j, y, (b * t)) * i));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(t_1 * a)) tmp = 0.0 if (z <= -1.55e-5) tmp = t_2; elseif (z <= -4.5e-46) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (z <= 4.6e-36) tmp = fma(t_1, a, Float64(fma(Float64(-j), y, Float64(b * t)) * i)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.55e-5], t$95$2, If[LessEqual[z, -4.5e-46], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-36], N[(t$95$1 * a + N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, t\_1 \cdot a\right)\\
\mathbf{if}\;z \leq -1.55 \cdot 10^{-5}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-46}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.55000000000000007e-5 or 4.59999999999999993e-36 < z Initial program 69.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites79.7%
Taylor expanded in i around 0
Applied rewrites79.2%
if -1.55000000000000007e-5 < z < -4.50000000000000001e-46Initial program 84.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites92.2%
Taylor expanded in x around 0
Applied rewrites100.0%
if -4.50000000000000001e-46 < z < 4.59999999999999993e-36Initial program 74.3%
Taylor expanded in c around 0
Applied rewrites77.2%
Taylor expanded in z around 0
Applied rewrites78.2%
Final simplification79.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.4e-39)
(fma (fma (- c) b (* y x)) z (* (* (- x) t) a))
(if (<= x 1.2e+56)
(fma (fma (- z) c (* i t)) b (* (fma (- i) y (* c a)) j))
(* (fma (- t) a (* z y)) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.4e-39) {
tmp = fma(fma(-c, b, (y * x)), z, ((-x * t) * a));
} else if (x <= 1.2e+56) {
tmp = fma(fma(-z, c, (i * t)), b, (fma(-i, y, (c * a)) * j));
} else {
tmp = fma(-t, a, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.4e-39) tmp = fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(Float64(Float64(-x) * t) * a)); elseif (x <= 1.2e+56) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); else tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.4e-39], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+56], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-39}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \left(\left(-x\right) \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+56}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if x < -2.40000000000000016e-39Initial program 75.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites73.8%
Taylor expanded in i around 0
Applied rewrites73.6%
Taylor expanded in x around inf
Applied rewrites70.5%
if -2.40000000000000016e-39 < x < 1.20000000000000007e56Initial program 73.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites85.3%
Taylor expanded in x around 0
Applied rewrites75.9%
if 1.20000000000000007e56 < x Initial program 58.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites65.3%
Taylor expanded in x around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.3
Applied rewrites72.3%
Final simplification73.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.8e+35) (not (<= b 4.6e+141))) (* (fma (- z) c (* i t)) b) (fma (* y x) z (* (fma (- x) t (* j c)) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.8e+35) || !(b <= 4.6e+141)) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = fma((y * x), z, (fma(-x, t, (j * c)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.8e+35) || !(b <= 4.6e+141)) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = fma(Float64(y * x), z, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.8e+35], N[Not[LessEqual[b, 4.6e+141]], $MachinePrecision]], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.8 \cdot 10^{+35} \lor \neg \left(b \leq 4.6 \cdot 10^{+141}\right):\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\end{array}
\end{array}
if b < -6.8000000000000002e35 or 4.6000000000000003e141 < b Initial program 74.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6468.1
Applied rewrites68.1%
if -6.8000000000000002e35 < b < 4.6000000000000003e141Initial program 69.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites79.6%
Taylor expanded in i around 0
Applied rewrites72.5%
Taylor expanded in x around inf
Applied rewrites67.9%
Final simplification68.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3.3e-64) (not (<= t 1.9e+116))) (* (* (fma b (/ i a) (- x)) a) t) (fma (* y x) z (* (fma (- b) z (* j a)) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3.3e-64) || !(t <= 1.9e+116)) {
tmp = (fma(b, (i / a), -x) * a) * t;
} else {
tmp = fma((y * x), z, (fma(-b, z, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -3.3e-64) || !(t <= 1.9e+116)) tmp = Float64(Float64(fma(b, Float64(i / a), Float64(-x)) * a) * t); else tmp = fma(Float64(y * x), z, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3.3e-64], N[Not[LessEqual[t, 1.9e+116]], $MachinePrecision]], N[(N[(N[(b * N[(i / a), $MachinePrecision] + (-x)), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{-64} \lor \neg \left(t \leq 1.9 \cdot 10^{+116}\right):\\
\;\;\;\;\left(\mathsf{fma}\left(b, \frac{i}{a}, -x\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if t < -3.2999999999999999e-64 or 1.8999999999999999e116 < t Initial program 63.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.5
Applied rewrites71.5%
Taylor expanded in a around inf
Applied rewrites72.4%
if -3.2999999999999999e-64 < t < 1.8999999999999999e116Initial program 78.6%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites66.3%
Taylor expanded in t around 0
Applied rewrites62.4%
Final simplification67.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3.3e-64) (not (<= t 1.9e+116))) (* (fma i b (* (- a) x)) t) (fma (* y x) z (* (fma (- b) z (* j a)) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3.3e-64) || !(t <= 1.9e+116)) {
tmp = fma(i, b, (-a * x)) * t;
} else {
tmp = fma((y * x), z, (fma(-b, z, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -3.3e-64) || !(t <= 1.9e+116)) tmp = Float64(fma(i, b, Float64(Float64(-a) * x)) * t); else tmp = fma(Float64(y * x), z, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3.3e-64], N[Not[LessEqual[t, 1.9e+116]], $MachinePrecision]], N[(N[(i * b + N[((-a) * x), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{-64} \lor \neg \left(t \leq 1.9 \cdot 10^{+116}\right):\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-a\right) \cdot x\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if t < -3.2999999999999999e-64 or 1.8999999999999999e116 < t Initial program 63.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.5
Applied rewrites71.5%
Applied rewrites71.5%
if -3.2999999999999999e-64 < t < 1.8999999999999999e116Initial program 78.6%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites66.3%
Taylor expanded in t around 0
Applied rewrites62.4%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.5e+35)
(* (fma (- z) c (* i t)) b)
(if (<= b 6.5e+87)
(* (fma (- x) t (* j c)) a)
(if (<= b 7.5e+171)
(* (fma i b (* (- a) x)) t)
(* (fma (- b) c (* y x)) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.5e+35) {
tmp = fma(-z, c, (i * t)) * b;
} else if (b <= 6.5e+87) {
tmp = fma(-x, t, (j * c)) * a;
} else if (b <= 7.5e+171) {
tmp = fma(i, b, (-a * x)) * t;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.5e+35) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); elseif (b <= 6.5e+87) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); elseif (b <= 7.5e+171) tmp = Float64(fma(i, b, Float64(Float64(-a) * x)) * t); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.5e+35], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 6.5e+87], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 7.5e+171], N[(N[(i * b + N[((-a) * x), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.5 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+87}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+171}:\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-a\right) \cdot x\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if b < -4.4999999999999997e35Initial program 73.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6468.9
Applied rewrites68.9%
if -4.4999999999999997e35 < b < 6.5000000000000002e87Initial program 70.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.1
Applied rewrites59.1%
if 6.5000000000000002e87 < b < 7.4999999999999998e171Initial program 57.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6479.2
Applied rewrites79.2%
Applied rewrites86.3%
if 7.4999999999999998e171 < b Initial program 81.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.5
Applied rewrites66.5%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -6.6e-55)
(* (fma i b (* (- a) x)) t)
(if (<= t -9.8e-207)
(* (fma (- i) j (* z x)) y)
(if (<= t 5.5e-24)
(* (fma (- b) c (* y x)) z)
(* (fma (- a) x (* i b)) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.6e-55) {
tmp = fma(i, b, (-a * x)) * t;
} else if (t <= -9.8e-207) {
tmp = fma(-i, j, (z * x)) * y;
} else if (t <= 5.5e-24) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = fma(-a, x, (i * b)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.6e-55) tmp = Float64(fma(i, b, Float64(Float64(-a) * x)) * t); elseif (t <= -9.8e-207) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (t <= 5.5e-24) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.6e-55], N[(N[(i * b + N[((-a) * x), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, -9.8e-207], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 5.5e-24], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{-55}:\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;t \leq -9.8 \cdot 10^{-207}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if t < -6.5999999999999999e-55Initial program 61.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.9
Applied rewrites66.9%
Applied rewrites66.9%
if -6.5999999999999999e-55 < t < -9.7999999999999999e-207Initial program 84.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.8
Applied rewrites55.8%
if -9.7999999999999999e-207 < t < 5.4999999999999999e-24Initial program 78.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.3
Applied rewrites54.3%
if 5.4999999999999999e-24 < t Initial program 70.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.5
Applied rewrites68.5%
Final simplification62.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -5.3e-27) (not (<= a 4.2e+35))) (* (fma (- x) t (* j c)) a) (* (fma (- b) c (* y x)) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -5.3e-27) || !(a <= 4.2e+35)) {
tmp = fma(-x, t, (j * c)) * a;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -5.3e-27) || !(a <= 4.2e+35)) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -5.3e-27], N[Not[LessEqual[a, 4.2e+35]], $MachinePrecision]], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.3 \cdot 10^{-27} \lor \neg \left(a \leq 4.2 \cdot 10^{+35}\right):\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if a < -5.30000000000000006e-27 or 4.1999999999999998e35 < a Initial program 65.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.7
Applied rewrites63.7%
if -5.30000000000000006e-27 < a < 4.1999999999999998e35Initial program 78.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.2
Applied rewrites60.2%
Final simplification62.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.55e-70) (not (<= t 2.45e-118))) (* (fma i b (* (- a) x)) t) (* (fma c a (* (- i) y)) j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.55e-70) || !(t <= 2.45e-118)) {
tmp = fma(i, b, (-a * x)) * t;
} else {
tmp = fma(c, a, (-i * y)) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.55e-70) || !(t <= 2.45e-118)) tmp = Float64(fma(i, b, Float64(Float64(-a) * x)) * t); else tmp = Float64(fma(c, a, Float64(Float64(-i) * y)) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.55e-70], N[Not[LessEqual[t, 2.45e-118]], $MachinePrecision]], N[(N[(i * b + N[((-a) * x), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{-70} \lor \neg \left(t \leq 2.45 \cdot 10^{-118}\right):\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-a\right) \cdot x\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\end{array}
\end{array}
if t < -1.55e-70 or 2.4499999999999999e-118 < t Initial program 66.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.3
Applied rewrites64.3%
Applied rewrites64.3%
if -1.55e-70 < t < 2.4499999999999999e-118Initial program 82.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites75.8%
Taylor expanded in j around inf
Applied rewrites49.3%
Applied rewrites49.3%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* t x))))
(if (<= t -2.5e+232)
t_1
(if (<= t 2.6e-23)
(* (fma c a (* (- i) y)) j)
(if (<= t 1.8e+25) t_1 (* (* b t) i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (t * x);
double tmp;
if (t <= -2.5e+232) {
tmp = t_1;
} else if (t <= 2.6e-23) {
tmp = fma(c, a, (-i * y)) * j;
} else if (t <= 1.8e+25) {
tmp = t_1;
} else {
tmp = (b * t) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(t * x)) tmp = 0.0 if (t <= -2.5e+232) tmp = t_1; elseif (t <= 2.6e-23) tmp = Float64(fma(c, a, Float64(Float64(-i) * y)) * j); elseif (t <= 1.8e+25) tmp = t_1; else tmp = Float64(Float64(b * t) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+232], t$95$1, If[LessEqual[t, 2.6e-23], N[(N[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 1.8e+25], t$95$1, N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-23}:\\
\;\;\;\;\mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if t < -2.49999999999999993e232 or 2.6e-23 < t < 1.80000000000000008e25Initial program 65.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.3
Applied rewrites73.3%
Taylor expanded in x around inf
Applied rewrites65.3%
if -2.49999999999999993e232 < t < 2.6e-23Initial program 74.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites76.7%
Taylor expanded in j around inf
Applied rewrites42.1%
Applied rewrites42.1%
if 1.80000000000000008e25 < t Initial program 69.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6458.3
Applied rewrites58.3%
Taylor expanded in y around 0
Applied rewrites47.1%
Final simplification46.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b t) i)))
(if (<= b -3.6e+36)
t_1
(if (<= b 3.4e+143)
(* (- a) (* t x))
(if (<= b 2.05e+198) t_1 (* (* (- b) z) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * t) * i;
double tmp;
if (b <= -3.6e+36) {
tmp = t_1;
} else if (b <= 3.4e+143) {
tmp = -a * (t * x);
} else if (b <= 2.05e+198) {
tmp = t_1;
} else {
tmp = (-b * z) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (b * t) * i
if (b <= (-3.6d+36)) then
tmp = t_1
else if (b <= 3.4d+143) then
tmp = -a * (t * x)
else if (b <= 2.05d+198) then
tmp = t_1
else
tmp = (-b * z) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * t) * i;
double tmp;
if (b <= -3.6e+36) {
tmp = t_1;
} else if (b <= 3.4e+143) {
tmp = -a * (t * x);
} else if (b <= 2.05e+198) {
tmp = t_1;
} else {
tmp = (-b * z) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * t) * i tmp = 0 if b <= -3.6e+36: tmp = t_1 elif b <= 3.4e+143: tmp = -a * (t * x) elif b <= 2.05e+198: tmp = t_1 else: tmp = (-b * z) * c return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * t) * i) tmp = 0.0 if (b <= -3.6e+36) tmp = t_1; elseif (b <= 3.4e+143) tmp = Float64(Float64(-a) * Float64(t * x)); elseif (b <= 2.05e+198) tmp = t_1; else tmp = Float64(Float64(Float64(-b) * z) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * t) * i; tmp = 0.0; if (b <= -3.6e+36) tmp = t_1; elseif (b <= 3.4e+143) tmp = -a * (t * x); elseif (b <= 2.05e+198) tmp = t_1; else tmp = (-b * z) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[b, -3.6e+36], t$95$1, If[LessEqual[b, 3.4e+143], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+198], t$95$1, N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot t\right) \cdot i\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+143}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
\end{array}
\end{array}
if b < -3.5999999999999997e36 or 3.39999999999999982e143 < b < 2.0500000000000001e198Initial program 72.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.8
Applied rewrites59.8%
Taylor expanded in y around 0
Applied rewrites50.9%
if -3.5999999999999997e36 < b < 3.39999999999999982e143Initial program 69.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in x around inf
Applied rewrites38.2%
if 2.0500000000000001e198 < b Initial program 82.5%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
Taylor expanded in z around inf
Applied rewrites49.2%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* b t) i)))
(if (<= b -3.6e+36)
t_1
(if (<= b 3.4e+143)
(* (- a) (* t x))
(if (<= b 7e+248) t_1 (* (- b) (* c z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * t) * i;
double tmp;
if (b <= -3.6e+36) {
tmp = t_1;
} else if (b <= 3.4e+143) {
tmp = -a * (t * x);
} else if (b <= 7e+248) {
tmp = t_1;
} else {
tmp = -b * (c * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (b * t) * i
if (b <= (-3.6d+36)) then
tmp = t_1
else if (b <= 3.4d+143) then
tmp = -a * (t * x)
else if (b <= 7d+248) then
tmp = t_1
else
tmp = -b * (c * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * t) * i;
double tmp;
if (b <= -3.6e+36) {
tmp = t_1;
} else if (b <= 3.4e+143) {
tmp = -a * (t * x);
} else if (b <= 7e+248) {
tmp = t_1;
} else {
tmp = -b * (c * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * t) * i tmp = 0 if b <= -3.6e+36: tmp = t_1 elif b <= 3.4e+143: tmp = -a * (t * x) elif b <= 7e+248: tmp = t_1 else: tmp = -b * (c * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * t) * i) tmp = 0.0 if (b <= -3.6e+36) tmp = t_1; elseif (b <= 3.4e+143) tmp = Float64(Float64(-a) * Float64(t * x)); elseif (b <= 7e+248) tmp = t_1; else tmp = Float64(Float64(-b) * Float64(c * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * t) * i; tmp = 0.0; if (b <= -3.6e+36) tmp = t_1; elseif (b <= 3.4e+143) tmp = -a * (t * x); elseif (b <= 7e+248) tmp = t_1; else tmp = -b * (c * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[b, -3.6e+36], t$95$1, If[LessEqual[b, 3.4e+143], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+248], t$95$1, N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot t\right) \cdot i\\
\mathbf{if}\;b \leq -3.6 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+143}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+248}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\end{array}
\end{array}
if b < -3.5999999999999997e36 or 3.39999999999999982e143 < b < 7.00000000000000044e248Initial program 72.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.9
Applied rewrites54.9%
Taylor expanded in y around 0
Applied rewrites47.5%
if -3.5999999999999997e36 < b < 3.39999999999999982e143Initial program 69.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in x around inf
Applied rewrites38.2%
if 7.00000000000000044e248 < b Initial program 91.4%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.6
Applied rewrites67.6%
Taylor expanded in z around inf
Applied rewrites66.9%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.3e-64)
(* (fma i b (* (- a) x)) t)
(if (<= t 5.5e-24)
(* (fma (- b) c (* y x)) z)
(* (fma (- a) x (* i b)) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.3e-64) {
tmp = fma(i, b, (-a * x)) * t;
} else if (t <= 5.5e-24) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = fma(-a, x, (i * b)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.3e-64) tmp = Float64(fma(i, b, Float64(Float64(-a) * x)) * t); elseif (t <= 5.5e-24) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.3e-64], N[(N[(i * b + N[((-a) * x), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 5.5e-24], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.3 \cdot 10^{-64}:\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if t < -3.2999999999999999e-64Initial program 61.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.1
Applied rewrites66.1%
Applied rewrites66.1%
if -3.2999999999999999e-64 < t < 5.4999999999999999e-24Initial program 80.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.1
Applied rewrites50.1%
if 5.4999999999999999e-24 < t Initial program 70.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.5
Applied rewrites68.5%
Final simplification60.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -3.6e+36) (* (* b t) i) (if (<= b 1e+144) (* (- a) (* t x)) (* (* i b) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.6e+36) {
tmp = (b * t) * i;
} else if (b <= 1e+144) {
tmp = -a * (t * x);
} else {
tmp = (i * b) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.6d+36)) then
tmp = (b * t) * i
else if (b <= 1d+144) then
tmp = -a * (t * x)
else
tmp = (i * b) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.6e+36) {
tmp = (b * t) * i;
} else if (b <= 1e+144) {
tmp = -a * (t * x);
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.6e+36: tmp = (b * t) * i elif b <= 1e+144: tmp = -a * (t * x) else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.6e+36) tmp = Float64(Float64(b * t) * i); elseif (b <= 1e+144) tmp = Float64(Float64(-a) * Float64(t * x)); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.6e+36) tmp = (b * t) * i; elseif (b <= 1e+144) tmp = -a * (t * x); else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.6e+36], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 1e+144], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+36}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;b \leq 10^{+144}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if b < -3.5999999999999997e36Initial program 73.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.2
Applied rewrites55.2%
Taylor expanded in y around 0
Applied rewrites45.8%
if -3.5999999999999997e36 < b < 1.00000000000000002e144Initial program 69.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in x around inf
Applied rewrites38.2%
if 1.00000000000000002e144 < b Initial program 77.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.4
Applied rewrites55.4%
Taylor expanded in x around 0
Applied rewrites44.5%
Final simplification41.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -4.2e-6) (not (<= z 2.1e-54))) (* (* z y) x) (* (* i b) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -4.2e-6) || !(z <= 2.1e-54)) {
tmp = (z * y) * x;
} else {
tmp = (i * b) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-4.2d-6)) .or. (.not. (z <= 2.1d-54))) then
tmp = (z * y) * x
else
tmp = (i * b) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -4.2e-6) || !(z <= 2.1e-54)) {
tmp = (z * y) * x;
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -4.2e-6) or not (z <= 2.1e-54): tmp = (z * y) * x else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -4.2e-6) || !(z <= 2.1e-54)) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -4.2e-6) || ~((z <= 2.1e-54))) tmp = (z * y) * x; else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -4.2e-6], N[Not[LessEqual[z, 2.1e-54]], $MachinePrecision]], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{-6} \lor \neg \left(z \leq 2.1 \cdot 10^{-54}\right):\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if z < -4.1999999999999996e-6 or 2.1e-54 < z Initial program 69.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites80.3%
Taylor expanded in i around 0
Applied rewrites79.0%
Taylor expanded in y around inf
Applied rewrites35.2%
Applied rewrites36.5%
if -4.1999999999999996e-6 < z < 2.1e-54Initial program 75.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
Taylor expanded in x around 0
Applied rewrites40.6%
Final simplification38.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -9e-7) (not (<= z 2.1e-54))) (* (* z y) x) (* (* i t) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9e-7) || !(z <= 2.1e-54)) {
tmp = (z * y) * x;
} else {
tmp = (i * t) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-9d-7)) .or. (.not. (z <= 2.1d-54))) then
tmp = (z * y) * x
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9e-7) || !(z <= 2.1e-54)) {
tmp = (z * y) * x;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -9e-7) or not (z <= 2.1e-54): tmp = (z * y) * x else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -9e-7) || !(z <= 2.1e-54)) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -9e-7) || ~((z <= 2.1e-54))) tmp = (z * y) * x; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -9e-7], N[Not[LessEqual[z, 2.1e-54]], $MachinePrecision]], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{-7} \lor \neg \left(z \leq 2.1 \cdot 10^{-54}\right):\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if z < -8.99999999999999959e-7 or 2.1e-54 < z Initial program 69.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites80.3%
Taylor expanded in i around 0
Applied rewrites79.0%
Taylor expanded in y around inf
Applied rewrites35.2%
Applied rewrites36.5%
if -8.99999999999999959e-7 < z < 2.1e-54Initial program 75.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
Taylor expanded in x around 0
Applied rewrites38.3%
Final simplification37.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -9e-7) (not (<= z 1.46e-55))) (* (* y x) z) (* (* i t) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9e-7) || !(z <= 1.46e-55)) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-9d-7)) .or. (.not. (z <= 1.46d-55))) then
tmp = (y * x) * z
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9e-7) || !(z <= 1.46e-55)) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -9e-7) or not (z <= 1.46e-55): tmp = (y * x) * z else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -9e-7) || !(z <= 1.46e-55)) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -9e-7) || ~((z <= 1.46e-55))) tmp = (y * x) * z; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -9e-7], N[Not[LessEqual[z, 1.46e-55]], $MachinePrecision]], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{-7} \lor \neg \left(z \leq 1.46 \cdot 10^{-55}\right):\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if z < -8.99999999999999959e-7 or 1.46000000000000009e-55 < z Initial program 69.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
Applied rewrites80.3%
Taylor expanded in i around 0
Applied rewrites79.0%
Taylor expanded in y around inf
Applied rewrites35.2%
if -8.99999999999999959e-7 < z < 1.46000000000000009e-55Initial program 75.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
Taylor expanded in x around 0
Applied rewrites38.3%
Final simplification36.5%
(FPCore (x y z t a b c i j) :precision binary64 (* (* i t) b))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * t) * b;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (i * t) * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * t) * b;
}
def code(x, y, z, t, a, b, c, i, j): return (i * t) * b
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(i * t) * b) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (i * t) * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]
\begin{array}{l}
\\
\left(i \cdot t\right) \cdot b
\end{array}
Initial program 71.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
associate-*r*N/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.9
Applied rewrites47.9%
Taylor expanded in x around 0
Applied rewrites24.3%
Final simplification24.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024326
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))