
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\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)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\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)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
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 * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 94.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Final simplification86.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (- (* b i) (* x t))))
(t_4 (* b (- (* a i) (* z c))))
(t_5 (* y (- (* x z) (* i j)))))
(if (<= y -1.05e+49)
t_5
(if (<= y -0.0023)
t_4
(if (<= y -1.65e-49)
t_5
(if (<= y -1.12e-135)
t_2
(if (<= y -8.5e-255)
t_4
(if (<= y -9.2e-303)
t_1
(if (<= y 1.9e-236)
t_3
(if (<= y 3.4e-227)
t_1
(if (<= y 1.9e-84)
t_3
(if (<= y 4e-51)
t_2
(if (<= y 5.9e-22)
(* i (- (* a b) (* y j)))
t_5)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double t_4 = b * ((a * i) - (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_5;
} else if (y <= -0.0023) {
tmp = t_4;
} else if (y <= -1.65e-49) {
tmp = t_5;
} else if (y <= -1.12e-135) {
tmp = t_2;
} else if (y <= -8.5e-255) {
tmp = t_4;
} else if (y <= -9.2e-303) {
tmp = t_1;
} else if (y <= 1.9e-236) {
tmp = t_3;
} else if (y <= 3.4e-227) {
tmp = t_1;
} else if (y <= 1.9e-84) {
tmp = t_3;
} else if (y <= 4e-51) {
tmp = t_2;
} else if (y <= 5.9e-22) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_5;
}
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) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = c * ((t * j) - (z * b))
t_3 = a * ((b * i) - (x * t))
t_4 = b * ((a * i) - (z * c))
t_5 = y * ((x * z) - (i * j))
if (y <= (-1.05d+49)) then
tmp = t_5
else if (y <= (-0.0023d0)) then
tmp = t_4
else if (y <= (-1.65d-49)) then
tmp = t_5
else if (y <= (-1.12d-135)) then
tmp = t_2
else if (y <= (-8.5d-255)) then
tmp = t_4
else if (y <= (-9.2d-303)) then
tmp = t_1
else if (y <= 1.9d-236) then
tmp = t_3
else if (y <= 3.4d-227) then
tmp = t_1
else if (y <= 1.9d-84) then
tmp = t_3
else if (y <= 4d-51) then
tmp = t_2
else if (y <= 5.9d-22) then
tmp = i * ((a * b) - (y * j))
else
tmp = t_5
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 = t * ((c * j) - (x * a));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double t_4 = b * ((a * i) - (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_5;
} else if (y <= -0.0023) {
tmp = t_4;
} else if (y <= -1.65e-49) {
tmp = t_5;
} else if (y <= -1.12e-135) {
tmp = t_2;
} else if (y <= -8.5e-255) {
tmp = t_4;
} else if (y <= -9.2e-303) {
tmp = t_1;
} else if (y <= 1.9e-236) {
tmp = t_3;
} else if (y <= 3.4e-227) {
tmp = t_1;
} else if (y <= 1.9e-84) {
tmp = t_3;
} else if (y <= 4e-51) {
tmp = t_2;
} else if (y <= 5.9e-22) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = c * ((t * j) - (z * b)) t_3 = a * ((b * i) - (x * t)) t_4 = b * ((a * i) - (z * c)) t_5 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.05e+49: tmp = t_5 elif y <= -0.0023: tmp = t_4 elif y <= -1.65e-49: tmp = t_5 elif y <= -1.12e-135: tmp = t_2 elif y <= -8.5e-255: tmp = t_4 elif y <= -9.2e-303: tmp = t_1 elif y <= 1.9e-236: tmp = t_3 elif y <= 3.4e-227: tmp = t_1 elif y <= 1.9e-84: tmp = t_3 elif y <= 4e-51: tmp = t_2 elif y <= 5.9e-22: tmp = i * ((a * b) - (y * j)) else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_4 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_5 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.05e+49) tmp = t_5; elseif (y <= -0.0023) tmp = t_4; elseif (y <= -1.65e-49) tmp = t_5; elseif (y <= -1.12e-135) tmp = t_2; elseif (y <= -8.5e-255) tmp = t_4; elseif (y <= -9.2e-303) tmp = t_1; elseif (y <= 1.9e-236) tmp = t_3; elseif (y <= 3.4e-227) tmp = t_1; elseif (y <= 1.9e-84) tmp = t_3; elseif (y <= 4e-51) tmp = t_2; elseif (y <= 5.9e-22) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = c * ((t * j) - (z * b)); t_3 = a * ((b * i) - (x * t)); t_4 = b * ((a * i) - (z * c)); t_5 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.05e+49) tmp = t_5; elseif (y <= -0.0023) tmp = t_4; elseif (y <= -1.65e-49) tmp = t_5; elseif (y <= -1.12e-135) tmp = t_2; elseif (y <= -8.5e-255) tmp = t_4; elseif (y <= -9.2e-303) tmp = t_1; elseif (y <= 1.9e-236) tmp = t_3; elseif (y <= 3.4e-227) tmp = t_1; elseif (y <= 1.9e-84) tmp = t_3; elseif (y <= 4e-51) tmp = t_2; elseif (y <= 5.9e-22) tmp = i * ((a * b) - (y * j)); else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+49], t$95$5, If[LessEqual[y, -0.0023], t$95$4, If[LessEqual[y, -1.65e-49], t$95$5, If[LessEqual[y, -1.12e-135], t$95$2, If[LessEqual[y, -8.5e-255], t$95$4, If[LessEqual[y, -9.2e-303], t$95$1, If[LessEqual[y, 1.9e-236], t$95$3, If[LessEqual[y, 3.4e-227], t$95$1, If[LessEqual[y, 1.9e-84], t$95$3, If[LessEqual[y, 4e-51], t$95$2, If[LessEqual[y, 5.9e-22], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_4 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+49}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq -0.0023:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-49}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq -1.12 \cdot 10^{-135}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-255}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-303}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-236}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-227}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-51}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.9 \cdot 10^{-22}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if y < -1.05000000000000005e49 or -0.0023 < y < -1.65e-49 or 5.90000000000000008e-22 < y Initial program 73.1%
Taylor expanded in y around inf 68.8%
+-commutative68.8%
mul-1-neg68.8%
unsub-neg68.8%
Simplified68.8%
if -1.05000000000000005e49 < y < -0.0023 or -1.12e-135 < y < -8.49999999999999982e-255Initial program 80.8%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -1.65e-49 < y < -1.12e-135 or 1.89999999999999993e-84 < y < 4e-51Initial program 91.9%
Taylor expanded in c around inf 78.5%
if -8.49999999999999982e-255 < y < -9.19999999999999981e-303 or 1.9e-236 < y < 3.39999999999999979e-227Initial program 69.8%
Taylor expanded in t around inf 86.0%
+-commutative86.0%
mul-1-neg86.0%
unsub-neg86.0%
*-commutative86.0%
Simplified86.0%
if -9.19999999999999981e-303 < y < 1.9e-236 or 3.39999999999999979e-227 < y < 1.89999999999999993e-84Initial program 86.7%
Taylor expanded in a around -inf 62.2%
if 4e-51 < y < 5.90000000000000008e-22Initial program 88.7%
Taylor expanded in i around inf 89.0%
distribute-lft-out--89.0%
*-commutative89.0%
Simplified89.0%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))
(t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.05e+128)
t_2
(if (<= b -2.7e-42)
t_1
(if (<= b -6.6e-68)
(* i (- (* a b) (* y j)))
(if (<= b 1.14e-35)
t_1
(if (<= b 3.9e+29)
(* a (- (* b i) (* x t)))
(if (<= b 5.7e+200) 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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.05e+128) {
tmp = t_2;
} else if (b <= -2.7e-42) {
tmp = t_1;
} else if (b <= -6.6e-68) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1.14e-35) {
tmp = t_1;
} else if (b <= 3.9e+29) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 5.7e+200) {
tmp = 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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.05d+128)) then
tmp = t_2
else if (b <= (-2.7d-42)) then
tmp = t_1
else if (b <= (-6.6d-68)) then
tmp = i * ((a * b) - (y * j))
else if (b <= 1.14d-35) then
tmp = t_1
else if (b <= 3.9d+29) then
tmp = a * ((b * i) - (x * t))
else if (b <= 5.7d+200) then
tmp = 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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.05e+128) {
tmp = t_2;
} else if (b <= -2.7e-42) {
tmp = t_1;
} else if (b <= -6.6e-68) {
tmp = i * ((a * b) - (y * j));
} else if (b <= 1.14e-35) {
tmp = t_1;
} else if (b <= 3.9e+29) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 5.7e+200) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.05e+128: tmp = t_2 elif b <= -2.7e-42: tmp = t_1 elif b <= -6.6e-68: tmp = i * ((a * b) - (y * j)) elif b <= 1.14e-35: tmp = t_1 elif b <= 3.9e+29: tmp = a * ((b * i) - (x * t)) elif b <= 5.7e+200: tmp = t_1 else: tmp = t_2 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(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.05e+128) tmp = t_2; elseif (b <= -2.7e-42) tmp = t_1; elseif (b <= -6.6e-68) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (b <= 1.14e-35) tmp = t_1; elseif (b <= 3.9e+29) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= 5.7e+200) tmp = 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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.05e+128) tmp = t_2; elseif (b <= -2.7e-42) tmp = t_1; elseif (b <= -6.6e-68) tmp = i * ((a * b) - (y * j)); elseif (b <= 1.14e-35) tmp = t_1; elseif (b <= 3.9e+29) tmp = a * ((b * i) - (x * t)); elseif (b <= 5.7e+200) tmp = 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+128], t$95$2, If[LessEqual[b, -2.7e-42], t$95$1, If[LessEqual[b, -6.6e-68], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.14e-35], t$95$1, If[LessEqual[b, 3.9e+29], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.7e+200], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+128}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-68}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.14 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{+29}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{+200}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.05e128 or 5.70000000000000007e200 < b Initial program 71.0%
Taylor expanded in b around inf 80.2%
*-commutative80.2%
Simplified80.2%
if -1.05e128 < b < -2.69999999999999999e-42 or -6.5999999999999997e-68 < b < 1.14e-35 or 3.89999999999999968e29 < b < 5.70000000000000007e200Initial program 81.4%
Taylor expanded in b around 0 72.1%
if -2.69999999999999999e-42 < b < -6.5999999999999997e-68Initial program 90.0%
Taylor expanded in i around inf 89.9%
distribute-lft-out--89.9%
*-commutative89.9%
Simplified89.9%
if 1.14e-35 < b < 3.89999999999999968e29Initial program 57.0%
Taylor expanded in a around -inf 64.8%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (- (* b i) (* x t))))
(t_4 (* b (- (* a i) (* z c))))
(t_5 (* y (- (* x z) (* i j)))))
(if (<= y -1.05e+49)
t_5
(if (<= y -0.0085)
t_4
(if (<= y -1.55e-48)
t_5
(if (<= y -9.2e-136)
t_2
(if (<= y -1.52e-254)
t_4
(if (<= y -1.9e-301)
t_1
(if (<= y 4.9e-237)
t_3
(if (<= y 8e-227)
t_1
(if (<= y 2.65e-92)
t_3
(if (<= y 1.16e-50) t_2 t_5))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double t_4 = b * ((a * i) - (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_5;
} else if (y <= -0.0085) {
tmp = t_4;
} else if (y <= -1.55e-48) {
tmp = t_5;
} else if (y <= -9.2e-136) {
tmp = t_2;
} else if (y <= -1.52e-254) {
tmp = t_4;
} else if (y <= -1.9e-301) {
tmp = t_1;
} else if (y <= 4.9e-237) {
tmp = t_3;
} else if (y <= 8e-227) {
tmp = t_1;
} else if (y <= 2.65e-92) {
tmp = t_3;
} else if (y <= 1.16e-50) {
tmp = t_2;
} else {
tmp = t_5;
}
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) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = c * ((t * j) - (z * b))
t_3 = a * ((b * i) - (x * t))
t_4 = b * ((a * i) - (z * c))
t_5 = y * ((x * z) - (i * j))
if (y <= (-1.05d+49)) then
tmp = t_5
else if (y <= (-0.0085d0)) then
tmp = t_4
else if (y <= (-1.55d-48)) then
tmp = t_5
else if (y <= (-9.2d-136)) then
tmp = t_2
else if (y <= (-1.52d-254)) then
tmp = t_4
else if (y <= (-1.9d-301)) then
tmp = t_1
else if (y <= 4.9d-237) then
tmp = t_3
else if (y <= 8d-227) then
tmp = t_1
else if (y <= 2.65d-92) then
tmp = t_3
else if (y <= 1.16d-50) then
tmp = t_2
else
tmp = t_5
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 = t * ((c * j) - (x * a));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double t_4 = b * ((a * i) - (z * c));
double t_5 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_5;
} else if (y <= -0.0085) {
tmp = t_4;
} else if (y <= -1.55e-48) {
tmp = t_5;
} else if (y <= -9.2e-136) {
tmp = t_2;
} else if (y <= -1.52e-254) {
tmp = t_4;
} else if (y <= -1.9e-301) {
tmp = t_1;
} else if (y <= 4.9e-237) {
tmp = t_3;
} else if (y <= 8e-227) {
tmp = t_1;
} else if (y <= 2.65e-92) {
tmp = t_3;
} else if (y <= 1.16e-50) {
tmp = t_2;
} else {
tmp = t_5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = c * ((t * j) - (z * b)) t_3 = a * ((b * i) - (x * t)) t_4 = b * ((a * i) - (z * c)) t_5 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.05e+49: tmp = t_5 elif y <= -0.0085: tmp = t_4 elif y <= -1.55e-48: tmp = t_5 elif y <= -9.2e-136: tmp = t_2 elif y <= -1.52e-254: tmp = t_4 elif y <= -1.9e-301: tmp = t_1 elif y <= 4.9e-237: tmp = t_3 elif y <= 8e-227: tmp = t_1 elif y <= 2.65e-92: tmp = t_3 elif y <= 1.16e-50: tmp = t_2 else: tmp = t_5 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_4 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_5 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.05e+49) tmp = t_5; elseif (y <= -0.0085) tmp = t_4; elseif (y <= -1.55e-48) tmp = t_5; elseif (y <= -9.2e-136) tmp = t_2; elseif (y <= -1.52e-254) tmp = t_4; elseif (y <= -1.9e-301) tmp = t_1; elseif (y <= 4.9e-237) tmp = t_3; elseif (y <= 8e-227) tmp = t_1; elseif (y <= 2.65e-92) tmp = t_3; elseif (y <= 1.16e-50) tmp = t_2; else tmp = t_5; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = c * ((t * j) - (z * b)); t_3 = a * ((b * i) - (x * t)); t_4 = b * ((a * i) - (z * c)); t_5 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.05e+49) tmp = t_5; elseif (y <= -0.0085) tmp = t_4; elseif (y <= -1.55e-48) tmp = t_5; elseif (y <= -9.2e-136) tmp = t_2; elseif (y <= -1.52e-254) tmp = t_4; elseif (y <= -1.9e-301) tmp = t_1; elseif (y <= 4.9e-237) tmp = t_3; elseif (y <= 8e-227) tmp = t_1; elseif (y <= 2.65e-92) tmp = t_3; elseif (y <= 1.16e-50) tmp = t_2; else tmp = t_5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+49], t$95$5, If[LessEqual[y, -0.0085], t$95$4, If[LessEqual[y, -1.55e-48], t$95$5, If[LessEqual[y, -9.2e-136], t$95$2, If[LessEqual[y, -1.52e-254], t$95$4, If[LessEqual[y, -1.9e-301], t$95$1, If[LessEqual[y, 4.9e-237], t$95$3, If[LessEqual[y, 8e-227], t$95$1, If[LessEqual[y, 2.65e-92], t$95$3, If[LessEqual[y, 1.16e-50], t$95$2, t$95$5]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_4 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+49}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq -0.0085:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{-48}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{-136}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.52 \cdot 10^{-254}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{-237}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-227}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{-92}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\end{array}
if y < -1.05000000000000005e49 or -0.0085000000000000006 < y < -1.55000000000000008e-48 or 1.15999999999999989e-50 < y Initial program 73.9%
Taylor expanded in y around inf 67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
Simplified67.9%
if -1.05000000000000005e49 < y < -0.0085000000000000006 or -9.19999999999999994e-136 < y < -1.52e-254Initial program 80.8%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -1.55000000000000008e-48 < y < -9.19999999999999994e-136 or 2.65000000000000015e-92 < y < 1.15999999999999989e-50Initial program 92.2%
Taylor expanded in c around inf 75.6%
if -1.52e-254 < y < -1.89999999999999998e-301 or 4.9000000000000001e-237 < y < 7.99999999999999956e-227Initial program 69.8%
Taylor expanded in t around inf 86.0%
+-commutative86.0%
mul-1-neg86.0%
unsub-neg86.0%
*-commutative86.0%
Simplified86.0%
if -1.89999999999999998e-301 < y < 4.9000000000000001e-237 or 7.99999999999999956e-227 < y < 2.65000000000000015e-92Initial program 86.7%
Taylor expanded in a around -inf 62.2%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.1e+177)
(* y (- (* x z) (* i j)))
(if (or (<= y -8.6e+147) (and (not (<= y -3.4e+59)) (<= y 7.2e-51)))
(+ (* b (- (* a i) (* z c))) (* t (- (* c j) (* x a))))
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.1e+177) {
tmp = y * ((x * z) - (i * j));
} else if ((y <= -8.6e+147) || (!(y <= -3.4e+59) && (y <= 7.2e-51))) {
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
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 (y <= (-2.1d+177)) then
tmp = y * ((x * z) - (i * j))
else if ((y <= (-8.6d+147)) .or. (.not. (y <= (-3.4d+59))) .and. (y <= 7.2d-51)) then
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
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 (y <= -2.1e+177) {
tmp = y * ((x * z) - (i * j));
} else if ((y <= -8.6e+147) || (!(y <= -3.4e+59) && (y <= 7.2e-51))) {
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.1e+177: tmp = y * ((x * z) - (i * j)) elif (y <= -8.6e+147) or (not (y <= -3.4e+59) and (y <= 7.2e-51)): tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a))) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.1e+177) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif ((y <= -8.6e+147) || (!(y <= -3.4e+59) && (y <= 7.2e-51))) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.1e+177) tmp = y * ((x * z) - (i * j)); elseif ((y <= -8.6e+147) || (~((y <= -3.4e+59)) && (y <= 7.2e-51))) tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a))); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.1e+177], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -8.6e+147], And[N[Not[LessEqual[y, -3.4e+59]], $MachinePrecision], LessEqual[y, 7.2e-51]]], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+177}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -8.6 \cdot 10^{+147} \lor \neg \left(y \leq -3.4 \cdot 10^{+59}\right) \land y \leq 7.2 \cdot 10^{-51}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if y < -2.10000000000000013e177Initial program 58.2%
Taylor expanded in y around inf 85.1%
+-commutative85.1%
mul-1-neg85.1%
unsub-neg85.1%
Simplified85.1%
if -2.10000000000000013e177 < y < -8.5999999999999997e147 or -3.40000000000000006e59 < y < 7.2000000000000001e-51Initial program 83.8%
Taylor expanded in y around 0 75.9%
associate-*r*75.9%
*-commutative75.9%
associate-*r*75.4%
associate-*r*75.4%
associate-*r*75.3%
distribute-rgt-in76.7%
+-commutative76.7%
mul-1-neg76.7%
unsub-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
if -8.5999999999999997e147 < y < -3.40000000000000006e59 or 7.2000000000000001e-51 < y Initial program 77.4%
Taylor expanded in b around 0 74.2%
Final simplification76.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
(if (<= x -2e+245)
(* y (- (* x z) (* i j)))
(if (<= x -1.08e-44)
t_1
(if (<= x 5e-96)
(- (+ (* c (* t j)) (* i (- (* a b) (* y j)))) (* b (* z c)))
(if (<= x 6.4e+84)
(+ (* b (- (* a i) (* z c))) (* t (- (* c j) (* x a))))
t_1))))))
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))) + (j * ((t * c) - (y * i)));
double tmp;
if (x <= -2e+245) {
tmp = y * ((x * z) - (i * j));
} else if (x <= -1.08e-44) {
tmp = t_1;
} else if (x <= 5e-96) {
tmp = ((c * (t * j)) + (i * ((a * b) - (y * j)))) - (b * (z * c));
} else if (x <= 6.4e+84) {
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)));
} else {
tmp = t_1;
}
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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
if (x <= (-2d+245)) then
tmp = y * ((x * z) - (i * j))
else if (x <= (-1.08d-44)) then
tmp = t_1
else if (x <= 5d-96) then
tmp = ((c * (t * j)) + (i * ((a * b) - (y * j)))) - (b * (z * c))
else if (x <= 6.4d+84) then
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)))
else
tmp = t_1
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 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double tmp;
if (x <= -2e+245) {
tmp = y * ((x * z) - (i * j));
} else if (x <= -1.08e-44) {
tmp = t_1;
} else if (x <= 5e-96) {
tmp = ((c * (t * j)) + (i * ((a * b) - (y * j)))) - (b * (z * c));
} else if (x <= 6.4e+84) {
tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) tmp = 0 if x <= -2e+245: tmp = y * ((x * z) - (i * j)) elif x <= -1.08e-44: tmp = t_1 elif x <= 5e-96: tmp = ((c * (t * j)) + (i * ((a * b) - (y * j)))) - (b * (z * c)) elif x <= 6.4e+84: tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a))) else: tmp = t_1 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(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (x <= -2e+245) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= -1.08e-44) tmp = t_1; elseif (x <= 5e-96) tmp = Float64(Float64(Float64(c * Float64(t * j)) + Float64(i * Float64(Float64(a * b) - Float64(y * j)))) - Float64(b * Float64(z * c))); elseif (x <= 6.4e+84) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(t * Float64(Float64(c * j) - Float64(x * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (x <= -2e+245) tmp = y * ((x * z) - (i * j)); elseif (x <= -1.08e-44) tmp = t_1; elseif (x <= 5e-96) tmp = ((c * (t * j)) + (i * ((a * b) - (y * j)))) - (b * (z * c)); elseif (x <= 6.4e+84) tmp = (b * ((a * i) - (z * c))) + (t * ((c * j) - (x * a))); else tmp = t_1; end tmp_2 = 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2e+245], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.08e-44], t$95$1, If[LessEqual[x, 5e-96], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e+84], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -2 \cdot 10^{+245}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq -1.08 \cdot 10^{-44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-96}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) + i \cdot \left(a \cdot b - y \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{+84}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.00000000000000009e245Initial program 55.3%
Taylor expanded in y around inf 67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
Simplified67.4%
if -2.00000000000000009e245 < x < -1.07999999999999994e-44 or 6.4000000000000002e84 < x Initial program 82.9%
Taylor expanded in b around 0 81.3%
if -1.07999999999999994e-44 < x < 4.99999999999999995e-96Initial program 78.7%
Taylor expanded in i around -inf 74.8%
Taylor expanded in x around 0 82.3%
if 4.99999999999999995e-96 < x < 6.4000000000000002e84Initial program 78.3%
Taylor expanded in y around 0 63.2%
associate-*r*63.2%
*-commutative63.2%
associate-*r*65.4%
associate-*r*65.4%
associate-*r*69.8%
distribute-rgt-in72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Final simplification79.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* y (* i (- j)))))
(if (<= y -5.5e+205)
t_2
(if (<= y -3.9e+128)
(* x (* y z))
(if (<= y -132000000.0)
t_2
(if (<= y -7e-54)
(* i (* a b))
(if (<= y -5.2e-181)
t_1
(if (<= y -6e-265)
(* a (* t (- x)))
(if (<= y 2.6e-240)
(* j (* t c))
(if (<= y 4.5e-92)
(* t (* x (- a)))
(if (<= y 6.8e-51)
t_1
(if (<= y 3.4e+44) t_2 (* y (* x z))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double t_2 = y * (i * -j);
double tmp;
if (y <= -5.5e+205) {
tmp = t_2;
} else if (y <= -3.9e+128) {
tmp = x * (y * z);
} else if (y <= -132000000.0) {
tmp = t_2;
} else if (y <= -7e-54) {
tmp = i * (a * b);
} else if (y <= -5.2e-181) {
tmp = t_1;
} else if (y <= -6e-265) {
tmp = a * (t * -x);
} else if (y <= 2.6e-240) {
tmp = j * (t * c);
} else if (y <= 4.5e-92) {
tmp = t * (x * -a);
} else if (y <= 6.8e-51) {
tmp = t_1;
} else if (y <= 3.4e+44) {
tmp = t_2;
} else {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = (z * c) * -b
t_2 = y * (i * -j)
if (y <= (-5.5d+205)) then
tmp = t_2
else if (y <= (-3.9d+128)) then
tmp = x * (y * z)
else if (y <= (-132000000.0d0)) then
tmp = t_2
else if (y <= (-7d-54)) then
tmp = i * (a * b)
else if (y <= (-5.2d-181)) then
tmp = t_1
else if (y <= (-6d-265)) then
tmp = a * (t * -x)
else if (y <= 2.6d-240) then
tmp = j * (t * c)
else if (y <= 4.5d-92) then
tmp = t * (x * -a)
else if (y <= 6.8d-51) then
tmp = t_1
else if (y <= 3.4d+44) then
tmp = t_2
else
tmp = y * (x * 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 = (z * c) * -b;
double t_2 = y * (i * -j);
double tmp;
if (y <= -5.5e+205) {
tmp = t_2;
} else if (y <= -3.9e+128) {
tmp = x * (y * z);
} else if (y <= -132000000.0) {
tmp = t_2;
} else if (y <= -7e-54) {
tmp = i * (a * b);
} else if (y <= -5.2e-181) {
tmp = t_1;
} else if (y <= -6e-265) {
tmp = a * (t * -x);
} else if (y <= 2.6e-240) {
tmp = j * (t * c);
} else if (y <= 4.5e-92) {
tmp = t * (x * -a);
} else if (y <= 6.8e-51) {
tmp = t_1;
} else if (y <= 3.4e+44) {
tmp = t_2;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = y * (i * -j) tmp = 0 if y <= -5.5e+205: tmp = t_2 elif y <= -3.9e+128: tmp = x * (y * z) elif y <= -132000000.0: tmp = t_2 elif y <= -7e-54: tmp = i * (a * b) elif y <= -5.2e-181: tmp = t_1 elif y <= -6e-265: tmp = a * (t * -x) elif y <= 2.6e-240: tmp = j * (t * c) elif y <= 4.5e-92: tmp = t * (x * -a) elif y <= 6.8e-51: tmp = t_1 elif y <= 3.4e+44: tmp = t_2 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (y <= -5.5e+205) tmp = t_2; elseif (y <= -3.9e+128) tmp = Float64(x * Float64(y * z)); elseif (y <= -132000000.0) tmp = t_2; elseif (y <= -7e-54) tmp = Float64(i * Float64(a * b)); elseif (y <= -5.2e-181) tmp = t_1; elseif (y <= -6e-265) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 2.6e-240) tmp = Float64(j * Float64(t * c)); elseif (y <= 4.5e-92) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 6.8e-51) tmp = t_1; elseif (y <= 3.4e+44) tmp = t_2; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * c) * -b; t_2 = y * (i * -j); tmp = 0.0; if (y <= -5.5e+205) tmp = t_2; elseif (y <= -3.9e+128) tmp = x * (y * z); elseif (y <= -132000000.0) tmp = t_2; elseif (y <= -7e-54) tmp = i * (a * b); elseif (y <= -5.2e-181) tmp = t_1; elseif (y <= -6e-265) tmp = a * (t * -x); elseif (y <= 2.6e-240) tmp = j * (t * c); elseif (y <= 4.5e-92) tmp = t * (x * -a); elseif (y <= 6.8e-51) tmp = t_1; elseif (y <= 3.4e+44) tmp = t_2; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+205], t$95$2, If[LessEqual[y, -3.9e+128], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -132000000.0], t$95$2, If[LessEqual[y, -7e-54], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.2e-181], t$95$1, If[LessEqual[y, -6e-265], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-240], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-92], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e-51], t$95$1, If[LessEqual[y, 3.4e+44], t$95$2, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+205}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3.9 \cdot 10^{+128}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -132000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-54}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{-181}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-240}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-92}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -5.50000000000000004e205 or -3.8999999999999997e128 < y < -1.32e8 or 6.80000000000000005e-51 < y < 3.4e44Initial program 75.9%
Taylor expanded in y around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
Simplified65.0%
Taylor expanded in x around 0 51.2%
mul-1-neg51.2%
distribute-lft-neg-out51.2%
*-commutative51.2%
Simplified51.2%
if -5.50000000000000004e205 < y < -3.8999999999999997e128Initial program 52.8%
Taylor expanded in b around 0 58.8%
+-commutative58.8%
sub-neg58.8%
+-commutative58.8%
mul-1-neg58.8%
*-commutative58.8%
*-commutative58.8%
fma-neg64.7%
fma-def64.7%
mul-1-neg64.7%
+-commutative64.7%
sub-neg64.7%
fma-udef58.8%
*-commutative58.8%
*-commutative58.8%
distribute-lft-neg-in58.8%
*-commutative58.8%
Simplified64.7%
distribute-rgt-neg-out64.7%
fma-neg58.8%
*-commutative58.8%
*-commutative58.8%
Applied egg-rr58.8%
Taylor expanded in z around inf 59.6%
if -1.32e8 < y < -6.99999999999999964e-54Initial program 90.0%
Taylor expanded in b around inf 41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in a around inf 31.6%
Taylor expanded in b around 0 31.7%
expm1-log1p-u16.6%
expm1-udef6.9%
*-commutative6.9%
Applied egg-rr6.9%
expm1-def16.6%
expm1-log1p31.7%
*-commutative31.7%
associate-*l*31.7%
Simplified31.7%
if -6.99999999999999964e-54 < y < -5.19999999999999998e-181 or 4.5e-92 < y < 6.80000000000000005e-51Initial program 92.0%
Taylor expanded in b around inf 70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around 0 53.2%
neg-mul-153.2%
*-commutative53.2%
distribute-rgt-neg-in53.2%
Simplified53.2%
if -5.19999999999999998e-181 < y < -5.9999999999999996e-265Initial program 65.4%
Taylor expanded in b around 0 44.2%
+-commutative44.2%
sub-neg44.2%
+-commutative44.2%
mul-1-neg44.2%
*-commutative44.2%
*-commutative44.2%
fma-neg44.2%
fma-def44.2%
mul-1-neg44.2%
+-commutative44.2%
sub-neg44.2%
fma-udef44.2%
*-commutative44.2%
*-commutative44.2%
distribute-lft-neg-in44.2%
*-commutative44.2%
Simplified44.2%
distribute-rgt-neg-out44.2%
fma-neg44.2%
*-commutative44.2%
*-commutative44.2%
Applied egg-rr44.2%
Taylor expanded in a around inf 50.6%
associate-*r*50.6%
neg-mul-150.6%
Simplified50.6%
if -5.9999999999999996e-265 < y < 2.59999999999999992e-240Initial program 77.6%
Taylor expanded in c around inf 58.4%
Taylor expanded in j around inf 46.8%
associate-*r*40.6%
*-commutative40.6%
associate-*l*49.7%
Simplified49.7%
if 2.59999999999999992e-240 < y < 4.5e-92Initial program 91.4%
Taylor expanded in t around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in c around 0 47.4%
mul-1-neg47.4%
*-commutative47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if 3.4e44 < y Initial program 74.1%
Taylor expanded in y around inf 76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
Taylor expanded in x around inf 48.6%
Final simplification49.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* i (* y (- j)))))
(if (<= y -1.7e+206)
t_2
(if (<= y -9.2e+126)
(* x (* y z))
(if (<= y -340000000.0)
(* y (* i (- j)))
(if (<= y -4.2e-54)
(* i (* a b))
(if (<= y -1.7e-179)
t_1
(if (<= y -4.2e-264)
(* a (* t (- x)))
(if (<= y 2.26e-240)
(* j (* t c))
(if (<= y 4.8e-90)
(* t (* x (- a)))
(if (<= y 7.5e-51)
t_1
(if (<= y 2.5e+53) t_2 (* y (* x z))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (y <= -1.7e+206) {
tmp = t_2;
} else if (y <= -9.2e+126) {
tmp = x * (y * z);
} else if (y <= -340000000.0) {
tmp = y * (i * -j);
} else if (y <= -4.2e-54) {
tmp = i * (a * b);
} else if (y <= -1.7e-179) {
tmp = t_1;
} else if (y <= -4.2e-264) {
tmp = a * (t * -x);
} else if (y <= 2.26e-240) {
tmp = j * (t * c);
} else if (y <= 4.8e-90) {
tmp = t * (x * -a);
} else if (y <= 7.5e-51) {
tmp = t_1;
} else if (y <= 2.5e+53) {
tmp = t_2;
} else {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = (z * c) * -b
t_2 = i * (y * -j)
if (y <= (-1.7d+206)) then
tmp = t_2
else if (y <= (-9.2d+126)) then
tmp = x * (y * z)
else if (y <= (-340000000.0d0)) then
tmp = y * (i * -j)
else if (y <= (-4.2d-54)) then
tmp = i * (a * b)
else if (y <= (-1.7d-179)) then
tmp = t_1
else if (y <= (-4.2d-264)) then
tmp = a * (t * -x)
else if (y <= 2.26d-240) then
tmp = j * (t * c)
else if (y <= 4.8d-90) then
tmp = t * (x * -a)
else if (y <= 7.5d-51) then
tmp = t_1
else if (y <= 2.5d+53) then
tmp = t_2
else
tmp = y * (x * 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 = (z * c) * -b;
double t_2 = i * (y * -j);
double tmp;
if (y <= -1.7e+206) {
tmp = t_2;
} else if (y <= -9.2e+126) {
tmp = x * (y * z);
} else if (y <= -340000000.0) {
tmp = y * (i * -j);
} else if (y <= -4.2e-54) {
tmp = i * (a * b);
} else if (y <= -1.7e-179) {
tmp = t_1;
} else if (y <= -4.2e-264) {
tmp = a * (t * -x);
} else if (y <= 2.26e-240) {
tmp = j * (t * c);
} else if (y <= 4.8e-90) {
tmp = t * (x * -a);
} else if (y <= 7.5e-51) {
tmp = t_1;
} else if (y <= 2.5e+53) {
tmp = t_2;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = i * (y * -j) tmp = 0 if y <= -1.7e+206: tmp = t_2 elif y <= -9.2e+126: tmp = x * (y * z) elif y <= -340000000.0: tmp = y * (i * -j) elif y <= -4.2e-54: tmp = i * (a * b) elif y <= -1.7e-179: tmp = t_1 elif y <= -4.2e-264: tmp = a * (t * -x) elif y <= 2.26e-240: tmp = j * (t * c) elif y <= 4.8e-90: tmp = t * (x * -a) elif y <= 7.5e-51: tmp = t_1 elif y <= 2.5e+53: tmp = t_2 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -1.7e+206) tmp = t_2; elseif (y <= -9.2e+126) tmp = Float64(x * Float64(y * z)); elseif (y <= -340000000.0) tmp = Float64(y * Float64(i * Float64(-j))); elseif (y <= -4.2e-54) tmp = Float64(i * Float64(a * b)); elseif (y <= -1.7e-179) tmp = t_1; elseif (y <= -4.2e-264) tmp = Float64(a * Float64(t * Float64(-x))); elseif (y <= 2.26e-240) tmp = Float64(j * Float64(t * c)); elseif (y <= 4.8e-90) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 7.5e-51) tmp = t_1; elseif (y <= 2.5e+53) tmp = t_2; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * c) * -b; t_2 = i * (y * -j); tmp = 0.0; if (y <= -1.7e+206) tmp = t_2; elseif (y <= -9.2e+126) tmp = x * (y * z); elseif (y <= -340000000.0) tmp = y * (i * -j); elseif (y <= -4.2e-54) tmp = i * (a * b); elseif (y <= -1.7e-179) tmp = t_1; elseif (y <= -4.2e-264) tmp = a * (t * -x); elseif (y <= 2.26e-240) tmp = j * (t * c); elseif (y <= 4.8e-90) tmp = t * (x * -a); elseif (y <= 7.5e-51) tmp = t_1; elseif (y <= 2.5e+53) tmp = t_2; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+206], t$95$2, If[LessEqual[y, -9.2e+126], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -340000000.0], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.2e-54], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.7e-179], t$95$1, If[LessEqual[y, -4.2e-264], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.26e-240], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-90], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-51], t$95$1, If[LessEqual[y, 2.5e+53], t$95$2, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+206}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -9.2 \cdot 10^{+126}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -340000000:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-54}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-264}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq 2.26 \cdot 10^{-240}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-90}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{+53}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -1.69999999999999999e206 or 7.49999999999999976e-51 < y < 2.5000000000000002e53Initial program 75.8%
Taylor expanded in y around inf 72.0%
+-commutative72.0%
mul-1-neg72.0%
unsub-neg72.0%
Simplified72.0%
Taylor expanded in x around 0 57.3%
associate-*r*57.3%
neg-mul-157.3%
*-commutative57.3%
Simplified57.3%
if -1.69999999999999999e206 < y < -9.2000000000000002e126Initial program 52.8%
Taylor expanded in b around 0 58.8%
+-commutative58.8%
sub-neg58.8%
+-commutative58.8%
mul-1-neg58.8%
*-commutative58.8%
*-commutative58.8%
fma-neg64.7%
fma-def64.7%
mul-1-neg64.7%
+-commutative64.7%
sub-neg64.7%
fma-udef58.8%
*-commutative58.8%
*-commutative58.8%
distribute-lft-neg-in58.8%
*-commutative58.8%
Simplified64.7%
distribute-rgt-neg-out64.7%
fma-neg58.8%
*-commutative58.8%
*-commutative58.8%
Applied egg-rr58.8%
Taylor expanded in z around inf 59.6%
if -9.2000000000000002e126 < y < -3.4e8Initial program 76.4%
Taylor expanded in y around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
Simplified42.8%
Taylor expanded in x around 0 37.7%
mul-1-neg37.7%
distribute-lft-neg-out37.7%
*-commutative37.7%
Simplified37.7%
if -3.4e8 < y < -4.2e-54Initial program 90.0%
Taylor expanded in b around inf 41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in a around inf 31.6%
Taylor expanded in b around 0 31.7%
expm1-log1p-u16.6%
expm1-udef6.9%
*-commutative6.9%
Applied egg-rr6.9%
expm1-def16.6%
expm1-log1p31.7%
*-commutative31.7%
associate-*l*31.7%
Simplified31.7%
if -4.2e-54 < y < -1.6999999999999999e-179 or 4.8000000000000003e-90 < y < 7.49999999999999976e-51Initial program 92.0%
Taylor expanded in b around inf 70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around 0 53.2%
neg-mul-153.2%
*-commutative53.2%
distribute-rgt-neg-in53.2%
Simplified53.2%
if -1.6999999999999999e-179 < y < -4.2000000000000004e-264Initial program 65.4%
Taylor expanded in b around 0 44.2%
+-commutative44.2%
sub-neg44.2%
+-commutative44.2%
mul-1-neg44.2%
*-commutative44.2%
*-commutative44.2%
fma-neg44.2%
fma-def44.2%
mul-1-neg44.2%
+-commutative44.2%
sub-neg44.2%
fma-udef44.2%
*-commutative44.2%
*-commutative44.2%
distribute-lft-neg-in44.2%
*-commutative44.2%
Simplified44.2%
distribute-rgt-neg-out44.2%
fma-neg44.2%
*-commutative44.2%
*-commutative44.2%
Applied egg-rr44.2%
Taylor expanded in a around inf 50.6%
associate-*r*50.6%
neg-mul-150.6%
Simplified50.6%
if -4.2000000000000004e-264 < y < 2.25999999999999993e-240Initial program 77.6%
Taylor expanded in c around inf 58.4%
Taylor expanded in j around inf 46.8%
associate-*r*40.6%
*-commutative40.6%
associate-*l*49.7%
Simplified49.7%
if 2.25999999999999993e-240 < y < 4.8000000000000003e-90Initial program 91.4%
Taylor expanded in t around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in c around 0 47.4%
mul-1-neg47.4%
*-commutative47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if 2.5000000000000002e53 < y Initial program 74.1%
Taylor expanded in y around inf 76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
Taylor expanded in x around inf 48.6%
Final simplification49.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -1.05e+49)
t_3
(if (<= y -0.13)
t_2
(if (<= y -1.75e-48)
t_3
(if (<= y -9.8e-136)
t_1
(if (<= y -1.1e-254)
t_2
(if (<= y -3.6e-298)
(- (* c (* t j)) (* x (* t a)))
(if (<= y 3.9e-86)
(* a (- (* b i) (* x t)))
(if (<= y 1.5e-50) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_3;
} else if (y <= -0.13) {
tmp = t_2;
} else if (y <= -1.75e-48) {
tmp = t_3;
} else if (y <= -9.8e-136) {
tmp = t_1;
} else if (y <= -1.1e-254) {
tmp = t_2;
} else if (y <= -3.6e-298) {
tmp = (c * (t * j)) - (x * (t * a));
} else if (y <= 3.9e-86) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.5e-50) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = b * ((a * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-1.05d+49)) then
tmp = t_3
else if (y <= (-0.13d0)) then
tmp = t_2
else if (y <= (-1.75d-48)) then
tmp = t_3
else if (y <= (-9.8d-136)) then
tmp = t_1
else if (y <= (-1.1d-254)) then
tmp = t_2
else if (y <= (-3.6d-298)) then
tmp = (c * (t * j)) - (x * (t * a))
else if (y <= 3.9d-86) then
tmp = a * ((b * i) - (x * t))
else if (y <= 1.5d-50) then
tmp = t_1
else
tmp = t_3
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 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.05e+49) {
tmp = t_3;
} else if (y <= -0.13) {
tmp = t_2;
} else if (y <= -1.75e-48) {
tmp = t_3;
} else if (y <= -9.8e-136) {
tmp = t_1;
} else if (y <= -1.1e-254) {
tmp = t_2;
} else if (y <= -3.6e-298) {
tmp = (c * (t * j)) - (x * (t * a));
} else if (y <= 3.9e-86) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.5e-50) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = b * ((a * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.05e+49: tmp = t_3 elif y <= -0.13: tmp = t_2 elif y <= -1.75e-48: tmp = t_3 elif y <= -9.8e-136: tmp = t_1 elif y <= -1.1e-254: tmp = t_2 elif y <= -3.6e-298: tmp = (c * (t * j)) - (x * (t * a)) elif y <= 3.9e-86: tmp = a * ((b * i) - (x * t)) elif y <= 1.5e-50: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.05e+49) tmp = t_3; elseif (y <= -0.13) tmp = t_2; elseif (y <= -1.75e-48) tmp = t_3; elseif (y <= -9.8e-136) tmp = t_1; elseif (y <= -1.1e-254) tmp = t_2; elseif (y <= -3.6e-298) tmp = Float64(Float64(c * Float64(t * j)) - Float64(x * Float64(t * a))); elseif (y <= 3.9e-86) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 1.5e-50) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = b * ((a * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.05e+49) tmp = t_3; elseif (y <= -0.13) tmp = t_2; elseif (y <= -1.75e-48) tmp = t_3; elseif (y <= -9.8e-136) tmp = t_1; elseif (y <= -1.1e-254) tmp = t_2; elseif (y <= -3.6e-298) tmp = (c * (t * j)) - (x * (t * a)); elseif (y <= 3.9e-86) tmp = a * ((b * i) - (x * t)); elseif (y <= 1.5e-50) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+49], t$95$3, If[LessEqual[y, -0.13], t$95$2, If[LessEqual[y, -1.75e-48], t$95$3, If[LessEqual[y, -9.8e-136], t$95$1, If[LessEqual[y, -1.1e-254], t$95$2, If[LessEqual[y, -3.6e-298], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e-86], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e-50], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -0.13:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.75 \cdot 10^{-48}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -9.8 \cdot 10^{-136}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-254}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-298}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-86}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.05000000000000005e49 or -0.13 < y < -1.74999999999999996e-48 or 1.49999999999999995e-50 < y Initial program 73.9%
Taylor expanded in y around inf 67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
Simplified67.9%
if -1.05000000000000005e49 < y < -0.13 or -9.7999999999999999e-136 < y < -1.1000000000000001e-254Initial program 80.8%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -1.74999999999999996e-48 < y < -9.7999999999999999e-136 or 3.9000000000000002e-86 < y < 1.49999999999999995e-50Initial program 92.2%
Taylor expanded in c around inf 75.6%
if -1.1000000000000001e-254 < y < -3.60000000000000002e-298Initial program 70.7%
Taylor expanded in b around 0 99.8%
Taylor expanded in y around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
associate-*r*100.0%
Applied egg-rr100.0%
if -3.60000000000000002e-298 < y < 3.9000000000000002e-86Initial program 85.4%
Taylor expanded in a around -inf 62.5%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* y (* i (- j)))))
(if (<= y -7.5e+202)
t_2
(if (<= y -8e+122)
(* x (* y z))
(if (<= y -50000000.0)
t_2
(if (<= y -1.3e-50)
(* i (* a b))
(if (<= y -5.5e-261)
t_1
(if (<= y 1.05e-234)
(* j (* t c))
(if (<= y 2.35e-93)
(* t (* x (- a)))
(if (<= y 8.2e-51)
t_1
(if (<= y 1.6e+41) t_2 (* y (* x z)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * c) * -b;
double t_2 = y * (i * -j);
double tmp;
if (y <= -7.5e+202) {
tmp = t_2;
} else if (y <= -8e+122) {
tmp = x * (y * z);
} else if (y <= -50000000.0) {
tmp = t_2;
} else if (y <= -1.3e-50) {
tmp = i * (a * b);
} else if (y <= -5.5e-261) {
tmp = t_1;
} else if (y <= 1.05e-234) {
tmp = j * (t * c);
} else if (y <= 2.35e-93) {
tmp = t * (x * -a);
} else if (y <= 8.2e-51) {
tmp = t_1;
} else if (y <= 1.6e+41) {
tmp = t_2;
} else {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = (z * c) * -b
t_2 = y * (i * -j)
if (y <= (-7.5d+202)) then
tmp = t_2
else if (y <= (-8d+122)) then
tmp = x * (y * z)
else if (y <= (-50000000.0d0)) then
tmp = t_2
else if (y <= (-1.3d-50)) then
tmp = i * (a * b)
else if (y <= (-5.5d-261)) then
tmp = t_1
else if (y <= 1.05d-234) then
tmp = j * (t * c)
else if (y <= 2.35d-93) then
tmp = t * (x * -a)
else if (y <= 8.2d-51) then
tmp = t_1
else if (y <= 1.6d+41) then
tmp = t_2
else
tmp = y * (x * 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 = (z * c) * -b;
double t_2 = y * (i * -j);
double tmp;
if (y <= -7.5e+202) {
tmp = t_2;
} else if (y <= -8e+122) {
tmp = x * (y * z);
} else if (y <= -50000000.0) {
tmp = t_2;
} else if (y <= -1.3e-50) {
tmp = i * (a * b);
} else if (y <= -5.5e-261) {
tmp = t_1;
} else if (y <= 1.05e-234) {
tmp = j * (t * c);
} else if (y <= 2.35e-93) {
tmp = t * (x * -a);
} else if (y <= 8.2e-51) {
tmp = t_1;
} else if (y <= 1.6e+41) {
tmp = t_2;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = y * (i * -j) tmp = 0 if y <= -7.5e+202: tmp = t_2 elif y <= -8e+122: tmp = x * (y * z) elif y <= -50000000.0: tmp = t_2 elif y <= -1.3e-50: tmp = i * (a * b) elif y <= -5.5e-261: tmp = t_1 elif y <= 1.05e-234: tmp = j * (t * c) elif y <= 2.35e-93: tmp = t * (x * -a) elif y <= 8.2e-51: tmp = t_1 elif y <= 1.6e+41: tmp = t_2 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (y <= -7.5e+202) tmp = t_2; elseif (y <= -8e+122) tmp = Float64(x * Float64(y * z)); elseif (y <= -50000000.0) tmp = t_2; elseif (y <= -1.3e-50) tmp = Float64(i * Float64(a * b)); elseif (y <= -5.5e-261) tmp = t_1; elseif (y <= 1.05e-234) tmp = Float64(j * Float64(t * c)); elseif (y <= 2.35e-93) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 8.2e-51) tmp = t_1; elseif (y <= 1.6e+41) tmp = t_2; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * c) * -b; t_2 = y * (i * -j); tmp = 0.0; if (y <= -7.5e+202) tmp = t_2; elseif (y <= -8e+122) tmp = x * (y * z); elseif (y <= -50000000.0) tmp = t_2; elseif (y <= -1.3e-50) tmp = i * (a * b); elseif (y <= -5.5e-261) tmp = t_1; elseif (y <= 1.05e-234) tmp = j * (t * c); elseif (y <= 2.35e-93) tmp = t * (x * -a); elseif (y <= 8.2e-51) tmp = t_1; elseif (y <= 1.6e+41) tmp = t_2; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+202], t$95$2, If[LessEqual[y, -8e+122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -50000000.0], t$95$2, If[LessEqual[y, -1.3e-50], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.5e-261], t$95$1, If[LessEqual[y, 1.05e-234], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e-93], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e-51], t$95$1, If[LessEqual[y, 1.6e+41], t$95$2, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+202}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -50000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-50}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-261}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-93}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -7.4999999999999999e202 or -8.00000000000000012e122 < y < -5e7 or 8.19999999999999947e-51 < y < 1.60000000000000005e41Initial program 75.9%
Taylor expanded in y around inf 65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
Simplified65.0%
Taylor expanded in x around 0 51.2%
mul-1-neg51.2%
distribute-lft-neg-out51.2%
*-commutative51.2%
Simplified51.2%
if -7.4999999999999999e202 < y < -8.00000000000000012e122Initial program 52.8%
Taylor expanded in b around 0 58.8%
+-commutative58.8%
sub-neg58.8%
+-commutative58.8%
mul-1-neg58.8%
*-commutative58.8%
*-commutative58.8%
fma-neg64.7%
fma-def64.7%
mul-1-neg64.7%
+-commutative64.7%
sub-neg64.7%
fma-udef58.8%
*-commutative58.8%
*-commutative58.8%
distribute-lft-neg-in58.8%
*-commutative58.8%
Simplified64.7%
distribute-rgt-neg-out64.7%
fma-neg58.8%
*-commutative58.8%
*-commutative58.8%
Applied egg-rr58.8%
Taylor expanded in z around inf 59.6%
if -5e7 < y < -1.3000000000000001e-50Initial program 90.0%
Taylor expanded in b around inf 41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in a around inf 31.6%
Taylor expanded in b around 0 31.7%
expm1-log1p-u16.6%
expm1-udef6.9%
*-commutative6.9%
Applied egg-rr6.9%
expm1-def16.6%
expm1-log1p31.7%
*-commutative31.7%
associate-*l*31.7%
Simplified31.7%
if -1.3000000000000001e-50 < y < -5.50000000000000042e-261 or 2.35e-93 < y < 8.19999999999999947e-51Initial program 84.1%
Taylor expanded in b around inf 65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in a around 0 44.7%
neg-mul-144.7%
*-commutative44.7%
distribute-rgt-neg-in44.7%
Simplified44.7%
if -5.50000000000000042e-261 < y < 1.04999999999999996e-234Initial program 78.9%
Taylor expanded in c around inf 55.0%
Taylor expanded in j around inf 44.1%
associate-*r*38.3%
*-commutative38.3%
associate-*l*46.9%
Simplified46.9%
if 1.04999999999999996e-234 < y < 2.35e-93Initial program 91.4%
Taylor expanded in t around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in c around 0 47.4%
mul-1-neg47.4%
*-commutative47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if 1.60000000000000005e41 < y Initial program 74.1%
Taylor expanded in y around inf 76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
Taylor expanded in x around inf 48.6%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= y -4.8e+203)
(* i (* y (- j)))
(if (<= y -2.8e+122)
(* x (* y z))
(if (<= y -1.6e-261)
t_1
(if (<= y 6e-284)
(* j (* t c))
(if (<= y 2.35e-169)
t_1
(if (<= y 1.3e-94)
(* t (* x (- a)))
(if (<= y 4.5e+56) t_1 (* y (* x 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 * ((a * i) - (z * c));
double tmp;
if (y <= -4.8e+203) {
tmp = i * (y * -j);
} else if (y <= -2.8e+122) {
tmp = x * (y * z);
} else if (y <= -1.6e-261) {
tmp = t_1;
} else if (y <= 6e-284) {
tmp = j * (t * c);
} else if (y <= 2.35e-169) {
tmp = t_1;
} else if (y <= 1.3e-94) {
tmp = t * (x * -a);
} else if (y <= 4.5e+56) {
tmp = t_1;
} else {
tmp = y * (x * 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 * ((a * i) - (z * c))
if (y <= (-4.8d+203)) then
tmp = i * (y * -j)
else if (y <= (-2.8d+122)) then
tmp = x * (y * z)
else if (y <= (-1.6d-261)) then
tmp = t_1
else if (y <= 6d-284) then
tmp = j * (t * c)
else if (y <= 2.35d-169) then
tmp = t_1
else if (y <= 1.3d-94) then
tmp = t * (x * -a)
else if (y <= 4.5d+56) then
tmp = t_1
else
tmp = y * (x * 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 * ((a * i) - (z * c));
double tmp;
if (y <= -4.8e+203) {
tmp = i * (y * -j);
} else if (y <= -2.8e+122) {
tmp = x * (y * z);
} else if (y <= -1.6e-261) {
tmp = t_1;
} else if (y <= 6e-284) {
tmp = j * (t * c);
} else if (y <= 2.35e-169) {
tmp = t_1;
} else if (y <= 1.3e-94) {
tmp = t * (x * -a);
} else if (y <= 4.5e+56) {
tmp = t_1;
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if y <= -4.8e+203: tmp = i * (y * -j) elif y <= -2.8e+122: tmp = x * (y * z) elif y <= -1.6e-261: tmp = t_1 elif y <= 6e-284: tmp = j * (t * c) elif y <= 2.35e-169: tmp = t_1 elif y <= 1.3e-94: tmp = t * (x * -a) elif y <= 4.5e+56: tmp = t_1 else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (y <= -4.8e+203) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -2.8e+122) tmp = Float64(x * Float64(y * z)); elseif (y <= -1.6e-261) tmp = t_1; elseif (y <= 6e-284) tmp = Float64(j * Float64(t * c)); elseif (y <= 2.35e-169) tmp = t_1; elseif (y <= 1.3e-94) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 4.5e+56) tmp = t_1; else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (y <= -4.8e+203) tmp = i * (y * -j); elseif (y <= -2.8e+122) tmp = x * (y * z); elseif (y <= -1.6e-261) tmp = t_1; elseif (y <= 6e-284) tmp = j * (t * c); elseif (y <= 2.35e-169) tmp = t_1; elseif (y <= 1.3e-94) tmp = t * (x * -a); elseif (y <= 4.5e+56) tmp = t_1; else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+203], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.8e+122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.6e-261], t$95$1, If[LessEqual[y, 6e-284], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e-169], t$95$1, If[LessEqual[y, 1.3e-94], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+56], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+203}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-261}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-284}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -4.8000000000000002e203Initial program 61.7%
Taylor expanded in y around inf 86.1%
+-commutative86.1%
mul-1-neg86.1%
unsub-neg86.1%
Simplified86.1%
Taylor expanded in x around 0 70.9%
associate-*r*70.9%
neg-mul-170.9%
*-commutative70.9%
Simplified70.9%
if -4.8000000000000002e203 < y < -2.8e122Initial program 52.8%
Taylor expanded in b around 0 58.8%
+-commutative58.8%
sub-neg58.8%
+-commutative58.8%
mul-1-neg58.8%
*-commutative58.8%
*-commutative58.8%
fma-neg64.7%
fma-def64.7%
mul-1-neg64.7%
+-commutative64.7%
sub-neg64.7%
fma-udef58.8%
*-commutative58.8%
*-commutative58.8%
distribute-lft-neg-in58.8%
*-commutative58.8%
Simplified64.7%
distribute-rgt-neg-out64.7%
fma-neg58.8%
*-commutative58.8%
*-commutative58.8%
Applied egg-rr58.8%
Taylor expanded in z around inf 59.6%
if -2.8e122 < y < -1.60000000000000002e-261 or 5.9999999999999999e-284 < y < 2.34999999999999995e-169 or 1.29999999999999997e-94 < y < 4.5000000000000003e56Initial program 87.2%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -1.60000000000000002e-261 < y < 5.9999999999999999e-284Initial program 69.8%
Taylor expanded in c around inf 52.6%
Taylor expanded in j around inf 45.3%
associate-*r*37.0%
*-commutative37.0%
associate-*l*49.3%
Simplified49.3%
if 2.34999999999999995e-169 < y < 1.29999999999999997e-94Initial program 89.8%
Taylor expanded in t around inf 71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in c around 0 61.9%
mul-1-neg61.9%
*-commutative61.9%
distribute-rgt-neg-in61.9%
Simplified61.9%
if 4.5000000000000003e56 < y Initial program 72.8%
Taylor expanded in y around inf 80.2%
+-commutative80.2%
mul-1-neg80.2%
unsub-neg80.2%
Simplified80.2%
Taylor expanded in x around inf 50.9%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* j (- (* t c) (* y i)))))
(if (<= j -3.2e+60)
t_3
(if (<= j -4e-18)
t_1
(if (<= j -2.2e-43)
(* t (- (* c j) (* x a)))
(if (<= j -1.25e-189)
t_2
(if (<= j 4.8e-269)
t_1
(if (<= j 5.2e-159) t_2 (if (<= j 2.25e+49) t_1 t_3)))))))))
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));
double t_2 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.2e+60) {
tmp = t_3;
} else if (j <= -4e-18) {
tmp = t_1;
} else if (j <= -2.2e-43) {
tmp = t * ((c * j) - (x * a));
} else if (j <= -1.25e-189) {
tmp = t_2;
} else if (j <= 4.8e-269) {
tmp = t_1;
} else if (j <= 5.2e-159) {
tmp = t_2;
} else if (j <= 2.25e+49) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = b * ((a * i) - (z * c))
t_3 = j * ((t * c) - (y * i))
if (j <= (-3.2d+60)) then
tmp = t_3
else if (j <= (-4d-18)) then
tmp = t_1
else if (j <= (-2.2d-43)) then
tmp = t * ((c * j) - (x * a))
else if (j <= (-1.25d-189)) then
tmp = t_2
else if (j <= 4.8d-269) then
tmp = t_1
else if (j <= 5.2d-159) then
tmp = t_2
else if (j <= 2.25d+49) then
tmp = t_1
else
tmp = t_3
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 = x * ((y * z) - (t * a));
double t_2 = b * ((a * i) - (z * c));
double t_3 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.2e+60) {
tmp = t_3;
} else if (j <= -4e-18) {
tmp = t_1;
} else if (j <= -2.2e-43) {
tmp = t * ((c * j) - (x * a));
} else if (j <= -1.25e-189) {
tmp = t_2;
} else if (j <= 4.8e-269) {
tmp = t_1;
} else if (j <= 5.2e-159) {
tmp = t_2;
} else if (j <= 2.25e+49) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = b * ((a * i) - (z * c)) t_3 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3.2e+60: tmp = t_3 elif j <= -4e-18: tmp = t_1 elif j <= -2.2e-43: tmp = t * ((c * j) - (x * a)) elif j <= -1.25e-189: tmp = t_2 elif j <= 4.8e-269: tmp = t_1 elif j <= 5.2e-159: tmp = t_2 elif j <= 2.25e+49: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.2e+60) tmp = t_3; elseif (j <= -4e-18) tmp = t_1; elseif (j <= -2.2e-43) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (j <= -1.25e-189) tmp = t_2; elseif (j <= 4.8e-269) tmp = t_1; elseif (j <= 5.2e-159) tmp = t_2; elseif (j <= 2.25e+49) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = b * ((a * i) - (z * c)); t_3 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3.2e+60) tmp = t_3; elseif (j <= -4e-18) tmp = t_1; elseif (j <= -2.2e-43) tmp = t * ((c * j) - (x * a)); elseif (j <= -1.25e-189) tmp = t_2; elseif (j <= 4.8e-269) tmp = t_1; elseif (j <= 5.2e-159) tmp = t_2; elseif (j <= 2.25e+49) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.2e+60], t$95$3, If[LessEqual[j, -4e-18], t$95$1, If[LessEqual[j, -2.2e-43], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.25e-189], t$95$2, If[LessEqual[j, 4.8e-269], t$95$1, If[LessEqual[j, 5.2e-159], t$95$2, If[LessEqual[j, 2.25e+49], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.2 \cdot 10^{+60}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq -4 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.2 \cdot 10^{-43}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;j \leq -1.25 \cdot 10^{-189}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-269}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-159}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.25 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if j < -3.19999999999999991e60 or 2.24999999999999991e49 < j Initial program 79.3%
Taylor expanded in j around inf 65.2%
if -3.19999999999999991e60 < j < -4.0000000000000003e-18 or -1.2499999999999999e-189 < j < 4.8000000000000002e-269 or 5.1999999999999997e-159 < j < 2.24999999999999991e49Initial program 77.4%
Taylor expanded in b around 0 67.9%
+-commutative67.9%
sub-neg67.9%
+-commutative67.9%
mul-1-neg67.9%
*-commutative67.9%
*-commutative67.9%
fma-neg69.0%
fma-def69.0%
mul-1-neg69.0%
+-commutative69.0%
sub-neg69.0%
fma-udef67.9%
*-commutative67.9%
*-commutative67.9%
distribute-lft-neg-in67.9%
*-commutative67.9%
Simplified69.0%
distribute-rgt-neg-out69.0%
fma-neg67.9%
*-commutative67.9%
*-commutative67.9%
Applied egg-rr67.9%
Taylor expanded in x around inf 61.1%
*-commutative61.1%
Simplified61.1%
if -4.0000000000000003e-18 < j < -2.19999999999999997e-43Initial program 100.0%
Taylor expanded in t around inf 69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
if -2.19999999999999997e-43 < j < -1.2499999999999999e-189 or 4.8000000000000002e-269 < j < 5.1999999999999997e-159Initial program 78.1%
Taylor expanded in b around inf 63.1%
*-commutative63.1%
Simplified63.1%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -1.22e+49)
t_3
(if (<= y -0.165)
t_2
(if (<= y -8.6e-50)
t_3
(if (<= y -1e-135)
t_1
(if (<= y -1.8e-253)
t_2
(if (<= y 1.9e-89)
(* t (- (* c j) (* x a)))
(if (<= y 9.4e-51) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.22e+49) {
tmp = t_3;
} else if (y <= -0.165) {
tmp = t_2;
} else if (y <= -8.6e-50) {
tmp = t_3;
} else if (y <= -1e-135) {
tmp = t_1;
} else if (y <= -1.8e-253) {
tmp = t_2;
} else if (y <= 1.9e-89) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 9.4e-51) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = b * ((a * i) - (z * c))
t_3 = y * ((x * z) - (i * j))
if (y <= (-1.22d+49)) then
tmp = t_3
else if (y <= (-0.165d0)) then
tmp = t_2
else if (y <= (-8.6d-50)) then
tmp = t_3
else if (y <= (-1d-135)) then
tmp = t_1
else if (y <= (-1.8d-253)) then
tmp = t_2
else if (y <= 1.9d-89) then
tmp = t * ((c * j) - (x * a))
else if (y <= 9.4d-51) then
tmp = t_1
else
tmp = t_3
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 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.22e+49) {
tmp = t_3;
} else if (y <= -0.165) {
tmp = t_2;
} else if (y <= -8.6e-50) {
tmp = t_3;
} else if (y <= -1e-135) {
tmp = t_1;
} else if (y <= -1.8e-253) {
tmp = t_2;
} else if (y <= 1.9e-89) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 9.4e-51) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = b * ((a * i) - (z * c)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.22e+49: tmp = t_3 elif y <= -0.165: tmp = t_2 elif y <= -8.6e-50: tmp = t_3 elif y <= -1e-135: tmp = t_1 elif y <= -1.8e-253: tmp = t_2 elif y <= 1.9e-89: tmp = t * ((c * j) - (x * a)) elif y <= 9.4e-51: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.22e+49) tmp = t_3; elseif (y <= -0.165) tmp = t_2; elseif (y <= -8.6e-50) tmp = t_3; elseif (y <= -1e-135) tmp = t_1; elseif (y <= -1.8e-253) tmp = t_2; elseif (y <= 1.9e-89) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 9.4e-51) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = b * ((a * i) - (z * c)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.22e+49) tmp = t_3; elseif (y <= -0.165) tmp = t_2; elseif (y <= -8.6e-50) tmp = t_3; elseif (y <= -1e-135) tmp = t_1; elseif (y <= -1.8e-253) tmp = t_2; elseif (y <= 1.9e-89) tmp = t * ((c * j) - (x * a)); elseif (y <= 9.4e-51) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.22e+49], t$95$3, If[LessEqual[y, -0.165], t$95$2, If[LessEqual[y, -8.6e-50], t$95$3, If[LessEqual[y, -1e-135], t$95$1, If[LessEqual[y, -1.8e-253], t$95$2, If[LessEqual[y, 1.9e-89], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.4e-51], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.22 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -0.165:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.6 \cdot 10^{-50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1 \cdot 10^{-135}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-253}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-89}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 9.4 \cdot 10^{-51}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.21999999999999988e49 or -0.165000000000000008 < y < -8.59999999999999995e-50 or 9.3999999999999995e-51 < y Initial program 73.9%
Taylor expanded in y around inf 67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
Simplified67.9%
if -1.21999999999999988e49 < y < -0.165000000000000008 or -1e-135 < y < -1.8e-253Initial program 80.8%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -8.59999999999999995e-50 < y < -1e-135 or 1.9000000000000001e-89 < y < 9.3999999999999995e-51Initial program 92.2%
Taylor expanded in c around inf 75.6%
if -1.8e-253 < y < 1.9000000000000001e-89Initial program 82.9%
Taylor expanded in t around inf 55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2e+94)
t_2
(if (<= y 2.15e-307)
(- t_1 (* c (* z b)))
(if (<= y 5.2e-179)
(* a (- (* b i) (* x t)))
(if (<= y 1.55e-50) (- t_1 (* b (* z c))) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+94) {
tmp = t_2;
} else if (y <= 2.15e-307) {
tmp = t_1 - (c * (z * b));
} else if (y <= 5.2e-179) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.55e-50) {
tmp = t_1 - (b * (z * c));
} 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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2d+94)) then
tmp = t_2
else if (y <= 2.15d-307) then
tmp = t_1 - (c * (z * b))
else if (y <= 5.2d-179) then
tmp = a * ((b * i) - (x * t))
else if (y <= 1.55d-50) then
tmp = t_1 - (b * (z * c))
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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+94) {
tmp = t_2;
} else if (y <= 2.15e-307) {
tmp = t_1 - (c * (z * b));
} else if (y <= 5.2e-179) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.55e-50) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2e+94: tmp = t_2 elif y <= 2.15e-307: tmp = t_1 - (c * (z * b)) elif y <= 5.2e-179: tmp = a * ((b * i) - (x * t)) elif y <= 1.55e-50: tmp = t_1 - (b * (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2e+94) tmp = t_2; elseif (y <= 2.15e-307) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (y <= 5.2e-179) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 1.55e-50) tmp = Float64(t_1 - Float64(b * Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2e+94) tmp = t_2; elseif (y <= 2.15e-307) tmp = t_1 - (c * (z * b)); elseif (y <= 5.2e-179) tmp = a * ((b * i) - (x * t)); elseif (y <= 1.55e-50) tmp = t_1 - (b * (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+94], t$95$2, If[LessEqual[y, 2.15e-307], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e-179], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-50], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-307}:\\
\;\;\;\;t_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-179}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-50}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2e94 or 1.5500000000000001e-50 < y Initial program 72.4%
Taylor expanded in y around inf 71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
Simplified71.6%
if -2e94 < y < 2.15000000000000005e-307Initial program 78.9%
Taylor expanded in i around -inf 82.7%
expm1-log1p-u62.2%
expm1-udef61.0%
Applied egg-rr61.0%
expm1-def62.2%
expm1-log1p82.7%
*-commutative82.7%
associate-*l*84.7%
Simplified84.7%
Taylor expanded in t around -inf 60.8%
mul-1-neg60.8%
*-commutative60.8%
distribute-rgt-neg-in60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
Simplified60.8%
if 2.15000000000000005e-307 < y < 5.20000000000000011e-179Initial program 86.8%
Taylor expanded in a around -inf 67.0%
if 5.20000000000000011e-179 < y < 1.5500000000000001e-50Initial program 95.9%
Taylor expanded in i around -inf 95.6%
Taylor expanded in t around -inf 71.8%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
Simplified71.8%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))) (t_2 (* j (* t c))) (t_3 (* y (* x z))))
(if (<= y -3.15e+122)
(* x (* y z))
(if (<= y -3.4e-30)
t_1
(if (<= y -1.65e-50)
t_3
(if (<= y -8.5e-260)
(* (* z c) (- b))
(if (<= y 6.2e-239)
t_2
(if (<= y 2.9e-74)
(* t (* x (- a)))
(if (<= y 1.4e-56) t_2 (if (<= y 2.3e-22) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double t_2 = j * (t * c);
double t_3 = y * (x * z);
double tmp;
if (y <= -3.15e+122) {
tmp = x * (y * z);
} else if (y <= -3.4e-30) {
tmp = t_1;
} else if (y <= -1.65e-50) {
tmp = t_3;
} else if (y <= -8.5e-260) {
tmp = (z * c) * -b;
} else if (y <= 6.2e-239) {
tmp = t_2;
} else if (y <= 2.9e-74) {
tmp = t * (x * -a);
} else if (y <= 1.4e-56) {
tmp = t_2;
} else if (y <= 2.3e-22) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = a * (b * i)
t_2 = j * (t * c)
t_3 = y * (x * z)
if (y <= (-3.15d+122)) then
tmp = x * (y * z)
else if (y <= (-3.4d-30)) then
tmp = t_1
else if (y <= (-1.65d-50)) then
tmp = t_3
else if (y <= (-8.5d-260)) then
tmp = (z * c) * -b
else if (y <= 6.2d-239) then
tmp = t_2
else if (y <= 2.9d-74) then
tmp = t * (x * -a)
else if (y <= 1.4d-56) then
tmp = t_2
else if (y <= 2.3d-22) then
tmp = t_1
else
tmp = t_3
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 = a * (b * i);
double t_2 = j * (t * c);
double t_3 = y * (x * z);
double tmp;
if (y <= -3.15e+122) {
tmp = x * (y * z);
} else if (y <= -3.4e-30) {
tmp = t_1;
} else if (y <= -1.65e-50) {
tmp = t_3;
} else if (y <= -8.5e-260) {
tmp = (z * c) * -b;
} else if (y <= 6.2e-239) {
tmp = t_2;
} else if (y <= 2.9e-74) {
tmp = t * (x * -a);
} else if (y <= 1.4e-56) {
tmp = t_2;
} else if (y <= 2.3e-22) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) t_2 = j * (t * c) t_3 = y * (x * z) tmp = 0 if y <= -3.15e+122: tmp = x * (y * z) elif y <= -3.4e-30: tmp = t_1 elif y <= -1.65e-50: tmp = t_3 elif y <= -8.5e-260: tmp = (z * c) * -b elif y <= 6.2e-239: tmp = t_2 elif y <= 2.9e-74: tmp = t * (x * -a) elif y <= 1.4e-56: tmp = t_2 elif y <= 2.3e-22: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) t_2 = Float64(j * Float64(t * c)) t_3 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -3.15e+122) tmp = Float64(x * Float64(y * z)); elseif (y <= -3.4e-30) tmp = t_1; elseif (y <= -1.65e-50) tmp = t_3; elseif (y <= -8.5e-260) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (y <= 6.2e-239) tmp = t_2; elseif (y <= 2.9e-74) tmp = Float64(t * Float64(x * Float64(-a))); elseif (y <= 1.4e-56) tmp = t_2; elseif (y <= 2.3e-22) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); t_2 = j * (t * c); t_3 = y * (x * z); tmp = 0.0; if (y <= -3.15e+122) tmp = x * (y * z); elseif (y <= -3.4e-30) tmp = t_1; elseif (y <= -1.65e-50) tmp = t_3; elseif (y <= -8.5e-260) tmp = (z * c) * -b; elseif (y <= 6.2e-239) tmp = t_2; elseif (y <= 2.9e-74) tmp = t * (x * -a); elseif (y <= 1.4e-56) tmp = t_2; elseif (y <= 2.3e-22) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.15e+122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e-30], t$95$1, If[LessEqual[y, -1.65e-50], t$95$3, If[LessEqual[y, -8.5e-260], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[y, 6.2e-239], t$95$2, If[LessEqual[y, 2.9e-74], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e-56], t$95$2, If[LessEqual[y, 2.3e-22], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
t_2 := j \cdot \left(t \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -3.15 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-260}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-239}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-74}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -3.1500000000000001e122Initial program 58.2%
Taylor expanded in b around 0 63.8%
+-commutative63.8%
sub-neg63.8%
+-commutative63.8%
mul-1-neg63.8%
*-commutative63.8%
*-commutative63.8%
fma-neg66.1%
fma-def70.8%
mul-1-neg70.8%
+-commutative70.8%
sub-neg70.8%
fma-udef68.5%
*-commutative68.5%
*-commutative68.5%
distribute-lft-neg-in68.5%
*-commutative68.5%
Simplified70.8%
distribute-rgt-neg-out70.8%
fma-neg68.5%
*-commutative68.5%
*-commutative68.5%
Applied egg-rr68.5%
Taylor expanded in z around inf 45.2%
if -3.1500000000000001e122 < y < -3.4000000000000003e-30 or 1.39999999999999997e-56 < y < 2.2999999999999998e-22Initial program 86.0%
Taylor expanded in b around inf 43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in a around inf 34.1%
Taylor expanded in b around 0 38.4%
if -3.4000000000000003e-30 < y < -1.6499999999999999e-50 or 2.2999999999999998e-22 < y Initial program 79.1%
Taylor expanded in y around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
Taylor expanded in x around inf 41.4%
if -1.6499999999999999e-50 < y < -8.5000000000000003e-260Initial program 78.9%
Taylor expanded in b around inf 65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in a around 0 43.8%
neg-mul-143.8%
*-commutative43.8%
distribute-rgt-neg-in43.8%
Simplified43.8%
if -8.5000000000000003e-260 < y < 6.1999999999999997e-239 or 2.9e-74 < y < 1.39999999999999997e-56Initial program 82.6%
Taylor expanded in c around inf 61.6%
Taylor expanded in j around inf 49.2%
associate-*r*42.2%
*-commutative42.2%
associate-*l*51.5%
Simplified51.5%
if 6.1999999999999997e-239 < y < 2.9e-74Initial program 92.1%
Taylor expanded in t around inf 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in c around 0 44.1%
mul-1-neg44.1%
*-commutative44.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.55e+55)
t_2
(if (<= b -0.042)
t_1
(if (<= b -4.2e-54)
t_2
(if (<= b -5.8e-210)
t_1
(if (<= b 1.45e-254)
(* t (- (* c j) (* x a)))
(if (<= b 1.06e-35) 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e+55) {
tmp = t_2;
} else if (b <= -0.042) {
tmp = t_1;
} else if (b <= -4.2e-54) {
tmp = t_2;
} else if (b <= -5.8e-210) {
tmp = t_1;
} else if (b <= 1.45e-254) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.06e-35) {
tmp = 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 * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.55d+55)) then
tmp = t_2
else if (b <= (-0.042d0)) then
tmp = t_1
else if (b <= (-4.2d-54)) then
tmp = t_2
else if (b <= (-5.8d-210)) then
tmp = t_1
else if (b <= 1.45d-254) then
tmp = t * ((c * j) - (x * a))
else if (b <= 1.06d-35) then
tmp = 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e+55) {
tmp = t_2;
} else if (b <= -0.042) {
tmp = t_1;
} else if (b <= -4.2e-54) {
tmp = t_2;
} else if (b <= -5.8e-210) {
tmp = t_1;
} else if (b <= 1.45e-254) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.06e-35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.55e+55: tmp = t_2 elif b <= -0.042: tmp = t_1 elif b <= -4.2e-54: tmp = t_2 elif b <= -5.8e-210: tmp = t_1 elif b <= 1.45e-254: tmp = t * ((c * j) - (x * a)) elif b <= 1.06e-35: tmp = 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(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.55e+55) tmp = t_2; elseif (b <= -0.042) tmp = t_1; elseif (b <= -4.2e-54) tmp = t_2; elseif (b <= -5.8e-210) tmp = t_1; elseif (b <= 1.45e-254) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 1.06e-35) tmp = 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 * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.55e+55) tmp = t_2; elseif (b <= -0.042) tmp = t_1; elseif (b <= -4.2e-54) tmp = t_2; elseif (b <= -5.8e-210) tmp = t_1; elseif (b <= 1.45e-254) tmp = t * ((c * j) - (x * a)); elseif (b <= 1.06e-35) tmp = 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e+55], t$95$2, If[LessEqual[b, -0.042], t$95$1, If[LessEqual[b, -4.2e-54], t$95$2, If[LessEqual[b, -5.8e-210], t$95$1, If[LessEqual[b, 1.45e-254], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e-35], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -0.042:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-210}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.54999999999999997e55 or -0.0420000000000000026 < b < -4.2e-54 or 1.06e-35 < b Initial program 76.1%
Taylor expanded in b around inf 59.1%
*-commutative59.1%
Simplified59.1%
if -1.54999999999999997e55 < b < -0.0420000000000000026 or -4.2e-54 < b < -5.80000000000000012e-210 or 1.45e-254 < b < 1.06e-35Initial program 82.0%
Taylor expanded in j around inf 56.5%
if -5.80000000000000012e-210 < b < 1.45e-254Initial program 77.3%
Taylor expanded in t around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
Final simplification57.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -9.2e+67) (not (<= i 7.5e+27))) (* i (- (* a b) (* y j))) (+ (* x (- (* y z) (* t a))) (* t (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -9.2e+67) || !(i <= 7.5e+27)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (t * (c * j));
}
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 ((i <= (-9.2d+67)) .or. (.not. (i <= 7.5d+27))) then
tmp = i * ((a * b) - (y * j))
else
tmp = (x * ((y * z) - (t * a))) + (t * (c * j))
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 ((i <= -9.2e+67) || !(i <= 7.5e+27)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (t * (c * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -9.2e+67) or not (i <= 7.5e+27): tmp = i * ((a * b) - (y * j)) else: tmp = (x * ((y * z) - (t * a))) + (t * (c * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -9.2e+67) || !(i <= 7.5e+27)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(t * Float64(c * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -9.2e+67) || ~((i <= 7.5e+27))) tmp = i * ((a * b) - (y * j)); else tmp = (x * ((y * z) - (t * a))) + (t * (c * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -9.2e+67], N[Not[LessEqual[i, 7.5e+27]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9.2 \cdot 10^{+67} \lor \neg \left(i \leq 7.5 \cdot 10^{+27}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -9.1999999999999994e67 or 7.5000000000000002e27 < i Initial program 71.7%
Taylor expanded in i around inf 63.3%
distribute-lft-out--63.3%
*-commutative63.3%
Simplified63.3%
if -9.1999999999999994e67 < i < 7.5000000000000002e27Initial program 84.6%
Taylor expanded in b around 0 69.5%
Taylor expanded in c around inf 61.5%
associate-*r*63.6%
*-commutative63.6%
Simplified63.6%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))) (t_2 (* j (* t c))) (t_3 (* x (* y z))))
(if (<= y -2e+122)
t_3
(if (<= y -1.95e-261)
t_1
(if (<= y 9.6e-284)
t_2
(if (<= y 5e-74)
t_1
(if (<= y 3.8e-56) t_2 (if (<= y 2.6e-22) (* a (* b i)) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double t_2 = j * (t * c);
double t_3 = x * (y * z);
double tmp;
if (y <= -2e+122) {
tmp = t_3;
} else if (y <= -1.95e-261) {
tmp = t_1;
} else if (y <= 9.6e-284) {
tmp = t_2;
} else if (y <= 5e-74) {
tmp = t_1;
} else if (y <= 3.8e-56) {
tmp = t_2;
} else if (y <= 2.6e-22) {
tmp = a * (b * i);
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = b * (a * i)
t_2 = j * (t * c)
t_3 = x * (y * z)
if (y <= (-2d+122)) then
tmp = t_3
else if (y <= (-1.95d-261)) then
tmp = t_1
else if (y <= 9.6d-284) then
tmp = t_2
else if (y <= 5d-74) then
tmp = t_1
else if (y <= 3.8d-56) then
tmp = t_2
else if (y <= 2.6d-22) then
tmp = a * (b * i)
else
tmp = t_3
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 * (a * i);
double t_2 = j * (t * c);
double t_3 = x * (y * z);
double tmp;
if (y <= -2e+122) {
tmp = t_3;
} else if (y <= -1.95e-261) {
tmp = t_1;
} else if (y <= 9.6e-284) {
tmp = t_2;
} else if (y <= 5e-74) {
tmp = t_1;
} else if (y <= 3.8e-56) {
tmp = t_2;
} else if (y <= 2.6e-22) {
tmp = a * (b * i);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) t_2 = j * (t * c) t_3 = x * (y * z) tmp = 0 if y <= -2e+122: tmp = t_3 elif y <= -1.95e-261: tmp = t_1 elif y <= 9.6e-284: tmp = t_2 elif y <= 5e-74: tmp = t_1 elif y <= 3.8e-56: tmp = t_2 elif y <= 2.6e-22: tmp = a * (b * i) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) t_2 = Float64(j * Float64(t * c)) t_3 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -2e+122) tmp = t_3; elseif (y <= -1.95e-261) tmp = t_1; elseif (y <= 9.6e-284) tmp = t_2; elseif (y <= 5e-74) tmp = t_1; elseif (y <= 3.8e-56) tmp = t_2; elseif (y <= 2.6e-22) tmp = Float64(a * Float64(b * i)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); t_2 = j * (t * c); t_3 = x * (y * z); tmp = 0.0; if (y <= -2e+122) tmp = t_3; elseif (y <= -1.95e-261) tmp = t_1; elseif (y <= 9.6e-284) tmp = t_2; elseif (y <= 5e-74) tmp = t_1; elseif (y <= 3.8e-56) tmp = t_2; elseif (y <= 2.6e-22) tmp = a * (b * i); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+122], t$95$3, If[LessEqual[y, -1.95e-261], t$95$1, If[LessEqual[y, 9.6e-284], t$95$2, If[LessEqual[y, 5e-74], t$95$1, If[LessEqual[y, 3.8e-56], t$95$2, If[LessEqual[y, 2.6e-22], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
t_2 := j \cdot \left(t \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+122}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{-261}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-284}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-22}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2.00000000000000003e122 or 2.6e-22 < y Initial program 70.5%
Taylor expanded in b around 0 72.1%
+-commutative72.1%
sub-neg72.1%
+-commutative72.1%
mul-1-neg72.1%
*-commutative72.1%
*-commutative72.1%
fma-neg73.0%
fma-def75.9%
mul-1-neg75.9%
+-commutative75.9%
sub-neg75.9%
fma-udef75.0%
*-commutative75.0%
*-commutative75.0%
distribute-lft-neg-in75.0%
*-commutative75.0%
Simplified75.9%
distribute-rgt-neg-out75.9%
fma-neg75.0%
*-commutative75.0%
*-commutative75.0%
Applied egg-rr75.0%
Taylor expanded in z around inf 42.9%
if -2.00000000000000003e122 < y < -1.95000000000000009e-261 or 9.60000000000000011e-284 < y < 4.99999999999999998e-74Initial program 85.5%
Taylor expanded in b around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in a around inf 31.6%
if -1.95000000000000009e-261 < y < 9.60000000000000011e-284 or 4.99999999999999998e-74 < y < 3.8000000000000002e-56Initial program 76.9%
Taylor expanded in c around inf 62.1%
Taylor expanded in j around inf 51.9%
associate-*r*42.5%
*-commutative42.5%
associate-*l*55.0%
Simplified55.0%
if 3.8000000000000002e-56 < y < 2.6e-22Initial program 90.8%
Taylor expanded in b around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in a around inf 38.7%
Taylor expanded in b around 0 55.2%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))) (t_2 (* j (* t c))))
(if (<= y -6.2e+122)
(* x (* y z))
(if (<= y -9.6e-256)
t_1
(if (<= y 7.2e-284)
t_2
(if (<= y 3e-73)
t_1
(if (<= y 3.4e-57)
t_2
(if (<= y 5.9e-22) (* a (* b i)) (* y (* x 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 * (a * i);
double t_2 = j * (t * c);
double tmp;
if (y <= -6.2e+122) {
tmp = x * (y * z);
} else if (y <= -9.6e-256) {
tmp = t_1;
} else if (y <= 7.2e-284) {
tmp = t_2;
} else if (y <= 3e-73) {
tmp = t_1;
} else if (y <= 3.4e-57) {
tmp = t_2;
} else if (y <= 5.9e-22) {
tmp = a * (b * i);
} else {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = b * (a * i)
t_2 = j * (t * c)
if (y <= (-6.2d+122)) then
tmp = x * (y * z)
else if (y <= (-9.6d-256)) then
tmp = t_1
else if (y <= 7.2d-284) then
tmp = t_2
else if (y <= 3d-73) then
tmp = t_1
else if (y <= 3.4d-57) then
tmp = t_2
else if (y <= 5.9d-22) then
tmp = a * (b * i)
else
tmp = y * (x * 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 * (a * i);
double t_2 = j * (t * c);
double tmp;
if (y <= -6.2e+122) {
tmp = x * (y * z);
} else if (y <= -9.6e-256) {
tmp = t_1;
} else if (y <= 7.2e-284) {
tmp = t_2;
} else if (y <= 3e-73) {
tmp = t_1;
} else if (y <= 3.4e-57) {
tmp = t_2;
} else if (y <= 5.9e-22) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) t_2 = j * (t * c) tmp = 0 if y <= -6.2e+122: tmp = x * (y * z) elif y <= -9.6e-256: tmp = t_1 elif y <= 7.2e-284: tmp = t_2 elif y <= 3e-73: tmp = t_1 elif y <= 3.4e-57: tmp = t_2 elif y <= 5.9e-22: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) t_2 = Float64(j * Float64(t * c)) tmp = 0.0 if (y <= -6.2e+122) tmp = Float64(x * Float64(y * z)); elseif (y <= -9.6e-256) tmp = t_1; elseif (y <= 7.2e-284) tmp = t_2; elseif (y <= 3e-73) tmp = t_1; elseif (y <= 3.4e-57) tmp = t_2; elseif (y <= 5.9e-22) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); t_2 = j * (t * c); tmp = 0.0; if (y <= -6.2e+122) tmp = x * (y * z); elseif (y <= -9.6e-256) tmp = t_1; elseif (y <= 7.2e-284) tmp = t_2; elseif (y <= 3e-73) tmp = t_1; elseif (y <= 3.4e-57) tmp = t_2; elseif (y <= 5.9e-22) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.6e-256], t$95$1, If[LessEqual[y, 7.2e-284], t$95$2, If[LessEqual[y, 3e-73], t$95$1, If[LessEqual[y, 3.4e-57], t$95$2, If[LessEqual[y, 5.9e-22], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
t_2 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -9.6 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-284}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5.9 \cdot 10^{-22}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -6.19999999999999998e122Initial program 58.2%
Taylor expanded in b around 0 63.8%
+-commutative63.8%
sub-neg63.8%
+-commutative63.8%
mul-1-neg63.8%
*-commutative63.8%
*-commutative63.8%
fma-neg66.1%
fma-def70.8%
mul-1-neg70.8%
+-commutative70.8%
sub-neg70.8%
fma-udef68.5%
*-commutative68.5%
*-commutative68.5%
distribute-lft-neg-in68.5%
*-commutative68.5%
Simplified70.8%
distribute-rgt-neg-out70.8%
fma-neg68.5%
*-commutative68.5%
*-commutative68.5%
Applied egg-rr68.5%
Taylor expanded in z around inf 45.2%
if -6.19999999999999998e122 < y < -9.5999999999999998e-256 or 7.2000000000000004e-284 < y < 3e-73Initial program 85.5%
Taylor expanded in b around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in a around inf 31.6%
if -9.5999999999999998e-256 < y < 7.2000000000000004e-284 or 3e-73 < y < 3.40000000000000016e-57Initial program 76.9%
Taylor expanded in c around inf 62.1%
Taylor expanded in j around inf 51.9%
associate-*r*42.5%
*-commutative42.5%
associate-*l*55.0%
Simplified55.0%
if 3.40000000000000016e-57 < y < 5.90000000000000008e-22Initial program 90.8%
Taylor expanded in b around inf 55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in a around inf 38.7%
Taylor expanded in b around 0 55.2%
if 5.90000000000000008e-22 < y Initial program 79.1%
Taylor expanded in y around inf 71.6%
+-commutative71.6%
mul-1-neg71.6%
unsub-neg71.6%
Simplified71.6%
Taylor expanded in x around inf 41.4%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -1.7e+55)
(and (not (<= b -0.024)) (or (<= b -3.7e-53) (not (<= b 1.14e-35)))))
(* b (- (* a i) (* z c)))
(* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.7e+55) || (!(b <= -0.024) && ((b <= -3.7e-53) || !(b <= 1.14e-35)))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
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 <= (-1.7d+55)) .or. (.not. (b <= (-0.024d0))) .and. (b <= (-3.7d-53)) .or. (.not. (b <= 1.14d-35))) then
tmp = b * ((a * i) - (z * c))
else
tmp = j * ((t * c) - (y * i))
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 <= -1.7e+55) || (!(b <= -0.024) && ((b <= -3.7e-53) || !(b <= 1.14e-35)))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.7e+55) or (not (b <= -0.024) and ((b <= -3.7e-53) or not (b <= 1.14e-35))): tmp = b * ((a * i) - (z * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.7e+55) || (!(b <= -0.024) && ((b <= -3.7e-53) || !(b <= 1.14e-35)))) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.7e+55) || (~((b <= -0.024)) && ((b <= -3.7e-53) || ~((b <= 1.14e-35))))) tmp = b * ((a * i) - (z * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.7e+55], And[N[Not[LessEqual[b, -0.024]], $MachinePrecision], Or[LessEqual[b, -3.7e-53], N[Not[LessEqual[b, 1.14e-35]], $MachinePrecision]]]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{+55} \lor \neg \left(b \leq -0.024\right) \land \left(b \leq -3.7 \cdot 10^{-53} \lor \neg \left(b \leq 1.14 \cdot 10^{-35}\right)\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -1.6999999999999999e55 or -0.024 < b < -3.69999999999999982e-53 or 1.14e-35 < b Initial program 76.1%
Taylor expanded in b around inf 59.1%
*-commutative59.1%
Simplified59.1%
if -1.6999999999999999e55 < b < -0.024 or -3.69999999999999982e-53 < b < 1.14e-35Initial program 80.7%
Taylor expanded in j around inf 52.6%
Final simplification55.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= c -1.5e-72)
(* t (* c j))
(if (<= c 2e-224)
(* i (* a b))
(if (<= c 1.9e-83)
t_1
(if (<= c 2.4e-14)
(* b (* a i))
(if (<= c 2.8e+127) t_1 (* j (* t c)))))))))
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);
double tmp;
if (c <= -1.5e-72) {
tmp = t * (c * j);
} else if (c <= 2e-224) {
tmp = i * (a * b);
} else if (c <= 1.9e-83) {
tmp = t_1;
} else if (c <= 2.4e-14) {
tmp = b * (a * i);
} else if (c <= 2.8e+127) {
tmp = t_1;
} else {
tmp = j * (t * 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 = x * (y * z)
if (c <= (-1.5d-72)) then
tmp = t * (c * j)
else if (c <= 2d-224) then
tmp = i * (a * b)
else if (c <= 1.9d-83) then
tmp = t_1
else if (c <= 2.4d-14) then
tmp = b * (a * i)
else if (c <= 2.8d+127) then
tmp = t_1
else
tmp = j * (t * 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 = x * (y * z);
double tmp;
if (c <= -1.5e-72) {
tmp = t * (c * j);
} else if (c <= 2e-224) {
tmp = i * (a * b);
} else if (c <= 1.9e-83) {
tmp = t_1;
} else if (c <= 2.4e-14) {
tmp = b * (a * i);
} else if (c <= 2.8e+127) {
tmp = t_1;
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if c <= -1.5e-72: tmp = t * (c * j) elif c <= 2e-224: tmp = i * (a * b) elif c <= 1.9e-83: tmp = t_1 elif c <= 2.4e-14: tmp = b * (a * i) elif c <= 2.8e+127: tmp = t_1 else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (c <= -1.5e-72) tmp = Float64(t * Float64(c * j)); elseif (c <= 2e-224) tmp = Float64(i * Float64(a * b)); elseif (c <= 1.9e-83) tmp = t_1; elseif (c <= 2.4e-14) tmp = Float64(b * Float64(a * i)); elseif (c <= 2.8e+127) tmp = t_1; else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (c <= -1.5e-72) tmp = t * (c * j); elseif (c <= 2e-224) tmp = i * (a * b); elseif (c <= 1.9e-83) tmp = t_1; elseif (c <= 2.4e-14) tmp = b * (a * i); elseif (c <= 2.8e+127) tmp = t_1; else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.5e-72], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e-224], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e-83], t$95$1, If[LessEqual[c, 2.4e-14], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e+127], t$95$1, N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;c \leq -1.5 \cdot 10^{-72}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-224}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-14}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+127}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -1.5e-72Initial program 75.4%
Taylor expanded in c around inf 49.3%
Taylor expanded in j around inf 32.1%
associate-*r*35.6%
Simplified35.6%
if -1.5e-72 < c < 2e-224Initial program 84.8%
Taylor expanded in b around inf 44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in a around inf 39.7%
Taylor expanded in b around 0 38.1%
expm1-log1p-u15.7%
expm1-udef11.6%
*-commutative11.6%
Applied egg-rr11.6%
expm1-def15.7%
expm1-log1p38.1%
*-commutative38.1%
associate-*l*39.7%
Simplified39.7%
if 2e-224 < c < 1.89999999999999988e-83 or 2.4e-14 < c < 2.8000000000000002e127Initial program 82.6%
Taylor expanded in b around 0 72.9%
+-commutative72.9%
sub-neg72.9%
+-commutative72.9%
mul-1-neg72.9%
*-commutative72.9%
*-commutative72.9%
fma-neg72.9%
fma-def72.9%
mul-1-neg72.9%
+-commutative72.9%
sub-neg72.9%
fma-udef72.9%
*-commutative72.9%
*-commutative72.9%
distribute-lft-neg-in72.9%
*-commutative72.9%
Simplified72.9%
distribute-rgt-neg-out72.9%
fma-neg72.9%
*-commutative72.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in z around inf 36.4%
if 1.89999999999999988e-83 < c < 2.4e-14Initial program 78.5%
Taylor expanded in b around inf 58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in a around inf 44.6%
if 2.8000000000000002e127 < c Initial program 67.0%
Taylor expanded in c around inf 76.7%
Taylor expanded in j around inf 41.0%
associate-*r*38.1%
*-commutative38.1%
associate-*l*46.6%
Simplified46.6%
Final simplification38.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.35e-161)
(* b (- (* a i) (* z c)))
(if (<= a 9.5e-37)
(* c (- (* t j) (* z b)))
(if (<= a 4.1e+71)
(* x (* y z))
(if (<= a 5.2e+81) (* (* z b) (- c)) (* x (* t (- a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.35e-161) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 9.5e-37) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 4.1e+71) {
tmp = x * (y * z);
} else if (a <= 5.2e+81) {
tmp = (z * b) * -c;
} else {
tmp = x * (t * -a);
}
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 (a <= (-1.35d-161)) then
tmp = b * ((a * i) - (z * c))
else if (a <= 9.5d-37) then
tmp = c * ((t * j) - (z * b))
else if (a <= 4.1d+71) then
tmp = x * (y * z)
else if (a <= 5.2d+81) then
tmp = (z * b) * -c
else
tmp = x * (t * -a)
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 (a <= -1.35e-161) {
tmp = b * ((a * i) - (z * c));
} else if (a <= 9.5e-37) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 4.1e+71) {
tmp = x * (y * z);
} else if (a <= 5.2e+81) {
tmp = (z * b) * -c;
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.35e-161: tmp = b * ((a * i) - (z * c)) elif a <= 9.5e-37: tmp = c * ((t * j) - (z * b)) elif a <= 4.1e+71: tmp = x * (y * z) elif a <= 5.2e+81: tmp = (z * b) * -c else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.35e-161) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (a <= 9.5e-37) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 4.1e+71) tmp = Float64(x * Float64(y * z)); elseif (a <= 5.2e+81) tmp = Float64(Float64(z * b) * Float64(-c)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.35e-161) tmp = b * ((a * i) - (z * c)); elseif (a <= 9.5e-37) tmp = c * ((t * j) - (z * b)); elseif (a <= 4.1e+71) tmp = x * (y * z); elseif (a <= 5.2e+81) tmp = (z * b) * -c; else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.35e-161], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-37], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e+71], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+81], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.35 \cdot 10^{-161}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-37}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+81}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if a < -1.35e-161Initial program 81.6%
Taylor expanded in b around inf 48.7%
*-commutative48.7%
Simplified48.7%
if -1.35e-161 < a < 9.49999999999999927e-37Initial program 82.9%
Taylor expanded in c around inf 51.6%
if 9.49999999999999927e-37 < a < 4.1000000000000002e71Initial program 78.1%
Taylor expanded in b around 0 70.3%
+-commutative70.3%
sub-neg70.3%
+-commutative70.3%
mul-1-neg70.3%
*-commutative70.3%
*-commutative70.3%
fma-neg70.3%
fma-def70.3%
mul-1-neg70.3%
+-commutative70.3%
sub-neg70.3%
fma-udef70.3%
*-commutative70.3%
*-commutative70.3%
distribute-lft-neg-in70.3%
*-commutative70.3%
Simplified70.3%
distribute-rgt-neg-out70.3%
fma-neg70.3%
*-commutative70.3%
*-commutative70.3%
Applied egg-rr70.3%
Taylor expanded in z around inf 40.4%
if 4.1000000000000002e71 < a < 5.19999999999999984e81Initial program 60.0%
Taylor expanded in b around inf 41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in a around 0 61.2%
associate-*r*61.2%
*-commutative61.2%
associate-*r*61.2%
mul-1-neg61.2%
Simplified61.2%
if 5.19999999999999984e81 < a Initial program 63.4%
Taylor expanded in b around 0 63.7%
Taylor expanded in y around 0 50.9%
Taylor expanded in a around inf 54.9%
mul-1-neg54.9%
associate-*r*54.9%
distribute-rgt-neg-in54.9%
Simplified54.9%
Final simplification50.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.75e-92) (not (<= b 1.14e-35))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.75e-92) || !(b <= 1.14e-35)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
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 <= (-1.75d-92)) .or. (.not. (b <= 1.14d-35))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
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 <= -1.75e-92) || !(b <= 1.14e-35)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.75e-92) or not (b <= 1.14e-35): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.75e-92) || !(b <= 1.14e-35)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.75e-92) || ~((b <= 1.14e-35))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.75e-92], N[Not[LessEqual[b, 1.14e-35]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.75 \cdot 10^{-92} \lor \neg \left(b \leq 1.14 \cdot 10^{-35}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -1.75e-92 or 1.14e-35 < b Initial program 77.6%
Taylor expanded in b around inf 53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in a around inf 33.3%
Taylor expanded in b around 0 35.9%
if -1.75e-92 < b < 1.14e-35Initial program 80.0%
Taylor expanded in c around inf 35.0%
Taylor expanded in j around inf 27.0%
Final simplification32.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -2.75e-95) (* a (* b i)) (if (<= b 1.1e-35) (* c (* t j)) (* i (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.75e-95) {
tmp = a * (b * i);
} else if (b <= 1.1e-35) {
tmp = c * (t * j);
} else {
tmp = i * (a * 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 (b <= (-2.75d-95)) then
tmp = a * (b * i)
else if (b <= 1.1d-35) then
tmp = c * (t * j)
else
tmp = i * (a * 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 (b <= -2.75e-95) {
tmp = a * (b * i);
} else if (b <= 1.1e-35) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.75e-95: tmp = a * (b * i) elif b <= 1.1e-35: tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.75e-95) tmp = Float64(a * Float64(b * i)); elseif (b <= 1.1e-35) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.75e-95) tmp = a * (b * i); elseif (b <= 1.1e-35) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.75e-95], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e-35], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.75 \cdot 10^{-95}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-35}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -2.75000000000000001e-95Initial program 81.8%
Taylor expanded in b around inf 54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in a around inf 38.6%
Taylor expanded in b around 0 43.1%
if -2.75000000000000001e-95 < b < 1.09999999999999997e-35Initial program 80.0%
Taylor expanded in c around inf 35.0%
Taylor expanded in j around inf 27.0%
if 1.09999999999999997e-35 < b Initial program 72.1%
Taylor expanded in b around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in a around inf 26.4%
Taylor expanded in b around 0 26.8%
expm1-log1p-u13.6%
expm1-udef11.2%
*-commutative11.2%
Applied egg-rr11.2%
expm1-def13.6%
expm1-log1p26.8%
*-commutative26.8%
associate-*l*28.0%
Simplified28.0%
Final simplification32.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -8.3e-72) (* c (* t j)) (if (<= c 1e+90) (* b (* a i)) (* j (* t c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -8.3e-72) {
tmp = c * (t * j);
} else if (c <= 1e+90) {
tmp = b * (a * i);
} else {
tmp = j * (t * 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) :: tmp
if (c <= (-8.3d-72)) then
tmp = c * (t * j)
else if (c <= 1d+90) then
tmp = b * (a * i)
else
tmp = j * (t * 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 tmp;
if (c <= -8.3e-72) {
tmp = c * (t * j);
} else if (c <= 1e+90) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -8.3e-72: tmp = c * (t * j) elif c <= 1e+90: tmp = b * (a * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -8.3e-72) tmp = Float64(c * Float64(t * j)); elseif (c <= 1e+90) tmp = Float64(b * Float64(a * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -8.3e-72) tmp = c * (t * j); elseif (c <= 1e+90) tmp = b * (a * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -8.3e-72], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e+90], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8.3 \cdot 10^{-72}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq 10^{+90}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -8.2999999999999997e-72Initial program 75.4%
Taylor expanded in c around inf 49.3%
Taylor expanded in j around inf 32.1%
if -8.2999999999999997e-72 < c < 9.99999999999999966e89Initial program 82.2%
Taylor expanded in b around inf 37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in a around inf 29.0%
if 9.99999999999999966e89 < c Initial program 72.7%
Taylor expanded in c around inf 66.5%
Taylor expanded in j around inf 36.8%
associate-*r*36.8%
*-commutative36.8%
associate-*l*41.5%
Simplified41.5%
Final simplification31.9%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 78.6%
Taylor expanded in b around inf 37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in a around inf 22.4%
Taylor expanded in b around 0 22.8%
Final simplification22.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = 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[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\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 - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023322
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))