
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (- (* i (- (* t b) (* y j))) (* b (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (i * ((t * b) - (y * j))) - (b * (z * c));
}
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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (i * ((t * b) - (y * j))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (i * ((t * b) - (y * j))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (i * ((t * b) - (y * j))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right) - b \cdot \left(z \cdot c\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 95.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around -inf 14.8%
Taylor expanded in i around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
Final simplification87.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -2.8e+233)
t_3
(if (<= b -4.8e+48)
t_2
(if (<= b -3e+28)
t_3
(if (<= b -1.8e-90)
t_1
(if (<= b 5.5e-105)
(* a (- (* c j) (* x t)))
(if (<= b 1.02e-84)
t_3
(if (<= b 1.9e-33)
t_1
(if (<= b 1.4e+26) t_2 (if (<= b 1.05e+119) t_1 t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.8e+233) {
tmp = t_3;
} else if (b <= -4.8e+48) {
tmp = t_2;
} else if (b <= -3e+28) {
tmp = t_3;
} else if (b <= -1.8e-90) {
tmp = t_1;
} else if (b <= 5.5e-105) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.02e-84) {
tmp = t_3;
} else if (b <= 1.9e-33) {
tmp = t_1;
} else if (b <= 1.4e+26) {
tmp = t_2;
} else if (b <= 1.05e+119) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
t_3 = b * ((t * i) - (z * c))
if (b <= (-2.8d+233)) then
tmp = t_3
else if (b <= (-4.8d+48)) then
tmp = t_2
else if (b <= (-3d+28)) then
tmp = t_3
else if (b <= (-1.8d-90)) then
tmp = t_1
else if (b <= 5.5d-105) then
tmp = a * ((c * j) - (x * t))
else if (b <= 1.02d-84) then
tmp = t_3
else if (b <= 1.9d-33) then
tmp = t_1
else if (b <= 1.4d+26) then
tmp = t_2
else if (b <= 1.05d+119) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.8e+233) {
tmp = t_3;
} else if (b <= -4.8e+48) {
tmp = t_2;
} else if (b <= -3e+28) {
tmp = t_3;
} else if (b <= -1.8e-90) {
tmp = t_1;
} else if (b <= 5.5e-105) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1.02e-84) {
tmp = t_3;
} else if (b <= 1.9e-33) {
tmp = t_1;
} else if (b <= 1.4e+26) {
tmp = t_2;
} else if (b <= 1.05e+119) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.8e+233: tmp = t_3 elif b <= -4.8e+48: tmp = t_2 elif b <= -3e+28: tmp = t_3 elif b <= -1.8e-90: tmp = t_1 elif b <= 5.5e-105: tmp = a * ((c * j) - (x * t)) elif b <= 1.02e-84: tmp = t_3 elif b <= 1.9e-33: tmp = t_1 elif b <= 1.4e+26: tmp = t_2 elif b <= 1.05e+119: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.8e+233) tmp = t_3; elseif (b <= -4.8e+48) tmp = t_2; elseif (b <= -3e+28) tmp = t_3; elseif (b <= -1.8e-90) tmp = t_1; elseif (b <= 5.5e-105) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 1.02e-84) tmp = t_3; elseif (b <= 1.9e-33) tmp = t_1; elseif (b <= 1.4e+26) tmp = t_2; elseif (b <= 1.05e+119) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.8e+233) tmp = t_3; elseif (b <= -4.8e+48) tmp = t_2; elseif (b <= -3e+28) tmp = t_3; elseif (b <= -1.8e-90) tmp = t_1; elseif (b <= 5.5e-105) tmp = a * ((c * j) - (x * t)); elseif (b <= 1.02e-84) tmp = t_3; elseif (b <= 1.9e-33) tmp = t_1; elseif (b <= 1.4e+26) tmp = t_2; elseif (b <= 1.05e+119) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.8e+233], t$95$3, If[LessEqual[b, -4.8e+48], t$95$2, If[LessEqual[b, -3e+28], t$95$3, If[LessEqual[b, -1.8e-90], t$95$1, If[LessEqual[b, 5.5e-105], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.02e-84], t$95$3, If[LessEqual[b, 1.9e-33], t$95$1, If[LessEqual[b, 1.4e+26], t$95$2, If[LessEqual[b, 1.05e+119], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.8 \cdot 10^{+233}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{+48}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{+28}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-105}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{-84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+26}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -2.8000000000000001e233 or -4.8000000000000002e48 < b < -3.0000000000000001e28 or 5.50000000000000029e-105 < b < 1.02000000000000004e-84 or 1.04999999999999991e119 < b Initial program 78.0%
associate-+l-78.0%
*-commutative78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in b around inf 89.9%
if -2.8000000000000001e233 < b < -4.8000000000000002e48 or 1.89999999999999997e-33 < b < 1.4e26Initial program 71.3%
associate-+l-71.3%
*-commutative71.3%
sub-neg71.3%
sub-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in a around -inf 65.3%
Simplified67.4%
Taylor expanded in i around inf 62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
if -3.0000000000000001e28 < b < -1.7999999999999999e-90 or 1.02000000000000004e-84 < b < 1.89999999999999997e-33 or 1.4e26 < b < 1.04999999999999991e119Initial program 76.9%
associate-+l-76.9%
*-commutative76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in x around inf 64.7%
if -1.7999999999999999e-90 < b < 5.50000000000000029e-105Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in a around inf 56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
Simplified56.6%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (- (* t b) (* y j))) (* b (* z c))))
(t_2 (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
(if (<= b -1.1e-41)
t_1
(if (<= b 5.4e-105)
t_2
(if (<= b 4.8e-84)
t_1
(if (<= b 2e+159) t_2 (* b (- (* t i) (* z c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * ((t * b) - (y * j))) - (b * (z * c));
double t_2 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
double tmp;
if (b <= -1.1e-41) {
tmp = t_1;
} else if (b <= 5.4e-105) {
tmp = t_2;
} else if (b <= 4.8e-84) {
tmp = t_1;
} else if (b <= 2e+159) {
tmp = t_2;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (i * ((t * b) - (y * j))) - (b * (z * c))
t_2 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
if (b <= (-1.1d-41)) then
tmp = t_1
else if (b <= 5.4d-105) then
tmp = t_2
else if (b <= 4.8d-84) then
tmp = t_1
else if (b <= 2d+159) then
tmp = t_2
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * ((t * b) - (y * j))) - (b * (z * c));
double t_2 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
double tmp;
if (b <= -1.1e-41) {
tmp = t_1;
} else if (b <= 5.4e-105) {
tmp = t_2;
} else if (b <= 4.8e-84) {
tmp = t_1;
} else if (b <= 2e+159) {
tmp = t_2;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * ((t * b) - (y * j))) - (b * (z * c)) t_2 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) tmp = 0 if b <= -1.1e-41: tmp = t_1 elif b <= 5.4e-105: tmp = t_2 elif b <= 4.8e-84: tmp = t_1 elif b <= 2e+159: tmp = t_2 else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) - Float64(b * Float64(z * c))) t_2 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (b <= -1.1e-41) tmp = t_1; elseif (b <= 5.4e-105) tmp = t_2; elseif (b <= 4.8e-84) tmp = t_1; elseif (b <= 2e+159) tmp = t_2; else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * ((t * b) - (y * j))) - (b * (z * c)); t_2 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); tmp = 0.0; if (b <= -1.1e-41) tmp = t_1; elseif (b <= 5.4e-105) tmp = t_2; elseif (b <= 4.8e-84) tmp = t_1; elseif (b <= 2e+159) tmp = t_2; else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e-41], t$95$1, If[LessEqual[b, 5.4e-105], t$95$2, If[LessEqual[b, 4.8e-84], t$95$1, If[LessEqual[b, 2e+159], t$95$2, N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right) - b \cdot \left(z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{-41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+159}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -1.1e-41 or 5.39999999999999985e-105 < b < 4.80000000000000035e-84Initial program 71.7%
associate-+l-71.7%
*-commutative71.7%
sub-neg71.7%
sub-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in t around -inf 64.0%
Taylor expanded in i around inf 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
Simplified76.1%
if -1.1e-41 < b < 5.39999999999999985e-105 or 4.80000000000000035e-84 < b < 1.9999999999999999e159Initial program 79.4%
associate-+l-79.4%
*-commutative79.4%
sub-neg79.4%
sub-neg79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in b around 0 76.0%
if 1.9999999999999999e159 < b Initial program 81.0%
associate-+l-81.0%
*-commutative81.0%
sub-neg81.0%
sub-neg81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around inf 94.5%
Final simplification78.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -7.5e-57)
t_2
(if (<= c -1.3e-244)
t_1
(if (<= c 3.5e-285)
(* i (- (* t b) (* y j)))
(if (<= c 2.4e-123)
(* y (- (* x z) (* i j)))
(if (or (<= c 4.4e+70) (and (not (<= c 4.3e+136)) (<= c 3.8e+186)))
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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.5e-57) {
tmp = t_2;
} else if (c <= -1.3e-244) {
tmp = t_1;
} else if (c <= 3.5e-285) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 2.4e-123) {
tmp = y * ((x * z) - (i * j));
} else if ((c <= 4.4e+70) || (!(c <= 4.3e+136) && (c <= 3.8e+186))) {
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 = c * ((a * j) - (z * b))
if (c <= (-7.5d-57)) then
tmp = t_2
else if (c <= (-1.3d-244)) then
tmp = t_1
else if (c <= 3.5d-285) then
tmp = i * ((t * b) - (y * j))
else if (c <= 2.4d-123) then
tmp = y * ((x * z) - (i * j))
else if ((c <= 4.4d+70) .or. (.not. (c <= 4.3d+136)) .and. (c <= 3.8d+186)) 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -7.5e-57) {
tmp = t_2;
} else if (c <= -1.3e-244) {
tmp = t_1;
} else if (c <= 3.5e-285) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 2.4e-123) {
tmp = y * ((x * z) - (i * j));
} else if ((c <= 4.4e+70) || (!(c <= 4.3e+136) && (c <= 3.8e+186))) {
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 = c * ((a * j) - (z * b)) tmp = 0 if c <= -7.5e-57: tmp = t_2 elif c <= -1.3e-244: tmp = t_1 elif c <= 3.5e-285: tmp = i * ((t * b) - (y * j)) elif c <= 2.4e-123: tmp = y * ((x * z) - (i * j)) elif (c <= 4.4e+70) or (not (c <= 4.3e+136) and (c <= 3.8e+186)): 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(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -7.5e-57) tmp = t_2; elseif (c <= -1.3e-244) tmp = t_1; elseif (c <= 3.5e-285) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 2.4e-123) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif ((c <= 4.4e+70) || (!(c <= 4.3e+136) && (c <= 3.8e+186))) 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 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -7.5e-57) tmp = t_2; elseif (c <= -1.3e-244) tmp = t_1; elseif (c <= 3.5e-285) tmp = i * ((t * b) - (y * j)); elseif (c <= 2.4e-123) tmp = y * ((x * z) - (i * j)); elseif ((c <= 4.4e+70) || (~((c <= 4.3e+136)) && (c <= 3.8e+186))) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.5e-57], t$95$2, If[LessEqual[c, -1.3e-244], t$95$1, If[LessEqual[c, 3.5e-285], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.4e-123], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[c, 4.4e+70], And[N[Not[LessEqual[c, 4.3e+136]], $MachinePrecision], LessEqual[c, 3.8e+186]]], 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 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{-57}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-244}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-285}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-123}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{+70} \lor \neg \left(c \leq 4.3 \cdot 10^{+136}\right) \land c \leq 3.8 \cdot 10^{+186}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -7.49999999999999973e-57 or 4.40000000000000001e70 < c < 4.2999999999999999e136 or 3.7999999999999998e186 < c Initial program 71.0%
associate-+l-71.0%
*-commutative71.0%
sub-neg71.0%
sub-neg71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in c around inf 69.7%
*-commutative69.7%
Simplified69.7%
if -7.49999999999999973e-57 < c < -1.3000000000000001e-244 or 2.4e-123 < c < 4.40000000000000001e70 or 4.2999999999999999e136 < c < 3.7999999999999998e186Initial program 80.7%
associate-+l-80.7%
*-commutative80.7%
sub-neg80.7%
sub-neg80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in a around -inf 85.8%
Simplified82.2%
Taylor expanded in t around inf 58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
if -1.3000000000000001e-244 < c < 3.5000000000000004e-285Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in a around -inf 83.2%
Simplified79.4%
Taylor expanded in i around inf 63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
if 3.5000000000000004e-285 < c < 2.4e-123Initial program 88.1%
associate-+l-88.1%
*-commutative88.1%
sub-neg88.1%
sub-neg88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* i (- (* t b) (* y j))) (* b (* z c))))
(t_2 (* x (- (* y z) (* t a)))))
(if (<= x -9.5e+215)
t_2
(if (<= x -5.6e+68)
t_1
(if (<= x -4.5e-30)
(* z (- (* x y) (* b c)))
(if (<= x 5.8e+16) 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 = (i * ((t * b) - (y * j))) - (b * (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.5e+215) {
tmp = t_2;
} else if (x <= -5.6e+68) {
tmp = t_1;
} else if (x <= -4.5e-30) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 5.8e+16) {
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 = (i * ((t * b) - (y * j))) - (b * (z * c))
t_2 = x * ((y * z) - (t * a))
if (x <= (-9.5d+215)) then
tmp = t_2
else if (x <= (-5.6d+68)) then
tmp = t_1
else if (x <= (-4.5d-30)) then
tmp = z * ((x * y) - (b * c))
else if (x <= 5.8d+16) 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 = (i * ((t * b) - (y * j))) - (b * (z * c));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.5e+215) {
tmp = t_2;
} else if (x <= -5.6e+68) {
tmp = t_1;
} else if (x <= -4.5e-30) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 5.8e+16) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * ((t * b) - (y * j))) - (b * (z * c)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9.5e+215: tmp = t_2 elif x <= -5.6e+68: tmp = t_1 elif x <= -4.5e-30: tmp = z * ((x * y) - (b * c)) elif x <= 5.8e+16: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) - Float64(b * Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9.5e+215) tmp = t_2; elseif (x <= -5.6e+68) tmp = t_1; elseif (x <= -4.5e-30) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 5.8e+16) 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 = (i * ((t * b) - (y * j))) - (b * (z * c)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9.5e+215) tmp = t_2; elseif (x <= -5.6e+68) tmp = t_1; elseif (x <= -4.5e-30) tmp = z * ((x * y) - (b * c)); elseif (x <= 5.8e+16) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.5e+215], t$95$2, If[LessEqual[x, -5.6e+68], t$95$1, If[LessEqual[x, -4.5e-30], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e+16], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right) - b \cdot \left(z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{+215}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{+68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-30}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{+16}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -9.50000000000000036e215 or 5.8e16 < x Initial program 74.7%
associate-+l-74.7%
*-commutative74.7%
sub-neg74.7%
sub-neg74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in x around inf 71.1%
if -9.50000000000000036e215 < x < -5.6e68 or -4.49999999999999967e-30 < x < 5.8e16Initial program 78.4%
associate-+l-78.4%
*-commutative78.4%
sub-neg78.4%
sub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in t around -inf 78.1%
Taylor expanded in i around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
Simplified65.9%
if -5.6e68 < x < -4.49999999999999967e-30Initial program 77.8%
associate-+l-77.8%
*-commutative77.8%
sub-neg77.8%
sub-neg77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in z around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (* b (- c)))))
(if (<= b -1.15e+137)
t_2
(if (<= b -4.5e-84)
(* z (* x y))
(if (<= b -2.2e-297)
t_1
(if (<= b 2.2e-245)
(* j (* y (- i)))
(if (<= b 2.2e+89) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * (b * -c);
double tmp;
if (b <= -1.15e+137) {
tmp = t_2;
} else if (b <= -4.5e-84) {
tmp = z * (x * y);
} else if (b <= -2.2e-297) {
tmp = t_1;
} else if (b <= 2.2e-245) {
tmp = j * (y * -i);
} else if (b <= 2.2e+89) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = z * (b * -c)
if (b <= (-1.15d+137)) then
tmp = t_2
else if (b <= (-4.5d-84)) then
tmp = z * (x * y)
else if (b <= (-2.2d-297)) then
tmp = t_1
else if (b <= 2.2d-245) then
tmp = j * (y * -i)
else if (b <= 2.2d+89) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * (b * -c);
double tmp;
if (b <= -1.15e+137) {
tmp = t_2;
} else if (b <= -4.5e-84) {
tmp = z * (x * y);
} else if (b <= -2.2e-297) {
tmp = t_1;
} else if (b <= 2.2e-245) {
tmp = j * (y * -i);
} else if (b <= 2.2e+89) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * (b * -c) tmp = 0 if b <= -1.15e+137: tmp = t_2 elif b <= -4.5e-84: tmp = z * (x * y) elif b <= -2.2e-297: tmp = t_1 elif b <= 2.2e-245: tmp = j * (y * -i) elif b <= 2.2e+89: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (b <= -1.15e+137) tmp = t_2; elseif (b <= -4.5e-84) tmp = Float64(z * Float64(x * y)); elseif (b <= -2.2e-297) tmp = t_1; elseif (b <= 2.2e-245) tmp = Float64(j * Float64(y * Float64(-i))); elseif (b <= 2.2e+89) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = z * (b * -c); tmp = 0.0; if (b <= -1.15e+137) tmp = t_2; elseif (b <= -4.5e-84) tmp = z * (x * y); elseif (b <= -2.2e-297) tmp = t_1; elseif (b <= 2.2e-245) tmp = j * (y * -i); elseif (b <= 2.2e+89) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+137], t$95$2, If[LessEqual[b, -4.5e-84], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-297], t$95$1, If[LessEqual[b, 2.2e-245], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+89], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{+137}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-84}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-245}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+89}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.15e137 or 2.2e89 < b Initial program 76.8%
associate-+l-76.8%
*-commutative76.8%
sub-neg76.8%
sub-neg76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in z around inf 63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in y around 0 52.2%
mul-1-neg52.2%
*-commutative52.2%
distribute-rgt-neg-in52.2%
Simplified52.2%
if -1.15e137 < b < -4.50000000000000016e-84Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in z around inf 60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in y around inf 42.8%
*-commutative42.8%
Simplified42.8%
if -4.50000000000000016e-84 < b < -2.1999999999999998e-297 or 2.19999999999999993e-245 < b < 2.2e89Initial program 79.6%
associate-+l-79.6%
*-commutative79.6%
sub-neg79.6%
sub-neg79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
if -2.1999999999999998e-297 < b < 2.19999999999999993e-245Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around inf 58.0%
Taylor expanded in a around 0 45.1%
mul-1-neg45.1%
distribute-lft-neg-out45.1%
*-commutative45.1%
Simplified45.1%
Final simplification51.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -9e+106)
t_2
(if (<= i -1.22e-21)
(* j (- (* a c) (* y i)))
(if (<= i -1.15e-28)
t_1
(if (<= i 1.1e-148)
(* c (- (* a j) (* z b)))
(if (<= i 3.2e+51) 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 = b * ((t * i) - (z * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -9e+106) {
tmp = t_2;
} else if (i <= -1.22e-21) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -1.15e-28) {
tmp = t_1;
} else if (i <= 1.1e-148) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 3.2e+51) {
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 = b * ((t * i) - (z * c))
t_2 = i * ((t * b) - (y * j))
if (i <= (-9d+106)) then
tmp = t_2
else if (i <= (-1.22d-21)) then
tmp = j * ((a * c) - (y * i))
else if (i <= (-1.15d-28)) then
tmp = t_1
else if (i <= 1.1d-148) then
tmp = c * ((a * j) - (z * b))
else if (i <= 3.2d+51) 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 = b * ((t * i) - (z * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -9e+106) {
tmp = t_2;
} else if (i <= -1.22e-21) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -1.15e-28) {
tmp = t_1;
} else if (i <= 1.1e-148) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 3.2e+51) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -9e+106: tmp = t_2 elif i <= -1.22e-21: tmp = j * ((a * c) - (y * i)) elif i <= -1.15e-28: tmp = t_1 elif i <= 1.1e-148: tmp = c * ((a * j) - (z * b)) elif i <= 3.2e+51: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -9e+106) tmp = t_2; elseif (i <= -1.22e-21) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= -1.15e-28) tmp = t_1; elseif (i <= 1.1e-148) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 3.2e+51) 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 = b * ((t * i) - (z * c)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -9e+106) tmp = t_2; elseif (i <= -1.22e-21) tmp = j * ((a * c) - (y * i)); elseif (i <= -1.15e-28) tmp = t_1; elseif (i <= 1.1e-148) tmp = c * ((a * j) - (z * b)); elseif (i <= 3.2e+51) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9e+106], t$95$2, If[LessEqual[i, -1.22e-21], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e-28], t$95$1, If[LessEqual[i, 1.1e-148], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e+51], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -9 \cdot 10^{+106}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.22 \cdot 10^{-21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-148}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -8.9999999999999994e106 or 3.2000000000000002e51 < i Initial program 64.7%
associate-+l-64.7%
*-commutative64.7%
sub-neg64.7%
sub-neg64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in a around -inf 70.5%
Simplified67.1%
Taylor expanded in i around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
if -8.9999999999999994e106 < i < -1.21999999999999991e-21Initial program 68.5%
associate-+l-68.5%
*-commutative68.5%
sub-neg68.5%
sub-neg68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in j around inf 64.2%
if -1.21999999999999991e-21 < i < -1.14999999999999993e-28 or 1.10000000000000009e-148 < i < 3.2000000000000002e51Initial program 92.4%
associate-+l-92.4%
*-commutative92.4%
sub-neg92.4%
sub-neg92.4%
*-commutative92.4%
Simplified92.4%
Taylor expanded in b around inf 50.1%
if -1.14999999999999993e-28 < i < 1.10000000000000009e-148Initial program 83.1%
associate-+l-83.1%
*-commutative83.1%
sub-neg83.1%
sub-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -2.4e+104)
t_1
(if (<= i -2.3e-21)
(* j (- (* a c) (* y i)))
(if (<= i -1.15e-28)
(* b (- (* t i) (* z c)))
(if (<= i -6.4e-160)
(* a (- (* c j) (* x t)))
(if (<= i 5.4e+84) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.4e+104) {
tmp = t_1;
} else if (i <= -2.3e-21) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -1.15e-28) {
tmp = b * ((t * i) - (z * c));
} else if (i <= -6.4e-160) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5.4e+84) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-2.4d+104)) then
tmp = t_1
else if (i <= (-2.3d-21)) then
tmp = j * ((a * c) - (y * i))
else if (i <= (-1.15d-28)) then
tmp = b * ((t * i) - (z * c))
else if (i <= (-6.4d-160)) then
tmp = a * ((c * j) - (x * t))
else if (i <= 5.4d+84) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -2.4e+104) {
tmp = t_1;
} else if (i <= -2.3e-21) {
tmp = j * ((a * c) - (y * i));
} else if (i <= -1.15e-28) {
tmp = b * ((t * i) - (z * c));
} else if (i <= -6.4e-160) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5.4e+84) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -2.4e+104: tmp = t_1 elif i <= -2.3e-21: tmp = j * ((a * c) - (y * i)) elif i <= -1.15e-28: tmp = b * ((t * i) - (z * c)) elif i <= -6.4e-160: tmp = a * ((c * j) - (x * t)) elif i <= 5.4e+84: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.4e+104) tmp = t_1; elseif (i <= -2.3e-21) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (i <= -1.15e-28) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= -6.4e-160) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 5.4e+84) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -2.4e+104) tmp = t_1; elseif (i <= -2.3e-21) tmp = j * ((a * c) - (y * i)); elseif (i <= -1.15e-28) tmp = b * ((t * i) - (z * c)); elseif (i <= -6.4e-160) tmp = a * ((c * j) - (x * t)); elseif (i <= 5.4e+84) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.4e+104], t$95$1, If[LessEqual[i, -2.3e-21], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e-28], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6.4e-160], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.4e+84], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.4 \cdot 10^{+104}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.3 \cdot 10^{-21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-28}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq -6.4 \cdot 10^{-160}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 5.4 \cdot 10^{+84}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -2.4e104 or 5.4e84 < i Initial program 65.4%
associate-+l-65.4%
*-commutative65.4%
sub-neg65.4%
sub-neg65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around -inf 71.4%
Simplified67.9%
Taylor expanded in i around inf 74.8%
+-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -2.4e104 < i < -2.29999999999999999e-21Initial program 68.5%
associate-+l-68.5%
*-commutative68.5%
sub-neg68.5%
sub-neg68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in j around inf 64.2%
if -2.29999999999999999e-21 < i < -1.14999999999999993e-28Initial program 100.0%
associate-+l-100.0%
*-commutative100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in b around inf 100.0%
if -1.14999999999999993e-28 < i < -6.40000000000000018e-160Initial program 86.9%
associate-+l-86.9%
*-commutative86.9%
sub-neg86.9%
sub-neg86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in a around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
Simplified66.8%
if -6.40000000000000018e-160 < i < 5.4e84Initial program 84.3%
associate-+l-84.3%
*-commutative84.3%
sub-neg84.3%
sub-neg84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in z around inf 63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.2e+106)
t_1
(if (<= i -0.3)
(- (* a (* c j)) (* i (* y j)))
(if (<= i -1.15e-28)
(* b (- (* t i) (* z c)))
(if (<= i -6e-160)
(* a (- (* c j) (* x t)))
(if (<= i 1.8e+85) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.2e+106) {
tmp = t_1;
} else if (i <= -0.3) {
tmp = (a * (c * j)) - (i * (y * j));
} else if (i <= -1.15e-28) {
tmp = b * ((t * i) - (z * c));
} else if (i <= -6e-160) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.8e+85) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.2d+106)) then
tmp = t_1
else if (i <= (-0.3d0)) then
tmp = (a * (c * j)) - (i * (y * j))
else if (i <= (-1.15d-28)) then
tmp = b * ((t * i) - (z * c))
else if (i <= (-6d-160)) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.8d+85) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.2e+106) {
tmp = t_1;
} else if (i <= -0.3) {
tmp = (a * (c * j)) - (i * (y * j));
} else if (i <= -1.15e-28) {
tmp = b * ((t * i) - (z * c));
} else if (i <= -6e-160) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.8e+85) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.2e+106: tmp = t_1 elif i <= -0.3: tmp = (a * (c * j)) - (i * (y * j)) elif i <= -1.15e-28: tmp = b * ((t * i) - (z * c)) elif i <= -6e-160: tmp = a * ((c * j) - (x * t)) elif i <= 1.8e+85: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.2e+106) tmp = t_1; elseif (i <= -0.3) tmp = Float64(Float64(a * Float64(c * j)) - Float64(i * Float64(y * j))); elseif (i <= -1.15e-28) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (i <= -6e-160) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.8e+85) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.2e+106) tmp = t_1; elseif (i <= -0.3) tmp = (a * (c * j)) - (i * (y * j)); elseif (i <= -1.15e-28) tmp = b * ((t * i) - (z * c)); elseif (i <= -6e-160) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.8e+85) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.2e+106], t$95$1, If[LessEqual[i, -0.3], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e-28], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -6e-160], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+85], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.2 \cdot 10^{+106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -0.3:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-28}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq -6 \cdot 10^{-160}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+85}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.2e106 or 1.7999999999999999e85 < i Initial program 65.4%
associate-+l-65.4%
*-commutative65.4%
sub-neg65.4%
sub-neg65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in a around -inf 71.4%
Simplified67.9%
Taylor expanded in i around inf 74.8%
+-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -1.2e106 < i < -0.299999999999999989Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in j around inf 72.7%
Taylor expanded in a around 0 72.7%
if -0.299999999999999989 < i < -1.14999999999999993e-28Initial program 72.5%
associate-+l-72.5%
*-commutative72.5%
sub-neg72.5%
sub-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around inf 57.8%
if -1.14999999999999993e-28 < i < -5.99999999999999993e-160Initial program 86.9%
associate-+l-86.9%
*-commutative86.9%
sub-neg86.9%
sub-neg86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in a around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
Simplified66.8%
if -5.99999999999999993e-160 < i < 1.7999999999999999e85Initial program 84.3%
associate-+l-84.3%
*-commutative84.3%
sub-neg84.3%
sub-neg84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in z around inf 63.6%
*-commutative63.6%
*-commutative63.6%
Simplified63.6%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.15e-28)
t_1
(if (<= i 3.6e-149)
(* c (- (* a j) (* z b)))
(if (<= i 8.2e+46) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.15e-28) {
tmp = t_1;
} else if (i <= 3.6e-149) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 8.2e+46) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.15d-28)) then
tmp = t_1
else if (i <= 3.6d-149) then
tmp = c * ((a * j) - (z * b))
else if (i <= 8.2d+46) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.15e-28) {
tmp = t_1;
} else if (i <= 3.6e-149) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 8.2e+46) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.15e-28: tmp = t_1 elif i <= 3.6e-149: tmp = c * ((a * j) - (z * b)) elif i <= 8.2e+46: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.15e-28) tmp = t_1; elseif (i <= 3.6e-149) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 8.2e+46) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.15e-28) tmp = t_1; elseif (i <= 3.6e-149) tmp = c * ((a * j) - (z * b)); elseif (i <= 8.2e+46) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.15e-28], t$95$1, If[LessEqual[i, 3.6e-149], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.2e+46], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.15 \cdot 10^{-28}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-149}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.14999999999999993e-28 or 8.19999999999999999e46 < i Initial program 66.4%
associate-+l-66.4%
*-commutative66.4%
sub-neg66.4%
sub-neg66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in a around -inf 71.0%
Simplified69.2%
Taylor expanded in i around inf 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
if -1.14999999999999993e-28 < i < 3.6000000000000002e-149Initial program 83.1%
associate-+l-83.1%
*-commutative83.1%
sub-neg83.1%
sub-neg83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
if 3.6000000000000002e-149 < i < 8.19999999999999999e46Initial program 91.9%
associate-+l-91.9%
*-commutative91.9%
sub-neg91.9%
sub-neg91.9%
*-commutative91.9%
Simplified91.9%
Taylor expanded in b around inf 46.7%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* c (* z (- b)))))
(if (<= b -4.2e+134)
t_2
(if (<= b -2.9e-142)
t_1
(if (<= b 4e-105) (* a (* c j)) (if (<= b 5.8e+144) 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 = z * (x * y);
double t_2 = c * (z * -b);
double tmp;
if (b <= -4.2e+134) {
tmp = t_2;
} else if (b <= -2.9e-142) {
tmp = t_1;
} else if (b <= 4e-105) {
tmp = a * (c * j);
} else if (b <= 5.8e+144) {
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 = z * (x * y)
t_2 = c * (z * -b)
if (b <= (-4.2d+134)) then
tmp = t_2
else if (b <= (-2.9d-142)) then
tmp = t_1
else if (b <= 4d-105) then
tmp = a * (c * j)
else if (b <= 5.8d+144) 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 = z * (x * y);
double t_2 = c * (z * -b);
double tmp;
if (b <= -4.2e+134) {
tmp = t_2;
} else if (b <= -2.9e-142) {
tmp = t_1;
} else if (b <= 4e-105) {
tmp = a * (c * j);
} else if (b <= 5.8e+144) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = c * (z * -b) tmp = 0 if b <= -4.2e+134: tmp = t_2 elif b <= -2.9e-142: tmp = t_1 elif b <= 4e-105: tmp = a * (c * j) elif b <= 5.8e+144: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (b <= -4.2e+134) tmp = t_2; elseif (b <= -2.9e-142) tmp = t_1; elseif (b <= 4e-105) tmp = Float64(a * Float64(c * j)); elseif (b <= 5.8e+144) 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 = z * (x * y); t_2 = c * (z * -b); tmp = 0.0; if (b <= -4.2e+134) tmp = t_2; elseif (b <= -2.9e-142) tmp = t_1; elseif (b <= 4e-105) tmp = a * (c * j); elseif (b <= 5.8e+144) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+134], t$95$2, If[LessEqual[b, -2.9e-142], t$95$1, If[LessEqual[b, 4e-105], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+144], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-105}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.2000000000000002e134 or 5.79999999999999996e144 < b Initial program 76.9%
associate-+l-76.9%
*-commutative76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in c around inf 57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in j around 0 48.9%
neg-mul-148.9%
distribute-rgt-neg-in48.9%
Simplified48.9%
if -4.2000000000000002e134 < b < -2.8999999999999999e-142 or 3.99999999999999986e-105 < b < 5.79999999999999996e144Initial program 77.1%
associate-+l-77.1%
*-commutative77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in z around inf 48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in y around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -2.8999999999999999e-142 < b < 3.99999999999999986e-105Initial program 78.0%
associate-+l-78.0%
*-commutative78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in a around inf 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in j around inf 36.5%
*-commutative36.5%
Simplified36.5%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* z (* b (- c)))))
(if (<= b -4.2e+137)
t_2
(if (<= b -1.32e-142)
t_1
(if (<= b 5.2e-106) (* a (* c j)) (if (<= b 6e+144) 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 = z * (x * y);
double t_2 = z * (b * -c);
double tmp;
if (b <= -4.2e+137) {
tmp = t_2;
} else if (b <= -1.32e-142) {
tmp = t_1;
} else if (b <= 5.2e-106) {
tmp = a * (c * j);
} else if (b <= 6e+144) {
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 = z * (x * y)
t_2 = z * (b * -c)
if (b <= (-4.2d+137)) then
tmp = t_2
else if (b <= (-1.32d-142)) then
tmp = t_1
else if (b <= 5.2d-106) then
tmp = a * (c * j)
else if (b <= 6d+144) 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 = z * (x * y);
double t_2 = z * (b * -c);
double tmp;
if (b <= -4.2e+137) {
tmp = t_2;
} else if (b <= -1.32e-142) {
tmp = t_1;
} else if (b <= 5.2e-106) {
tmp = a * (c * j);
} else if (b <= 6e+144) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = z * (b * -c) tmp = 0 if b <= -4.2e+137: tmp = t_2 elif b <= -1.32e-142: tmp = t_1 elif b <= 5.2e-106: tmp = a * (c * j) elif b <= 6e+144: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (b <= -4.2e+137) tmp = t_2; elseif (b <= -1.32e-142) tmp = t_1; elseif (b <= 5.2e-106) tmp = Float64(a * Float64(c * j)); elseif (b <= 6e+144) 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 = z * (x * y); t_2 = z * (b * -c); tmp = 0.0; if (b <= -4.2e+137) tmp = t_2; elseif (b <= -1.32e-142) tmp = t_1; elseif (b <= 5.2e-106) tmp = a * (c * j); elseif (b <= 6e+144) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+137], t$95$2, If[LessEqual[b, -1.32e-142], t$95$1, If[LessEqual[b, 5.2e-106], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e+144], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+137}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{-142}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-106}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 6 \cdot 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.1999999999999998e137 or 5.9999999999999998e144 < b Initial program 76.9%
associate-+l-76.9%
*-commutative76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in z around inf 62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 54.8%
mul-1-neg54.8%
*-commutative54.8%
distribute-rgt-neg-in54.8%
Simplified54.8%
if -4.1999999999999998e137 < b < -1.32e-142 or 5.2000000000000001e-106 < b < 5.9999999999999998e144Initial program 77.1%
associate-+l-77.1%
*-commutative77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
Simplified77.1%
Taylor expanded in z around inf 48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in y around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -1.32e-142 < b < 5.2000000000000001e-106Initial program 78.0%
associate-+l-78.0%
*-commutative78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in a around inf 56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in j around inf 36.5%
*-commutative36.5%
Simplified36.5%
Final simplification41.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4.6e+44) (not (<= a 450000.0))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.6e+44) || !(a <= 450000.0)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-4.6d+44)) .or. (.not. (a <= 450000.0d0))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.6e+44) || !(a <= 450000.0)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -4.6e+44) or not (a <= 450000.0): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -4.6e+44) || !(a <= 450000.0)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -4.6e+44) || ~((a <= 450000.0))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -4.6e+44], N[Not[LessEqual[a, 450000.0]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.6 \cdot 10^{+44} \lor \neg \left(a \leq 450000\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -4.60000000000000009e44 or 4.5e5 < a Initial program 61.3%
associate-+l-61.3%
*-commutative61.3%
sub-neg61.3%
sub-neg61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
Simplified62.9%
if -4.60000000000000009e44 < a < 4.5e5Initial program 88.1%
associate-+l-88.1%
*-commutative88.1%
sub-neg88.1%
sub-neg88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in b around inf 51.7%
Final simplification56.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.02e+65) (* c (* a j)) (if (<= c 1.12e+98) (* z (* x y)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.02e+65) {
tmp = c * (a * j);
} else if (c <= 1.12e+98) {
tmp = z * (x * y);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-1.02d+65)) then
tmp = c * (a * j)
else if (c <= 1.12d+98) then
tmp = z * (x * y)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.02e+65) {
tmp = c * (a * j);
} else if (c <= 1.12e+98) {
tmp = z * (x * y);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.02e+65: tmp = c * (a * j) elif c <= 1.12e+98: tmp = z * (x * y) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.02e+65) tmp = Float64(c * Float64(a * j)); elseif (c <= 1.12e+98) tmp = Float64(z * Float64(x * y)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -1.02e+65) tmp = c * (a * j); elseif (c <= 1.12e+98) tmp = z * (x * y); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.02e+65], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.12e+98], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.02 \cdot 10^{+65}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq 1.12 \cdot 10^{+98}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -1.02000000000000005e65Initial program 70.8%
associate-+l-70.8%
*-commutative70.8%
sub-neg70.8%
sub-neg70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in c around inf 71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in j around inf 43.6%
if -1.02000000000000005e65 < c < 1.12e98Initial program 83.3%
associate-+l-83.3%
*-commutative83.3%
sub-neg83.3%
sub-neg83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in z around inf 41.9%
*-commutative41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in y around inf 30.6%
*-commutative30.6%
Simplified30.6%
if 1.12e98 < c Initial program 60.6%
associate-+l-60.6%
*-commutative60.6%
sub-neg60.6%
sub-neg60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in j around inf 45.1%
Taylor expanded in a around inf 45.1%
Final simplification35.5%
(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 77.3%
associate-+l-77.3%
*-commutative77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in a around inf 37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in j around inf 22.1%
*-commutative22.1%
Simplified22.1%
Final simplification22.1%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * 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 = c * (a * 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 c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 77.3%
associate-+l-77.3%
*-commutative77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in c around inf 41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in j around inf 22.1%
Final simplification22.1%
(FPCore (x y z t a b c i j) :precision binary64 (* j (* a c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return j * (a * c);
}
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 = j * (a * c)
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 j * (a * c);
}
def code(x, y, z, t, a, b, c, i, j): return j * (a * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(j * Float64(a * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = j * (a * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
j \cdot \left(a \cdot c\right)
\end{array}
Initial program 77.3%
associate-+l-77.3%
*-commutative77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in j around inf 36.0%
Taylor expanded in a around inf 22.2%
Final simplification22.2%
(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 2023293
(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)))))