
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* y i) (* a c))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
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 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 94.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 56.0%
distribute-lft-out--56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in t around 0 56.0%
mul-1-neg56.0%
*-commutative56.0%
distribute-rgt-neg-out56.0%
neg-mul-156.0%
neg-mul-156.0%
sub-neg56.0%
+-commutative56.0%
distribute-neg-in56.0%
remove-double-neg56.0%
sub-neg56.0%
Simplified56.0%
Final simplification86.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* t (- (* b i) (* x a))))
(t_3 (* z (- (* x y) (* b c))))
(t_4 (* i (- (* t b) (* y j)))))
(if (<= i -4.1e+27)
t_4
(if (<= i -3.2e-95)
t_3
(if (<= i -2.4e-223)
t_1
(if (<= i 1.8e-246)
(* c (- (* a j) (* z b)))
(if (<= i 2.85e-232)
t_1
(if (<= i 1.22e-134)
t_3
(if (<= i 1.02e-65)
t_2
(if (<= i 8.5e-42) t_3 (if (<= i 9.5e+132) t_2 t_4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double t_4 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.1e+27) {
tmp = t_4;
} else if (i <= -3.2e-95) {
tmp = t_3;
} else if (i <= -2.4e-223) {
tmp = t_1;
} else if (i <= 1.8e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.85e-232) {
tmp = t_1;
} else if (i <= 1.22e-134) {
tmp = t_3;
} else if (i <= 1.02e-65) {
tmp = t_2;
} else if (i <= 8.5e-42) {
tmp = t_3;
} else if (i <= 9.5e+132) {
tmp = t_2;
} else {
tmp = t_4;
}
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) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = t * ((b * i) - (x * a))
t_3 = z * ((x * y) - (b * c))
t_4 = i * ((t * b) - (y * j))
if (i <= (-4.1d+27)) then
tmp = t_4
else if (i <= (-3.2d-95)) then
tmp = t_3
else if (i <= (-2.4d-223)) then
tmp = t_1
else if (i <= 1.8d-246) then
tmp = c * ((a * j) - (z * b))
else if (i <= 2.85d-232) then
tmp = t_1
else if (i <= 1.22d-134) then
tmp = t_3
else if (i <= 1.02d-65) then
tmp = t_2
else if (i <= 8.5d-42) then
tmp = t_3
else if (i <= 9.5d+132) then
tmp = t_2
else
tmp = t_4
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 * ((c * j) - (x * t));
double t_2 = t * ((b * i) - (x * a));
double t_3 = z * ((x * y) - (b * c));
double t_4 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.1e+27) {
tmp = t_4;
} else if (i <= -3.2e-95) {
tmp = t_3;
} else if (i <= -2.4e-223) {
tmp = t_1;
} else if (i <= 1.8e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.85e-232) {
tmp = t_1;
} else if (i <= 1.22e-134) {
tmp = t_3;
} else if (i <= 1.02e-65) {
tmp = t_2;
} else if (i <= 8.5e-42) {
tmp = t_3;
} else if (i <= 9.5e+132) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = t * ((b * i) - (x * a)) t_3 = z * ((x * y) - (b * c)) t_4 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.1e+27: tmp = t_4 elif i <= -3.2e-95: tmp = t_3 elif i <= -2.4e-223: tmp = t_1 elif i <= 1.8e-246: tmp = c * ((a * j) - (z * b)) elif i <= 2.85e-232: tmp = t_1 elif i <= 1.22e-134: tmp = t_3 elif i <= 1.02e-65: tmp = t_2 elif i <= 8.5e-42: tmp = t_3 elif i <= 9.5e+132: tmp = t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_4 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.1e+27) tmp = t_4; elseif (i <= -3.2e-95) tmp = t_3; elseif (i <= -2.4e-223) tmp = t_1; elseif (i <= 1.8e-246) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 2.85e-232) tmp = t_1; elseif (i <= 1.22e-134) tmp = t_3; elseif (i <= 1.02e-65) tmp = t_2; elseif (i <= 8.5e-42) tmp = t_3; elseif (i <= 9.5e+132) tmp = t_2; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = t * ((b * i) - (x * a)); t_3 = z * ((x * y) - (b * c)); t_4 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.1e+27) tmp = t_4; elseif (i <= -3.2e-95) tmp = t_3; elseif (i <= -2.4e-223) tmp = t_1; elseif (i <= 1.8e-246) tmp = c * ((a * j) - (z * b)); elseif (i <= 2.85e-232) tmp = t_1; elseif (i <= 1.22e-134) tmp = t_3; elseif (i <= 1.02e-65) tmp = t_2; elseif (i <= 8.5e-42) tmp = t_3; elseif (i <= 9.5e+132) tmp = t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.1e+27], t$95$4, If[LessEqual[i, -3.2e-95], t$95$3, If[LessEqual[i, -2.4e-223], t$95$1, If[LessEqual[i, 1.8e-246], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.85e-232], t$95$1, If[LessEqual[i, 1.22e-134], t$95$3, If[LessEqual[i, 1.02e-65], t$95$2, If[LessEqual[i, 8.5e-42], t$95$3, If[LessEqual[i, 9.5e+132], t$95$2, t$95$4]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_4 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.1 \cdot 10^{+27}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;i \leq -3.2 \cdot 10^{-95}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -2.4 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 2.85 \cdot 10^{-232}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.22 \cdot 10^{-134}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{-65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-42}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{+132}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if i < -4.1000000000000002e27 or 9.5000000000000005e132 < i Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around inf 77.4%
distribute-lft-out--77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in i around 0 77.4%
mul-1-neg77.4%
*-commutative77.4%
*-commutative77.4%
distribute-rgt-neg-in77.4%
neg-sub077.4%
associate-+l-77.4%
neg-sub077.4%
+-commutative77.4%
sub-neg77.4%
Simplified77.4%
if -4.1000000000000002e27 < i < -3.1999999999999997e-95 or 2.8500000000000001e-232 < i < 1.2199999999999999e-134 or 1.02000000000000004e-65 < i < 8.4999999999999996e-42Initial program 84.8%
associate-+l-84.8%
*-commutative84.8%
sub-neg84.8%
sub-neg84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in z around inf 63.9%
*-commutative63.9%
*-commutative63.9%
Simplified63.9%
if -3.1999999999999997e-95 < i < -2.39999999999999985e-223 or 1.8000000000000001e-246 < i < 2.8500000000000001e-232Initial program 85.9%
associate-+l-85.9%
*-commutative85.9%
sub-neg85.9%
sub-neg85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in a around inf 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
*-commutative90.5%
*-commutative90.5%
Simplified90.5%
if -2.39999999999999985e-223 < i < 1.8000000000000001e-246Initial program 65.3%
associate-+l-65.3%
*-commutative65.3%
sub-neg65.3%
sub-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around inf 66.0%
*-commutative66.0%
*-commutative66.0%
Simplified66.0%
if 1.2199999999999999e-134 < i < 1.02000000000000004e-65 or 8.4999999999999996e-42 < i < 9.5000000000000005e132Initial program 75.4%
associate-+l-75.4%
*-commutative75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in t around inf 62.8%
distribute-lft-out--62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in t around 0 62.8%
mul-1-neg62.8%
*-commutative62.8%
distribute-rgt-neg-out62.8%
neg-mul-162.8%
neg-mul-162.8%
sub-neg62.8%
+-commutative62.8%
distribute-neg-in62.8%
remove-double-neg62.8%
sub-neg62.8%
Simplified62.8%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* i (- (* t b) (* y j)))))
(if (<= i -2.4e+29)
t_3
(if (<= i -3.8e-95)
t_2
(if (<= i -1.1e-220)
t_1
(if (<= i 1.8e-246)
(* c (- (* a j) (* z b)))
(if (<= i 2.6e-232)
t_1
(if (<= i 1.15e-135)
t_2
(if (<= i 2.3e-65)
(- (* t (* b i)) (* t (* x a)))
(if (<= i 1.7e-41)
t_2
(if (<= i 1.85e+130)
(* t (- (* b i) (* x a)))
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 * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.4e+29) {
tmp = t_3;
} else if (i <= -3.8e-95) {
tmp = t_2;
} else if (i <= -1.1e-220) {
tmp = t_1;
} else if (i <= 1.8e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.6e-232) {
tmp = t_1;
} else if (i <= 1.15e-135) {
tmp = t_2;
} else if (i <= 2.3e-65) {
tmp = (t * (b * i)) - (t * (x * a));
} else if (i <= 1.7e-41) {
tmp = t_2;
} else if (i <= 1.85e+130) {
tmp = t * ((b * i) - (x * a));
} 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 * ((c * j) - (x * t))
t_2 = z * ((x * y) - (b * c))
t_3 = i * ((t * b) - (y * j))
if (i <= (-2.4d+29)) then
tmp = t_3
else if (i <= (-3.8d-95)) then
tmp = t_2
else if (i <= (-1.1d-220)) then
tmp = t_1
else if (i <= 1.8d-246) then
tmp = c * ((a * j) - (z * b))
else if (i <= 2.6d-232) then
tmp = t_1
else if (i <= 1.15d-135) then
tmp = t_2
else if (i <= 2.3d-65) then
tmp = (t * (b * i)) - (t * (x * a))
else if (i <= 1.7d-41) then
tmp = t_2
else if (i <= 1.85d+130) then
tmp = t * ((b * i) - (x * a))
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 * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double t_3 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.4e+29) {
tmp = t_3;
} else if (i <= -3.8e-95) {
tmp = t_2;
} else if (i <= -1.1e-220) {
tmp = t_1;
} else if (i <= 1.8e-246) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 2.6e-232) {
tmp = t_1;
} else if (i <= 1.15e-135) {
tmp = t_2;
} else if (i <= 2.3e-65) {
tmp = (t * (b * i)) - (t * (x * a));
} else if (i <= 1.7e-41) {
tmp = t_2;
} else if (i <= 1.85e+130) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * ((x * y) - (b * c)) t_3 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.4e+29: tmp = t_3 elif i <= -3.8e-95: tmp = t_2 elif i <= -1.1e-220: tmp = t_1 elif i <= 1.8e-246: tmp = c * ((a * j) - (z * b)) elif i <= 2.6e-232: tmp = t_1 elif i <= 1.15e-135: tmp = t_2 elif i <= 2.3e-65: tmp = (t * (b * i)) - (t * (x * a)) elif i <= 1.7e-41: tmp = t_2 elif i <= 1.85e+130: tmp = t * ((b * i) - (x * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.4e+29) tmp = t_3; elseif (i <= -3.8e-95) tmp = t_2; elseif (i <= -1.1e-220) tmp = t_1; elseif (i <= 1.8e-246) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 2.6e-232) tmp = t_1; elseif (i <= 1.15e-135) tmp = t_2; elseif (i <= 2.3e-65) tmp = Float64(Float64(t * Float64(b * i)) - Float64(t * Float64(x * a))); elseif (i <= 1.7e-41) tmp = t_2; elseif (i <= 1.85e+130) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = z * ((x * y) - (b * c)); t_3 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.4e+29) tmp = t_3; elseif (i <= -3.8e-95) tmp = t_2; elseif (i <= -1.1e-220) tmp = t_1; elseif (i <= 1.8e-246) tmp = c * ((a * j) - (z * b)); elseif (i <= 2.6e-232) tmp = t_1; elseif (i <= 1.15e-135) tmp = t_2; elseif (i <= 2.3e-65) tmp = (t * (b * i)) - (t * (x * a)); elseif (i <= 1.7e-41) tmp = t_2; elseif (i <= 1.85e+130) tmp = t * ((b * i) - (x * a)); 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[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.4e+29], t$95$3, If[LessEqual[i, -3.8e-95], t$95$2, If[LessEqual[i, -1.1e-220], t$95$1, If[LessEqual[i, 1.8e-246], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e-232], t$95$1, If[LessEqual[i, 1.15e-135], t$95$2, If[LessEqual[i, 2.3e-65], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(t * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-41], t$95$2, If[LessEqual[i, 1.85e+130], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.4 \cdot 10^{+29}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -3.8 \cdot 10^{-95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.1 \cdot 10^{-220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-232}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.15 \cdot 10^{-135}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - t \cdot \left(x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.85 \cdot 10^{+130}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if i < -2.4000000000000001e29 or 1.8500000000000001e130 < i Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in i around inf 77.4%
distribute-lft-out--77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in i around 0 77.4%
mul-1-neg77.4%
*-commutative77.4%
*-commutative77.4%
distribute-rgt-neg-in77.4%
neg-sub077.4%
associate-+l-77.4%
neg-sub077.4%
+-commutative77.4%
sub-neg77.4%
Simplified77.4%
if -2.4000000000000001e29 < i < -3.7999999999999997e-95 or 2.59999999999999996e-232 < i < 1.15e-135 or 2.3e-65 < i < 1.6999999999999999e-41Initial program 84.8%
associate-+l-84.8%
*-commutative84.8%
sub-neg84.8%
sub-neg84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in z around inf 63.9%
*-commutative63.9%
*-commutative63.9%
Simplified63.9%
if -3.7999999999999997e-95 < i < -1.09999999999999993e-220 or 1.8000000000000001e-246 < i < 2.59999999999999996e-232Initial program 85.9%
associate-+l-85.9%
*-commutative85.9%
sub-neg85.9%
sub-neg85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in a around inf 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
*-commutative90.5%
*-commutative90.5%
Simplified90.5%
if -1.09999999999999993e-220 < i < 1.8000000000000001e-246Initial program 65.3%
associate-+l-65.3%
*-commutative65.3%
sub-neg65.3%
sub-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around inf 66.0%
*-commutative66.0%
*-commutative66.0%
Simplified66.0%
if 1.15e-135 < i < 2.3e-65Initial program 88.5%
associate-+l-88.5%
*-commutative88.5%
sub-neg88.5%
sub-neg88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in t around inf 72.4%
distribute-lft-out--72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in t around 0 72.4%
mul-1-neg72.4%
*-commutative72.4%
distribute-rgt-neg-out72.4%
neg-mul-172.4%
neg-mul-172.4%
sub-neg72.4%
+-commutative72.4%
distribute-neg-in72.4%
remove-double-neg72.4%
sub-neg72.4%
Simplified72.4%
sub-neg72.4%
distribute-lft-in72.5%
distribute-rgt-neg-in72.5%
Applied egg-rr72.5%
if 1.6999999999999999e-41 < i < 1.8500000000000001e130Initial program 68.6%
associate-+l-68.6%
*-commutative68.6%
sub-neg68.6%
sub-neg68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in t around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in t around 0 57.8%
mul-1-neg57.8%
*-commutative57.8%
distribute-rgt-neg-out57.8%
neg-mul-157.8%
neg-mul-157.8%
sub-neg57.8%
+-commutative57.8%
distribute-neg-in57.8%
remove-double-neg57.8%
sub-neg57.8%
Simplified57.8%
Final simplification70.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -1.4e+64)
t_3
(if (<= t -6.5e-80)
t_2
(if (<= t -4.1e-282)
t_1
(if (<= t 5e-250)
t_2
(if (<= t 1.7e-229)
t_1
(if (<= t 1.7e-145) t_2 (if (<= t 4.9e+42) 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 * ((a * j) - (z * b));
double t_2 = i * ((t * b) - (y * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.4e+64) {
tmp = t_3;
} else if (t <= -6.5e-80) {
tmp = t_2;
} else if (t <= -4.1e-282) {
tmp = t_1;
} else if (t <= 5e-250) {
tmp = t_2;
} else if (t <= 1.7e-229) {
tmp = t_1;
} else if (t <= 1.7e-145) {
tmp = t_2;
} else if (t <= 4.9e+42) {
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 * ((a * j) - (z * b))
t_2 = i * ((t * b) - (y * j))
t_3 = t * ((b * i) - (x * a))
if (t <= (-1.4d+64)) then
tmp = t_3
else if (t <= (-6.5d-80)) then
tmp = t_2
else if (t <= (-4.1d-282)) then
tmp = t_1
else if (t <= 5d-250) then
tmp = t_2
else if (t <= 1.7d-229) then
tmp = t_1
else if (t <= 1.7d-145) then
tmp = t_2
else if (t <= 4.9d+42) 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 * ((a * j) - (z * b));
double t_2 = i * ((t * b) - (y * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.4e+64) {
tmp = t_3;
} else if (t <= -6.5e-80) {
tmp = t_2;
} else if (t <= -4.1e-282) {
tmp = t_1;
} else if (t <= 5e-250) {
tmp = t_2;
} else if (t <= 1.7e-229) {
tmp = t_1;
} else if (t <= 1.7e-145) {
tmp = t_2;
} else if (t <= 4.9e+42) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = i * ((t * b) - (y * j)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.4e+64: tmp = t_3 elif t <= -6.5e-80: tmp = t_2 elif t <= -4.1e-282: tmp = t_1 elif t <= 5e-250: tmp = t_2 elif t <= 1.7e-229: tmp = t_1 elif t <= 1.7e-145: tmp = t_2 elif t <= 4.9e+42: 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(a * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.4e+64) tmp = t_3; elseif (t <= -6.5e-80) tmp = t_2; elseif (t <= -4.1e-282) tmp = t_1; elseif (t <= 5e-250) tmp = t_2; elseif (t <= 1.7e-229) tmp = t_1; elseif (t <= 1.7e-145) tmp = t_2; elseif (t <= 4.9e+42) 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 * ((a * j) - (z * b)); t_2 = i * ((t * b) - (y * j)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.4e+64) tmp = t_3; elseif (t <= -6.5e-80) tmp = t_2; elseif (t <= -4.1e-282) tmp = t_1; elseif (t <= 5e-250) tmp = t_2; elseif (t <= 1.7e-229) tmp = t_1; elseif (t <= 1.7e-145) tmp = t_2; elseif (t <= 4.9e+42) 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[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+64], t$95$3, If[LessEqual[t, -6.5e-80], t$95$2, If[LessEqual[t, -4.1e-282], t$95$1, If[LessEqual[t, 5e-250], t$95$2, If[LessEqual[t, 1.7e-229], t$95$1, If[LessEqual[t, 1.7e-145], t$95$2, If[LessEqual[t, 4.9e+42], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+64}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{-80}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -4.1 \cdot 10^{-282}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-250}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-145}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -1.40000000000000012e64 or 4.9000000000000002e42 < t Initial program 67.1%
associate-+l-67.1%
*-commutative67.1%
sub-neg67.1%
sub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in t around inf 75.8%
distribute-lft-out--75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in t around 0 75.8%
mul-1-neg75.8%
*-commutative75.8%
distribute-rgt-neg-out75.8%
neg-mul-175.8%
neg-mul-175.8%
sub-neg75.8%
+-commutative75.8%
distribute-neg-in75.8%
remove-double-neg75.8%
sub-neg75.8%
Simplified75.8%
if -1.40000000000000012e64 < t < -6.49999999999999984e-80 or -4.09999999999999977e-282 < t < 5.00000000000000027e-250 or 1.7e-229 < t < 1.6999999999999999e-145Initial program 84.5%
associate-+l-84.5%
*-commutative84.5%
sub-neg84.5%
sub-neg84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in i around inf 62.0%
distribute-lft-out--62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in i around 0 62.0%
mul-1-neg62.0%
*-commutative62.0%
*-commutative62.0%
distribute-rgt-neg-in62.0%
neg-sub062.0%
associate-+l-62.0%
neg-sub062.0%
+-commutative62.0%
sub-neg62.0%
Simplified62.0%
if -6.49999999999999984e-80 < t < -4.09999999999999977e-282 or 5.00000000000000027e-250 < t < 1.7e-229 or 1.6999999999999999e-145 < t < 4.9000000000000002e42Initial program 79.6%
associate-+l-79.6%
*-commutative79.6%
sub-neg79.6%
sub-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -1.15e+64)
t_3
(if (<= t -1.3e-79)
t_2
(if (<= t -4e-214)
t_1
(if (<= t 1.15e-252)
(* y (- (* x z) (* i j)))
(if (<= t 4.7e-228)
t_1
(if (<= t 1.35e-145) t_2 (if (<= t 9e+39) 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 * ((a * j) - (z * b));
double t_2 = i * ((t * b) - (y * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.15e+64) {
tmp = t_3;
} else if (t <= -1.3e-79) {
tmp = t_2;
} else if (t <= -4e-214) {
tmp = t_1;
} else if (t <= 1.15e-252) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.7e-228) {
tmp = t_1;
} else if (t <= 1.35e-145) {
tmp = t_2;
} else if (t <= 9e+39) {
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 * ((a * j) - (z * b))
t_2 = i * ((t * b) - (y * j))
t_3 = t * ((b * i) - (x * a))
if (t <= (-1.15d+64)) then
tmp = t_3
else if (t <= (-1.3d-79)) then
tmp = t_2
else if (t <= (-4d-214)) then
tmp = t_1
else if (t <= 1.15d-252) then
tmp = y * ((x * z) - (i * j))
else if (t <= 4.7d-228) then
tmp = t_1
else if (t <= 1.35d-145) then
tmp = t_2
else if (t <= 9d+39) 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 * ((a * j) - (z * b));
double t_2 = i * ((t * b) - (y * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -1.15e+64) {
tmp = t_3;
} else if (t <= -1.3e-79) {
tmp = t_2;
} else if (t <= -4e-214) {
tmp = t_1;
} else if (t <= 1.15e-252) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 4.7e-228) {
tmp = t_1;
} else if (t <= 1.35e-145) {
tmp = t_2;
} else if (t <= 9e+39) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = i * ((t * b) - (y * j)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -1.15e+64: tmp = t_3 elif t <= -1.3e-79: tmp = t_2 elif t <= -4e-214: tmp = t_1 elif t <= 1.15e-252: tmp = y * ((x * z) - (i * j)) elif t <= 4.7e-228: tmp = t_1 elif t <= 1.35e-145: tmp = t_2 elif t <= 9e+39: 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(a * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -1.15e+64) tmp = t_3; elseif (t <= -1.3e-79) tmp = t_2; elseif (t <= -4e-214) tmp = t_1; elseif (t <= 1.15e-252) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 4.7e-228) tmp = t_1; elseif (t <= 1.35e-145) tmp = t_2; elseif (t <= 9e+39) 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 * ((a * j) - (z * b)); t_2 = i * ((t * b) - (y * j)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -1.15e+64) tmp = t_3; elseif (t <= -1.3e-79) tmp = t_2; elseif (t <= -4e-214) tmp = t_1; elseif (t <= 1.15e-252) tmp = y * ((x * z) - (i * j)); elseif (t <= 4.7e-228) tmp = t_1; elseif (t <= 1.35e-145) tmp = t_2; elseif (t <= 9e+39) 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[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.15e+64], t$95$3, If[LessEqual[t, -1.3e-79], t$95$2, If[LessEqual[t, -4e-214], t$95$1, If[LessEqual[t, 1.15e-252], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e-228], t$95$1, If[LessEqual[t, 1.35e-145], t$95$2, If[LessEqual[t, 9e+39], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.15 \cdot 10^{+64}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -1.3 \cdot 10^{-79}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -4 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-252}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-145}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -1.15e64 or 8.99999999999999991e39 < t Initial program 67.1%
associate-+l-67.1%
*-commutative67.1%
sub-neg67.1%
sub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in t around inf 75.8%
distribute-lft-out--75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in t around 0 75.8%
mul-1-neg75.8%
*-commutative75.8%
distribute-rgt-neg-out75.8%
neg-mul-175.8%
neg-mul-175.8%
sub-neg75.8%
+-commutative75.8%
distribute-neg-in75.8%
remove-double-neg75.8%
sub-neg75.8%
Simplified75.8%
if -1.15e64 < t < -1.29999999999999997e-79 or 4.7000000000000002e-228 < t < 1.35e-145Initial program 78.8%
associate-+l-78.8%
*-commutative78.8%
sub-neg78.8%
sub-neg78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in i around inf 65.6%
distribute-lft-out--65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in i around 0 65.6%
mul-1-neg65.6%
*-commutative65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
neg-sub065.6%
associate-+l-65.6%
neg-sub065.6%
+-commutative65.6%
sub-neg65.6%
Simplified65.6%
if -1.29999999999999997e-79 < t < -3.99999999999999965e-214 or 1.1499999999999999e-252 < t < 4.7000000000000002e-228 or 1.35e-145 < t < 8.99999999999999991e39Initial program 77.9%
associate-+l-77.9%
*-commutative77.9%
sub-neg77.9%
sub-neg77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in c around inf 61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
if -3.99999999999999965e-214 < t < 1.1499999999999999e-252Initial program 91.6%
associate-+l-91.6%
*-commutative91.6%
sub-neg91.6%
sub-neg91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in y around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
*-commutative60.0%
Simplified60.0%
Final simplification68.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.4e+152) (not (<= a 3.4e+100))) (* a (- (* c j) (* x t))) (- (* b (- (* t i) (* z c))) (* j (- (* y i) (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.4e+152) || !(a <= 3.4e+100)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * 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 ((a <= (-1.4d+152)) .or. (.not. (a <= 3.4d+100))) then
tmp = a * ((c * j) - (x * t))
else
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * 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 ((a <= -1.4e+152) || !(a <= 3.4e+100)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.4e+152) or not (a <= 3.4e+100): tmp = a * ((c * j) - (x * t)) else: tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.4e+152) || !(a <= 3.4e+100)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.4e+152) || ~((a <= 3.4e+100))) tmp = a * ((c * j) - (x * t)); else tmp = (b * ((t * i) - (z * c))) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.4e+152], N[Not[LessEqual[a, 3.4e+100]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+152} \lor \neg \left(a \leq 3.4 \cdot 10^{+100}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if a < -1.4000000000000001e152 or 3.39999999999999994e100 < a Initial program 57.5%
associate-+l-57.5%
*-commutative57.5%
sub-neg57.5%
sub-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in a around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
if -1.4000000000000001e152 < a < 3.39999999999999994e100Initial program 81.5%
associate-+l-81.5%
*-commutative81.5%
sub-neg81.5%
sub-neg81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in x around 0 69.4%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (or (<= j -410.0) (not (<= j 1.62e-62)))
(- t_1 (* j (- (* y i) (* a c))))
(- t_1 (* x (- (* t a) (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if ((j <= -410.0) || !(j <= 1.62e-62)) {
tmp = t_1 - (j * ((y * i) - (a * c)));
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if ((j <= (-410.0d0)) .or. (.not. (j <= 1.62d-62))) then
tmp = t_1 - (j * ((y * i) - (a * c)))
else
tmp = t_1 - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if ((j <= -410.0) || !(j <= 1.62e-62)) {
tmp = t_1 - (j * ((y * i) - (a * c)));
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if (j <= -410.0) or not (j <= 1.62e-62): tmp = t_1 - (j * ((y * i) - (a * c))) else: tmp = t_1 - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if ((j <= -410.0) || !(j <= 1.62e-62)) tmp = Float64(t_1 - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); else tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if ((j <= -410.0) || ~((j <= 1.62e-62))) tmp = t_1 - (j * ((y * i) - (a * c))); else tmp = t_1 - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[j, -410.0], N[Not[LessEqual[j, 1.62e-62]], $MachinePrecision]], N[(t$95$1 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -410 \lor \neg \left(j \leq 1.62 \cdot 10^{-62}\right):\\
\;\;\;\;t_1 - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -410 or 1.6199999999999999e-62 < j Initial program 75.7%
associate-+l-75.7%
*-commutative75.7%
sub-neg75.7%
sub-neg75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 72.5%
if -410 < j < 1.6199999999999999e-62Initial program 74.4%
associate-+l-74.4%
*-commutative74.4%
sub-neg74.4%
sub-neg74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in j around 0 79.2%
Final simplification75.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (- (* c (* z b)))) (t_3 (* t (* b i))))
(if (<= i -2.3e+80)
t_3
(if (<= i -6.2e+27)
(* (* y j) (- i))
(if (<= i -1.6e-115)
t_2
(if (<= i -1.5e-255)
t_1
(if (<= i 1.25e-246)
t_2
(if (<= i 3e-122)
(* x (* y z))
(if (<= i 2.65e-20)
t_3
(if (<= i 3.4e+42) t_1 (* b (* t i))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = -(c * (z * b));
double t_3 = t * (b * i);
double tmp;
if (i <= -2.3e+80) {
tmp = t_3;
} else if (i <= -6.2e+27) {
tmp = (y * j) * -i;
} else if (i <= -1.6e-115) {
tmp = t_2;
} else if (i <= -1.5e-255) {
tmp = t_1;
} else if (i <= 1.25e-246) {
tmp = t_2;
} else if (i <= 3e-122) {
tmp = x * (y * z);
} else if (i <= 2.65e-20) {
tmp = t_3;
} else if (i <= 3.4e+42) {
tmp = t_1;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (c * j)
t_2 = -(c * (z * b))
t_3 = t * (b * i)
if (i <= (-2.3d+80)) then
tmp = t_3
else if (i <= (-6.2d+27)) then
tmp = (y * j) * -i
else if (i <= (-1.6d-115)) then
tmp = t_2
else if (i <= (-1.5d-255)) then
tmp = t_1
else if (i <= 1.25d-246) then
tmp = t_2
else if (i <= 3d-122) then
tmp = x * (y * z)
else if (i <= 2.65d-20) then
tmp = t_3
else if (i <= 3.4d+42) then
tmp = t_1
else
tmp = b * (t * 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 t_1 = a * (c * j);
double t_2 = -(c * (z * b));
double t_3 = t * (b * i);
double tmp;
if (i <= -2.3e+80) {
tmp = t_3;
} else if (i <= -6.2e+27) {
tmp = (y * j) * -i;
} else if (i <= -1.6e-115) {
tmp = t_2;
} else if (i <= -1.5e-255) {
tmp = t_1;
} else if (i <= 1.25e-246) {
tmp = t_2;
} else if (i <= 3e-122) {
tmp = x * (y * z);
} else if (i <= 2.65e-20) {
tmp = t_3;
} else if (i <= 3.4e+42) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = -(c * (z * b)) t_3 = t * (b * i) tmp = 0 if i <= -2.3e+80: tmp = t_3 elif i <= -6.2e+27: tmp = (y * j) * -i elif i <= -1.6e-115: tmp = t_2 elif i <= -1.5e-255: tmp = t_1 elif i <= 1.25e-246: tmp = t_2 elif i <= 3e-122: tmp = x * (y * z) elif i <= 2.65e-20: tmp = t_3 elif i <= 3.4e+42: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(-Float64(c * Float64(z * b))) t_3 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -2.3e+80) tmp = t_3; elseif (i <= -6.2e+27) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (i <= -1.6e-115) tmp = t_2; elseif (i <= -1.5e-255) tmp = t_1; elseif (i <= 1.25e-246) tmp = t_2; elseif (i <= 3e-122) tmp = Float64(x * Float64(y * z)); elseif (i <= 2.65e-20) tmp = t_3; elseif (i <= 3.4e+42) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = -(c * (z * b)); t_3 = t * (b * i); tmp = 0.0; if (i <= -2.3e+80) tmp = t_3; elseif (i <= -6.2e+27) tmp = (y * j) * -i; elseif (i <= -1.6e-115) tmp = t_2; elseif (i <= -1.5e-255) tmp = t_1; elseif (i <= 1.25e-246) tmp = t_2; elseif (i <= 3e-122) tmp = x * (y * z); elseif (i <= 2.65e-20) tmp = t_3; elseif (i <= 3.4e+42) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])}, Block[{t$95$3 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.3e+80], t$95$3, If[LessEqual[i, -6.2e+27], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[i, -1.6e-115], t$95$2, If[LessEqual[i, -1.5e-255], t$95$1, If[LessEqual[i, 1.25e-246], t$95$2, If[LessEqual[i, 3e-122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.65e-20], t$95$3, If[LessEqual[i, 3.4e+42], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := -c \cdot \left(z \cdot b\right)\\
t_3 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2.3 \cdot 10^{+80}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -6.2 \cdot 10^{+27}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{-115}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{-255}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.25 \cdot 10^{-246}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 2.65 \cdot 10^{-20}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -2.30000000000000004e80 or 3.00000000000000004e-122 < i < 2.6500000000000001e-20Initial program 76.9%
associate-+l-76.9%
*-commutative76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in t around inf 63.3%
distribute-lft-out--63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in t around 0 63.3%
mul-1-neg63.3%
*-commutative63.3%
distribute-rgt-neg-out63.3%
neg-mul-163.3%
neg-mul-163.3%
sub-neg63.3%
+-commutative63.3%
distribute-neg-in63.3%
remove-double-neg63.3%
sub-neg63.3%
Simplified63.3%
Taylor expanded in i around inf 47.0%
*-commutative47.0%
*-commutative47.0%
associate-*r*52.2%
*-commutative52.2%
Simplified52.2%
if -2.30000000000000004e80 < i < -6.19999999999999992e27Initial program 62.7%
associate-+l-62.7%
*-commutative62.7%
sub-neg62.7%
sub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in i around inf 87.3%
distribute-lft-out--87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in j around inf 74.9%
mul-1-neg74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
Simplified74.9%
if -6.19999999999999992e27 < i < -1.6e-115 or -1.50000000000000001e-255 < i < 1.2499999999999999e-246Initial program 71.4%
associate-+l-71.4%
*-commutative71.4%
sub-neg71.4%
sub-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in c around inf 59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in j around 0 45.4%
mul-1-neg45.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -1.6e-115 < i < -1.50000000000000001e-255 or 2.6500000000000001e-20 < i < 3.39999999999999975e42Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in a around inf 72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around inf 51.5%
*-commutative51.5%
Simplified51.5%
if 1.2499999999999999e-246 < i < 3.00000000000000004e-122Initial program 93.3%
associate-+l-93.3%
*-commutative93.3%
sub-neg93.3%
sub-neg93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in z around inf 49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in y around inf 45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in z around 0 45.5%
if 3.39999999999999975e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification51.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* t (* b i))))
(if (<= i -1.08e+80)
t_2
(if (<= i -7.5e+28)
(* (* y j) (- i))
(if (<= i -1.9e-115)
(* z (* b (- c)))
(if (<= i -7.5e-256)
t_1
(if (<= i 6.5e-247)
(- (* c (* z b)))
(if (<= i 3.4e-124)
(* x (* y z))
(if (<= i 3.2e-20)
t_2
(if (<= i 3.5e+42) t_1 (* b (* t i))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.08e+80) {
tmp = t_2;
} else if (i <= -7.5e+28) {
tmp = (y * j) * -i;
} else if (i <= -1.9e-115) {
tmp = z * (b * -c);
} else if (i <= -7.5e-256) {
tmp = t_1;
} else if (i <= 6.5e-247) {
tmp = -(c * (z * b));
} else if (i <= 3.4e-124) {
tmp = x * (y * z);
} else if (i <= 3.2e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = t * (b * i)
if (i <= (-1.08d+80)) then
tmp = t_2
else if (i <= (-7.5d+28)) then
tmp = (y * j) * -i
else if (i <= (-1.9d-115)) then
tmp = z * (b * -c)
else if (i <= (-7.5d-256)) then
tmp = t_1
else if (i <= 6.5d-247) then
tmp = -(c * (z * b))
else if (i <= 3.4d-124) then
tmp = x * (y * z)
else if (i <= 3.2d-20) then
tmp = t_2
else if (i <= 3.5d+42) then
tmp = t_1
else
tmp = b * (t * 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 t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.08e+80) {
tmp = t_2;
} else if (i <= -7.5e+28) {
tmp = (y * j) * -i;
} else if (i <= -1.9e-115) {
tmp = z * (b * -c);
} else if (i <= -7.5e-256) {
tmp = t_1;
} else if (i <= 6.5e-247) {
tmp = -(c * (z * b));
} else if (i <= 3.4e-124) {
tmp = x * (y * z);
} else if (i <= 3.2e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = t * (b * i) tmp = 0 if i <= -1.08e+80: tmp = t_2 elif i <= -7.5e+28: tmp = (y * j) * -i elif i <= -1.9e-115: tmp = z * (b * -c) elif i <= -7.5e-256: tmp = t_1 elif i <= 6.5e-247: tmp = -(c * (z * b)) elif i <= 3.4e-124: tmp = x * (y * z) elif i <= 3.2e-20: tmp = t_2 elif i <= 3.5e+42: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -1.08e+80) tmp = t_2; elseif (i <= -7.5e+28) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (i <= -1.9e-115) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= -7.5e-256) tmp = t_1; elseif (i <= 6.5e-247) tmp = Float64(-Float64(c * Float64(z * b))); elseif (i <= 3.4e-124) tmp = Float64(x * Float64(y * z)); elseif (i <= 3.2e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = t * (b * i); tmp = 0.0; if (i <= -1.08e+80) tmp = t_2; elseif (i <= -7.5e+28) tmp = (y * j) * -i; elseif (i <= -1.9e-115) tmp = z * (b * -c); elseif (i <= -7.5e-256) tmp = t_1; elseif (i <= 6.5e-247) tmp = -(c * (z * b)); elseif (i <= 3.4e-124) tmp = x * (y * z); elseif (i <= 3.2e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.08e+80], t$95$2, If[LessEqual[i, -7.5e+28], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[i, -1.9e-115], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.5e-256], t$95$1, If[LessEqual[i, 6.5e-247], (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), If[LessEqual[i, 3.4e-124], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e-20], t$95$2, If[LessEqual[i, 3.5e+42], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.08 \cdot 10^{+80}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{+28}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;i \leq -1.9 \cdot 10^{-115}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{-256}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-247}:\\
\;\;\;\;-c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-124}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.08e80 or 3.4000000000000001e-124 < i < 3.1999999999999997e-20Initial program 76.9%
associate-+l-76.9%
*-commutative76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in t around inf 63.3%
distribute-lft-out--63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in t around 0 63.3%
mul-1-neg63.3%
*-commutative63.3%
distribute-rgt-neg-out63.3%
neg-mul-163.3%
neg-mul-163.3%
sub-neg63.3%
+-commutative63.3%
distribute-neg-in63.3%
remove-double-neg63.3%
sub-neg63.3%
Simplified63.3%
Taylor expanded in i around inf 47.0%
*-commutative47.0%
*-commutative47.0%
associate-*r*52.2%
*-commutative52.2%
Simplified52.2%
if -1.08e80 < i < -7.4999999999999998e28Initial program 62.7%
associate-+l-62.7%
*-commutative62.7%
sub-neg62.7%
sub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in i around inf 87.3%
distribute-lft-out--87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in j around inf 74.9%
mul-1-neg74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
Simplified74.9%
if -7.4999999999999998e28 < i < -1.89999999999999996e-115Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in z around inf 64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in y around 0 46.1%
mul-1-neg46.1%
distribute-lft-neg-out46.1%
*-commutative46.1%
Simplified46.1%
if -1.89999999999999996e-115 < i < -7.50000000000000005e-256 or 3.1999999999999997e-20 < i < 3.50000000000000023e42Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in a around inf 72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around inf 51.5%
*-commutative51.5%
Simplified51.5%
if -7.50000000000000005e-256 < i < 6.4999999999999996e-247Initial program 64.4%
associate-+l-64.4%
*-commutative64.4%
sub-neg64.4%
sub-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in c around inf 68.6%
*-commutative68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in j around 0 48.0%
mul-1-neg48.0%
distribute-rgt-neg-in48.0%
Simplified48.0%
if 6.4999999999999996e-247 < i < 3.4000000000000001e-124Initial program 93.3%
associate-+l-93.3%
*-commutative93.3%
sub-neg93.3%
sub-neg93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in z around inf 49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in y around inf 45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in z around 0 45.5%
if 3.50000000000000023e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification51.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* t (* b i))))
(if (<= i -1.3e+87)
t_2
(if (<= i -1.42e-275)
t_1
(if (<= i 5.5e-292)
(* a (- (* x t)))
(if (<= i 3.2e-275)
t_1
(if (<= i 2.45e-120)
(* x (* y z))
(if (<= i 6e-20) t_2 (if (<= i 3.5e+42) t_1 (* b (* t i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.3e+87) {
tmp = t_2;
} else if (i <= -1.42e-275) {
tmp = t_1;
} else if (i <= 5.5e-292) {
tmp = a * -(x * t);
} else if (i <= 3.2e-275) {
tmp = t_1;
} else if (i <= 2.45e-120) {
tmp = x * (y * z);
} else if (i <= 6e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = t * (b * i)
if (i <= (-1.3d+87)) then
tmp = t_2
else if (i <= (-1.42d-275)) then
tmp = t_1
else if (i <= 5.5d-292) then
tmp = a * -(x * t)
else if (i <= 3.2d-275) then
tmp = t_1
else if (i <= 2.45d-120) then
tmp = x * (y * z)
else if (i <= 6d-20) then
tmp = t_2
else if (i <= 3.5d+42) then
tmp = t_1
else
tmp = b * (t * 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 t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.3e+87) {
tmp = t_2;
} else if (i <= -1.42e-275) {
tmp = t_1;
} else if (i <= 5.5e-292) {
tmp = a * -(x * t);
} else if (i <= 3.2e-275) {
tmp = t_1;
} else if (i <= 2.45e-120) {
tmp = x * (y * z);
} else if (i <= 6e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = t * (b * i) tmp = 0 if i <= -1.3e+87: tmp = t_2 elif i <= -1.42e-275: tmp = t_1 elif i <= 5.5e-292: tmp = a * -(x * t) elif i <= 3.2e-275: tmp = t_1 elif i <= 2.45e-120: tmp = x * (y * z) elif i <= 6e-20: tmp = t_2 elif i <= 3.5e+42: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -1.3e+87) tmp = t_2; elseif (i <= -1.42e-275) tmp = t_1; elseif (i <= 5.5e-292) tmp = Float64(a * Float64(-Float64(x * t))); elseif (i <= 3.2e-275) tmp = t_1; elseif (i <= 2.45e-120) tmp = Float64(x * Float64(y * z)); elseif (i <= 6e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = t * (b * i); tmp = 0.0; if (i <= -1.3e+87) tmp = t_2; elseif (i <= -1.42e-275) tmp = t_1; elseif (i <= 5.5e-292) tmp = a * -(x * t); elseif (i <= 3.2e-275) tmp = t_1; elseif (i <= 2.45e-120) tmp = x * (y * z); elseif (i <= 6e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.3e+87], t$95$2, If[LessEqual[i, -1.42e-275], t$95$1, If[LessEqual[i, 5.5e-292], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 3.2e-275], t$95$1, If[LessEqual[i, 2.45e-120], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-20], t$95$2, If[LessEqual[i, 3.5e+42], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.42 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(-x \cdot t\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.45 \cdot 10^{-120}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.29999999999999999e87 or 2.4500000000000002e-120 < i < 6.00000000000000057e-20Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in t around inf 63.7%
distribute-lft-out--63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in t around 0 63.7%
mul-1-neg63.7%
*-commutative63.7%
distribute-rgt-neg-out63.7%
neg-mul-163.7%
neg-mul-163.7%
sub-neg63.7%
+-commutative63.7%
distribute-neg-in63.7%
remove-double-neg63.7%
sub-neg63.7%
Simplified63.7%
Taylor expanded in i around inf 46.9%
*-commutative46.9%
*-commutative46.9%
associate-*r*52.2%
*-commutative52.2%
Simplified52.2%
if -1.29999999999999999e87 < i < -1.41999999999999997e-275 or 5.50000000000000006e-292 < i < 3.2e-275 or 6.00000000000000057e-20 < i < 3.50000000000000023e42Initial program 70.5%
associate-+l-70.5%
*-commutative70.5%
sub-neg70.5%
sub-neg70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in j around inf 35.2%
*-commutative35.2%
Simplified35.2%
if -1.41999999999999997e-275 < i < 5.50000000000000006e-292Initial program 50.5%
associate-+l-50.5%
*-commutative50.5%
sub-neg50.5%
sub-neg50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in a around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in j around 0 61.3%
mul-1-neg61.3%
*-commutative61.3%
distribute-rgt-neg-in61.3%
distribute-rgt-neg-in61.3%
Simplified61.3%
if 3.2e-275 < i < 2.4500000000000002e-120Initial program 94.5%
associate-+l-94.5%
*-commutative94.5%
sub-neg94.5%
sub-neg94.5%
*-commutative94.5%
Simplified94.5%
Taylor expanded in z around inf 51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in y around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in z around 0 42.8%
if 3.50000000000000023e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* c (* z b)))) (t_2 (* a (* c j))) (t_3 (* t (* b i))))
(if (<= i -4e+27)
t_3
(if (<= i -2.55e-113)
t_1
(if (<= i -1e-255)
t_2
(if (<= i 1.65e-246)
t_1
(if (<= i 2.3e-119)
(* x (* y z))
(if (<= i 3.4e-20)
t_3
(if (<= i 3.4e+42) t_2 (* b (* t i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(c * (z * b));
double t_2 = a * (c * j);
double t_3 = t * (b * i);
double tmp;
if (i <= -4e+27) {
tmp = t_3;
} else if (i <= -2.55e-113) {
tmp = t_1;
} else if (i <= -1e-255) {
tmp = t_2;
} else if (i <= 1.65e-246) {
tmp = t_1;
} else if (i <= 2.3e-119) {
tmp = x * (y * z);
} else if (i <= 3.4e-20) {
tmp = t_3;
} else if (i <= 3.4e+42) {
tmp = t_2;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = -(c * (z * b))
t_2 = a * (c * j)
t_3 = t * (b * i)
if (i <= (-4d+27)) then
tmp = t_3
else if (i <= (-2.55d-113)) then
tmp = t_1
else if (i <= (-1d-255)) then
tmp = t_2
else if (i <= 1.65d-246) then
tmp = t_1
else if (i <= 2.3d-119) then
tmp = x * (y * z)
else if (i <= 3.4d-20) then
tmp = t_3
else if (i <= 3.4d+42) then
tmp = t_2
else
tmp = b * (t * 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 t_1 = -(c * (z * b));
double t_2 = a * (c * j);
double t_3 = t * (b * i);
double tmp;
if (i <= -4e+27) {
tmp = t_3;
} else if (i <= -2.55e-113) {
tmp = t_1;
} else if (i <= -1e-255) {
tmp = t_2;
} else if (i <= 1.65e-246) {
tmp = t_1;
} else if (i <= 2.3e-119) {
tmp = x * (y * z);
} else if (i <= 3.4e-20) {
tmp = t_3;
} else if (i <= 3.4e+42) {
tmp = t_2;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(c * (z * b)) t_2 = a * (c * j) t_3 = t * (b * i) tmp = 0 if i <= -4e+27: tmp = t_3 elif i <= -2.55e-113: tmp = t_1 elif i <= -1e-255: tmp = t_2 elif i <= 1.65e-246: tmp = t_1 elif i <= 2.3e-119: tmp = x * (y * z) elif i <= 3.4e-20: tmp = t_3 elif i <= 3.4e+42: tmp = t_2 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(c * Float64(z * b))) t_2 = Float64(a * Float64(c * j)) t_3 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -4e+27) tmp = t_3; elseif (i <= -2.55e-113) tmp = t_1; elseif (i <= -1e-255) tmp = t_2; elseif (i <= 1.65e-246) tmp = t_1; elseif (i <= 2.3e-119) tmp = Float64(x * Float64(y * z)); elseif (i <= 3.4e-20) tmp = t_3; elseif (i <= 3.4e+42) tmp = t_2; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(c * (z * b)); t_2 = a * (c * j); t_3 = t * (b * i); tmp = 0.0; if (i <= -4e+27) tmp = t_3; elseif (i <= -2.55e-113) tmp = t_1; elseif (i <= -1e-255) tmp = t_2; elseif (i <= 1.65e-246) tmp = t_1; elseif (i <= 2.3e-119) tmp = x * (y * z); elseif (i <= 3.4e-20) tmp = t_3; elseif (i <= 3.4e+42) tmp = t_2; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])}, Block[{t$95$2 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+27], t$95$3, If[LessEqual[i, -2.55e-113], t$95$1, If[LessEqual[i, -1e-255], t$95$2, If[LessEqual[i, 1.65e-246], t$95$1, If[LessEqual[i, 2.3e-119], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.4e-20], t$95$3, If[LessEqual[i, 3.4e+42], t$95$2, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -c \cdot \left(z \cdot b\right)\\
t_2 := a \cdot \left(c \cdot j\right)\\
t_3 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+27}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -2.55 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-255}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-246}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-119}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-20}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{+42}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -4.0000000000000001e27 or 2.29999999999999993e-119 < i < 3.3999999999999997e-20Initial program 75.4%
associate-+l-75.4%
*-commutative75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in t around inf 58.3%
distribute-lft-out--58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in t around 0 58.3%
mul-1-neg58.3%
*-commutative58.3%
distribute-rgt-neg-out58.3%
neg-mul-158.3%
neg-mul-158.3%
sub-neg58.3%
+-commutative58.3%
distribute-neg-in58.3%
remove-double-neg58.3%
sub-neg58.3%
Simplified58.3%
Taylor expanded in i around inf 43.7%
*-commutative43.7%
*-commutative43.7%
associate-*r*48.3%
*-commutative48.3%
Simplified48.3%
if -4.0000000000000001e27 < i < -2.54999999999999989e-113 or -1e-255 < i < 1.65e-246Initial program 71.4%
associate-+l-71.4%
*-commutative71.4%
sub-neg71.4%
sub-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in c around inf 59.9%
*-commutative59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in j around 0 45.4%
mul-1-neg45.4%
distribute-rgt-neg-in45.4%
Simplified45.4%
if -2.54999999999999989e-113 < i < -1e-255 or 3.3999999999999997e-20 < i < 3.39999999999999975e42Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in a around inf 72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in j around inf 51.5%
*-commutative51.5%
Simplified51.5%
if 1.65e-246 < i < 2.29999999999999993e-119Initial program 93.3%
associate-+l-93.3%
*-commutative93.3%
sub-neg93.3%
sub-neg93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in z around inf 49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in y around inf 45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in z around 0 45.5%
if 3.39999999999999975e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification49.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -5.2e+64)
t_2
(if (<= b -9e+41)
(* (* y j) (- i))
(if (<= b 1.15e-37)
t_1
(if (<= b 9.8e+86)
(* i (- (* t b) (* y j)))
(if (<= b 1.8e+123) 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+64) {
tmp = t_2;
} else if (b <= -9e+41) {
tmp = (y * j) * -i;
} else if (b <= 1.15e-37) {
tmp = t_1;
} else if (b <= 9.8e+86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.8e+123) {
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 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-5.2d+64)) then
tmp = t_2
else if (b <= (-9d+41)) then
tmp = (y * j) * -i
else if (b <= 1.15d-37) then
tmp = t_1
else if (b <= 9.8d+86) then
tmp = i * ((t * b) - (y * j))
else if (b <= 1.8d+123) 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 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+64) {
tmp = t_2;
} else if (b <= -9e+41) {
tmp = (y * j) * -i;
} else if (b <= 1.15e-37) {
tmp = t_1;
} else if (b <= 9.8e+86) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.8e+123) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.2e+64: tmp = t_2 elif b <= -9e+41: tmp = (y * j) * -i elif b <= 1.15e-37: tmp = t_1 elif b <= 9.8e+86: tmp = i * ((t * b) - (y * j)) elif b <= 1.8e+123: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.2e+64) tmp = t_2; elseif (b <= -9e+41) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (b <= 1.15e-37) tmp = t_1; elseif (b <= 9.8e+86) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 1.8e+123) 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 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.2e+64) tmp = t_2; elseif (b <= -9e+41) tmp = (y * j) * -i; elseif (b <= 1.15e-37) tmp = t_1; elseif (b <= 9.8e+86) tmp = i * ((t * b) - (y * j)); elseif (b <= 1.8e+123) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+64], t$95$2, If[LessEqual[b, -9e+41], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[b, 1.15e-37], t$95$1, If[LessEqual[b, 9.8e+86], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e+123], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -9 \cdot 10^{+41}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{+86}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -5.19999999999999994e64 or 1.79999999999999999e123 < b Initial program 74.4%
associate-+l-74.4%
*-commutative74.4%
sub-neg74.4%
sub-neg74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in b around inf 76.5%
if -5.19999999999999994e64 < b < -9.0000000000000002e41Initial program 83.1%
associate-+l-83.1%
*-commutative83.1%
sub-neg83.1%
sub-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in i around inf 99.7%
distribute-lft-out--99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in j around inf 99.7%
mul-1-neg99.7%
*-commutative99.7%
distribute-rgt-neg-in99.7%
Simplified99.7%
if -9.0000000000000002e41 < b < 1.15e-37 or 9.7999999999999999e86 < b < 1.79999999999999999e123Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in a around inf 54.1%
+-commutative54.1%
mul-1-neg54.1%
unsub-neg54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
if 1.15e-37 < b < 9.7999999999999999e86Initial program 69.4%
associate-+l-69.4%
*-commutative69.4%
sub-neg69.4%
sub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in i around inf 58.4%
distribute-lft-out--58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in i around 0 58.4%
mul-1-neg58.4%
*-commutative58.4%
*-commutative58.4%
distribute-rgt-neg-in58.4%
neg-sub058.4%
associate-+l-58.4%
neg-sub058.4%
+-commutative58.4%
sub-neg58.4%
Simplified58.4%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.02e+80)
(* t (* b i))
(if (<= i -1.46e+29)
(* (* y j) (- i))
(if (<= i -2.25e-94)
(* z (* b (- c)))
(if (<= i 1.12e+22) (* a (- (* c j) (* x t))) (* b (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.02e+80) {
tmp = t * (b * i);
} else if (i <= -1.46e+29) {
tmp = (y * j) * -i;
} else if (i <= -2.25e-94) {
tmp = z * (b * -c);
} else if (i <= 1.12e+22) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * (t * 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 (i <= (-1.02d+80)) then
tmp = t * (b * i)
else if (i <= (-1.46d+29)) then
tmp = (y * j) * -i
else if (i <= (-2.25d-94)) then
tmp = z * (b * -c)
else if (i <= 1.12d+22) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * (t * 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 (i <= -1.02e+80) {
tmp = t * (b * i);
} else if (i <= -1.46e+29) {
tmp = (y * j) * -i;
} else if (i <= -2.25e-94) {
tmp = z * (b * -c);
} else if (i <= 1.12e+22) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.02e+80: tmp = t * (b * i) elif i <= -1.46e+29: tmp = (y * j) * -i elif i <= -2.25e-94: tmp = z * (b * -c) elif i <= 1.12e+22: tmp = a * ((c * j) - (x * t)) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.02e+80) tmp = Float64(t * Float64(b * i)); elseif (i <= -1.46e+29) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (i <= -2.25e-94) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= 1.12e+22) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.02e+80) tmp = t * (b * i); elseif (i <= -1.46e+29) tmp = (y * j) * -i; elseif (i <= -2.25e-94) tmp = z * (b * -c); elseif (i <= 1.12e+22) tmp = a * ((c * j) - (x * t)); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.02e+80], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.46e+29], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[i, -2.25e-94], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.12e+22], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.02 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -1.46 \cdot 10^{+29}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;i \leq -2.25 \cdot 10^{-94}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 1.12 \cdot 10^{+22}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.02e80Initial program 73.8%
associate-+l-73.8%
*-commutative73.8%
sub-neg73.8%
sub-neg73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in t around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
Simplified67.8%
Taylor expanded in t around 0 67.8%
mul-1-neg67.8%
*-commutative67.8%
distribute-rgt-neg-out67.8%
neg-mul-167.8%
neg-mul-167.8%
sub-neg67.8%
+-commutative67.8%
distribute-neg-in67.8%
remove-double-neg67.8%
sub-neg67.8%
Simplified67.8%
Taylor expanded in i around inf 52.6%
*-commutative52.6%
*-commutative52.6%
associate-*r*61.0%
*-commutative61.0%
Simplified61.0%
if -1.02e80 < i < -1.46e29Initial program 62.7%
associate-+l-62.7%
*-commutative62.7%
sub-neg62.7%
sub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in i around inf 87.3%
distribute-lft-out--87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in j around inf 74.9%
mul-1-neg74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
Simplified74.9%
if -1.46e29 < i < -2.2500000000000001e-94Initial program 79.5%
associate-+l-79.5%
*-commutative79.5%
sub-neg79.5%
sub-neg79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in z around inf 68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in y around 0 48.9%
mul-1-neg48.9%
distribute-lft-neg-out48.9%
*-commutative48.9%
Simplified48.9%
if -2.2500000000000001e-94 < i < 1.12e22Initial program 78.5%
associate-+l-78.5%
*-commutative78.5%
sub-neg78.5%
sub-neg78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in a around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
if 1.12e22 < i Initial program 69.3%
associate-+l-69.3%
*-commutative69.3%
sub-neg69.3%
sub-neg69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in t around inf 65.5%
distribute-lft-out--65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in a around 0 54.6%
Final simplification54.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* t (* b i))))
(if (<= i -1.4e+87)
t_2
(if (<= i 3e-275)
t_1
(if (<= i 2.5e-121)
(* x (* y z))
(if (<= i 2.55e-20) t_2 (if (<= i 3.5e+42) t_1 (* b (* t i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.4e+87) {
tmp = t_2;
} else if (i <= 3e-275) {
tmp = t_1;
} else if (i <= 2.5e-121) {
tmp = x * (y * z);
} else if (i <= 2.55e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = t * (b * i)
if (i <= (-1.4d+87)) then
tmp = t_2
else if (i <= 3d-275) then
tmp = t_1
else if (i <= 2.5d-121) then
tmp = x * (y * z)
else if (i <= 2.55d-20) then
tmp = t_2
else if (i <= 3.5d+42) then
tmp = t_1
else
tmp = b * (t * 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 t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.4e+87) {
tmp = t_2;
} else if (i <= 3e-275) {
tmp = t_1;
} else if (i <= 2.5e-121) {
tmp = x * (y * z);
} else if (i <= 2.55e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = t * (b * i) tmp = 0 if i <= -1.4e+87: tmp = t_2 elif i <= 3e-275: tmp = t_1 elif i <= 2.5e-121: tmp = x * (y * z) elif i <= 2.55e-20: tmp = t_2 elif i <= 3.5e+42: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -1.4e+87) tmp = t_2; elseif (i <= 3e-275) tmp = t_1; elseif (i <= 2.5e-121) tmp = Float64(x * Float64(y * z)); elseif (i <= 2.55e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = t * (b * i); tmp = 0.0; if (i <= -1.4e+87) tmp = t_2; elseif (i <= 3e-275) tmp = t_1; elseif (i <= 2.5e-121) tmp = x * (y * z); elseif (i <= 2.55e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.4e+87], t$95$2, If[LessEqual[i, 3e-275], t$95$1, If[LessEqual[i, 2.5e-121], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.55e-20], t$95$2, If[LessEqual[i, 3.5e+42], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.4 \cdot 10^{+87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-121}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 2.55 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.40000000000000008e87 or 2.49999999999999995e-121 < i < 2.55000000000000009e-20Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in t around inf 63.7%
distribute-lft-out--63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in t around 0 63.7%
mul-1-neg63.7%
*-commutative63.7%
distribute-rgt-neg-out63.7%
neg-mul-163.7%
neg-mul-163.7%
sub-neg63.7%
+-commutative63.7%
distribute-neg-in63.7%
remove-double-neg63.7%
sub-neg63.7%
Simplified63.7%
Taylor expanded in i around inf 46.9%
*-commutative46.9%
*-commutative46.9%
associate-*r*52.2%
*-commutative52.2%
Simplified52.2%
if -1.40000000000000008e87 < i < 3e-275 or 2.55000000000000009e-20 < i < 3.50000000000000023e42Initial program 68.4%
associate-+l-68.4%
*-commutative68.4%
sub-neg68.4%
sub-neg68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in a around inf 54.4%
+-commutative54.4%
mul-1-neg54.4%
unsub-neg54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in j around inf 32.7%
*-commutative32.7%
Simplified32.7%
if 3e-275 < i < 2.49999999999999995e-121Initial program 94.5%
associate-+l-94.5%
*-commutative94.5%
sub-neg94.5%
sub-neg94.5%
*-commutative94.5%
Simplified94.5%
Taylor expanded in z around inf 51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in y around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in z around 0 42.8%
if 3.50000000000000023e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification44.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -5.2e+64)
t_1
(if (<= b -5.2e+40)
(* (* y j) (- i))
(if (<= b 2.95e+116) (* a (- (* c j) (* x t))) 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+64) {
tmp = t_1;
} else if (b <= -5.2e+40) {
tmp = (y * j) * -i;
} else if (b <= 2.95e+116) {
tmp = a * ((c * j) - (x * t));
} 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 = b * ((t * i) - (z * c))
if (b <= (-5.2d+64)) then
tmp = t_1
else if (b <= (-5.2d+40)) then
tmp = (y * j) * -i
else if (b <= 2.95d+116) then
tmp = a * ((c * j) - (x * t))
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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5.2e+64) {
tmp = t_1;
} else if (b <= -5.2e+40) {
tmp = (y * j) * -i;
} else if (b <= 2.95e+116) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5.2e+64: tmp = t_1 elif b <= -5.2e+40: tmp = (y * j) * -i elif b <= 2.95e+116: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.2e+64) tmp = t_1; elseif (b <= -5.2e+40) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (b <= 2.95e+116) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5.2e+64) tmp = t_1; elseif (b <= -5.2e+40) tmp = (y * j) * -i; elseif (b <= 2.95e+116) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+64], t$95$1, If[LessEqual[b, -5.2e+40], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[b, 2.95e+116], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{+40}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{+116}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5.19999999999999994e64 or 2.95e116 < b Initial program 74.4%
associate-+l-74.4%
*-commutative74.4%
sub-neg74.4%
sub-neg74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in b around inf 76.5%
if -5.19999999999999994e64 < b < -5.2000000000000001e40Initial program 83.1%
associate-+l-83.1%
*-commutative83.1%
sub-neg83.1%
sub-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in i around inf 99.7%
distribute-lft-out--99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in j around inf 99.7%
mul-1-neg99.7%
*-commutative99.7%
distribute-rgt-neg-in99.7%
Simplified99.7%
if -5.2000000000000001e40 < b < 2.95e116Initial program 75.3%
associate-+l-75.3%
*-commutative75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in a around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
*-commutative50.2%
*-commutative50.2%
Simplified50.2%
Final simplification62.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= i -1.3e+87)
(and (not (<= i 1.4e-111)) (or (<= i 9.2e-20) (not (<= i 3.5e+42)))))
(* b (* t i))
(* a (* 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 <= -1.3e+87) || (!(i <= 1.4e-111) && ((i <= 9.2e-20) || !(i <= 3.5e+42)))) {
tmp = b * (t * i);
} else {
tmp = a * (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 <= (-1.3d+87)) .or. (.not. (i <= 1.4d-111)) .and. (i <= 9.2d-20) .or. (.not. (i <= 3.5d+42))) then
tmp = b * (t * i)
else
tmp = a * (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 <= -1.3e+87) || (!(i <= 1.4e-111) && ((i <= 9.2e-20) || !(i <= 3.5e+42)))) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.3e+87) or (not (i <= 1.4e-111) and ((i <= 9.2e-20) or not (i <= 3.5e+42))): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.3e+87) || (!(i <= 1.4e-111) && ((i <= 9.2e-20) || !(i <= 3.5e+42)))) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * 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 <= -1.3e+87) || (~((i <= 1.4e-111)) && ((i <= 9.2e-20) || ~((i <= 3.5e+42))))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.3e+87], And[N[Not[LessEqual[i, 1.4e-111]], $MachinePrecision], Or[LessEqual[i, 9.2e-20], N[Not[LessEqual[i, 3.5e+42]], $MachinePrecision]]]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.3 \cdot 10^{+87} \lor \neg \left(i \leq 1.4 \cdot 10^{-111}\right) \land \left(i \leq 9.2 \cdot 10^{-20} \lor \neg \left(i \leq 3.5 \cdot 10^{+42}\right)\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -1.29999999999999999e87 or 1.39999999999999998e-111 < i < 9.1999999999999997e-20 or 3.50000000000000023e42 < i Initial program 74.8%
associate-+l-74.8%
*-commutative74.8%
sub-neg74.8%
sub-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in t around inf 66.1%
distribute-lft-out--66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in a around 0 51.4%
if -1.29999999999999999e87 < i < 1.39999999999999998e-111 or 9.1999999999999997e-20 < i < 3.50000000000000023e42Initial program 75.4%
associate-+l-75.4%
*-commutative75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in a around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in j around inf 29.9%
*-commutative29.9%
Simplified29.9%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* t (* b i))))
(if (<= i -1.4e+87)
t_2
(if (<= i 1.12e-111)
t_1
(if (<= i 3.4e-20) t_2 (if (<= i 3.5e+42) t_1 (* b (* t i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.4e+87) {
tmp = t_2;
} else if (i <= 1.12e-111) {
tmp = t_1;
} else if (i <= 3.4e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = t * (b * i)
if (i <= (-1.4d+87)) then
tmp = t_2
else if (i <= 1.12d-111) then
tmp = t_1
else if (i <= 3.4d-20) then
tmp = t_2
else if (i <= 3.5d+42) then
tmp = t_1
else
tmp = b * (t * 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 t_1 = a * (c * j);
double t_2 = t * (b * i);
double tmp;
if (i <= -1.4e+87) {
tmp = t_2;
} else if (i <= 1.12e-111) {
tmp = t_1;
} else if (i <= 3.4e-20) {
tmp = t_2;
} else if (i <= 3.5e+42) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = t * (b * i) tmp = 0 if i <= -1.4e+87: tmp = t_2 elif i <= 1.12e-111: tmp = t_1 elif i <= 3.4e-20: tmp = t_2 elif i <= 3.5e+42: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -1.4e+87) tmp = t_2; elseif (i <= 1.12e-111) tmp = t_1; elseif (i <= 3.4e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = t * (b * i); tmp = 0.0; if (i <= -1.4e+87) tmp = t_2; elseif (i <= 1.12e-111) tmp = t_1; elseif (i <= 3.4e-20) tmp = t_2; elseif (i <= 3.5e+42) tmp = t_1; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.4e+87], t$95$2, If[LessEqual[i, 1.12e-111], t$95$1, If[LessEqual[i, 3.4e-20], t$95$2, If[LessEqual[i, 3.5e+42], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.4 \cdot 10^{+87}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.12 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.40000000000000008e87 or 1.12000000000000009e-111 < i < 3.3999999999999997e-20Initial program 78.3%
associate-+l-78.3%
*-commutative78.3%
sub-neg78.3%
sub-neg78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in t around inf 65.1%
distribute-lft-out--65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in t around 0 65.1%
mul-1-neg65.1%
*-commutative65.1%
distribute-rgt-neg-out65.1%
neg-mul-165.1%
neg-mul-165.1%
sub-neg65.1%
+-commutative65.1%
distribute-neg-in65.1%
remove-double-neg65.1%
sub-neg65.1%
Simplified65.1%
Taylor expanded in i around inf 47.6%
*-commutative47.6%
*-commutative47.6%
associate-*r*53.1%
*-commutative53.1%
Simplified53.1%
if -1.40000000000000008e87 < i < 1.12000000000000009e-111 or 3.3999999999999997e-20 < i < 3.50000000000000023e42Initial program 75.4%
associate-+l-75.4%
*-commutative75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in a around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in j around inf 29.9%
*-commutative29.9%
Simplified29.9%
if 3.50000000000000023e42 < i Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in t around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in a around 0 55.6%
Final simplification41.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 75.1%
associate-+l-75.1%
*-commutative75.1%
sub-neg75.1%
sub-neg75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in a around inf 40.6%
+-commutative40.6%
mul-1-neg40.6%
unsub-neg40.6%
*-commutative40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in j around inf 22.3%
*-commutative22.3%
Simplified22.3%
Final simplification22.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023290
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))