
(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 20 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
(+
(* j (- (* a c) (* y i)))
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.0%
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%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in y around inf 57.2%
*-commutative57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Final simplification84.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* t (* b i))))
(t_2 (- (* (* z b) (- c)) (* x (* t a))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -21000000000000.0)
t_3
(if (<= x -2.2e-44)
(* b (- (* t i) (* z c)))
(if (<= x -1.15e-57)
(* y (- (* x z) (* i j)))
(if (<= x -2.55e-124)
(* i (- (* t b) (* y j)))
(if (<= x -8.2e-193)
t_1
(if (<= x -1.8e-222)
t_2
(if (<= x 1.35e-98)
t_1
(if (<= x 5.8e-8) t_2 (if (<= x 1.6e+23) 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 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_2 = ((z * b) * -c) - (x * (t * a));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -21000000000000.0) {
tmp = t_3;
} else if (x <= -2.2e-44) {
tmp = b * ((t * i) - (z * c));
} else if (x <= -1.15e-57) {
tmp = y * ((x * z) - (i * j));
} else if (x <= -2.55e-124) {
tmp = i * ((t * b) - (y * j));
} else if (x <= -8.2e-193) {
tmp = t_1;
} else if (x <= -1.8e-222) {
tmp = t_2;
} else if (x <= 1.35e-98) {
tmp = t_1;
} else if (x <= 5.8e-8) {
tmp = t_2;
} else if (x <= 1.6e+23) {
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 = (j * ((a * c) - (y * i))) + (t * (b * i))
t_2 = ((z * b) * -c) - (x * (t * a))
t_3 = x * ((y * z) - (t * a))
if (x <= (-21000000000000.0d0)) then
tmp = t_3
else if (x <= (-2.2d-44)) then
tmp = b * ((t * i) - (z * c))
else if (x <= (-1.15d-57)) then
tmp = y * ((x * z) - (i * j))
else if (x <= (-2.55d-124)) then
tmp = i * ((t * b) - (y * j))
else if (x <= (-8.2d-193)) then
tmp = t_1
else if (x <= (-1.8d-222)) then
tmp = t_2
else if (x <= 1.35d-98) then
tmp = t_1
else if (x <= 5.8d-8) then
tmp = t_2
else if (x <= 1.6d+23) 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 = (j * ((a * c) - (y * i))) + (t * (b * i));
double t_2 = ((z * b) * -c) - (x * (t * a));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -21000000000000.0) {
tmp = t_3;
} else if (x <= -2.2e-44) {
tmp = b * ((t * i) - (z * c));
} else if (x <= -1.15e-57) {
tmp = y * ((x * z) - (i * j));
} else if (x <= -2.55e-124) {
tmp = i * ((t * b) - (y * j));
} else if (x <= -8.2e-193) {
tmp = t_1;
} else if (x <= -1.8e-222) {
tmp = t_2;
} else if (x <= 1.35e-98) {
tmp = t_1;
} else if (x <= 5.8e-8) {
tmp = t_2;
} else if (x <= 1.6e+23) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (t * (b * i)) t_2 = ((z * b) * -c) - (x * (t * a)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -21000000000000.0: tmp = t_3 elif x <= -2.2e-44: tmp = b * ((t * i) - (z * c)) elif x <= -1.15e-57: tmp = y * ((x * z) - (i * j)) elif x <= -2.55e-124: tmp = i * ((t * b) - (y * j)) elif x <= -8.2e-193: tmp = t_1 elif x <= -1.8e-222: tmp = t_2 elif x <= 1.35e-98: tmp = t_1 elif x <= 5.8e-8: tmp = t_2 elif x <= 1.6e+23: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))) t_2 = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -21000000000000.0) tmp = t_3; elseif (x <= -2.2e-44) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= -1.15e-57) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= -2.55e-124) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (x <= -8.2e-193) tmp = t_1; elseif (x <= -1.8e-222) tmp = t_2; elseif (x <= 1.35e-98) tmp = t_1; elseif (x <= 5.8e-8) tmp = t_2; elseif (x <= 1.6e+23) 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 = (j * ((a * c) - (y * i))) + (t * (b * i)); t_2 = ((z * b) * -c) - (x * (t * a)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -21000000000000.0) tmp = t_3; elseif (x <= -2.2e-44) tmp = b * ((t * i) - (z * c)); elseif (x <= -1.15e-57) tmp = y * ((x * z) - (i * j)); elseif (x <= -2.55e-124) tmp = i * ((t * b) - (y * j)); elseif (x <= -8.2e-193) tmp = t_1; elseif (x <= -1.8e-222) tmp = t_2; elseif (x <= 1.35e-98) tmp = t_1; elseif (x <= 5.8e-8) tmp = t_2; elseif (x <= 1.6e+23) 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[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000000000.0], t$95$3, If[LessEqual[x, -2.2e-44], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e-57], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.55e-124], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.2e-193], t$95$1, If[LessEqual[x, -1.8e-222], t$95$2, If[LessEqual[x, 1.35e-98], t$95$1, If[LessEqual[x, 5.8e-8], t$95$2, If[LessEqual[x, 1.6e+23], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
t_2 := \left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -21000000000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-57}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq -2.55 \cdot 10^{-124}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -2.1e13 or 1.6e23 < x Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in j around 0 73.6%
Taylor expanded in x around inf 68.0%
if -2.1e13 < x < -2.20000000000000012e-44Initial program 88.4%
cancel-sign-sub88.4%
cancel-sign-sub-inv88.4%
*-commutative88.4%
remove-double-neg88.4%
*-commutative88.4%
Simplified88.4%
Taylor expanded in b around inf 75.8%
if -2.20000000000000012e-44 < x < -1.15e-57Initial program 99.6%
cancel-sign-sub99.6%
cancel-sign-sub-inv99.6%
*-commutative99.6%
remove-double-neg99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in y around inf 75.6%
*-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
if -1.15e-57 < x < -2.5500000000000001e-124Initial program 87.8%
sub-neg87.8%
+-commutative87.8%
associate-+l+87.8%
distribute-rgt-neg-in87.8%
+-commutative87.8%
fma-def87.9%
sub-neg87.9%
+-commutative87.9%
distribute-neg-in87.9%
unsub-neg87.9%
remove-double-neg87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in i around inf 69.6%
if -2.5500000000000001e-124 < x < -8.20000000000000005e-193 or -1.79999999999999987e-222 < x < 1.3499999999999999e-98 or 5.8000000000000003e-8 < x < 1.6e23Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in i around inf 76.4%
associate-*r*72.0%
*-commutative72.0%
associate-*r*75.2%
Simplified75.2%
if -8.20000000000000005e-193 < x < -1.79999999999999987e-222 or 1.3499999999999999e-98 < x < 5.8000000000000003e-8Initial program 58.6%
cancel-sign-sub58.6%
cancel-sign-sub-inv58.6%
*-commutative58.6%
remove-double-neg58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in j around 0 74.3%
Taylor expanded in c around inf 74.5%
Taylor expanded in y around 0 74.7%
mul-1-neg74.7%
distribute-lft-neg-out74.7%
*-commutative74.7%
Simplified74.7%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* (* z b) (- c)) (* x (* t a))))
(t_2 (- (* x (- (* y z) (* t a))) (* c (* z b))))
(t_3 (+ (* j (- (* a c) (* y i))) (* t (* b i)))))
(if (<= x -0.04)
t_2
(if (<= x -1.8e-196)
t_3
(if (<= x -1.8e-222)
t_1
(if (<= x 3.8e-97)
t_3
(if (<= x 6.5e-10) t_1 (if (<= x 1.45e+23) t_3 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 = ((z * b) * -c) - (x * (t * a));
double t_2 = (x * ((y * z) - (t * a))) - (c * (z * b));
double t_3 = (j * ((a * c) - (y * i))) + (t * (b * i));
double tmp;
if (x <= -0.04) {
tmp = t_2;
} else if (x <= -1.8e-196) {
tmp = t_3;
} else if (x <= -1.8e-222) {
tmp = t_1;
} else if (x <= 3.8e-97) {
tmp = t_3;
} else if (x <= 6.5e-10) {
tmp = t_1;
} else if (x <= 1.45e+23) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = ((z * b) * -c) - (x * (t * a))
t_2 = (x * ((y * z) - (t * a))) - (c * (z * b))
t_3 = (j * ((a * c) - (y * i))) + (t * (b * i))
if (x <= (-0.04d0)) then
tmp = t_2
else if (x <= (-1.8d-196)) then
tmp = t_3
else if (x <= (-1.8d-222)) then
tmp = t_1
else if (x <= 3.8d-97) then
tmp = t_3
else if (x <= 6.5d-10) then
tmp = t_1
else if (x <= 1.45d+23) then
tmp = t_3
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 = ((z * b) * -c) - (x * (t * a));
double t_2 = (x * ((y * z) - (t * a))) - (c * (z * b));
double t_3 = (j * ((a * c) - (y * i))) + (t * (b * i));
double tmp;
if (x <= -0.04) {
tmp = t_2;
} else if (x <= -1.8e-196) {
tmp = t_3;
} else if (x <= -1.8e-222) {
tmp = t_1;
} else if (x <= 3.8e-97) {
tmp = t_3;
} else if (x <= 6.5e-10) {
tmp = t_1;
} else if (x <= 1.45e+23) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((z * b) * -c) - (x * (t * a)) t_2 = (x * ((y * z) - (t * a))) - (c * (z * b)) t_3 = (j * ((a * c) - (y * i))) + (t * (b * i)) tmp = 0 if x <= -0.04: tmp = t_2 elif x <= -1.8e-196: tmp = t_3 elif x <= -1.8e-222: tmp = t_1 elif x <= 3.8e-97: tmp = t_3 elif x <= 6.5e-10: tmp = t_1 elif x <= 1.45e+23: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b))) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))) tmp = 0.0 if (x <= -0.04) tmp = t_2; elseif (x <= -1.8e-196) tmp = t_3; elseif (x <= -1.8e-222) tmp = t_1; elseif (x <= 3.8e-97) tmp = t_3; elseif (x <= 6.5e-10) tmp = t_1; elseif (x <= 1.45e+23) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((z * b) * -c) - (x * (t * a)); t_2 = (x * ((y * z) - (t * a))) - (c * (z * b)); t_3 = (j * ((a * c) - (y * i))) + (t * (b * i)); tmp = 0.0; if (x <= -0.04) tmp = t_2; elseif (x <= -1.8e-196) tmp = t_3; elseif (x <= -1.8e-222) tmp = t_1; elseif (x <= 3.8e-97) tmp = t_3; elseif (x <= 6.5e-10) tmp = t_1; elseif (x <= 1.45e+23) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.04], t$95$2, If[LessEqual[x, -1.8e-196], t$95$3, If[LessEqual[x, -1.8e-222], t$95$1, If[LessEqual[x, 3.8e-97], t$95$3, If[LessEqual[x, 6.5e-10], t$95$1, If[LessEqual[x, 1.45e+23], t$95$3, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;x \leq -0.04:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-196}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-10}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+23}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -0.0400000000000000008 or 1.45000000000000006e23 < x Initial program 72.6%
cancel-sign-sub72.6%
cancel-sign-sub-inv72.6%
*-commutative72.6%
remove-double-neg72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in j around 0 73.9%
Taylor expanded in c around inf 72.3%
if -0.0400000000000000008 < x < -1.8e-196 or -1.79999999999999987e-222 < x < 3.8000000000000001e-97 or 6.5000000000000003e-10 < x < 1.45000000000000006e23Initial program 79.2%
cancel-sign-sub79.2%
cancel-sign-sub-inv79.2%
*-commutative79.2%
remove-double-neg79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in i around inf 73.5%
associate-*r*68.6%
*-commutative68.6%
associate-*r*70.1%
Simplified70.1%
if -1.8e-196 < x < -1.79999999999999987e-222 or 3.8000000000000001e-97 < x < 6.5000000000000003e-10Initial program 58.6%
cancel-sign-sub58.6%
cancel-sign-sub-inv58.6%
*-commutative58.6%
remove-double-neg58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in j around 0 74.3%
Taylor expanded in c around inf 74.5%
Taylor expanded in y around 0 74.7%
mul-1-neg74.7%
distribute-lft-neg-out74.7%
*-commutative74.7%
Simplified74.7%
Final simplification71.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.7e+123) (not (<= j 6.6e-81))) (+ (* j (- (* a c) (* y i))) (* t (* b i))) (- (* x (- (* y z) (* t a))) (* b (- (* z c) (* 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 ((j <= -1.7e+123) || !(j <= 6.6e-81)) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (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 ((j <= (-1.7d+123)) .or. (.not. (j <= 6.6d-81))) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (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 ((j <= -1.7e+123) || !(j <= 6.6e-81)) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.7e+123) or not (j <= 6.6e-81): tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) else: tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.7e+123) || !(j <= 6.6e-81)) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.7e+123) || ~((j <= 6.6e-81))) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); else tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.7e+123], N[Not[LessEqual[j, 6.6e-81]], $MachinePrecision]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.7 \cdot 10^{+123} \lor \neg \left(j \leq 6.6 \cdot 10^{-81}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\end{array}
\end{array}
if j < -1.70000000000000001e123 or 6.59999999999999975e-81 < j Initial program 71.0%
cancel-sign-sub71.0%
cancel-sign-sub-inv71.0%
*-commutative71.0%
remove-double-neg71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in i around inf 70.7%
associate-*r*66.4%
*-commutative66.4%
associate-*r*69.9%
Simplified69.9%
if -1.70000000000000001e123 < j < 6.59999999999999975e-81Initial program 77.4%
cancel-sign-sub77.4%
cancel-sign-sub-inv77.4%
*-commutative77.4%
remove-double-neg77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in j around 0 76.1%
Final simplification73.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -3.2e+25)
t_2
(if (<= y -1.56e-25)
t_1
(if (<= y -4e-87)
(* b (- (* t i) (* z c)))
(if (<= y -3.9e-224)
t_1
(if (<= y 3.5e-244)
(* c (- (* a j) (* z b)))
(if (<= y 3.1e+78) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.2e+25) {
tmp = t_2;
} else if (y <= -1.56e-25) {
tmp = t_1;
} else if (y <= -4e-87) {
tmp = b * ((t * i) - (z * c));
} else if (y <= -3.9e-224) {
tmp = t_1;
} else if (y <= 3.5e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.1e+78) {
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 = t * ((b * i) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-3.2d+25)) then
tmp = t_2
else if (y <= (-1.56d-25)) then
tmp = t_1
else if (y <= (-4d-87)) then
tmp = b * ((t * i) - (z * c))
else if (y <= (-3.9d-224)) then
tmp = t_1
else if (y <= 3.5d-244) then
tmp = c * ((a * j) - (z * b))
else if (y <= 3.1d+78) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.2e+25) {
tmp = t_2;
} else if (y <= -1.56e-25) {
tmp = t_1;
} else if (y <= -4e-87) {
tmp = b * ((t * i) - (z * c));
} else if (y <= -3.9e-224) {
tmp = t_1;
} else if (y <= 3.5e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.1e+78) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.2e+25: tmp = t_2 elif y <= -1.56e-25: tmp = t_1 elif y <= -4e-87: tmp = b * ((t * i) - (z * c)) elif y <= -3.9e-224: tmp = t_1 elif y <= 3.5e-244: tmp = c * ((a * j) - (z * b)) elif y <= 3.1e+78: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.2e+25) tmp = t_2; elseif (y <= -1.56e-25) tmp = t_1; elseif (y <= -4e-87) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= -3.9e-224) tmp = t_1; elseif (y <= 3.5e-244) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 3.1e+78) 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 = t * ((b * i) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.2e+25) tmp = t_2; elseif (y <= -1.56e-25) tmp = t_1; elseif (y <= -4e-87) tmp = b * ((t * i) - (z * c)); elseif (y <= -3.9e-224) tmp = t_1; elseif (y <= 3.5e-244) tmp = c * ((a * j) - (z * b)); elseif (y <= 3.1e+78) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.2e+25], t$95$2, If[LessEqual[y, -1.56e-25], t$95$1, If[LessEqual[y, -4e-87], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.9e-224], t$95$1, If[LessEqual[y, 3.5e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e+78], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.56 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-87}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq -3.9 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+78}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.1999999999999999e25 or 3.1e78 < y Initial program 60.9%
cancel-sign-sub60.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
remove-double-neg60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in y around inf 70.8%
*-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
if -3.1999999999999999e25 < y < -1.55999999999999995e-25 or -4.00000000000000007e-87 < y < -3.8999999999999998e-224 or 3.49999999999999992e-244 < y < 3.1e78Initial program 83.6%
cancel-sign-sub83.6%
cancel-sign-sub-inv83.6%
*-commutative83.6%
remove-double-neg83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in t around inf 57.0%
*-commutative57.0%
distribute-lft-out--57.0%
sub-neg57.0%
mul-1-neg57.0%
+-commutative57.0%
distribute-lft-in57.0%
neg-mul-157.0%
mul-1-neg57.0%
remove-double-neg57.0%
mul-1-neg57.0%
unsub-neg57.0%
Simplified57.0%
if -1.55999999999999995e-25 < y < -4.00000000000000007e-87Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in b around inf 74.5%
if -3.8999999999999998e-224 < y < 3.49999999999999992e-244Initial program 85.5%
cancel-sign-sub85.5%
cancel-sign-sub-inv85.5%
*-commutative85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in c around inf 66.3%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -4.6e+83)
t_2
(if (<= y -0.00032)
(- (* (* z b) (- c)) (* x (* t a)))
(if (<= y -6.5e-88)
(* b (- (* t i) (* z c)))
(if (<= y -3.6e-228)
t_1
(if (<= y 5.5e-244)
(* c (- (* a j) (* z b)))
(if (<= y 3.9e+79) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.6e+83) {
tmp = t_2;
} else if (y <= -0.00032) {
tmp = ((z * b) * -c) - (x * (t * a));
} else if (y <= -6.5e-88) {
tmp = b * ((t * i) - (z * c));
} else if (y <= -3.6e-228) {
tmp = t_1;
} else if (y <= 5.5e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.9e+79) {
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 = t * ((b * i) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-4.6d+83)) then
tmp = t_2
else if (y <= (-0.00032d0)) then
tmp = ((z * b) * -c) - (x * (t * a))
else if (y <= (-6.5d-88)) then
tmp = b * ((t * i) - (z * c))
else if (y <= (-3.6d-228)) then
tmp = t_1
else if (y <= 5.5d-244) then
tmp = c * ((a * j) - (z * b))
else if (y <= 3.9d+79) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.6e+83) {
tmp = t_2;
} else if (y <= -0.00032) {
tmp = ((z * b) * -c) - (x * (t * a));
} else if (y <= -6.5e-88) {
tmp = b * ((t * i) - (z * c));
} else if (y <= -3.6e-228) {
tmp = t_1;
} else if (y <= 5.5e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 3.9e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.6e+83: tmp = t_2 elif y <= -0.00032: tmp = ((z * b) * -c) - (x * (t * a)) elif y <= -6.5e-88: tmp = b * ((t * i) - (z * c)) elif y <= -3.6e-228: tmp = t_1 elif y <= 5.5e-244: tmp = c * ((a * j) - (z * b)) elif y <= 3.9e+79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.6e+83) tmp = t_2; elseif (y <= -0.00032) tmp = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a))); elseif (y <= -6.5e-88) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= -3.6e-228) tmp = t_1; elseif (y <= 5.5e-244) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 3.9e+79) 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 = t * ((b * i) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.6e+83) tmp = t_2; elseif (y <= -0.00032) tmp = ((z * b) * -c) - (x * (t * a)); elseif (y <= -6.5e-88) tmp = b * ((t * i) - (z * c)); elseif (y <= -3.6e-228) tmp = t_1; elseif (y <= 5.5e-244) tmp = c * ((a * j) - (z * b)); elseif (y <= 3.9e+79) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e+83], t$95$2, If[LessEqual[y, -0.00032], N[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.5e-88], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.6e-228], t$95$1, If[LessEqual[y, 5.5e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+79], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -0.00032:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-88}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.5999999999999999e83 or 3.8999999999999997e79 < y Initial program 58.2%
cancel-sign-sub58.2%
cancel-sign-sub-inv58.2%
*-commutative58.2%
remove-double-neg58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in y around inf 72.2%
*-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -4.5999999999999999e83 < y < -3.20000000000000026e-4Initial program 89.1%
cancel-sign-sub89.1%
cancel-sign-sub-inv89.1%
*-commutative89.1%
remove-double-neg89.1%
*-commutative89.1%
Simplified89.1%
Taylor expanded in j around 0 67.4%
Taylor expanded in c around inf 73.0%
Taylor expanded in y around 0 72.9%
mul-1-neg72.9%
distribute-lft-neg-out72.9%
*-commutative72.9%
Simplified72.9%
if -3.20000000000000026e-4 < y < -6.50000000000000006e-88Initial program 81.0%
cancel-sign-sub81.0%
cancel-sign-sub-inv81.0%
*-commutative81.0%
remove-double-neg81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around inf 59.2%
if -6.50000000000000006e-88 < y < -3.6000000000000002e-228 or 5.4999999999999998e-244 < y < 3.8999999999999997e79Initial program 83.1%
cancel-sign-sub83.1%
cancel-sign-sub-inv83.1%
*-commutative83.1%
remove-double-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in t around inf 56.2%
*-commutative56.2%
distribute-lft-out--56.2%
sub-neg56.2%
mul-1-neg56.2%
+-commutative56.2%
distribute-lft-in56.2%
neg-mul-156.2%
mul-1-neg56.2%
remove-double-neg56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
if -3.6000000000000002e-228 < y < 5.4999999999999998e-244Initial program 85.5%
cancel-sign-sub85.5%
cancel-sign-sub-inv85.5%
*-commutative85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in c around inf 66.3%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c)))
(t_2 (* (* i j) (- y)))
(t_3 (* t (- (* x a)))))
(if (<= j -4.6e+233)
(* c (* a j))
(if (<= j -3.3e+116)
t_2
(if (<= j -9.2e-14)
t_1
(if (<= j -3.4e-290)
t_3
(if (<= j 1.05e-197)
t_1
(if (<= j 1.7e+65)
t_3
(if (<= j 1.42e+231) t_2 (* a (* c j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * b) * -c;
double t_2 = (i * j) * -y;
double t_3 = t * -(x * a);
double tmp;
if (j <= -4.6e+233) {
tmp = c * (a * j);
} else if (j <= -3.3e+116) {
tmp = t_2;
} else if (j <= -9.2e-14) {
tmp = t_1;
} else if (j <= -3.4e-290) {
tmp = t_3;
} else if (j <= 1.05e-197) {
tmp = t_1;
} else if (j <= 1.7e+65) {
tmp = t_3;
} else if (j <= 1.42e+231) {
tmp = t_2;
} 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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (z * b) * -c
t_2 = (i * j) * -y
t_3 = t * -(x * a)
if (j <= (-4.6d+233)) then
tmp = c * (a * j)
else if (j <= (-3.3d+116)) then
tmp = t_2
else if (j <= (-9.2d-14)) then
tmp = t_1
else if (j <= (-3.4d-290)) then
tmp = t_3
else if (j <= 1.05d-197) then
tmp = t_1
else if (j <= 1.7d+65) then
tmp = t_3
else if (j <= 1.42d+231) then
tmp = t_2
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 t_1 = (z * b) * -c;
double t_2 = (i * j) * -y;
double t_3 = t * -(x * a);
double tmp;
if (j <= -4.6e+233) {
tmp = c * (a * j);
} else if (j <= -3.3e+116) {
tmp = t_2;
} else if (j <= -9.2e-14) {
tmp = t_1;
} else if (j <= -3.4e-290) {
tmp = t_3;
} else if (j <= 1.05e-197) {
tmp = t_1;
} else if (j <= 1.7e+65) {
tmp = t_3;
} else if (j <= 1.42e+231) {
tmp = t_2;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = (i * j) * -y t_3 = t * -(x * a) tmp = 0 if j <= -4.6e+233: tmp = c * (a * j) elif j <= -3.3e+116: tmp = t_2 elif j <= -9.2e-14: tmp = t_1 elif j <= -3.4e-290: tmp = t_3 elif j <= 1.05e-197: tmp = t_1 elif j <= 1.7e+65: tmp = t_3 elif j <= 1.42e+231: tmp = t_2 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(Float64(i * j) * Float64(-y)) t_3 = Float64(t * Float64(-Float64(x * a))) tmp = 0.0 if (j <= -4.6e+233) tmp = Float64(c * Float64(a * j)); elseif (j <= -3.3e+116) tmp = t_2; elseif (j <= -9.2e-14) tmp = t_1; elseif (j <= -3.4e-290) tmp = t_3; elseif (j <= 1.05e-197) tmp = t_1; elseif (j <= 1.7e+65) tmp = t_3; elseif (j <= 1.42e+231) tmp = t_2; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * b) * -c; t_2 = (i * j) * -y; t_3 = t * -(x * a); tmp = 0.0; if (j <= -4.6e+233) tmp = c * (a * j); elseif (j <= -3.3e+116) tmp = t_2; elseif (j <= -9.2e-14) tmp = t_1; elseif (j <= -3.4e-290) tmp = t_3; elseif (j <= 1.05e-197) tmp = t_1; elseif (j <= 1.7e+65) tmp = t_3; elseif (j <= 1.42e+231) tmp = t_2; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]}, Block[{t$95$3 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[j, -4.6e+233], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.3e+116], t$95$2, If[LessEqual[j, -9.2e-14], t$95$1, If[LessEqual[j, -3.4e-290], t$95$3, If[LessEqual[j, 1.05e-197], t$95$1, If[LessEqual[j, 1.7e+65], t$95$3, If[LessEqual[j, 1.42e+231], t$95$2, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := \left(i \cdot j\right) \cdot \left(-y\right)\\
t_3 := t \cdot \left(-x \cdot a\right)\\
\mathbf{if}\;j \leq -4.6 \cdot 10^{+233}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -3.3 \cdot 10^{+116}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -9.2 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{-290}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-197}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+65}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;j \leq 1.42 \cdot 10^{+231}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -4.60000000000000001e233Initial program 68.7%
cancel-sign-sub68.7%
cancel-sign-sub-inv68.7%
*-commutative68.7%
remove-double-neg68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in a around inf 63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in c around inf 69.0%
if -4.60000000000000001e233 < j < -3.2999999999999998e116 or 1.7e65 < j < 1.42e231Initial program 73.3%
sub-neg73.3%
+-commutative73.3%
associate-+l+73.3%
distribute-rgt-neg-in73.3%
+-commutative73.3%
fma-def77.2%
sub-neg77.2%
+-commutative77.2%
distribute-neg-in77.2%
unsub-neg77.2%
remove-double-neg77.2%
*-commutative77.2%
Simplified81.0%
Taylor expanded in i around inf 58.6%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
distribute-rgt-neg-out49.5%
distribute-lft-neg-in49.5%
Simplified49.5%
Taylor expanded in i around 0 49.5%
mul-1-neg49.5%
associate-*r*53.0%
*-commutative53.0%
associate-*r*54.9%
distribute-rgt-neg-in54.9%
distribute-rgt-neg-in54.9%
Simplified54.9%
if -3.2999999999999998e116 < j < -9.19999999999999993e-14 or -3.39999999999999984e-290 < j < 1.05e-197Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in j around 0 72.1%
Taylor expanded in c around inf 41.1%
associate-*r*41.1%
neg-mul-141.1%
Simplified41.1%
if -9.19999999999999993e-14 < j < -3.39999999999999984e-290 or 1.05e-197 < j < 1.7e65Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in t around inf 57.2%
*-commutative57.2%
distribute-lft-out--57.2%
sub-neg57.2%
mul-1-neg57.2%
+-commutative57.2%
distribute-lft-in57.2%
neg-mul-157.2%
mul-1-neg57.2%
remove-double-neg57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Taylor expanded in i around 0 39.2%
neg-mul-139.2%
distribute-rgt-neg-in39.2%
Simplified39.2%
if 1.42e231 < j Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in i around inf 78.2%
associate-*r*69.7%
*-commutative69.7%
associate-*r*78.2%
Simplified78.2%
Taylor expanded in i around 0 53.6%
*-commutative53.6%
associate-*l*62.2%
Simplified62.2%
Final simplification46.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* x a)))) (t_2 (* (* z b) (- c))))
(if (<= j -1.2e+233)
(* c (* a j))
(if (<= j -3.2e+116)
(* (* i j) (- y))
(if (<= j -1.75e-16)
t_2
(if (<= j -3.4e-289)
t_1
(if (<= j 7.2e-198)
t_2
(if (<= j 1.3e+65)
t_1
(if (<= j 4.6e+235) (* (* y i) (- j)) (* a (* c j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * -(x * a);
double t_2 = (z * b) * -c;
double tmp;
if (j <= -1.2e+233) {
tmp = c * (a * j);
} else if (j <= -3.2e+116) {
tmp = (i * j) * -y;
} else if (j <= -1.75e-16) {
tmp = t_2;
} else if (j <= -3.4e-289) {
tmp = t_1;
} else if (j <= 7.2e-198) {
tmp = t_2;
} else if (j <= 1.3e+65) {
tmp = t_1;
} else if (j <= 4.6e+235) {
tmp = (y * i) * -j;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * -(x * a)
t_2 = (z * b) * -c
if (j <= (-1.2d+233)) then
tmp = c * (a * j)
else if (j <= (-3.2d+116)) then
tmp = (i * j) * -y
else if (j <= (-1.75d-16)) then
tmp = t_2
else if (j <= (-3.4d-289)) then
tmp = t_1
else if (j <= 7.2d-198) then
tmp = t_2
else if (j <= 1.3d+65) then
tmp = t_1
else if (j <= 4.6d+235) then
tmp = (y * i) * -j
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 t_1 = t * -(x * a);
double t_2 = (z * b) * -c;
double tmp;
if (j <= -1.2e+233) {
tmp = c * (a * j);
} else if (j <= -3.2e+116) {
tmp = (i * j) * -y;
} else if (j <= -1.75e-16) {
tmp = t_2;
} else if (j <= -3.4e-289) {
tmp = t_1;
} else if (j <= 7.2e-198) {
tmp = t_2;
} else if (j <= 1.3e+65) {
tmp = t_1;
} else if (j <= 4.6e+235) {
tmp = (y * i) * -j;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * -(x * a) t_2 = (z * b) * -c tmp = 0 if j <= -1.2e+233: tmp = c * (a * j) elif j <= -3.2e+116: tmp = (i * j) * -y elif j <= -1.75e-16: tmp = t_2 elif j <= -3.4e-289: tmp = t_1 elif j <= 7.2e-198: tmp = t_2 elif j <= 1.3e+65: tmp = t_1 elif j <= 4.6e+235: tmp = (y * i) * -j else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(-Float64(x * a))) t_2 = Float64(Float64(z * b) * Float64(-c)) tmp = 0.0 if (j <= -1.2e+233) tmp = Float64(c * Float64(a * j)); elseif (j <= -3.2e+116) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (j <= -1.75e-16) tmp = t_2; elseif (j <= -3.4e-289) tmp = t_1; elseif (j <= 7.2e-198) tmp = t_2; elseif (j <= 1.3e+65) tmp = t_1; elseif (j <= 4.6e+235) tmp = Float64(Float64(y * i) * Float64(-j)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * -(x * a); t_2 = (z * b) * -c; tmp = 0.0; if (j <= -1.2e+233) tmp = c * (a * j); elseif (j <= -3.2e+116) tmp = (i * j) * -y; elseif (j <= -1.75e-16) tmp = t_2; elseif (j <= -3.4e-289) tmp = t_1; elseif (j <= 7.2e-198) tmp = t_2; elseif (j <= 1.3e+65) tmp = t_1; elseif (j <= 4.6e+235) tmp = (y * i) * -j; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, If[LessEqual[j, -1.2e+233], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.2e+116], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[j, -1.75e-16], t$95$2, If[LessEqual[j, -3.4e-289], t$95$1, If[LessEqual[j, 7.2e-198], t$95$2, If[LessEqual[j, 1.3e+65], t$95$1, If[LessEqual[j, 4.6e+235], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(-x \cdot a\right)\\
t_2 := \left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{if}\;j \leq -1.2 \cdot 10^{+233}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{+116}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{-289}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{-198}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+235}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.20000000000000001e233Initial program 68.7%
cancel-sign-sub68.7%
cancel-sign-sub-inv68.7%
*-commutative68.7%
remove-double-neg68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in a around inf 63.0%
+-commutative63.0%
mul-1-neg63.0%
unsub-neg63.0%
Simplified63.0%
Taylor expanded in c around inf 69.0%
if -1.20000000000000001e233 < j < -3.2e116Initial program 59.5%
sub-neg59.5%
+-commutative59.5%
associate-+l+59.5%
distribute-rgt-neg-in59.5%
+-commutative59.5%
fma-def68.6%
sub-neg68.6%
+-commutative68.6%
distribute-neg-in68.6%
unsub-neg68.6%
remove-double-neg68.6%
*-commutative68.6%
Simplified73.2%
Taylor expanded in i around inf 64.1%
Taylor expanded in t around 0 47.3%
mul-1-neg47.3%
distribute-rgt-neg-out47.3%
distribute-lft-neg-in47.3%
Simplified47.3%
Taylor expanded in i around 0 47.3%
mul-1-neg47.3%
associate-*r*51.4%
*-commutative51.4%
associate-*r*59.9%
distribute-rgt-neg-in59.9%
distribute-rgt-neg-in59.9%
Simplified59.9%
if -3.2e116 < j < -1.75000000000000009e-16 or -3.40000000000000018e-289 < j < 7.19999999999999996e-198Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in j around 0 72.1%
Taylor expanded in c around inf 41.1%
associate-*r*41.1%
neg-mul-141.1%
Simplified41.1%
if -1.75000000000000009e-16 < j < -3.40000000000000018e-289 or 7.19999999999999996e-198 < j < 1.30000000000000001e65Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in t around inf 57.2%
*-commutative57.2%
distribute-lft-out--57.2%
sub-neg57.2%
mul-1-neg57.2%
+-commutative57.2%
distribute-lft-in57.2%
neg-mul-157.2%
mul-1-neg57.2%
remove-double-neg57.2%
mul-1-neg57.2%
unsub-neg57.2%
Simplified57.2%
Taylor expanded in i around 0 39.2%
neg-mul-139.2%
distribute-rgt-neg-in39.2%
Simplified39.2%
if 1.30000000000000001e65 < j < 4.6e235Initial program 83.4%
sub-neg83.4%
+-commutative83.4%
associate-+l+83.4%
distribute-rgt-neg-in83.4%
+-commutative83.4%
fma-def83.4%
sub-neg83.4%
+-commutative83.4%
distribute-neg-in83.4%
unsub-neg83.4%
remove-double-neg83.4%
*-commutative83.4%
Simplified86.8%
Taylor expanded in i around inf 54.6%
Taylor expanded in t around 0 51.1%
*-commutative51.1%
associate-*r*51.2%
*-commutative51.2%
associate-*r*51.2%
associate-*r*54.2%
neg-mul-154.2%
Simplified54.2%
if 4.6e235 < j Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in i around inf 78.2%
associate-*r*69.7%
*-commutative69.7%
associate-*r*78.2%
Simplified78.2%
Taylor expanded in i around 0 53.6%
*-commutative53.6%
associate-*l*62.2%
Simplified62.2%
Final simplification47.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -9e-37)
t_2
(if (<= a -1.62e-285)
(* c (- (* a j) (* z b)))
(if (<= a 4.2e-286)
t_1
(if (<= a 5e-163) (* i (* t b)) (if (<= a 8.5e-74) 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 = y * (x * z);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9e-37) {
tmp = t_2;
} else if (a <= -1.62e-285) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 4.2e-286) {
tmp = t_1;
} else if (a <= 5e-163) {
tmp = i * (t * b);
} else if (a <= 8.5e-74) {
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 = y * (x * z)
t_2 = a * ((c * j) - (x * t))
if (a <= (-9d-37)) then
tmp = t_2
else if (a <= (-1.62d-285)) then
tmp = c * ((a * j) - (z * b))
else if (a <= 4.2d-286) then
tmp = t_1
else if (a <= 5d-163) then
tmp = i * (t * b)
else if (a <= 8.5d-74) 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 = y * (x * z);
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9e-37) {
tmp = t_2;
} else if (a <= -1.62e-285) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 4.2e-286) {
tmp = t_1;
} else if (a <= 5e-163) {
tmp = i * (t * b);
} else if (a <= 8.5e-74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -9e-37: tmp = t_2 elif a <= -1.62e-285: tmp = c * ((a * j) - (z * b)) elif a <= 4.2e-286: tmp = t_1 elif a <= 5e-163: tmp = i * (t * b) elif a <= 8.5e-74: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -9e-37) tmp = t_2; elseif (a <= -1.62e-285) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= 4.2e-286) tmp = t_1; elseif (a <= 5e-163) tmp = Float64(i * Float64(t * b)); elseif (a <= 8.5e-74) 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 = y * (x * z); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -9e-37) tmp = t_2; elseif (a <= -1.62e-285) tmp = c * ((a * j) - (z * b)); elseif (a <= 4.2e-286) tmp = t_1; elseif (a <= 5e-163) tmp = i * (t * b); elseif (a <= 8.5e-74) 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e-37], t$95$2, If[LessEqual[a, -1.62e-285], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-286], t$95$1, If[LessEqual[a, 5e-163], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-74], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -9 \cdot 10^{-37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.62 \cdot 10^{-285}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-286}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-163}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-74}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -9.00000000000000081e-37 or 8.50000000000000052e-74 < a Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in a around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
if -9.00000000000000081e-37 < a < -1.61999999999999994e-285Initial program 79.6%
cancel-sign-sub79.6%
cancel-sign-sub-inv79.6%
*-commutative79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 41.2%
if -1.61999999999999994e-285 < a < 4.19999999999999977e-286 or 4.99999999999999977e-163 < a < 8.50000000000000052e-74Initial program 85.7%
cancel-sign-sub85.7%
cancel-sign-sub-inv85.7%
*-commutative85.7%
remove-double-neg85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in j around 0 71.2%
Taylor expanded in c around inf 56.7%
Taylor expanded in y around inf 56.7%
if 4.19999999999999977e-286 < a < 4.99999999999999977e-163Initial program 72.0%
cancel-sign-sub72.0%
cancel-sign-sub-inv72.0%
*-commutative72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in j around 0 65.1%
Taylor expanded in i around inf 47.8%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= j -1.55e+18)
(* c (* a j))
(if (<= j -1.6e-254)
t_1
(if (<= j 2.3e-261)
(* i (* t b))
(if (<= j 1.15e-84)
t_1
(if (<= j 8.5e+38)
(* b (* t i))
(if (<= j 1.62e+156) t_1 (* a (* c j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (j <= -1.55e+18) {
tmp = c * (a * j);
} else if (j <= -1.6e-254) {
tmp = t_1;
} else if (j <= 2.3e-261) {
tmp = i * (t * b);
} else if (j <= 1.15e-84) {
tmp = t_1;
} else if (j <= 8.5e+38) {
tmp = b * (t * i);
} else if (j <= 1.62e+156) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (j <= (-1.55d+18)) then
tmp = c * (a * j)
else if (j <= (-1.6d-254)) then
tmp = t_1
else if (j <= 2.3d-261) then
tmp = i * (t * b)
else if (j <= 1.15d-84) then
tmp = t_1
else if (j <= 8.5d+38) then
tmp = b * (t * i)
else if (j <= 1.62d+156) then
tmp = t_1
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 t_1 = y * (x * z);
double tmp;
if (j <= -1.55e+18) {
tmp = c * (a * j);
} else if (j <= -1.6e-254) {
tmp = t_1;
} else if (j <= 2.3e-261) {
tmp = i * (t * b);
} else if (j <= 1.15e-84) {
tmp = t_1;
} else if (j <= 8.5e+38) {
tmp = b * (t * i);
} else if (j <= 1.62e+156) {
tmp = t_1;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if j <= -1.55e+18: tmp = c * (a * j) elif j <= -1.6e-254: tmp = t_1 elif j <= 2.3e-261: tmp = i * (t * b) elif j <= 1.15e-84: tmp = t_1 elif j <= 8.5e+38: tmp = b * (t * i) elif j <= 1.62e+156: tmp = t_1 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (j <= -1.55e+18) tmp = Float64(c * Float64(a * j)); elseif (j <= -1.6e-254) tmp = t_1; elseif (j <= 2.3e-261) tmp = Float64(i * Float64(t * b)); elseif (j <= 1.15e-84) tmp = t_1; elseif (j <= 8.5e+38) tmp = Float64(b * Float64(t * i)); elseif (j <= 1.62e+156) tmp = t_1; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (j <= -1.55e+18) tmp = c * (a * j); elseif (j <= -1.6e-254) tmp = t_1; elseif (j <= 2.3e-261) tmp = i * (t * b); elseif (j <= 1.15e-84) tmp = t_1; elseif (j <= 8.5e+38) tmp = b * (t * i); elseif (j <= 1.62e+156) tmp = t_1; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.55e+18], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.6e-254], t$95$1, If[LessEqual[j, 2.3e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e-84], t$95$1, If[LessEqual[j, 8.5e+38], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.62e+156], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;j \leq -1.55 \cdot 10^{+18}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -1.6 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+38}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 1.62 \cdot 10^{+156}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.55e18Initial program 70.4%
cancel-sign-sub70.4%
cancel-sign-sub-inv70.4%
*-commutative70.4%
remove-double-neg70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in c around inf 40.2%
if -1.55e18 < j < -1.6e-254 or 2.3e-261 < j < 1.1499999999999999e-84 or 8.4999999999999997e38 < j < 1.62000000000000006e156Initial program 77.1%
cancel-sign-sub77.1%
cancel-sign-sub-inv77.1%
*-commutative77.1%
remove-double-neg77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in j around 0 73.3%
Taylor expanded in c around inf 64.3%
Taylor expanded in y around inf 35.8%
if -1.6e-254 < j < 2.3e-261Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around 0 80.5%
Taylor expanded in i around inf 45.6%
if 1.1499999999999999e-84 < j < 8.4999999999999997e38Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around inf 51.6%
Taylor expanded in i around inf 45.8%
if 1.62000000000000006e156 < j Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around inf 77.8%
associate-*r*72.4%
*-commutative72.4%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in i around 0 45.8%
*-commutative45.8%
associate-*l*53.9%
Simplified53.9%
Final simplification41.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= j -3.6e+22)
(* c (* a j))
(if (<= j -2.95e-254)
t_1
(if (<= j 5.1e-261)
(* i (* t b))
(if (<= j 4.3e-88)
t_1
(if (<= j 2.95e+38)
(* b (* t i))
(if (<= j 5.4e+156) (* z (* x y)) (* a (* c j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (j <= -3.6e+22) {
tmp = c * (a * j);
} else if (j <= -2.95e-254) {
tmp = t_1;
} else if (j <= 5.1e-261) {
tmp = i * (t * b);
} else if (j <= 4.3e-88) {
tmp = t_1;
} else if (j <= 2.95e+38) {
tmp = b * (t * i);
} else if (j <= 5.4e+156) {
tmp = z * (x * y);
} 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) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (j <= (-3.6d+22)) then
tmp = c * (a * j)
else if (j <= (-2.95d-254)) then
tmp = t_1
else if (j <= 5.1d-261) then
tmp = i * (t * b)
else if (j <= 4.3d-88) then
tmp = t_1
else if (j <= 2.95d+38) then
tmp = b * (t * i)
else if (j <= 5.4d+156) then
tmp = z * (x * y)
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 t_1 = y * (x * z);
double tmp;
if (j <= -3.6e+22) {
tmp = c * (a * j);
} else if (j <= -2.95e-254) {
tmp = t_1;
} else if (j <= 5.1e-261) {
tmp = i * (t * b);
} else if (j <= 4.3e-88) {
tmp = t_1;
} else if (j <= 2.95e+38) {
tmp = b * (t * i);
} else if (j <= 5.4e+156) {
tmp = z * (x * y);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if j <= -3.6e+22: tmp = c * (a * j) elif j <= -2.95e-254: tmp = t_1 elif j <= 5.1e-261: tmp = i * (t * b) elif j <= 4.3e-88: tmp = t_1 elif j <= 2.95e+38: tmp = b * (t * i) elif j <= 5.4e+156: tmp = z * (x * y) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (j <= -3.6e+22) tmp = Float64(c * Float64(a * j)); elseif (j <= -2.95e-254) tmp = t_1; elseif (j <= 5.1e-261) tmp = Float64(i * Float64(t * b)); elseif (j <= 4.3e-88) tmp = t_1; elseif (j <= 2.95e+38) tmp = Float64(b * Float64(t * i)); elseif (j <= 5.4e+156) tmp = Float64(z * Float64(x * y)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (j <= -3.6e+22) tmp = c * (a * j); elseif (j <= -2.95e-254) tmp = t_1; elseif (j <= 5.1e-261) tmp = i * (t * b); elseif (j <= 4.3e-88) tmp = t_1; elseif (j <= 2.95e+38) tmp = b * (t * i); elseif (j <= 5.4e+156) tmp = z * (x * y); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.6e+22], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.95e-254], t$95$1, If[LessEqual[j, 5.1e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.3e-88], t$95$1, If[LessEqual[j, 2.95e+38], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e+156], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{+22}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -2.95 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 5.1 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 2.95 \cdot 10^{+38}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{+156}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -3.6e22Initial program 70.4%
cancel-sign-sub70.4%
cancel-sign-sub-inv70.4%
*-commutative70.4%
remove-double-neg70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in c around inf 40.2%
if -3.6e22 < j < -2.9499999999999999e-254 or 5.09999999999999957e-261 < j < 4.2999999999999997e-88Initial program 76.0%
cancel-sign-sub76.0%
cancel-sign-sub-inv76.0%
*-commutative76.0%
remove-double-neg76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in j around 0 77.2%
Taylor expanded in c around inf 66.3%
Taylor expanded in y around inf 35.2%
if -2.9499999999999999e-254 < j < 5.09999999999999957e-261Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around 0 80.5%
Taylor expanded in i around inf 45.6%
if 4.2999999999999997e-88 < j < 2.94999999999999991e38Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around inf 51.6%
Taylor expanded in i around inf 45.8%
if 2.94999999999999991e38 < j < 5.4000000000000001e156Initial program 81.9%
cancel-sign-sub81.9%
cancel-sign-sub-inv81.9%
*-commutative81.9%
remove-double-neg81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in z around inf 51.3%
Taylor expanded in y around inf 42.5%
if 5.4000000000000001e156 < j Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around inf 77.8%
associate-*r*72.4%
*-commutative72.4%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in i around 0 45.8%
*-commutative45.8%
associate-*l*53.9%
Simplified53.9%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= c -2.25e+61)
(not (or (<= c 8.5e-121) (and (not (<= c 6.2e+85)) (<= c 1.5e+211)))))
(* c (- (* a j) (* z b)))
(* 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 tmp;
if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211)))) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.25d+61)) .or. (.not. (c <= 8.5d-121) .or. (.not. (c <= 6.2d+85)) .and. (c <= 1.5d+211))) then
tmp = c * ((a * j) - (z * b))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211)))) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.25e+61) or not ((c <= 8.5e-121) or (not (c <= 6.2e+85) and (c <= 1.5e+211))): tmp = c * ((a * j) - (z * b)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211)))) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); 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) tmp = 0.0; if ((c <= -2.25e+61) || ~(((c <= 8.5e-121) || (~((c <= 6.2e+85)) && (c <= 1.5e+211))))) tmp = c * ((a * j) - (z * b)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.25e+61], N[Not[Or[LessEqual[c, 8.5e-121], And[N[Not[LessEqual[c, 6.2e+85]], $MachinePrecision], LessEqual[c, 1.5e+211]]]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.25 \cdot 10^{+61} \lor \neg \left(c \leq 8.5 \cdot 10^{-121} \lor \neg \left(c \leq 6.2 \cdot 10^{+85}\right) \land c \leq 1.5 \cdot 10^{+211}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if c < -2.25e61 or 8.50000000000000025e-121 < c < 6.20000000000000023e85 or 1.5e211 < c Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in c around inf 58.3%
if -2.25e61 < c < 8.50000000000000025e-121 or 6.20000000000000023e85 < c < 1.5e211Initial program 76.9%
cancel-sign-sub76.9%
cancel-sign-sub-inv76.9%
*-commutative76.9%
remove-double-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in t around inf 56.2%
*-commutative56.2%
distribute-lft-out--56.2%
sub-neg56.2%
mul-1-neg56.2%
+-commutative56.2%
distribute-lft-in56.2%
neg-mul-156.2%
mul-1-neg56.2%
remove-double-neg56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
Final simplification57.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.1e+27)
t_2
(if (<= y -1.7e-229)
t_1
(if (<= y 4.2e-244)
(* c (- (* a j) (* z b)))
(if (<= y 2.2e+79) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.1e+27) {
tmp = t_2;
} else if (y <= -1.7e-229) {
tmp = t_1;
} else if (y <= 4.2e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.2e+79) {
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 = t * ((b * i) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.1d+27)) then
tmp = t_2
else if (y <= (-1.7d-229)) then
tmp = t_1
else if (y <= 4.2d-244) then
tmp = c * ((a * j) - (z * b))
else if (y <= 2.2d+79) 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 = t * ((b * i) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.1e+27) {
tmp = t_2;
} else if (y <= -1.7e-229) {
tmp = t_1;
} else if (y <= 4.2e-244) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.2e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.1e+27: tmp = t_2 elif y <= -1.7e-229: tmp = t_1 elif y <= 4.2e-244: tmp = c * ((a * j) - (z * b)) elif y <= 2.2e+79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.1e+27) tmp = t_2; elseif (y <= -1.7e-229) tmp = t_1; elseif (y <= 4.2e-244) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 2.2e+79) 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 = t * ((b * i) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.1e+27) tmp = t_2; elseif (y <= -1.7e-229) tmp = t_1; elseif (y <= 4.2e-244) tmp = c * ((a * j) - (z * b)); elseif (y <= 2.2e+79) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+27], t$95$2, If[LessEqual[y, -1.7e-229], t$95$1, If[LessEqual[y, 4.2e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+79], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.0999999999999999e27 or 2.1999999999999999e79 < y Initial program 60.9%
cancel-sign-sub60.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
remove-double-neg60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in y around inf 70.8%
*-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
if -1.0999999999999999e27 < y < -1.7e-229 or 4.20000000000000003e-244 < y < 2.1999999999999999e79Initial program 83.2%
cancel-sign-sub83.2%
cancel-sign-sub-inv83.2%
*-commutative83.2%
remove-double-neg83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in t around inf 54.5%
*-commutative54.5%
distribute-lft-out--54.5%
sub-neg54.5%
mul-1-neg54.5%
+-commutative54.5%
distribute-lft-in54.5%
neg-mul-154.5%
mul-1-neg54.5%
remove-double-neg54.5%
mul-1-neg54.5%
unsub-neg54.5%
Simplified54.5%
if -1.7e-229 < y < 4.20000000000000003e-244Initial program 85.5%
cancel-sign-sub85.5%
cancel-sign-sub-inv85.5%
*-commutative85.5%
remove-double-neg85.5%
*-commutative85.5%
Simplified85.5%
Taylor expanded in c around inf 66.3%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* i (* t b))))
(if (<= i -1.55e+23)
t_2
(if (<= i -1.5e-98)
t_1
(if (<= i 1.7e-285)
(* j (* a c))
(if (<= i 6.2e-47)
t_1
(if (<= i 2.4e+161) t_2 (* (* y j) (- i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = i * (t * b);
double tmp;
if (i <= -1.55e+23) {
tmp = t_2;
} else if (i <= -1.5e-98) {
tmp = t_1;
} else if (i <= 1.7e-285) {
tmp = j * (a * c);
} else if (i <= 6.2e-47) {
tmp = t_1;
} else if (i <= 2.4e+161) {
tmp = t_2;
} else {
tmp = (y * j) * -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 = y * (x * z)
t_2 = i * (t * b)
if (i <= (-1.55d+23)) then
tmp = t_2
else if (i <= (-1.5d-98)) then
tmp = t_1
else if (i <= 1.7d-285) then
tmp = j * (a * c)
else if (i <= 6.2d-47) then
tmp = t_1
else if (i <= 2.4d+161) then
tmp = t_2
else
tmp = (y * j) * -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 = y * (x * z);
double t_2 = i * (t * b);
double tmp;
if (i <= -1.55e+23) {
tmp = t_2;
} else if (i <= -1.5e-98) {
tmp = t_1;
} else if (i <= 1.7e-285) {
tmp = j * (a * c);
} else if (i <= 6.2e-47) {
tmp = t_1;
} else if (i <= 2.4e+161) {
tmp = t_2;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = i * (t * b) tmp = 0 if i <= -1.55e+23: tmp = t_2 elif i <= -1.5e-98: tmp = t_1 elif i <= 1.7e-285: tmp = j * (a * c) elif i <= 6.2e-47: tmp = t_1 elif i <= 2.4e+161: tmp = t_2 else: tmp = (y * j) * -i return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -1.55e+23) tmp = t_2; elseif (i <= -1.5e-98) tmp = t_1; elseif (i <= 1.7e-285) tmp = Float64(j * Float64(a * c)); elseif (i <= 6.2e-47) tmp = t_1; elseif (i <= 2.4e+161) tmp = t_2; else tmp = Float64(Float64(y * j) * Float64(-i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = i * (t * b); tmp = 0.0; if (i <= -1.55e+23) tmp = t_2; elseif (i <= -1.5e-98) tmp = t_1; elseif (i <= 1.7e-285) tmp = j * (a * c); elseif (i <= 6.2e-47) tmp = t_1; elseif (i <= 2.4e+161) tmp = t_2; else tmp = (y * j) * -i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.55e+23], t$95$2, If[LessEqual[i, -1.5e-98], t$95$1, If[LessEqual[i, 1.7e-285], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.2e-47], t$95$1, If[LessEqual[i, 2.4e+161], t$95$2, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -1.55 \cdot 10^{+23}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{-98}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-285}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 6.2 \cdot 10^{-47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+161}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\end{array}
\end{array}
if i < -1.54999999999999985e23 or 6.1999999999999996e-47 < i < 2.3999999999999999e161Initial program 69.6%
cancel-sign-sub69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
remove-double-neg69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in j around 0 60.0%
Taylor expanded in i around inf 36.1%
if -1.54999999999999985e23 < i < -1.5e-98 or 1.7e-285 < i < 6.1999999999999996e-47Initial program 82.3%
cancel-sign-sub82.3%
cancel-sign-sub-inv82.3%
*-commutative82.3%
remove-double-neg82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in j around 0 68.5%
Taylor expanded in c around inf 63.2%
Taylor expanded in y around inf 40.0%
if -1.5e-98 < i < 1.7e-285Initial program 81.7%
cancel-sign-sub81.7%
cancel-sign-sub-inv81.7%
*-commutative81.7%
remove-double-neg81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in i around inf 46.5%
associate-*r*44.8%
*-commutative44.8%
associate-*r*44.8%
Simplified44.8%
Taylor expanded in i around 0 34.8%
associate-*r*38.7%
Simplified38.7%
if 2.3999999999999999e161 < i Initial program 60.8%
sub-neg60.8%
+-commutative60.8%
associate-+l+60.8%
distribute-rgt-neg-in60.8%
+-commutative60.8%
fma-def60.8%
sub-neg60.8%
+-commutative60.8%
distribute-neg-in60.8%
unsub-neg60.8%
remove-double-neg60.8%
*-commutative60.8%
Simplified63.8%
Taylor expanded in i around inf 70.5%
Taylor expanded in t around 0 62.0%
mul-1-neg62.0%
distribute-rgt-neg-out62.0%
distribute-lft-neg-in62.0%
Simplified62.0%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* t (- (* x a)))))
(if (<= i -1.5e+42)
(* i (* t b))
(if (<= i -2.25e-76)
t_1
(if (<= i 3.4e-264)
t_2
(if (<= i 4.1e-49)
t_1
(if (<= i 2.4e+155) t_2 (* (* y j) (- i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = t * -(x * a);
double tmp;
if (i <= -1.5e+42) {
tmp = i * (t * b);
} else if (i <= -2.25e-76) {
tmp = t_1;
} else if (i <= 3.4e-264) {
tmp = t_2;
} else if (i <= 4.1e-49) {
tmp = t_1;
} else if (i <= 2.4e+155) {
tmp = t_2;
} else {
tmp = (y * j) * -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 = y * (x * z)
t_2 = t * -(x * a)
if (i <= (-1.5d+42)) then
tmp = i * (t * b)
else if (i <= (-2.25d-76)) then
tmp = t_1
else if (i <= 3.4d-264) then
tmp = t_2
else if (i <= 4.1d-49) then
tmp = t_1
else if (i <= 2.4d+155) then
tmp = t_2
else
tmp = (y * j) * -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 = y * (x * z);
double t_2 = t * -(x * a);
double tmp;
if (i <= -1.5e+42) {
tmp = i * (t * b);
} else if (i <= -2.25e-76) {
tmp = t_1;
} else if (i <= 3.4e-264) {
tmp = t_2;
} else if (i <= 4.1e-49) {
tmp = t_1;
} else if (i <= 2.4e+155) {
tmp = t_2;
} else {
tmp = (y * j) * -i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = t * -(x * a) tmp = 0 if i <= -1.5e+42: tmp = i * (t * b) elif i <= -2.25e-76: tmp = t_1 elif i <= 3.4e-264: tmp = t_2 elif i <= 4.1e-49: tmp = t_1 elif i <= 2.4e+155: tmp = t_2 else: tmp = (y * j) * -i return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(t * Float64(-Float64(x * a))) tmp = 0.0 if (i <= -1.5e+42) tmp = Float64(i * Float64(t * b)); elseif (i <= -2.25e-76) tmp = t_1; elseif (i <= 3.4e-264) tmp = t_2; elseif (i <= 4.1e-49) tmp = t_1; elseif (i <= 2.4e+155) tmp = t_2; else tmp = Float64(Float64(y * j) * Float64(-i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = t * -(x * a); tmp = 0.0; if (i <= -1.5e+42) tmp = i * (t * b); elseif (i <= -2.25e-76) tmp = t_1; elseif (i <= 3.4e-264) tmp = t_2; elseif (i <= 4.1e-49) tmp = t_1; elseif (i <= 2.4e+155) tmp = t_2; else tmp = (y * j) * -i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[i, -1.5e+42], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.25e-76], t$95$1, If[LessEqual[i, 3.4e-264], t$95$2, If[LessEqual[i, 4.1e-49], t$95$1, If[LessEqual[i, 2.4e+155], t$95$2, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := t \cdot \left(-x \cdot a\right)\\
\mathbf{if}\;i \leq -1.5 \cdot 10^{+42}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq -2.25 \cdot 10^{-76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-264}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 4.1 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+155}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\end{array}
\end{array}
if i < -1.50000000000000014e42Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in j around 0 55.9%
Taylor expanded in i around inf 39.2%
if -1.50000000000000014e42 < i < -2.25e-76 or 3.3999999999999999e-264 < i < 4.1000000000000001e-49Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in j around 0 66.6%
Taylor expanded in c around inf 62.0%
Taylor expanded in y around inf 41.1%
if -2.25e-76 < i < 3.3999999999999999e-264 or 4.1000000000000001e-49 < i < 2.40000000000000021e155Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in t around inf 53.8%
*-commutative53.8%
distribute-lft-out--53.8%
sub-neg53.8%
mul-1-neg53.8%
+-commutative53.8%
distribute-lft-in53.8%
neg-mul-153.8%
mul-1-neg53.8%
remove-double-neg53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Taylor expanded in i around 0 43.7%
neg-mul-143.7%
distribute-rgt-neg-in43.7%
Simplified43.7%
if 2.40000000000000021e155 < i Initial program 63.0%
sub-neg63.0%
+-commutative63.0%
associate-+l+63.0%
distribute-rgt-neg-in63.0%
+-commutative63.0%
fma-def63.0%
sub-neg63.0%
+-commutative63.0%
distribute-neg-in63.0%
unsub-neg63.0%
remove-double-neg63.0%
*-commutative63.0%
Simplified65.9%
Taylor expanded in i around inf 72.2%
Taylor expanded in t around 0 61.3%
mul-1-neg61.3%
distribute-rgt-neg-out61.3%
distribute-lft-neg-in61.3%
Simplified61.3%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* t (- (* x a)))))
(if (<= i -7.2e+27)
(* i (* t b))
(if (<= i -1.9e-76)
t_1
(if (<= i 5.2e-263)
t_2
(if (<= i 2.15e-50)
t_1
(if (<= i 3.4e+155) t_2 (* (* i j) (- y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = t * -(x * a);
double tmp;
if (i <= -7.2e+27) {
tmp = i * (t * b);
} else if (i <= -1.9e-76) {
tmp = t_1;
} else if (i <= 5.2e-263) {
tmp = t_2;
} else if (i <= 2.15e-50) {
tmp = t_1;
} else if (i <= 3.4e+155) {
tmp = t_2;
} else {
tmp = (i * j) * -y;
}
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 = y * (x * z)
t_2 = t * -(x * a)
if (i <= (-7.2d+27)) then
tmp = i * (t * b)
else if (i <= (-1.9d-76)) then
tmp = t_1
else if (i <= 5.2d-263) then
tmp = t_2
else if (i <= 2.15d-50) then
tmp = t_1
else if (i <= 3.4d+155) then
tmp = t_2
else
tmp = (i * j) * -y
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 = y * (x * z);
double t_2 = t * -(x * a);
double tmp;
if (i <= -7.2e+27) {
tmp = i * (t * b);
} else if (i <= -1.9e-76) {
tmp = t_1;
} else if (i <= 5.2e-263) {
tmp = t_2;
} else if (i <= 2.15e-50) {
tmp = t_1;
} else if (i <= 3.4e+155) {
tmp = t_2;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = t * -(x * a) tmp = 0 if i <= -7.2e+27: tmp = i * (t * b) elif i <= -1.9e-76: tmp = t_1 elif i <= 5.2e-263: tmp = t_2 elif i <= 2.15e-50: tmp = t_1 elif i <= 3.4e+155: tmp = t_2 else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(t * Float64(-Float64(x * a))) tmp = 0.0 if (i <= -7.2e+27) tmp = Float64(i * Float64(t * b)); elseif (i <= -1.9e-76) tmp = t_1; elseif (i <= 5.2e-263) tmp = t_2; elseif (i <= 2.15e-50) tmp = t_1; elseif (i <= 3.4e+155) tmp = t_2; else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = t * -(x * a); tmp = 0.0; if (i <= -7.2e+27) tmp = i * (t * b); elseif (i <= -1.9e-76) tmp = t_1; elseif (i <= 5.2e-263) tmp = t_2; elseif (i <= 2.15e-50) tmp = t_1; elseif (i <= 3.4e+155) tmp = t_2; else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[i, -7.2e+27], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.9e-76], t$95$1, If[LessEqual[i, 5.2e-263], t$95$2, If[LessEqual[i, 2.15e-50], t$95$1, If[LessEqual[i, 3.4e+155], t$95$2, N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := t \cdot \left(-x \cdot a\right)\\
\mathbf{if}\;i \leq -7.2 \cdot 10^{+27}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq -1.9 \cdot 10^{-76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-263}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{+155}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if i < -7.19999999999999966e27Initial program 59.1%
cancel-sign-sub59.1%
cancel-sign-sub-inv59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in j around 0 55.9%
Taylor expanded in i around inf 39.2%
if -7.19999999999999966e27 < i < -1.9000000000000001e-76 or 5.2000000000000001e-263 < i < 2.14999999999999999e-50Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in j around 0 66.6%
Taylor expanded in c around inf 62.0%
Taylor expanded in y around inf 41.1%
if -1.9000000000000001e-76 < i < 5.2000000000000001e-263 or 2.14999999999999999e-50 < i < 3.4000000000000001e155Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in t around inf 53.8%
*-commutative53.8%
distribute-lft-out--53.8%
sub-neg53.8%
mul-1-neg53.8%
+-commutative53.8%
distribute-lft-in53.8%
neg-mul-153.8%
mul-1-neg53.8%
remove-double-neg53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Taylor expanded in i around 0 43.7%
neg-mul-143.7%
distribute-rgt-neg-in43.7%
Simplified43.7%
if 3.4000000000000001e155 < i Initial program 63.0%
sub-neg63.0%
+-commutative63.0%
associate-+l+63.0%
distribute-rgt-neg-in63.0%
+-commutative63.0%
fma-def63.0%
sub-neg63.0%
+-commutative63.0%
distribute-neg-in63.0%
unsub-neg63.0%
remove-double-neg63.0%
*-commutative63.0%
Simplified65.9%
Taylor expanded in i around inf 72.2%
Taylor expanded in t around 0 61.3%
mul-1-neg61.3%
distribute-rgt-neg-out61.3%
distribute-lft-neg-in61.3%
Simplified61.3%
Taylor expanded in i around 0 61.3%
mul-1-neg61.3%
associate-*r*61.3%
*-commutative61.3%
associate-*r*63.7%
distribute-rgt-neg-in63.7%
distribute-rgt-neg-in63.7%
Simplified63.7%
Final simplification44.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= j -3.4e+15)
(* c (* a j))
(if (<= j -8.6e-249)
t_1
(if (<= j 3.95e-261)
(* i (* t b))
(if (<= j 8.7e+157) t_1 (* a (* c j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (j <= -3.4e+15) {
tmp = c * (a * j);
} else if (j <= -8.6e-249) {
tmp = t_1;
} else if (j <= 3.95e-261) {
tmp = i * (t * b);
} else if (j <= 8.7e+157) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (j <= (-3.4d+15)) then
tmp = c * (a * j)
else if (j <= (-8.6d-249)) then
tmp = t_1
else if (j <= 3.95d-261) then
tmp = i * (t * b)
else if (j <= 8.7d+157) then
tmp = t_1
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 t_1 = y * (x * z);
double tmp;
if (j <= -3.4e+15) {
tmp = c * (a * j);
} else if (j <= -8.6e-249) {
tmp = t_1;
} else if (j <= 3.95e-261) {
tmp = i * (t * b);
} else if (j <= 8.7e+157) {
tmp = t_1;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if j <= -3.4e+15: tmp = c * (a * j) elif j <= -8.6e-249: tmp = t_1 elif j <= 3.95e-261: tmp = i * (t * b) elif j <= 8.7e+157: tmp = t_1 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (j <= -3.4e+15) tmp = Float64(c * Float64(a * j)); elseif (j <= -8.6e-249) tmp = t_1; elseif (j <= 3.95e-261) tmp = Float64(i * Float64(t * b)); elseif (j <= 8.7e+157) tmp = t_1; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (j <= -3.4e+15) tmp = c * (a * j); elseif (j <= -8.6e-249) tmp = t_1; elseif (j <= 3.95e-261) tmp = i * (t * b); elseif (j <= 8.7e+157) tmp = t_1; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.4e+15], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.6e-249], t$95$1, If[LessEqual[j, 3.95e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e+157], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;j \leq -3.4 \cdot 10^{+15}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -8.6 \cdot 10^{-249}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.95 \cdot 10^{-261}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 8.7 \cdot 10^{+157}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -3.4e15Initial program 70.4%
cancel-sign-sub70.4%
cancel-sign-sub-inv70.4%
*-commutative70.4%
remove-double-neg70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in a around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in c around inf 40.2%
if -3.4e15 < j < -8.6000000000000003e-249 or 3.95000000000000006e-261 < j < 8.7000000000000002e157Initial program 76.5%
cancel-sign-sub76.5%
cancel-sign-sub-inv76.5%
*-commutative76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in j around 0 70.5%
Taylor expanded in c around inf 61.3%
Taylor expanded in y around inf 33.4%
if -8.6000000000000003e-249 < j < 3.95000000000000006e-261Initial program 76.2%
cancel-sign-sub76.2%
cancel-sign-sub-inv76.2%
*-commutative76.2%
remove-double-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in j around 0 80.5%
Taylor expanded in i around inf 45.6%
if 8.7000000000000002e157 < j Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around inf 77.8%
associate-*r*72.4%
*-commutative72.4%
associate-*r*75.0%
Simplified75.0%
Taylor expanded in i around 0 45.8%
*-commutative45.8%
associate-*l*53.9%
Simplified53.9%
Final simplification39.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -7.5e+103) (not (<= z 3.3e+187))) (* y (* x z)) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7.5e+103) || !(z <= 3.3e+187)) {
tmp = y * (x * z);
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-7.5d+103)) .or. (.not. (z <= 3.3d+187))) then
tmp = y * (x * z)
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7.5e+103) || !(z <= 3.3e+187)) {
tmp = y * (x * z);
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -7.5e+103) or not (z <= 3.3e+187): tmp = y * (x * z) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -7.5e+103) || !(z <= 3.3e+187)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -7.5e+103) || ~((z <= 3.3e+187))) tmp = y * (x * z); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7.5e+103], N[Not[LessEqual[z, 3.3e+187]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+103} \lor \neg \left(z \leq 3.3 \cdot 10^{+187}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if z < -7.49999999999999922e103 or 3.3000000000000001e187 < z Initial program 64.6%
cancel-sign-sub64.6%
cancel-sign-sub-inv64.6%
*-commutative64.6%
remove-double-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in j around 0 62.5%
Taylor expanded in c around inf 62.3%
Taylor expanded in y around inf 50.7%
if -7.49999999999999922e103 < z < 3.3000000000000001e187Initial program 79.2%
cancel-sign-sub79.2%
cancel-sign-sub-inv79.2%
*-commutative79.2%
remove-double-neg79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in a around inf 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
Simplified48.5%
Final simplification49.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -6000.0) (* c (* a j)) (if (<= j 4.4e+36) (* i (* t b)) (* 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 (j <= -6000.0) {
tmp = c * (a * j);
} else if (j <= 4.4e+36) {
tmp = i * (t * b);
} 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 (j <= (-6000.0d0)) then
tmp = c * (a * j)
else if (j <= 4.4d+36) then
tmp = i * (t * b)
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 (j <= -6000.0) {
tmp = c * (a * j);
} else if (j <= 4.4e+36) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -6000.0: tmp = c * (a * j) elif j <= 4.4e+36: tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -6000.0) tmp = Float64(c * Float64(a * j)); elseif (j <= 4.4e+36) tmp = Float64(i * Float64(t * b)); 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 (j <= -6000.0) tmp = c * (a * j); elseif (j <= 4.4e+36) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -6000.0], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e+36], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6000:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+36}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -6e3Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in a around inf 47.2%
+-commutative47.2%
mul-1-neg47.2%
unsub-neg47.2%
Simplified47.2%
Taylor expanded in c around inf 38.9%
if -6e3 < j < 4.40000000000000001e36Initial program 75.1%
cancel-sign-sub75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
remove-double-neg75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in j around 0 74.7%
Taylor expanded in i around inf 27.2%
if 4.40000000000000001e36 < j Initial program 76.4%
cancel-sign-sub76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
remove-double-neg76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in i around inf 71.5%
associate-*r*66.6%
*-commutative66.6%
associate-*r*69.8%
Simplified69.8%
Taylor expanded in i around 0 35.7%
*-commutative35.7%
associate-*l*42.2%
Simplified42.2%
Final simplification33.3%
(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 74.6%
cancel-sign-sub74.6%
cancel-sign-sub-inv74.6%
*-commutative74.6%
remove-double-neg74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in i around inf 49.7%
associate-*r*47.5%
*-commutative47.5%
associate-*r*48.3%
Simplified48.3%
Taylor expanded in i around 0 21.2%
*-commutative21.2%
associate-*l*21.7%
Simplified21.7%
Final simplification21.7%
(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 2023242
(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)))))