
(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 23 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 (* c (- (* a j) (* z b))))))
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 = c * ((a * j) - (z * b));
}
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 = c * ((a * j) - (z * b));
}
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 = c * ((a * j) - (z * b)) 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(c * Float64(Float64(a * j) - Float64(z * b))); 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 = c * ((a * j) - (z * b)); 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $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}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\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 92.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in c around inf 55.0%
*-commutative55.0%
Simplified55.0%
Final simplification85.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -2.6e+118)
t_2
(if (<= b -1.12e+104)
t_1
(if (<= b -2e+73)
(* z (- (* x y) (* b c)))
(if (<= b 2.8e-306)
t_1
(if (<= b 0.0056)
(* x (- (* y z) (* t a)))
(if (<= b 1.06e+66) (* c (- (* a j) (* z b))) 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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.6e+118) {
tmp = t_2;
} else if (b <= -1.12e+104) {
tmp = t_1;
} else if (b <= -2e+73) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 2.8e-306) {
tmp = t_1;
} else if (b <= 0.0056) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.06e+66) {
tmp = c * ((a * j) - (z * b));
} 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 * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-2.6d+118)) then
tmp = t_2
else if (b <= (-1.12d+104)) then
tmp = t_1
else if (b <= (-2d+73)) then
tmp = z * ((x * y) - (b * c))
else if (b <= 2.8d-306) then
tmp = t_1
else if (b <= 0.0056d0) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1.06d+66) then
tmp = c * ((a * j) - (z * b))
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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.6e+118) {
tmp = t_2;
} else if (b <= -1.12e+104) {
tmp = t_1;
} else if (b <= -2e+73) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 2.8e-306) {
tmp = t_1;
} else if (b <= 0.0056) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.06e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.6e+118: tmp = t_2 elif b <= -1.12e+104: tmp = t_1 elif b <= -2e+73: tmp = z * ((x * y) - (b * c)) elif b <= 2.8e-306: tmp = t_1 elif b <= 0.0056: tmp = x * ((y * z) - (t * a)) elif b <= 1.06e+66: tmp = c * ((a * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.6e+118) tmp = t_2; elseif (b <= -1.12e+104) tmp = t_1; elseif (b <= -2e+73) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 2.8e-306) tmp = t_1; elseif (b <= 0.0056) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1.06e+66) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_2; 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_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.6e+118) tmp = t_2; elseif (b <= -1.12e+104) tmp = t_1; elseif (b <= -2e+73) tmp = z * ((x * y) - (b * c)); elseif (b <= 2.8e-306) tmp = t_1; elseif (b <= 0.0056) tmp = x * ((y * z) - (t * a)); elseif (b <= 1.06e+66) tmp = c * ((a * j) - (z * b)); 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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.6e+118], t$95$2, If[LessEqual[b, -1.12e+104], t$95$1, If[LessEqual[b, -2e+73], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-306], t$95$1, If[LessEqual[b, 0.0056], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e+66], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{+118}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.12 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2 \cdot 10^{+73}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.0056:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.60000000000000016e118 or 1.06000000000000004e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -2.60000000000000016e118 < b < -1.12000000000000003e104 or -1.99999999999999997e73 < b < 2.8000000000000001e-306Initial program 82.3%
Taylor expanded in j around inf 59.2%
*-commutative59.2%
Simplified59.2%
if -1.12000000000000003e104 < b < -1.99999999999999997e73Initial program 49.7%
Taylor expanded in z around inf 83.8%
*-commutative83.8%
Simplified83.8%
if 2.8000000000000001e-306 < b < 0.00559999999999999994Initial program 73.4%
sub-neg73.4%
distribute-rgt-in73.4%
*-commutative73.4%
distribute-rgt-neg-in73.4%
Applied egg-rr73.4%
Taylor expanded in x around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
if 0.00559999999999999994 < b < 1.06000000000000004e66Initial program 62.3%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification63.4%
(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)))))
(t_2 (* c (- (* a j) (* z b)))))
(if (<= c -1.35e+54)
t_2
(if (<= c -2.8e-112)
t_1
(if (<= c -3.1e-154)
(* i (- (* t b) (* y j)))
(if (<= c 1.1e+101) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e+54) {
tmp = t_2;
} else if (c <= -2.8e-112) {
tmp = t_1;
} else if (c <= -3.1e-154) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.1e+101) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
t_2 = c * ((a * j) - (z * b))
if (c <= (-1.35d+54)) then
tmp = t_2
else if (c <= (-2.8d-112)) then
tmp = t_1
else if (c <= (-3.1d-154)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 1.1d+101) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e+54) {
tmp = t_2;
} else if (c <= -2.8e-112) {
tmp = t_1;
} else if (c <= -3.1e-154) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.1e+101) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.35e+54: tmp = t_2 elif c <= -2.8e-112: tmp = t_1 elif c <= -3.1e-154: tmp = i * ((t * b) - (y * j)) elif c <= 1.1e+101: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.35e+54) tmp = t_2; elseif (c <= -2.8e-112) tmp = t_1; elseif (c <= -3.1e-154) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 1.1e+101) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.35e+54) tmp = t_2; elseif (c <= -2.8e-112) tmp = t_1; elseif (c <= -3.1e-154) tmp = i * ((t * b) - (y * j)); elseif (c <= 1.1e+101) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e+54], t$95$2, If[LessEqual[c, -2.8e-112], t$95$1, If[LessEqual[c, -3.1e-154], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+101], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{+54}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.1 \cdot 10^{-154}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.35000000000000005e54 or 1.1e101 < c Initial program 59.5%
Taylor expanded in c around inf 73.7%
*-commutative73.7%
Simplified73.7%
if -1.35000000000000005e54 < c < -2.80000000000000023e-112 or -3.09999999999999982e-154 < c < 1.1e101Initial program 85.0%
Taylor expanded in j around 0 69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
if -2.80000000000000023e-112 < c < -3.09999999999999982e-154Initial program 99.5%
Taylor expanded in i around inf 89.0%
distribute-lft-out--89.0%
*-commutative89.0%
*-commutative89.0%
Simplified89.0%
Final simplification71.6%
(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)))))
(t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.4e+54)
t_2
(if (<= c -6.2e-251)
t_1
(if (<= c 1.15e-224)
(- (- (* (- z (* a (/ t y))) (* x y)) (* z (* b c))) (* j (* y i)))
(if (<= c 2.4e+102) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.4e+54) {
tmp = t_2;
} else if (c <= -6.2e-251) {
tmp = t_1;
} else if (c <= 1.15e-224) {
tmp = (((z - (a * (t / y))) * (x * y)) - (z * (b * c))) - (j * (y * i));
} else if (c <= 2.4e+102) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.4d+54)) then
tmp = t_2
else if (c <= (-6.2d-251)) then
tmp = t_1
else if (c <= 1.15d-224) then
tmp = (((z - (a * (t / y))) * (x * y)) - (z * (b * c))) - (j * (y * i))
else if (c <= 2.4d+102) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.4e+54) {
tmp = t_2;
} else if (c <= -6.2e-251) {
tmp = t_1;
} else if (c <= 1.15e-224) {
tmp = (((z - (a * (t / y))) * (x * y)) - (z * (b * c))) - (j * (y * i));
} else if (c <= 2.4e+102) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.4e+54: tmp = t_2 elif c <= -6.2e-251: tmp = t_1 elif c <= 1.15e-224: tmp = (((z - (a * (t / y))) * (x * y)) - (z * (b * c))) - (j * (y * i)) elif c <= 2.4e+102: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.4e+54) tmp = t_2; elseif (c <= -6.2e-251) tmp = t_1; elseif (c <= 1.15e-224) tmp = Float64(Float64(Float64(Float64(z - Float64(a * Float64(t / y))) * Float64(x * y)) - Float64(z * Float64(b * c))) - Float64(j * Float64(y * i))); elseif (c <= 2.4e+102) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.4e+54) tmp = t_2; elseif (c <= -6.2e-251) tmp = t_1; elseif (c <= 1.15e-224) tmp = (((z - (a * (t / y))) * (x * y)) - (z * (b * c))) - (j * (y * i)); elseif (c <= 2.4e+102) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.4e+54], t$95$2, If[LessEqual[c, -6.2e-251], t$95$1, If[LessEqual[c, 1.15e-224], N[(N[(N[(N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.4e+102], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.4 \cdot 10^{+54}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -6.2 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{-224}:\\
\;\;\;\;\left(\left(z - a \cdot \frac{t}{y}\right) \cdot \left(x \cdot y\right) - z \cdot \left(b \cdot c\right)\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.39999999999999998e54 or 2.39999999999999994e102 < c Initial program 59.5%
Taylor expanded in c around inf 73.7%
*-commutative73.7%
Simplified73.7%
if -2.39999999999999998e54 < c < -6.20000000000000006e-251 or 1.14999999999999994e-224 < c < 2.39999999999999994e102Initial program 84.8%
Taylor expanded in j around 0 68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
if -6.20000000000000006e-251 < c < 1.14999999999999994e-224Initial program 91.7%
Taylor expanded in y around inf 91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
associate-/l*87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in x around 0 87.5%
associate-*r*87.6%
*-commutative87.6%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in c around 0 83.3%
mul-1-neg83.3%
associate-*r*87.6%
*-commutative87.6%
associate-*l*87.5%
distribute-rgt-neg-out87.5%
*-commutative87.5%
distribute-rgt-neg-in87.5%
Simplified87.5%
Taylor expanded in c around inf 87.5%
*-commutative87.5%
*-commutative87.5%
associate-*l*87.5%
Simplified87.5%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= c -2.05e+54) (not (<= c 4.5e+36)))
(* c (- (* a j) (* z b)))
(-
(+ (* (- z (* a (/ t y))) (* x y)) (* b (- (* t i) (* z c))))
(* j (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.05e+54) || !(c <= 4.5e+36)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (((z - (a * (t / y))) * (x * y)) + (b * ((t * i) - (z * c)))) - (j * (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.05d+54)) .or. (.not. (c <= 4.5d+36))) then
tmp = c * ((a * j) - (z * b))
else
tmp = (((z - (a * (t / y))) * (x * y)) + (b * ((t * i) - (z * c)))) - (j * (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.05e+54) || !(c <= 4.5e+36)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = (((z - (a * (t / y))) * (x * y)) + (b * ((t * i) - (z * c)))) - (j * (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.05e+54) or not (c <= 4.5e+36): tmp = c * ((a * j) - (z * b)) else: tmp = (((z - (a * (t / y))) * (x * y)) + (b * ((t * i) - (z * c)))) - (j * (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.05e+54) || !(c <= 4.5e+36)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(Float64(Float64(Float64(z - Float64(a * Float64(t / y))) * Float64(x * y)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) - Float64(j * Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.05e+54) || ~((c <= 4.5e+36))) tmp = c * ((a * j) - (z * b)); else tmp = (((z - (a * (t / y))) * (x * y)) + (b * ((t * i) - (z * c)))) - (j * (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.05e+54], N[Not[LessEqual[c, 4.5e+36]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.05 \cdot 10^{+54} \lor \neg \left(c \leq 4.5 \cdot 10^{+36}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(z - a \cdot \frac{t}{y}\right) \cdot \left(x \cdot y\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) - j \cdot \left(y \cdot i\right)\\
\end{array}
\end{array}
if c < -2.04999999999999984e54 or 4.49999999999999997e36 < c Initial program 61.7%
Taylor expanded in c around inf 73.3%
*-commutative73.3%
Simplified73.3%
if -2.04999999999999984e54 < c < 4.49999999999999997e36Initial program 86.5%
Taylor expanded in y around inf 83.9%
+-commutative83.9%
mul-1-neg83.9%
unsub-neg83.9%
associate-/l*81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in x around 0 83.3%
associate-*r*81.9%
*-commutative81.9%
associate-/l*82.6%
Simplified82.6%
Taylor expanded in c around 0 73.4%
mul-1-neg73.4%
associate-*r*76.1%
*-commutative76.1%
associate-*l*76.0%
distribute-rgt-neg-out76.0%
*-commutative76.0%
distribute-rgt-neg-in76.0%
Simplified76.0%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- i) (* y j))) (t_2 (* c (* a j))))
(if (<= a -2.3)
t_2
(if (<= a -7.3e-205)
t_1
(if (<= a -1.2e-267)
(* b (* t i))
(if (<= a 1.65e-220)
t_1
(if (<= a 1.85e+93) (* c (* z (- b))) 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 * (y * j);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.3) {
tmp = t_2;
} else if (a <= -7.3e-205) {
tmp = t_1;
} else if (a <= -1.2e-267) {
tmp = b * (t * i);
} else if (a <= 1.65e-220) {
tmp = t_1;
} else if (a <= 1.85e+93) {
tmp = c * (z * -b);
} 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 * (y * j)
t_2 = c * (a * j)
if (a <= (-2.3d0)) then
tmp = t_2
else if (a <= (-7.3d-205)) then
tmp = t_1
else if (a <= (-1.2d-267)) then
tmp = b * (t * i)
else if (a <= 1.65d-220) then
tmp = t_1
else if (a <= 1.85d+93) then
tmp = c * (z * -b)
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 * (y * j);
double t_2 = c * (a * j);
double tmp;
if (a <= -2.3) {
tmp = t_2;
} else if (a <= -7.3e-205) {
tmp = t_1;
} else if (a <= -1.2e-267) {
tmp = b * (t * i);
} else if (a <= 1.65e-220) {
tmp = t_1;
} else if (a <= 1.85e+93) {
tmp = c * (z * -b);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -i * (y * j) t_2 = c * (a * j) tmp = 0 if a <= -2.3: tmp = t_2 elif a <= -7.3e-205: tmp = t_1 elif a <= -1.2e-267: tmp = b * (t * i) elif a <= 1.65e-220: tmp = t_1 elif a <= 1.85e+93: tmp = c * (z * -b) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-i) * Float64(y * j)) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (a <= -2.3) tmp = t_2; elseif (a <= -7.3e-205) tmp = t_1; elseif (a <= -1.2e-267) tmp = Float64(b * Float64(t * i)); elseif (a <= 1.65e-220) tmp = t_1; elseif (a <= 1.85e+93) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -i * (y * j); t_2 = c * (a * j); tmp = 0.0; if (a <= -2.3) tmp = t_2; elseif (a <= -7.3e-205) tmp = t_1; elseif (a <= -1.2e-267) tmp = b * (t * i); elseif (a <= 1.65e-220) tmp = t_1; elseif (a <= 1.85e+93) tmp = c * (z * -b); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3], t$95$2, If[LessEqual[a, -7.3e-205], t$95$1, If[LessEqual[a, -1.2e-267], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e-220], t$95$1, If[LessEqual[a, 1.85e+93], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-i\right) \cdot \left(y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;a \leq -2.3:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7.3 \cdot 10^{-205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-267}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+93}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.2999999999999998 or 1.84999999999999994e93 < a Initial program 68.9%
Taylor expanded in a around inf 65.6%
+-commutative65.6%
mul-1-neg65.6%
unsub-neg65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in c around inf 66.5%
mul-1-neg66.5%
unsub-neg66.5%
associate-/l*66.0%
Simplified66.0%
Taylor expanded in c around inf 45.7%
*-commutative45.7%
associate-*r*46.4%
Simplified46.4%
if -2.2999999999999998 < a < -7.29999999999999992e-205 or -1.1999999999999999e-267 < a < 1.65e-220Initial program 86.0%
Taylor expanded in j around inf 47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 40.9%
mul-1-neg40.9%
distribute-rgt-neg-in40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if -7.29999999999999992e-205 < a < -1.1999999999999999e-267Initial program 66.7%
Taylor expanded in b around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in t around inf 50.6%
*-commutative50.6%
Simplified50.6%
if 1.65e-220 < a < 1.84999999999999994e93Initial program 80.4%
Taylor expanded in b around inf 52.0%
*-commutative52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in t around 0 35.9%
mul-1-neg35.9%
*-commutative35.9%
*-commutative35.9%
*-commutative35.9%
associate-*r*35.8%
*-commutative35.8%
distribute-rgt-neg-out35.8%
distribute-rgt-neg-in35.8%
Simplified35.8%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -2.8e-25)
t_2
(if (<= a -5.2e-273)
t_1
(if (<= a 4.5e-307) (* y (* j (- i))) (if (<= a 1.3e+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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.8e-25) {
tmp = t_2;
} else if (a <= -5.2e-273) {
tmp = t_1;
} else if (a <= 4.5e-307) {
tmp = y * (j * -i);
} else if (a <= 1.3e+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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-2.8d-25)) then
tmp = t_2
else if (a <= (-5.2d-273)) then
tmp = t_1
else if (a <= 4.5d-307) then
tmp = y * (j * -i)
else if (a <= 1.3d+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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.8e-25) {
tmp = t_2;
} else if (a <= -5.2e-273) {
tmp = t_1;
} else if (a <= 4.5e-307) {
tmp = y * (j * -i);
} else if (a <= 1.3e+79) {
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 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.8e-25: tmp = t_2 elif a <= -5.2e-273: tmp = t_1 elif a <= 4.5e-307: tmp = y * (j * -i) elif a <= 1.3e+79: 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(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.8e-25) tmp = t_2; elseif (a <= -5.2e-273) tmp = t_1; elseif (a <= 4.5e-307) tmp = Float64(y * Float64(j * Float64(-i))); elseif (a <= 1.3e+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 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.8e-25) tmp = t_2; elseif (a <= -5.2e-273) tmp = t_1; elseif (a <= 4.5e-307) tmp = y * (j * -i); elseif (a <= 1.3e+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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.8e-25], t$95$2, If[LessEqual[a, -5.2e-273], t$95$1, If[LessEqual[a, 4.5e-307], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+79], 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 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{-25}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-273}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-307}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.79999999999999988e-25 or 1.30000000000000007e79 < a Initial program 69.9%
Taylor expanded in a around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
if -2.79999999999999988e-25 < a < -5.19999999999999967e-273 or 4.49999999999999989e-307 < a < 1.30000000000000007e79Initial program 82.2%
Taylor expanded in b around inf 50.7%
*-commutative50.7%
*-commutative50.7%
Simplified50.7%
if -5.19999999999999967e-273 < a < 4.49999999999999989e-307Initial program 75.5%
Taylor expanded in j around inf 60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in a around 0 60.1%
mul-1-neg60.1%
associate-*r*60.2%
Simplified60.2%
Final simplification58.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -3.8e+118)
t_2
(if (<= b -1.45e-134)
t_1
(if (<= b 0.0025)
(* a (- (* c j) (* x t)))
(if (<= b 4.5e+65) 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 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.8e+118) {
tmp = t_2;
} else if (b <= -1.45e-134) {
tmp = t_1;
} else if (b <= 0.0025) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 4.5e+65) {
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 = c * ((a * j) - (z * b))
t_2 = b * ((t * i) - (z * c))
if (b <= (-3.8d+118)) then
tmp = t_2
else if (b <= (-1.45d-134)) then
tmp = t_1
else if (b <= 0.0025d0) then
tmp = a * ((c * j) - (x * t))
else if (b <= 4.5d+65) 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 = c * ((a * j) - (z * b));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.8e+118) {
tmp = t_2;
} else if (b <= -1.45e-134) {
tmp = t_1;
} else if (b <= 0.0025) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 4.5e+65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.8e+118: tmp = t_2 elif b <= -1.45e-134: tmp = t_1 elif b <= 0.0025: tmp = a * ((c * j) - (x * t)) elif b <= 4.5e+65: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.8e+118) tmp = t_2; elseif (b <= -1.45e-134) tmp = t_1; elseif (b <= 0.0025) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 4.5e+65) 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 = c * ((a * j) - (z * b)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.8e+118) tmp = t_2; elseif (b <= -1.45e-134) tmp = t_1; elseif (b <= 0.0025) tmp = a * ((c * j) - (x * t)); elseif (b <= 4.5e+65) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e+118], t$95$2, If[LessEqual[b, -1.45e-134], t$95$1, If[LessEqual[b, 0.0025], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e+65], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{+118}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 0.0025:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.80000000000000016e118 or 4.5e65 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -3.80000000000000016e118 < b < -1.44999999999999997e-134 or 0.00250000000000000005 < b < 4.5e65Initial program 72.4%
Taylor expanded in c around inf 54.1%
*-commutative54.1%
Simplified54.1%
if -1.44999999999999997e-134 < b < 0.00250000000000000005Initial program 78.9%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
*-commutative52.5%
Simplified52.5%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -4e+117)
t_1
(if (<= b 2.35e-228)
(* j (- (* a c) (* y i)))
(if (<= b 0.0065)
(* a (- (* c j) (* x t)))
(if (<= b 3.1e+66) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4e+117) {
tmp = t_1;
} else if (b <= 2.35e-228) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.0065) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.1e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-4d+117)) then
tmp = t_1
else if (b <= 2.35d-228) then
tmp = j * ((a * c) - (y * i))
else if (b <= 0.0065d0) then
tmp = a * ((c * j) - (x * t))
else if (b <= 3.1d+66) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4e+117) {
tmp = t_1;
} else if (b <= 2.35e-228) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.0065) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.1e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4e+117: tmp = t_1 elif b <= 2.35e-228: tmp = j * ((a * c) - (y * i)) elif b <= 0.0065: tmp = a * ((c * j) - (x * t)) elif b <= 3.1e+66: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4e+117) tmp = t_1; elseif (b <= 2.35e-228) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 0.0065) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 3.1e+66) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4e+117) tmp = t_1; elseif (b <= 2.35e-228) tmp = j * ((a * c) - (y * i)); elseif (b <= 0.0065) tmp = a * ((c * j) - (x * t)); elseif (b <= 3.1e+66) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+117], t$95$1, If[LessEqual[b, 2.35e-228], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.0065], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+66], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{-228}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.0065:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.0000000000000002e117 or 3.10000000000000019e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -4.0000000000000002e117 < b < 2.3500000000000001e-228Initial program 78.2%
Taylor expanded in j around inf 54.3%
*-commutative54.3%
Simplified54.3%
if 2.3500000000000001e-228 < b < 0.0064999999999999997Initial program 76.3%
Taylor expanded in a around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
if 0.0064999999999999997 < b < 3.10000000000000019e66Initial program 62.3%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.5e+116)
t_1
(if (<= b 5.8e-306)
(* j (- (* a c) (* y i)))
(if (<= b 0.00068)
(* x (- (* y z) (* t a)))
(if (<= b 1.06e+66) (* c (- (* a j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+116) {
tmp = t_1;
} else if (b <= 5.8e-306) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.00068) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.06e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.5d+116)) then
tmp = t_1
else if (b <= 5.8d-306) then
tmp = j * ((a * c) - (y * i))
else if (b <= 0.00068d0) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1.06d+66) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.5e+116) {
tmp = t_1;
} else if (b <= 5.8e-306) {
tmp = j * ((a * c) - (y * i));
} else if (b <= 0.00068) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.06e+66) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.5e+116: tmp = t_1 elif b <= 5.8e-306: tmp = j * ((a * c) - (y * i)) elif b <= 0.00068: tmp = x * ((y * z) - (t * a)) elif b <= 1.06e+66: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.5e+116) tmp = t_1; elseif (b <= 5.8e-306) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (b <= 0.00068) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1.06e+66) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.5e+116) tmp = t_1; elseif (b <= 5.8e-306) tmp = j * ((a * c) - (y * i)); elseif (b <= 0.00068) tmp = x * ((y * z) - (t * a)); elseif (b <= 1.06e+66) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.5e+116], t$95$1, If[LessEqual[b, 5.8e-306], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.00068], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e+66], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.5 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{-306}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 0.00068:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.49999999999999997e116 or 1.06000000000000004e66 < b Initial program 75.7%
Taylor expanded in b around inf 73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
if -3.49999999999999997e116 < b < 5.7999999999999998e-306Initial program 80.3%
Taylor expanded in j around inf 56.6%
*-commutative56.6%
Simplified56.6%
if 5.7999999999999998e-306 < b < 6.8e-4Initial program 73.4%
sub-neg73.4%
distribute-rgt-in73.4%
*-commutative73.4%
distribute-rgt-neg-in73.4%
Applied egg-rr73.4%
Taylor expanded in x around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
if 6.8e-4 < b < 1.06000000000000004e66Initial program 62.3%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.9e+58)
(* (* y i) (- j))
(if (<= i 1.4e-162)
(* z (* b (- c)))
(if (<= i 9.2e+147)
(* j (* a c))
(if (<= i 4e+223) (* (- i) (* y j)) (* b (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e+58) {
tmp = (y * i) * -j;
} else if (i <= 1.4e-162) {
tmp = z * (b * -c);
} else if (i <= 9.2e+147) {
tmp = j * (a * c);
} else if (i <= 4e+223) {
tmp = -i * (y * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.9d+58)) then
tmp = (y * i) * -j
else if (i <= 1.4d-162) then
tmp = z * (b * -c)
else if (i <= 9.2d+147) then
tmp = j * (a * c)
else if (i <= 4d+223) then
tmp = -i * (y * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e+58) {
tmp = (y * i) * -j;
} else if (i <= 1.4e-162) {
tmp = z * (b * -c);
} else if (i <= 9.2e+147) {
tmp = j * (a * c);
} else if (i <= 4e+223) {
tmp = -i * (y * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.9e+58: tmp = (y * i) * -j elif i <= 1.4e-162: tmp = z * (b * -c) elif i <= 9.2e+147: tmp = j * (a * c) elif i <= 4e+223: tmp = -i * (y * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.9e+58) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (i <= 1.4e-162) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= 9.2e+147) tmp = Float64(j * Float64(a * c)); elseif (i <= 4e+223) tmp = Float64(Float64(-i) * Float64(y * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.9e+58) tmp = (y * i) * -j; elseif (i <= 1.4e-162) tmp = z * (b * -c); elseif (i <= 9.2e+147) tmp = j * (a * c); elseif (i <= 4e+223) tmp = -i * (y * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.9e+58], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[i, 1.4e-162], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e+147], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4e+223], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.9 \cdot 10^{+58}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-162}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+147}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{+223}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.8999999999999999e58Initial program 65.9%
Taylor expanded in j around inf 62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in a around 0 51.0%
neg-mul-151.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
if -1.8999999999999999e58 < i < 1.40000000000000011e-162Initial program 82.8%
sub-neg82.8%
distribute-rgt-in82.8%
*-commutative82.8%
distribute-rgt-neg-in82.8%
Applied egg-rr82.8%
Taylor expanded in z around inf 54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in y around 0 32.7%
neg-mul-132.7%
distribute-lft-neg-in32.7%
*-commutative32.7%
Simplified32.7%
if 1.40000000000000011e-162 < i < 9.1999999999999997e147Initial program 81.9%
Taylor expanded in j around inf 45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
Simplified39.3%
if 9.1999999999999997e147 < i < 4.00000000000000019e223Initial program 54.0%
Taylor expanded in j around inf 71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in a around 0 66.5%
mul-1-neg66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
if 4.00000000000000019e223 < i Initial program 56.2%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around inf 69.5%
*-commutative69.5%
Simplified69.5%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -3.3e+58)
(* (* y i) (- j))
(if (<= i 5.7e-160)
(* b (* z (- c)))
(if (<= i 3.9e+149)
(* j (* a c))
(if (<= i 3.8e+223) (* (- i) (* y j)) (* b (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3.3e+58) {
tmp = (y * i) * -j;
} else if (i <= 5.7e-160) {
tmp = b * (z * -c);
} else if (i <= 3.9e+149) {
tmp = j * (a * c);
} else if (i <= 3.8e+223) {
tmp = -i * (y * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-3.3d+58)) then
tmp = (y * i) * -j
else if (i <= 5.7d-160) then
tmp = b * (z * -c)
else if (i <= 3.9d+149) then
tmp = j * (a * c)
else if (i <= 3.8d+223) then
tmp = -i * (y * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -3.3e+58) {
tmp = (y * i) * -j;
} else if (i <= 5.7e-160) {
tmp = b * (z * -c);
} else if (i <= 3.9e+149) {
tmp = j * (a * c);
} else if (i <= 3.8e+223) {
tmp = -i * (y * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3.3e+58: tmp = (y * i) * -j elif i <= 5.7e-160: tmp = b * (z * -c) elif i <= 3.9e+149: tmp = j * (a * c) elif i <= 3.8e+223: tmp = -i * (y * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.3e+58) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (i <= 5.7e-160) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 3.9e+149) tmp = Float64(j * Float64(a * c)); elseif (i <= 3.8e+223) tmp = Float64(Float64(-i) * Float64(y * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3.3e+58) tmp = (y * i) * -j; elseif (i <= 5.7e-160) tmp = b * (z * -c); elseif (i <= 3.9e+149) tmp = j * (a * c); elseif (i <= 3.8e+223) tmp = -i * (y * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.3e+58], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[i, 5.7e-160], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.9e+149], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e+223], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{+58}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;i \leq 5.7 \cdot 10^{-160}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+149}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{+223}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -3.29999999999999983e58Initial program 65.9%
Taylor expanded in j around inf 62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in a around 0 51.0%
neg-mul-151.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
if -3.29999999999999983e58 < i < 5.70000000000000038e-160Initial program 82.8%
Taylor expanded in b around inf 40.0%
*-commutative40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in t around 0 33.1%
associate-*r*33.1%
neg-mul-133.1%
*-commutative33.1%
Simplified33.1%
if 5.70000000000000038e-160 < i < 3.8999999999999999e149Initial program 81.9%
Taylor expanded in j around inf 45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in a around inf 39.3%
*-commutative39.3%
Simplified39.3%
if 3.8999999999999999e149 < i < 3.8e223Initial program 54.0%
Taylor expanded in j around inf 71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in a around 0 66.5%
mul-1-neg66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
distribute-rgt-neg-in66.5%
Simplified66.5%
if 3.8e223 < i Initial program 56.2%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around inf 69.5%
*-commutative69.5%
Simplified69.5%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= c -2.95e-52)
(* a (* c j))
(if (<= c 9.5e-94)
t_1
(if (<= c 4.8e+25)
(* z (* x y))
(if (<= c 1.55e+98) t_1 (* j (* a c))))))))
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);
double tmp;
if (c <= -2.95e-52) {
tmp = a * (c * j);
} else if (c <= 9.5e-94) {
tmp = t_1;
} else if (c <= 4.8e+25) {
tmp = z * (x * y);
} else if (c <= 1.55e+98) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (c <= (-2.95d-52)) then
tmp = a * (c * j)
else if (c <= 9.5d-94) then
tmp = t_1
else if (c <= 4.8d+25) then
tmp = z * (x * y)
else if (c <= 1.55d+98) then
tmp = t_1
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 t_1 = t * (b * i);
double tmp;
if (c <= -2.95e-52) {
tmp = a * (c * j);
} else if (c <= 9.5e-94) {
tmp = t_1;
} else if (c <= 4.8e+25) {
tmp = z * (x * y);
} else if (c <= 1.55e+98) {
tmp = t_1;
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if c <= -2.95e-52: tmp = a * (c * j) elif c <= 9.5e-94: tmp = t_1 elif c <= 4.8e+25: tmp = z * (x * y) elif c <= 1.55e+98: tmp = t_1 else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (c <= -2.95e-52) tmp = Float64(a * Float64(c * j)); elseif (c <= 9.5e-94) tmp = t_1; elseif (c <= 4.8e+25) tmp = Float64(z * Float64(x * y)); elseif (c <= 1.55e+98) tmp = t_1; else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (b * i); tmp = 0.0; if (c <= -2.95e-52) tmp = a * (c * j); elseif (c <= 9.5e-94) tmp = t_1; elseif (c <= 4.8e+25) tmp = z * (x * y); elseif (c <= 1.55e+98) tmp = t_1; else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.95e-52], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-94], t$95$1, If[LessEqual[c, 4.8e+25], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e+98], t$95$1, N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;c \leq -2.95 \cdot 10^{-52}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{+25}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -2.9500000000000001e-52Initial program 67.7%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 43.8%
if -2.9500000000000001e-52 < c < 9.4999999999999997e-94 or 4.79999999999999992e25 < c < 1.5500000000000001e98Initial program 86.6%
Taylor expanded in b around inf 40.6%
*-commutative40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in t around inf 26.5%
*-commutative26.5%
associate-*r*28.1%
*-commutative28.1%
associate-*r*29.9%
Simplified29.9%
if 9.4999999999999997e-94 < c < 4.79999999999999992e25Initial program 81.1%
sub-neg81.1%
distribute-rgt-in81.1%
*-commutative81.1%
distribute-rgt-neg-in81.1%
Applied egg-rr81.1%
Taylor expanded in z around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in y around inf 36.4%
if 1.5500000000000001e98 < c Initial program 60.9%
Taylor expanded in j around inf 53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in a around inf 49.2%
*-commutative49.2%
Simplified49.2%
Final simplification38.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -7.1e-57)
t_1
(if (<= a 1.35e-220)
(* (- i) (* y j))
(if (<= a 1.42e+79) (* b (* 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.1e-57) {
tmp = t_1;
} else if (a <= 1.35e-220) {
tmp = -i * (y * j);
} else if (a <= 1.42e+79) {
tmp = b * (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 = a * ((c * j) - (x * t))
if (a <= (-7.1d-57)) then
tmp = t_1
else if (a <= 1.35d-220) then
tmp = -i * (y * j)
else if (a <= 1.42d+79) then
tmp = b * (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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -7.1e-57) {
tmp = t_1;
} else if (a <= 1.35e-220) {
tmp = -i * (y * j);
} else if (a <= 1.42e+79) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -7.1e-57: tmp = t_1 elif a <= 1.35e-220: tmp = -i * (y * j) elif a <= 1.42e+79: tmp = b * (z * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -7.1e-57) tmp = t_1; elseif (a <= 1.35e-220) tmp = Float64(Float64(-i) * Float64(y * j)); elseif (a <= 1.42e+79) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -7.1e-57) tmp = t_1; elseif (a <= 1.35e-220) tmp = -i * (y * j); elseif (a <= 1.42e+79) tmp = b * (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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.1e-57], t$95$1, If[LessEqual[a, 1.35e-220], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.42e+79], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -7.1 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-220}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.42 \cdot 10^{+79}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.1e-57 or 1.41999999999999998e79 < a Initial program 70.2%
Taylor expanded in a around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
if -7.1e-57 < a < 1.35e-220Initial program 84.0%
Taylor expanded in j around inf 43.6%
*-commutative43.6%
Simplified43.6%
Taylor expanded in a around 0 39.1%
mul-1-neg39.1%
distribute-rgt-neg-in39.1%
*-commutative39.1%
distribute-rgt-neg-in39.1%
Simplified39.1%
if 1.35e-220 < a < 1.41999999999999998e79Initial program 80.1%
Taylor expanded in b around inf 52.7%
*-commutative52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in t around 0 36.5%
associate-*r*36.5%
neg-mul-136.5%
*-commutative36.5%
Simplified36.5%
Final simplification50.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -6.4e-39)
(* a (* c (- j (* t (/ x c)))))
(if (<= a -8.6e-308)
(* i (- (* t b) (* y j)))
(if (<= a 7e+80) (* z (- (* x y) (* b c))) (* 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 (a <= -6.4e-39) {
tmp = a * (c * (j - (t * (x / c))));
} else if (a <= -8.6e-308) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 7e+80) {
tmp = z * ((x * y) - (b * c));
} 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 (a <= (-6.4d-39)) then
tmp = a * (c * (j - (t * (x / c))))
else if (a <= (-8.6d-308)) then
tmp = i * ((t * b) - (y * j))
else if (a <= 7d+80) then
tmp = z * ((x * y) - (b * c))
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 (a <= -6.4e-39) {
tmp = a * (c * (j - (t * (x / c))));
} else if (a <= -8.6e-308) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 7e+80) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.4e-39: tmp = a * (c * (j - (t * (x / c)))) elif a <= -8.6e-308: tmp = i * ((t * b) - (y * j)) elif a <= 7e+80: tmp = z * ((x * y) - (b * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.4e-39) tmp = Float64(a * Float64(c * Float64(j - Float64(t * Float64(x / c))))); elseif (a <= -8.6e-308) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 7e+80) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); 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 (a <= -6.4e-39) tmp = a * (c * (j - (t * (x / c)))); elseif (a <= -8.6e-308) tmp = i * ((t * b) - (y * j)); elseif (a <= 7e+80) tmp = z * ((x * y) - (b * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.4e-39], N[(a * N[(c * N[(j - N[(t * N[(x / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.6e-308], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+80], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.4 \cdot 10^{-39}:\\
\;\;\;\;a \cdot \left(c \cdot \left(j - t \cdot \frac{x}{c}\right)\right)\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-308}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+80}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if a < -6.3999999999999995e-39Initial program 68.6%
Taylor expanded in a around inf 61.7%
+-commutative61.7%
mul-1-neg61.7%
unsub-neg61.7%
*-commutative61.7%
*-commutative61.7%
Simplified61.7%
Taylor expanded in c around inf 64.1%
mul-1-neg64.1%
unsub-neg64.1%
associate-/l*65.3%
Simplified65.3%
if -6.3999999999999995e-39 < a < -8.60000000000000041e-308Initial program 79.7%
Taylor expanded in i around inf 62.4%
distribute-lft-out--62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
if -8.60000000000000041e-308 < a < 6.99999999999999987e80Initial program 83.3%
Taylor expanded in z around inf 54.5%
*-commutative54.5%
Simplified54.5%
if 6.99999999999999987e80 < a Initial program 72.2%
Taylor expanded in a around inf 67.9%
+-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Final simplification61.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4e-22) (not (<= a 1.8e+93))) (* c (* a j)) (* c (* z (- b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4e-22) || !(a <= 1.8e+93)) {
tmp = c * (a * j);
} else {
tmp = c * (z * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-4d-22)) .or. (.not. (a <= 1.8d+93))) then
tmp = c * (a * j)
else
tmp = c * (z * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4e-22) || !(a <= 1.8e+93)) {
tmp = c * (a * j);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -4e-22) or not (a <= 1.8e+93): tmp = c * (a * j) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -4e-22) || !(a <= 1.8e+93)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -4e-22) || ~((a <= 1.8e+93))) tmp = c * (a * j); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -4e-22], N[Not[LessEqual[a, 1.8e+93]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{-22} \lor \neg \left(a \leq 1.8 \cdot 10^{+93}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if a < -4.0000000000000002e-22 or 1.8e93 < a Initial program 69.4%
Taylor expanded in a around inf 64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in c around inf 66.3%
mul-1-neg66.3%
unsub-neg66.3%
associate-/l*66.6%
Simplified66.6%
Taylor expanded in c around inf 44.7%
*-commutative44.7%
associate-*r*45.4%
Simplified45.4%
if -4.0000000000000002e-22 < a < 1.8e93Initial program 81.8%
Taylor expanded in b around inf 47.2%
*-commutative47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in t around 0 31.0%
mul-1-neg31.0%
*-commutative31.0%
*-commutative31.0%
*-commutative31.0%
associate-*r*30.3%
*-commutative30.3%
distribute-rgt-neg-out30.3%
distribute-rgt-neg-in30.3%
Simplified30.3%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -2.2) (* c (* a j)) (if (<= a 4.8e-112) (* y (* j (- i))) (* 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 (a <= -2.2) {
tmp = c * (a * j);
} else if (a <= 4.8e-112) {
tmp = y * (j * -i);
} 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 (a <= (-2.2d0)) then
tmp = c * (a * j)
else if (a <= 4.8d-112) then
tmp = y * (j * -i)
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 (a <= -2.2) {
tmp = c * (a * j);
} else if (a <= 4.8e-112) {
tmp = y * (j * -i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.2: tmp = c * (a * j) elif a <= 4.8e-112: tmp = y * (j * -i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.2) tmp = Float64(c * Float64(a * j)); elseif (a <= 4.8e-112) tmp = Float64(y * Float64(j * Float64(-i))); 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 (a <= -2.2) tmp = c * (a * j); elseif (a <= 4.8e-112) tmp = y * (j * -i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e-112], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-112}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if a < -2.2000000000000002Initial program 67.5%
Taylor expanded in a around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in c around inf 66.2%
mul-1-neg66.2%
unsub-neg66.2%
associate-/l*66.2%
Simplified66.2%
Taylor expanded in c around inf 45.0%
*-commutative45.0%
associate-*r*45.0%
Simplified45.0%
if -2.2000000000000002 < a < 4.8000000000000001e-112Initial program 78.9%
Taylor expanded in j around inf 38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in a around 0 32.6%
mul-1-neg32.6%
associate-*r*28.2%
Simplified28.2%
if 4.8000000000000001e-112 < a Initial program 80.3%
Taylor expanded in j around inf 39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in a around inf 34.5%
*-commutative34.5%
Simplified34.5%
Final simplification35.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.8e-54) (not (<= c 6e-122))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e-54) || !(c <= 6e-122)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.8d-54)) .or. (.not. (c <= 6d-122))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e-54) || !(c <= 6e-122)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.8e-54) or not (c <= 6e-122): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.8e-54) || !(c <= 6e-122)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.8e-54) || ~((c <= 6e-122))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.8e-54], N[Not[LessEqual[c, 6e-122]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{-54} \lor \neg \left(c \leq 6 \cdot 10^{-122}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -3.8000000000000002e-54 or 6.00000000000000009e-122 < c Initial program 69.4%
Taylor expanded in a around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in j around inf 38.2%
if -3.8000000000000002e-54 < c < 6.00000000000000009e-122Initial program 87.4%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 28.4%
*-commutative28.4%
Simplified28.4%
Final simplification34.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4.5e-52) (* a (* c j)) (if (<= c 3.6e-123) (* b (* t i)) (* c (* a j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4.5e-52) {
tmp = a * (c * j);
} else if (c <= 3.6e-123) {
tmp = b * (t * i);
} else {
tmp = c * (a * 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 (c <= (-4.5d-52)) then
tmp = a * (c * j)
else if (c <= 3.6d-123) then
tmp = b * (t * i)
else
tmp = c * (a * 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 (c <= -4.5e-52) {
tmp = a * (c * j);
} else if (c <= 3.6e-123) {
tmp = b * (t * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.5e-52: tmp = a * (c * j) elif c <= 3.6e-123: tmp = b * (t * i) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.5e-52) tmp = Float64(a * Float64(c * j)); elseif (c <= 3.6e-123) tmp = Float64(b * Float64(t * i)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4.5e-52) tmp = a * (c * j); elseif (c <= 3.6e-123) tmp = b * (t * i); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.5e-52], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.6e-123], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.5 \cdot 10^{-52}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-123}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if c < -4.5e-52Initial program 67.7%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 43.8%
if -4.5e-52 < c < 3.5999999999999997e-123Initial program 87.4%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 28.4%
*-commutative28.4%
Simplified28.4%
if 3.5999999999999997e-123 < c Initial program 70.8%
Taylor expanded in a around inf 41.2%
+-commutative41.2%
mul-1-neg41.2%
unsub-neg41.2%
*-commutative41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in c around inf 42.4%
mul-1-neg42.4%
unsub-neg42.4%
associate-/l*40.1%
Simplified40.1%
Taylor expanded in c around inf 33.3%
*-commutative33.3%
associate-*r*35.5%
Simplified35.5%
Final simplification35.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4e-53) (* a (* c j)) (if (<= c 2.5e-122) (* i (* t b)) (* c (* a j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -4e-53) {
tmp = a * (c * j);
} else if (c <= 2.5e-122) {
tmp = i * (t * b);
} else {
tmp = c * (a * 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 (c <= (-4d-53)) then
tmp = a * (c * j)
else if (c <= 2.5d-122) then
tmp = i * (t * b)
else
tmp = c * (a * 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 (c <= -4e-53) {
tmp = a * (c * j);
} else if (c <= 2.5e-122) {
tmp = i * (t * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4e-53: tmp = a * (c * j) elif c <= 2.5e-122: tmp = i * (t * b) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4e-53) tmp = Float64(a * Float64(c * j)); elseif (c <= 2.5e-122) tmp = Float64(i * Float64(t * b)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4e-53) tmp = a * (c * j); elseif (c <= 2.5e-122) tmp = i * (t * b); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4e-53], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e-122], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4 \cdot 10^{-53}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-122}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if c < -4.00000000000000012e-53Initial program 67.7%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 43.8%
if -4.00000000000000012e-53 < c < 2.4999999999999999e-122Initial program 87.4%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 28.4%
*-commutative28.4%
Simplified28.4%
Taylor expanded in b around 0 28.4%
associate-*r*29.3%
*-commutative29.3%
associate-*l*29.3%
Simplified29.3%
if 2.4999999999999999e-122 < c Initial program 70.8%
Taylor expanded in a around inf 41.2%
+-commutative41.2%
mul-1-neg41.2%
unsub-neg41.2%
*-commutative41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in c around inf 42.4%
mul-1-neg42.4%
unsub-neg42.4%
associate-/l*40.1%
Simplified40.1%
Taylor expanded in c around inf 33.3%
*-commutative33.3%
associate-*r*35.5%
Simplified35.5%
Final simplification35.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4.2e-54) (* a (* c j)) (if (<= c 1.55e-122) (* i (* t b)) (* 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 <= -4.2e-54) {
tmp = a * (c * j);
} else if (c <= 1.55e-122) {
tmp = i * (t * b);
} 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 <= (-4.2d-54)) then
tmp = a * (c * j)
else if (c <= 1.55d-122) then
tmp = i * (t * b)
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 <= -4.2e-54) {
tmp = a * (c * j);
} else if (c <= 1.55e-122) {
tmp = i * (t * b);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.2e-54: tmp = a * (c * j) elif c <= 1.55e-122: tmp = i * (t * b) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.2e-54) tmp = Float64(a * Float64(c * j)); elseif (c <= 1.55e-122) tmp = Float64(i * Float64(t * b)); 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 <= -4.2e-54) tmp = a * (c * j); elseif (c <= 1.55e-122) tmp = i * (t * b); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.2e-54], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e-122], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{-122}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -4.2e-54Initial program 67.7%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 43.8%
if -4.2e-54 < c < 1.5499999999999999e-122Initial program 87.4%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 28.4%
*-commutative28.4%
Simplified28.4%
Taylor expanded in b around 0 28.4%
associate-*r*29.3%
*-commutative29.3%
associate-*l*29.3%
Simplified29.3%
if 1.5499999999999999e-122 < c Initial program 70.8%
Taylor expanded in j around inf 48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in a around inf 36.8%
*-commutative36.8%
Simplified36.8%
Final simplification36.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -7.6e-51) (* a (* c j)) (if (<= c 3.8e-122) (* t (* b i)) (* 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 <= -7.6e-51) {
tmp = a * (c * j);
} else if (c <= 3.8e-122) {
tmp = t * (b * i);
} 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 <= (-7.6d-51)) then
tmp = a * (c * j)
else if (c <= 3.8d-122) then
tmp = t * (b * i)
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 <= -7.6e-51) {
tmp = a * (c * j);
} else if (c <= 3.8e-122) {
tmp = t * (b * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -7.6e-51: tmp = a * (c * j) elif c <= 3.8e-122: tmp = t * (b * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -7.6e-51) tmp = Float64(a * Float64(c * j)); elseif (c <= 3.8e-122) tmp = Float64(t * Float64(b * i)); 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 <= -7.6e-51) tmp = a * (c * j); elseif (c <= 3.8e-122) tmp = t * (b * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -7.6e-51], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e-122], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.6 \cdot 10^{-51}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{-122}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if c < -7.60000000000000006e-51Initial program 67.7%
Taylor expanded in a around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in j around inf 43.8%
if -7.60000000000000006e-51 < c < 3.8000000000000001e-122Initial program 87.4%
Taylor expanded in b around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 28.4%
*-commutative28.4%
associate-*r*29.3%
*-commutative29.3%
associate-*r*29.3%
Simplified29.3%
if 3.8000000000000001e-122 < c Initial program 70.8%
Taylor expanded in j around inf 48.4%
*-commutative48.4%
Simplified48.4%
Taylor expanded in a around inf 36.8%
*-commutative36.8%
Simplified36.8%
Final simplification36.1%
(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 76.1%
Taylor expanded in a around inf 38.8%
+-commutative38.8%
mul-1-neg38.8%
unsub-neg38.8%
*-commutative38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in j around inf 25.3%
Final simplification25.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024053
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(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)))))