
(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 28 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 (* a (* t (- (* b (/ i a)) x))))))
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 = a * (t * ((b * (i / a)) - x));
}
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 = a * (t * ((b * (i / a)) - x));
}
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 = a * (t * ((b * (i / a)) - x)) 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(a * Float64(t * Float64(Float64(b * Float64(i / a)) - x))); 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 = a * (t * ((b * (i / a)) - x)); 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[(a * N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $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}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.8%
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 a around -inf 33.3%
Simplified41.6%
Taylor expanded in t around inf 55.0%
associate-*r*55.0%
neg-mul-155.0%
associate-/l*55.1%
Simplified55.1%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* y j) (- i))) (t_2 (* t (* b i))))
(if (<= i -2.9e+171)
t_2
(if (<= i -1.55e-31)
t_1
(if (<= i 8e-187)
(* a (* x (- t)))
(if (<= i 3.4e-63)
(* a (* c j))
(if (<= i 1.02e+120)
(* b (* z (- c)))
(if (<= i 1.06e+178) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * j) * -i;
double t_2 = t * (b * i);
double tmp;
if (i <= -2.9e+171) {
tmp = t_2;
} else if (i <= -1.55e-31) {
tmp = t_1;
} else if (i <= 8e-187) {
tmp = a * (x * -t);
} else if (i <= 3.4e-63) {
tmp = a * (c * j);
} else if (i <= 1.02e+120) {
tmp = b * (z * -c);
} else if (i <= 1.06e+178) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * j) * -i
t_2 = t * (b * i)
if (i <= (-2.9d+171)) then
tmp = t_2
else if (i <= (-1.55d-31)) then
tmp = t_1
else if (i <= 8d-187) then
tmp = a * (x * -t)
else if (i <= 3.4d-63) then
tmp = a * (c * j)
else if (i <= 1.02d+120) then
tmp = b * (z * -c)
else if (i <= 1.06d+178) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * j) * -i;
double t_2 = t * (b * i);
double tmp;
if (i <= -2.9e+171) {
tmp = t_2;
} else if (i <= -1.55e-31) {
tmp = t_1;
} else if (i <= 8e-187) {
tmp = a * (x * -t);
} else if (i <= 3.4e-63) {
tmp = a * (c * j);
} else if (i <= 1.02e+120) {
tmp = b * (z * -c);
} else if (i <= 1.06e+178) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * j) * -i t_2 = t * (b * i) tmp = 0 if i <= -2.9e+171: tmp = t_2 elif i <= -1.55e-31: tmp = t_1 elif i <= 8e-187: tmp = a * (x * -t) elif i <= 3.4e-63: tmp = a * (c * j) elif i <= 1.02e+120: tmp = b * (z * -c) elif i <= 1.06e+178: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * j) * Float64(-i)) t_2 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -2.9e+171) tmp = t_2; elseif (i <= -1.55e-31) tmp = t_1; elseif (i <= 8e-187) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 3.4e-63) tmp = Float64(a * Float64(c * j)); elseif (i <= 1.02e+120) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 1.06e+178) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * j) * -i; t_2 = t * (b * i); tmp = 0.0; if (i <= -2.9e+171) tmp = t_2; elseif (i <= -1.55e-31) tmp = t_1; elseif (i <= 8e-187) tmp = a * (x * -t); elseif (i <= 3.4e-63) tmp = a * (c * j); elseif (i <= 1.02e+120) tmp = b * (z * -c); elseif (i <= 1.06e+178) 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[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.9e+171], t$95$2, If[LessEqual[i, -1.55e-31], t$95$1, If[LessEqual[i, 8e-187], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.4e-63], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.02e+120], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.06e+178], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y \cdot j\right) \cdot \left(-i\right)\\
t_2 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2.9 \cdot 10^{+171}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.55 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 8 \cdot 10^{-187}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{+120}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 1.06 \cdot 10^{+178}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.89999999999999985e171 or 1.05999999999999994e178 < i Initial program 60.6%
Taylor expanded in j around 0 59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in i around inf 46.3%
associate-*r*52.0%
Simplified52.0%
if -2.89999999999999985e171 < i < -1.55e-31 or 1.01999999999999997e120 < i < 1.05999999999999994e178Initial program 72.6%
Taylor expanded in a around -inf 72.8%
Simplified73.1%
Taylor expanded in j around inf 58.3%
associate-*r*57.5%
mul-1-neg57.5%
unsub-neg57.5%
associate-/l*57.6%
Simplified57.6%
Taylor expanded in a around 0 55.5%
mul-1-neg55.5%
*-commutative55.5%
distribute-rgt-neg-in55.5%
*-commutative55.5%
Simplified55.5%
if -1.55e-31 < i < 8.0000000000000001e-187Initial program 82.3%
Taylor expanded in a around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in c around 0 37.2%
associate-*r*37.2%
neg-mul-137.2%
Simplified37.2%
if 8.0000000000000001e-187 < i < 3.39999999999999998e-63Initial program 77.6%
Taylor expanded in a around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
Taylor expanded in c around inf 46.8%
if 3.39999999999999998e-63 < i < 1.01999999999999997e120Initial program 76.5%
Taylor expanded in z around inf 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in y around 0 39.4%
associate-*r*39.4%
neg-mul-139.4%
Simplified39.4%
Final simplification45.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (- (* x z) (* i j))) (* b (* t i)))))
(if (<= t -6.1e+136)
(* a (* t (- (* b (/ i a)) x)))
(if (<= t 1.1e-304)
t_1
(if (<= t 5.5e-190)
(* z (- (* x y) (* b c)))
(if (<= t 3.8e+70) t_1 (* t (- (* b i) (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (b * (t * i));
double tmp;
if (t <= -6.1e+136) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 1.1e-304) {
tmp = t_1;
} else if (t <= 5.5e-190) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 3.8e+70) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) + (b * (t * i))
if (t <= (-6.1d+136)) then
tmp = a * (t * ((b * (i / a)) - x))
else if (t <= 1.1d-304) then
tmp = t_1
else if (t <= 5.5d-190) then
tmp = z * ((x * y) - (b * c))
else if (t <= 3.8d+70) then
tmp = t_1
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) + (b * (t * i));
double tmp;
if (t <= -6.1e+136) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 1.1e-304) {
tmp = t_1;
} else if (t <= 5.5e-190) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 3.8e+70) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) + (b * (t * i)) tmp = 0 if t <= -6.1e+136: tmp = a * (t * ((b * (i / a)) - x)) elif t <= 1.1e-304: tmp = t_1 elif t <= 5.5e-190: tmp = z * ((x * y) - (b * c)) elif t <= 3.8e+70: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(t * i))) tmp = 0.0 if (t <= -6.1e+136) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / a)) - x))); elseif (t <= 1.1e-304) tmp = t_1; elseif (t <= 5.5e-190) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 3.8e+70) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) + (b * (t * i)); tmp = 0.0; if (t <= -6.1e+136) tmp = a * (t * ((b * (i / a)) - x)); elseif (t <= 1.1e-304) tmp = t_1; elseif (t <= 5.5e-190) tmp = z * ((x * y) - (b * c)); elseif (t <= 3.8e+70) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.1e+136], N[(a * N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e-304], t$95$1, If[LessEqual[t, 5.5e-190], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+70], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -6.1 \cdot 10^{+136}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-190}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -6.0999999999999996e136Initial program 41.6%
Taylor expanded in a around -inf 51.8%
Simplified59.9%
Taylor expanded in t around inf 65.4%
associate-*r*65.4%
neg-mul-165.4%
associate-/l*73.4%
Simplified73.4%
if -6.0999999999999996e136 < t < 1.1e-304 or 5.50000000000000048e-190 < t < 3.7999999999999998e70Initial program 82.2%
Taylor expanded in a around 0 71.2%
Simplified72.4%
Taylor expanded in i around inf 61.3%
if 1.1e-304 < t < 5.50000000000000048e-190Initial program 79.2%
Taylor expanded in z around inf 72.9%
*-commutative72.9%
Simplified72.9%
if 3.7999999999999998e70 < t Initial program 70.4%
Taylor expanded in t around inf 79.7%
distribute-lft-out--79.7%
Simplified79.7%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -7.8e+63)
t_1
(if (<= i 4.3e-302)
(* z (* x y))
(if (<= i 9.2e-187)
(* x (* t (- a)))
(if (<= i 4.6e-63)
(* a (* c j))
(if (<= i 0.55) (* z (* b (- c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -7.8e+63) {
tmp = t_1;
} else if (i <= 4.3e-302) {
tmp = z * (x * y);
} else if (i <= 9.2e-187) {
tmp = x * (t * -a);
} else if (i <= 4.6e-63) {
tmp = a * (c * j);
} else if (i <= 0.55) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (i <= (-7.8d+63)) then
tmp = t_1
else if (i <= 4.3d-302) then
tmp = z * (x * y)
else if (i <= 9.2d-187) then
tmp = x * (t * -a)
else if (i <= 4.6d-63) then
tmp = a * (c * j)
else if (i <= 0.55d0) then
tmp = z * (b * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -7.8e+63) {
tmp = t_1;
} else if (i <= 4.3e-302) {
tmp = z * (x * y);
} else if (i <= 9.2e-187) {
tmp = x * (t * -a);
} else if (i <= 4.6e-63) {
tmp = a * (c * j);
} else if (i <= 0.55) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -7.8e+63: tmp = t_1 elif i <= 4.3e-302: tmp = z * (x * y) elif i <= 9.2e-187: tmp = x * (t * -a) elif i <= 4.6e-63: tmp = a * (c * j) elif i <= 0.55: tmp = z * (b * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -7.8e+63) tmp = t_1; elseif (i <= 4.3e-302) tmp = Float64(z * Float64(x * y)); elseif (i <= 9.2e-187) tmp = Float64(x * Float64(t * Float64(-a))); elseif (i <= 4.6e-63) tmp = Float64(a * Float64(c * j)); elseif (i <= 0.55) tmp = Float64(z * Float64(b * 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 = t * (b * i); tmp = 0.0; if (i <= -7.8e+63) tmp = t_1; elseif (i <= 4.3e-302) tmp = z * (x * y); elseif (i <= 9.2e-187) tmp = x * (t * -a); elseif (i <= 4.6e-63) tmp = a * (c * j); elseif (i <= 0.55) tmp = z * (b * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.8e+63], t$95$1, If[LessEqual[i, 4.3e-302], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.2e-187], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.6e-63], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 0.55], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -7.8 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-302}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{-187}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 0.55:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.8e63 or 0.55000000000000004 < i Initial program 68.8%
Taylor expanded in j around 0 55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in i around inf 35.3%
associate-*r*40.1%
Simplified40.1%
if -7.8e63 < i < 4.3000000000000002e-302Initial program 78.1%
Taylor expanded in z around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 33.4%
if 4.3000000000000002e-302 < i < 9.19999999999999991e-187Initial program 87.5%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
Simplified62.9%
Taylor expanded in x around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
associate-*r*62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in c around 0 58.4%
mul-1-neg58.4%
*-commutative58.4%
distribute-rgt-neg-in58.4%
Simplified58.4%
if 9.19999999999999991e-187 < i < 4.6e-63Initial program 77.6%
Taylor expanded in a around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
Taylor expanded in c around inf 46.8%
if 4.6e-63 < i < 0.55000000000000004Initial program 69.0%
Taylor expanded in z around inf 64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y around 0 52.2%
neg-mul-152.2%
distribute-rgt-neg-in52.2%
Simplified52.2%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.9e-32)
(* i (* y (- (/ (* t b) y) j)))
(if (<= i 7.2e-302)
(* z (- (* x y) (* b c)))
(if (<= i 2.8e-118)
(* a (- (* c j) (* x t)))
(if (<= i 1.8e+51)
(* a (* x (- (/ (* y z) a) t)))
(* i (- (* t b) (* y j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.9e-32) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 7.2e-302) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.8e-118) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.8e+51) {
tmp = a * (x * (((y * z) / a) - t));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-2.9d-32)) then
tmp = i * (y * (((t * b) / y) - j))
else if (i <= 7.2d-302) then
tmp = z * ((x * y) - (b * c))
else if (i <= 2.8d-118) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.8d+51) then
tmp = a * (x * (((y * z) / a) - t))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.9e-32) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 7.2e-302) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 2.8e-118) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.8e+51) {
tmp = a * (x * (((y * z) / a) - t));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.9e-32: tmp = i * (y * (((t * b) / y) - j)) elif i <= 7.2e-302: tmp = z * ((x * y) - (b * c)) elif i <= 2.8e-118: tmp = a * ((c * j) - (x * t)) elif i <= 1.8e+51: tmp = a * (x * (((y * z) / a) - t)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.9e-32) tmp = Float64(i * Float64(y * Float64(Float64(Float64(t * b) / y) - j))); elseif (i <= 7.2e-302) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 2.8e-118) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.8e+51) tmp = Float64(a * Float64(x * Float64(Float64(Float64(y * z) / a) - t))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.9e-32) tmp = i * (y * (((t * b) / y) - j)); elseif (i <= 7.2e-302) tmp = z * ((x * y) - (b * c)); elseif (i <= 2.8e-118) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.8e+51) tmp = a * (x * (((y * z) / a) - t)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.9e-32], N[(i * N[(y * N[(N[(N[(t * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.2e-302], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.8e-118], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+51], N[(a * N[(x * N[(N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.9 \cdot 10^{-32}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{t \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{-302}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{-118}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{y \cdot z}{a} - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -2.89999999999999996e-32Initial program 62.7%
Taylor expanded in a around 0 68.6%
Simplified67.2%
Taylor expanded in i around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in y around inf 70.5%
if -2.89999999999999996e-32 < i < 7.2000000000000001e-302Initial program 82.4%
Taylor expanded in z around inf 58.5%
*-commutative58.5%
Simplified58.5%
if 7.2000000000000001e-302 < i < 2.8e-118Initial program 77.7%
Taylor expanded in a around inf 69.7%
+-commutative69.7%
mul-1-neg69.7%
unsub-neg69.7%
Simplified69.7%
if 2.8e-118 < i < 1.80000000000000005e51Initial program 80.6%
Taylor expanded in a around -inf 73.0%
Simplified78.3%
Taylor expanded in x around inf 57.6%
associate-*r*57.6%
neg-mul-157.6%
*-commutative57.6%
Simplified57.6%
if 1.80000000000000005e51 < i Initial program 71.1%
Taylor expanded in a around 0 73.2%
Simplified73.2%
Taylor expanded in i around inf 67.2%
+-commutative67.2%
mul-1-neg67.2%
unsub-neg67.2%
Simplified67.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -2.6e+60)
t_1
(if (<= i 4.8e-302)
(* z (* x y))
(if (<= i 6.8e-186)
(* x (* t (- a)))
(if (<= i 8.5e-63)
(* a (* c j))
(if (<= i 1.1e+42) (* x (* y z)) 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 = t * (b * i);
double tmp;
if (i <= -2.6e+60) {
tmp = t_1;
} else if (i <= 4.8e-302) {
tmp = z * (x * y);
} else if (i <= 6.8e-186) {
tmp = x * (t * -a);
} else if (i <= 8.5e-63) {
tmp = a * (c * j);
} else if (i <= 1.1e+42) {
tmp = x * (y * z);
} 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 = t * (b * i)
if (i <= (-2.6d+60)) then
tmp = t_1
else if (i <= 4.8d-302) then
tmp = z * (x * y)
else if (i <= 6.8d-186) then
tmp = x * (t * -a)
else if (i <= 8.5d-63) then
tmp = a * (c * j)
else if (i <= 1.1d+42) then
tmp = x * (y * z)
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 = t * (b * i);
double tmp;
if (i <= -2.6e+60) {
tmp = t_1;
} else if (i <= 4.8e-302) {
tmp = z * (x * y);
} else if (i <= 6.8e-186) {
tmp = x * (t * -a);
} else if (i <= 8.5e-63) {
tmp = a * (c * j);
} else if (i <= 1.1e+42) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -2.6e+60: tmp = t_1 elif i <= 4.8e-302: tmp = z * (x * y) elif i <= 6.8e-186: tmp = x * (t * -a) elif i <= 8.5e-63: tmp = a * (c * j) elif i <= 1.1e+42: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -2.6e+60) tmp = t_1; elseif (i <= 4.8e-302) tmp = Float64(z * Float64(x * y)); elseif (i <= 6.8e-186) tmp = Float64(x * Float64(t * Float64(-a))); elseif (i <= 8.5e-63) tmp = Float64(a * Float64(c * j)); elseif (i <= 1.1e+42) tmp = Float64(x * Float64(y * z)); else tmp = t_1; 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 (i <= -2.6e+60) tmp = t_1; elseif (i <= 4.8e-302) tmp = z * (x * y); elseif (i <= 6.8e-186) tmp = x * (t * -a); elseif (i <= 8.5e-63) tmp = a * (c * j); elseif (i <= 1.1e+42) tmp = x * (y * z); else tmp = t_1; 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[i, -2.6e+60], t$95$1, If[LessEqual[i, 4.8e-302], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.8e-186], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e-63], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.1e+42], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-302}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{-186}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.60000000000000008e60 or 1.1000000000000001e42 < i Initial program 66.8%
Taylor expanded in j around 0 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in i around inf 36.6%
associate-*r*41.6%
Simplified41.6%
if -2.60000000000000008e60 < i < 4.80000000000000044e-302Initial program 78.1%
Taylor expanded in z around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around inf 33.4%
if 4.80000000000000044e-302 < i < 6.7999999999999999e-186Initial program 87.5%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
Simplified62.9%
Taylor expanded in x around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
associate-*r*62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in c around 0 58.4%
mul-1-neg58.4%
*-commutative58.4%
distribute-rgt-neg-in58.4%
Simplified58.4%
if 6.7999999999999999e-186 < i < 8.49999999999999969e-63Initial program 77.6%
Taylor expanded in a around inf 60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
Taylor expanded in c around inf 46.8%
if 8.49999999999999969e-63 < i < 1.1000000000000001e42Initial program 78.5%
Taylor expanded in z around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in y around inf 36.7%
*-commutative36.7%
Simplified36.7%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= i -5.4e+110)
(* i (* t b))
(if (<= i -2.1e-33)
t_1
(if (<= i 1.02e-212)
(* z (* x y))
(if (<= i 1.05e-62)
t_1
(if (<= i 5.6e+37) (* x (* y z)) (* b (* t i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (i <= -5.4e+110) {
tmp = i * (t * b);
} else if (i <= -2.1e-33) {
tmp = t_1;
} else if (i <= 1.02e-212) {
tmp = z * (x * y);
} else if (i <= 1.05e-62) {
tmp = t_1;
} else if (i <= 5.6e+37) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (i <= (-5.4d+110)) then
tmp = i * (t * b)
else if (i <= (-2.1d-33)) then
tmp = t_1
else if (i <= 1.02d-212) then
tmp = z * (x * y)
else if (i <= 1.05d-62) then
tmp = t_1
else if (i <= 5.6d+37) then
tmp = x * (y * z)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (i <= -5.4e+110) {
tmp = i * (t * b);
} else if (i <= -2.1e-33) {
tmp = t_1;
} else if (i <= 1.02e-212) {
tmp = z * (x * y);
} else if (i <= 1.05e-62) {
tmp = t_1;
} else if (i <= 5.6e+37) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if i <= -5.4e+110: tmp = i * (t * b) elif i <= -2.1e-33: tmp = t_1 elif i <= 1.02e-212: tmp = z * (x * y) elif i <= 1.05e-62: tmp = t_1 elif i <= 5.6e+37: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (i <= -5.4e+110) tmp = Float64(i * Float64(t * b)); elseif (i <= -2.1e-33) tmp = t_1; elseif (i <= 1.02e-212) tmp = Float64(z * Float64(x * y)); elseif (i <= 1.05e-62) tmp = t_1; elseif (i <= 5.6e+37) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (i <= -5.4e+110) tmp = i * (t * b); elseif (i <= -2.1e-33) tmp = t_1; elseif (i <= 1.02e-212) tmp = z * (x * y); elseif (i <= 1.05e-62) tmp = t_1; elseif (i <= 5.6e+37) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.4e+110], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.1e-33], t$95$1, If[LessEqual[i, 1.02e-212], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e-62], t$95$1, If[LessEqual[i, 5.6e+37], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;i \leq -5.4 \cdot 10^{+110}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{-212}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{+37}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -5.40000000000000019e110Initial program 58.6%
Taylor expanded in a around 0 67.4%
Simplified65.3%
Taylor expanded in i around inf 73.9%
+-commutative73.9%
mul-1-neg73.9%
unsub-neg73.9%
Simplified73.9%
Taylor expanded in b around inf 43.9%
if -5.40000000000000019e110 < i < -2.1e-33 or 1.0199999999999999e-212 < i < 1.05e-62Initial program 77.2%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
Simplified49.2%
Taylor expanded in c around inf 35.6%
if -2.1e-33 < i < 1.0199999999999999e-212Initial program 82.1%
Taylor expanded in z around inf 54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in y around inf 36.1%
if 1.05e-62 < i < 5.5999999999999996e37Initial program 78.5%
Taylor expanded in z around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in y around inf 36.7%
*-commutative36.7%
Simplified36.7%
if 5.5999999999999996e37 < i Initial program 70.2%
Taylor expanded in j around 0 52.9%
*-commutative52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in i around inf 36.1%
Final simplification37.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= i -2.45e-32)
(* i (* y (- (/ (* t b) y) j)))
(if (<= i 5.5e-302)
t_1
(if (<= i 7.8e-59)
(* a (- (* c j) (* x t)))
(if (<= i 3.8e+32) t_1 (* i (- (* t b) (* y j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (i <= -2.45e-32) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 5.5e-302) {
tmp = t_1;
} else if (i <= 7.8e-59) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 3.8e+32) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (i <= (-2.45d-32)) then
tmp = i * (y * (((t * b) / y) - j))
else if (i <= 5.5d-302) then
tmp = t_1
else if (i <= 7.8d-59) then
tmp = a * ((c * j) - (x * t))
else if (i <= 3.8d+32) then
tmp = t_1
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (i <= -2.45e-32) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 5.5e-302) {
tmp = t_1;
} else if (i <= 7.8e-59) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 3.8e+32) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if i <= -2.45e-32: tmp = i * (y * (((t * b) / y) - j)) elif i <= 5.5e-302: tmp = t_1 elif i <= 7.8e-59: tmp = a * ((c * j) - (x * t)) elif i <= 3.8e+32: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (i <= -2.45e-32) tmp = Float64(i * Float64(y * Float64(Float64(Float64(t * b) / y) - j))); elseif (i <= 5.5e-302) tmp = t_1; elseif (i <= 7.8e-59) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 3.8e+32) tmp = t_1; else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (i <= -2.45e-32) tmp = i * (y * (((t * b) / y) - j)); elseif (i <= 5.5e-302) tmp = t_1; elseif (i <= 7.8e-59) tmp = a * ((c * j) - (x * t)); elseif (i <= 3.8e+32) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.45e-32], N[(i * N[(y * N[(N[(N[(t * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e-302], t$95$1, If[LessEqual[i, 7.8e-59], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e+32], t$95$1, N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;i \leq -2.45 \cdot 10^{-32}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{t \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -2.4499999999999999e-32Initial program 62.7%
Taylor expanded in a around 0 68.6%
Simplified67.2%
Taylor expanded in i around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
Simplified69.2%
Taylor expanded in y around inf 70.5%
if -2.4499999999999999e-32 < i < 5.5000000000000001e-302 or 7.80000000000000038e-59 < i < 3.8000000000000003e32Initial program 80.6%
Taylor expanded in z around inf 61.2%
*-commutative61.2%
Simplified61.2%
if 5.5000000000000001e-302 < i < 7.80000000000000038e-59Initial program 82.4%
Taylor expanded in a around inf 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
Simplified59.7%
if 3.8000000000000003e32 < i Initial program 70.8%
Taylor expanded in a around 0 71.0%
Simplified70.9%
Taylor expanded in i around inf 65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -1.5e-32)
t_2
(if (<= i 5.2e-302)
t_1
(if (<= i 3.1e-59)
(* a (- (* c j) (* x t)))
(if (<= i 2e+36) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e-32) {
tmp = t_2;
} else if (i <= 5.2e-302) {
tmp = t_1;
} else if (i <= 3.1e-59) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 2e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
t_2 = i * ((t * b) - (y * j))
if (i <= (-1.5d-32)) then
tmp = t_2
else if (i <= 5.2d-302) then
tmp = t_1
else if (i <= 3.1d-59) then
tmp = a * ((c * j) - (x * t))
else if (i <= 2d+36) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.5e-32) {
tmp = t_2;
} else if (i <= 5.2e-302) {
tmp = t_1;
} else if (i <= 3.1e-59) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 2e+36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.5e-32: tmp = t_2 elif i <= 5.2e-302: tmp = t_1 elif i <= 3.1e-59: tmp = a * ((c * j) - (x * t)) elif i <= 2e+36: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.5e-32) tmp = t_2; elseif (i <= 5.2e-302) tmp = t_1; elseif (i <= 3.1e-59) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 2e+36) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.5e-32) tmp = t_2; elseif (i <= 5.2e-302) tmp = t_1; elseif (i <= 3.1e-59) tmp = a * ((c * j) - (x * t)); elseif (i <= 2e+36) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.5e-32], t$95$2, If[LessEqual[i, 5.2e-302], t$95$1, If[LessEqual[i, 3.1e-59], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e+36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.5 \cdot 10^{-32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.5e-32 or 2.00000000000000008e36 < i Initial program 66.0%
Taylor expanded in a around 0 69.6%
Simplified68.7%
Taylor expanded in i around inf 67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
Simplified67.6%
if -1.5e-32 < i < 5.20000000000000022e-302 or 3.09999999999999999e-59 < i < 2.00000000000000008e36Initial program 80.6%
Taylor expanded in z around inf 61.2%
*-commutative61.2%
Simplified61.2%
if 5.20000000000000022e-302 < i < 3.09999999999999999e-59Initial program 82.4%
Taylor expanded in a around inf 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
Simplified59.7%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -15.5)
t_1
(if (<= y -1.95e-143)
(* c (- (* a j) (* z b)))
(if (<= y 2.9e-106)
(* a (- (* c j) (* x t)))
(if (<= y 1.35e+93) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -15.5) {
tmp = t_1;
} else if (y <= -1.95e-143) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.9e-106) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.35e+93) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-15.5d0)) then
tmp = t_1
else if (y <= (-1.95d-143)) then
tmp = c * ((a * j) - (z * b))
else if (y <= 2.9d-106) then
tmp = a * ((c * j) - (x * t))
else if (y <= 1.35d+93) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -15.5) {
tmp = t_1;
} else if (y <= -1.95e-143) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.9e-106) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.35e+93) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -15.5: tmp = t_1 elif y <= -1.95e-143: tmp = c * ((a * j) - (z * b)) elif y <= 2.9e-106: tmp = a * ((c * j) - (x * t)) elif y <= 1.35e+93: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -15.5) tmp = t_1; elseif (y <= -1.95e-143) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 2.9e-106) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 1.35e+93) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -15.5) tmp = t_1; elseif (y <= -1.95e-143) tmp = c * ((a * j) - (z * b)); elseif (y <= 2.9e-106) tmp = a * ((c * j) - (x * t)); elseif (y <= 1.35e+93) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -15.5], t$95$1, If[LessEqual[y, -1.95e-143], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e-106], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e+93], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -15.5:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{-143}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-106}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -15.5 or 1.35e93 < y Initial program 68.0%
Taylor expanded in y around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
Simplified70.4%
if -15.5 < y < -1.95000000000000002e-143Initial program 81.5%
Taylor expanded in c around inf 64.0%
*-commutative64.0%
Simplified64.0%
if -1.95000000000000002e-143 < y < 2.9e-106Initial program 77.0%
Taylor expanded in a around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
if 2.9e-106 < y < 1.35e93Initial program 79.7%
Taylor expanded in b around inf 55.3%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -3.5e-56)
(+ t_1 (* j (- (* a c) (* y i))))
(if (<= j 2.3e+118)
(+ t_1 (* b (- (* t i) (* z c))))
(- (* b (* t i)) (* j (- (* y i) (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -3.5e-56) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (j <= 2.3e+118) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (j <= (-3.5d-56)) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else if (j <= 2.3d+118) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -3.5e-56) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (j <= 2.3e+118) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -3.5e-56: tmp = t_1 + (j * ((a * c) - (y * i))) elif j <= 2.3e+118: tmp = t_1 + (b * ((t * i) - (z * c))) else: tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (j <= -3.5e-56) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (j <= 2.3e+118) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (j <= -3.5e-56) tmp = t_1 + (j * ((a * c) - (y * i))); elseif (j <= 2.3e+118) tmp = t_1 + (b * ((t * i) - (z * c))); else tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e-56], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+118], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{-56}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+118}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if j < -3.4999999999999998e-56Initial program 79.2%
Taylor expanded in b around 0 78.9%
if -3.4999999999999998e-56 < j < 2.30000000000000016e118Initial program 70.6%
Taylor expanded in j around 0 73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
if 2.30000000000000016e118 < j Initial program 73.1%
Taylor expanded in x around 0 76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in c around 0 76.7%
mul-1-neg76.7%
*-commutative76.7%
distribute-rgt-neg-in76.7%
Simplified76.7%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= j -2.35e-113)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(if (<= j 1.15e+60)
(+ (* y (- (* x z) (* i j))) t_1)
(- t_1 (* j (- (* y i) (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (j <= -2.35e-113) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (j <= 1.15e+60) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 - (j * ((y * i) - (a * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (j <= (-2.35d-113)) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else if (j <= 1.15d+60) then
tmp = (y * ((x * z) - (i * j))) + t_1
else
tmp = t_1 - (j * ((y * i) - (a * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (j <= -2.35e-113) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (j <= 1.15e+60) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else {
tmp = t_1 - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if j <= -2.35e-113: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) elif j <= 1.15e+60: tmp = (y * ((x * z) - (i * j))) + t_1 else: tmp = t_1 - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (j <= -2.35e-113) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (j <= 1.15e+60) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); else tmp = Float64(t_1 - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (j <= -2.35e-113) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); elseif (j <= 1.15e+60) tmp = (y * ((x * z) - (i * j))) + t_1; else tmp = t_1 - (j * ((y * i) - (a * c))); 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[j, -2.35e-113], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+60], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -2.35 \cdot 10^{-113}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if j < -2.3500000000000001e-113Initial program 78.3%
Taylor expanded in b around 0 76.9%
if -2.3500000000000001e-113 < j < 1.15000000000000008e60Initial program 71.1%
Taylor expanded in a around 0 70.9%
Simplified73.5%
if 1.15000000000000008e60 < j Initial program 71.4%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.4e+128)
(* a (* t (- (* b (/ i a)) x)))
(if (<= t 2.15e+70)
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c))))
(* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.4e+128) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 2.15e+70) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-3.4d+128)) then
tmp = a * (t * ((b * (i / a)) - x))
else if (t <= 2.15d+70) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.4e+128) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 2.15e+70) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.4e+128: tmp = a * (t * ((b * (i / a)) - x)) elif t <= 2.15e+70: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.4e+128) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / a)) - x))); elseif (t <= 2.15e+70) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -3.4e+128) tmp = a * (t * ((b * (i / a)) - x)); elseif (t <= 2.15e+70) tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.4e+128], N[(a * N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+70], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.4 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+70}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -3.3999999999999999e128Initial program 43.2%
Taylor expanded in a around -inf 53.1%
Simplified58.3%
Taylor expanded in t around inf 63.7%
associate-*r*63.7%
neg-mul-163.7%
associate-/l*71.4%
Simplified71.4%
if -3.3999999999999999e128 < t < 2.15e70Initial program 81.7%
Taylor expanded in a around 0 71.2%
Simplified72.7%
if 2.15e70 < t Initial program 70.4%
Taylor expanded in t around inf 79.7%
distribute-lft-out--79.7%
Simplified79.7%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -2.05e+61)
t_1
(if (<= i 2.7e-216)
(* z (* x y))
(if (<= i 3.6e-63)
(* j (* a c))
(if (<= i 4.2e+44) (* x (* y z)) 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 = t * (b * i);
double tmp;
if (i <= -2.05e+61) {
tmp = t_1;
} else if (i <= 2.7e-216) {
tmp = z * (x * y);
} else if (i <= 3.6e-63) {
tmp = j * (a * c);
} else if (i <= 4.2e+44) {
tmp = x * (y * z);
} 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 = t * (b * i)
if (i <= (-2.05d+61)) then
tmp = t_1
else if (i <= 2.7d-216) then
tmp = z * (x * y)
else if (i <= 3.6d-63) then
tmp = j * (a * c)
else if (i <= 4.2d+44) then
tmp = x * (y * z)
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 = t * (b * i);
double tmp;
if (i <= -2.05e+61) {
tmp = t_1;
} else if (i <= 2.7e-216) {
tmp = z * (x * y);
} else if (i <= 3.6e-63) {
tmp = j * (a * c);
} else if (i <= 4.2e+44) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -2.05e+61: tmp = t_1 elif i <= 2.7e-216: tmp = z * (x * y) elif i <= 3.6e-63: tmp = j * (a * c) elif i <= 4.2e+44: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -2.05e+61) tmp = t_1; elseif (i <= 2.7e-216) tmp = Float64(z * Float64(x * y)); elseif (i <= 3.6e-63) tmp = Float64(j * Float64(a * c)); elseif (i <= 4.2e+44) tmp = Float64(x * Float64(y * z)); else tmp = t_1; 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 (i <= -2.05e+61) tmp = t_1; elseif (i <= 2.7e-216) tmp = z * (x * y); elseif (i <= 3.6e-63) tmp = j * (a * c); elseif (i <= 4.2e+44) tmp = x * (y * z); else tmp = t_1; 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[i, -2.05e+61], t$95$1, If[LessEqual[i, 2.7e-216], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e-63], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e+44], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -2.05 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-216}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-63}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.04999999999999986e61 or 4.19999999999999974e44 < i Initial program 66.8%
Taylor expanded in j around 0 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in i around inf 36.6%
associate-*r*41.6%
Simplified41.6%
if -2.04999999999999986e61 < i < 2.6999999999999999e-216Initial program 78.5%
Taylor expanded in z around inf 48.2%
*-commutative48.2%
Simplified48.2%
Taylor expanded in y around inf 32.6%
if 2.6999999999999999e-216 < i < 3.60000000000000008e-63Initial program 81.0%
Taylor expanded in a around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Taylor expanded in c around inf 40.2%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
if 3.60000000000000008e-63 < i < 4.19999999999999974e44Initial program 78.5%
Taylor expanded in z around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in y around inf 36.7%
*-commutative36.7%
Simplified36.7%
Final simplification37.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -7.5e+62)
t_1
(if (<= i 7e-218)
(* z (* x y))
(if (<= i 4.2e-63)
(* a (* c j))
(if (<= i 8.2e+38) (* x (* y z)) 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 = t * (b * i);
double tmp;
if (i <= -7.5e+62) {
tmp = t_1;
} else if (i <= 7e-218) {
tmp = z * (x * y);
} else if (i <= 4.2e-63) {
tmp = a * (c * j);
} else if (i <= 8.2e+38) {
tmp = x * (y * z);
} 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 = t * (b * i)
if (i <= (-7.5d+62)) then
tmp = t_1
else if (i <= 7d-218) then
tmp = z * (x * y)
else if (i <= 4.2d-63) then
tmp = a * (c * j)
else if (i <= 8.2d+38) then
tmp = x * (y * z)
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 = t * (b * i);
double tmp;
if (i <= -7.5e+62) {
tmp = t_1;
} else if (i <= 7e-218) {
tmp = z * (x * y);
} else if (i <= 4.2e-63) {
tmp = a * (c * j);
} else if (i <= 8.2e+38) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -7.5e+62: tmp = t_1 elif i <= 7e-218: tmp = z * (x * y) elif i <= 4.2e-63: tmp = a * (c * j) elif i <= 8.2e+38: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -7.5e+62) tmp = t_1; elseif (i <= 7e-218) tmp = Float64(z * Float64(x * y)); elseif (i <= 4.2e-63) tmp = Float64(a * Float64(c * j)); elseif (i <= 8.2e+38) tmp = Float64(x * Float64(y * z)); else tmp = t_1; 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 (i <= -7.5e+62) tmp = t_1; elseif (i <= 7e-218) tmp = z * (x * y); elseif (i <= 4.2e-63) tmp = a * (c * j); elseif (i <= 8.2e+38) tmp = x * (y * z); else tmp = t_1; 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[i, -7.5e+62], t$95$1, If[LessEqual[i, 7e-218], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e-63], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.2e+38], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -7.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7 \cdot 10^{-218}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{+38}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.49999999999999998e62 or 8.2000000000000007e38 < i Initial program 66.8%
Taylor expanded in j around 0 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in i around inf 36.6%
associate-*r*41.6%
Simplified41.6%
if -7.49999999999999998e62 < i < 7e-218Initial program 78.5%
Taylor expanded in z around inf 48.2%
*-commutative48.2%
Simplified48.2%
Taylor expanded in y around inf 32.6%
if 7e-218 < i < 4.2e-63Initial program 81.0%
Taylor expanded in a around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Taylor expanded in c around inf 40.2%
if 4.2e-63 < i < 8.2000000000000007e38Initial program 78.5%
Taylor expanded in z around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in y around inf 36.7%
*-commutative36.7%
Simplified36.7%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1e-31) (not (<= j 1e+119))) (- (* b (* t i)) (* j (- (* y i) (* a c)))) (- (* x (- (* y z) (* t a))) (* z (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1e-31) || !(j <= 1e+119)) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else {
tmp = (x * ((y * z) - (t * a))) - (z * (b * 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 ((j <= (-1d-31)) .or. (.not. (j <= 1d+119))) then
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
else
tmp = (x * ((y * z) - (t * a))) - (z * (b * 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 ((j <= -1e-31) || !(j <= 1e+119)) {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
} else {
tmp = (x * ((y * z) - (t * a))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1e-31) or not (j <= 1e+119): tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) else: tmp = (x * ((y * z) - (t * a))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1e-31) || !(j <= 1e+119)) tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1e-31) || ~((j <= 1e+119))) tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); else tmp = (x * ((y * z) - (t * a))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1e-31], N[Not[LessEqual[j, 1e+119]], $MachinePrecision]], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1 \cdot 10^{-31} \lor \neg \left(j \leq 10^{+119}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if j < -1e-31 or 9.99999999999999944e118 < j Initial program 77.4%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in c around 0 73.0%
mul-1-neg73.0%
*-commutative73.0%
distribute-rgt-neg-in73.0%
Simplified73.0%
if -1e-31 < j < 9.99999999999999944e118Initial program 70.8%
Taylor expanded in j around 0 73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in c around inf 63.4%
associate-*r*66.2%
Simplified66.2%
Final simplification69.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -1.2e-47)
(+ t_1 (* j (- (* a c) (* y i))))
(if (<= j 2.5e+118)
(- t_1 (* z (* b c)))
(- (* b (* t i)) (* j (- (* y i) (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -1.2e-47) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (j <= 2.5e+118) {
tmp = t_1 - (z * (b * c));
} else {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (j <= (-1.2d-47)) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else if (j <= 2.5d+118) then
tmp = t_1 - (z * (b * c))
else
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -1.2e-47) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else if (j <= 2.5e+118) {
tmp = t_1 - (z * (b * c));
} else {
tmp = (b * (t * i)) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -1.2e-47: tmp = t_1 + (j * ((a * c) - (y * i))) elif j <= 2.5e+118: tmp = t_1 - (z * (b * c)) else: tmp = (b * (t * i)) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (j <= -1.2e-47) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (j <= 2.5e+118) tmp = Float64(t_1 - Float64(z * Float64(b * c))); else tmp = Float64(Float64(b * Float64(t * i)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (j <= -1.2e-47) tmp = t_1 + (j * ((a * c) - (y * i))); elseif (j <= 2.5e+118) tmp = t_1 - (z * (b * c)); else tmp = (b * (t * i)) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.2e-47], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+118], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -1.2 \cdot 10^{-47}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+118}:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if j < -1.2e-47Initial program 80.0%
Taylor expanded in b around 0 79.5%
if -1.2e-47 < j < 2.49999999999999986e118Initial program 70.3%
Taylor expanded in j around 0 73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in c around inf 63.2%
associate-*r*66.1%
Simplified66.1%
if 2.49999999999999986e118 < j Initial program 73.1%
Taylor expanded in x around 0 76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in c around 0 76.7%
mul-1-neg76.7%
*-commutative76.7%
distribute-rgt-neg-in76.7%
Simplified76.7%
Final simplification72.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.9e-31)
(* i (* y (- (/ (* t b) y) j)))
(if (<= i 5.9e+128)
(- (* x (- (* y z) (* t a))) (* z (* b c)))
(* i (- (* t b) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e-31) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 5.9e+128) {
tmp = (x * ((y * z) - (t * a))) - (z * (b * c));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.9d-31)) then
tmp = i * (y * (((t * b) / y) - j))
else if (i <= 5.9d+128) then
tmp = (x * ((y * z) - (t * a))) - (z * (b * c))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.9e-31) {
tmp = i * (y * (((t * b) / y) - j));
} else if (i <= 5.9e+128) {
tmp = (x * ((y * z) - (t * a))) - (z * (b * c));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.9e-31: tmp = i * (y * (((t * b) / y) - j)) elif i <= 5.9e+128: tmp = (x * ((y * z) - (t * a))) - (z * (b * c)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.9e-31) tmp = Float64(i * Float64(y * Float64(Float64(Float64(t * b) / y) - j))); elseif (i <= 5.9e+128) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(z * Float64(b * c))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.9e-31) tmp = i * (y * (((t * b) / y) - j)); elseif (i <= 5.9e+128) tmp = (x * ((y * z) - (t * a))) - (z * (b * c)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.9e-31], N[(i * N[(y * N[(N[(N[(t * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.9e+128], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.9 \cdot 10^{-31}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{t \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;i \leq 5.9 \cdot 10^{+128}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -1.9e-31Initial program 63.5%
Taylor expanded in a around 0 69.5%
Simplified68.1%
Taylor expanded in i around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
Simplified70.1%
Taylor expanded in y around inf 71.4%
if -1.9e-31 < i < 5.89999999999999987e128Initial program 79.2%
Taylor expanded in j around 0 66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in c around inf 63.0%
associate-*r*65.4%
Simplified65.4%
if 5.89999999999999987e128 < i Initial program 72.4%
Taylor expanded in a around 0 75.4%
Simplified75.3%
Taylor expanded in i around inf 72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
Simplified72.7%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.65e+25)
(* a (* t (- (* b (/ i a)) x)))
(if (<= t 7.5e-192)
(* z (- (* x y) (* b c)))
(if (<= t 53000000000000.0)
(* y (- (* x z) (* i j)))
(* t (- (* b i) (* x a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.65e+25) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 7.5e-192) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 53000000000000.0) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-3.65d+25)) then
tmp = a * (t * ((b * (i / a)) - x))
else if (t <= 7.5d-192) then
tmp = z * ((x * y) - (b * c))
else if (t <= 53000000000000.0d0) then
tmp = y * ((x * z) - (i * j))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.65e+25) {
tmp = a * (t * ((b * (i / a)) - x));
} else if (t <= 7.5e-192) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 53000000000000.0) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.65e+25: tmp = a * (t * ((b * (i / a)) - x)) elif t <= 7.5e-192: tmp = z * ((x * y) - (b * c)) elif t <= 53000000000000.0: tmp = y * ((x * z) - (i * j)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.65e+25) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / a)) - x))); elseif (t <= 7.5e-192) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 53000000000000.0) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -3.65e+25) tmp = a * (t * ((b * (i / a)) - x)); elseif (t <= 7.5e-192) tmp = z * ((x * y) - (b * c)); elseif (t <= 53000000000000.0) tmp = y * ((x * z) - (i * j)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.65e+25], N[(a * N[(t * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-192], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 53000000000000.0], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.65 \cdot 10^{+25}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-192}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 53000000000000:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if t < -3.6499999999999998e25Initial program 56.8%
Taylor expanded in a around -inf 64.4%
Simplified67.6%
Taylor expanded in t around inf 58.6%
associate-*r*58.6%
neg-mul-158.6%
associate-/l*63.2%
Simplified63.2%
if -3.6499999999999998e25 < t < 7.5000000000000001e-192Initial program 80.3%
Taylor expanded in z around inf 56.4%
*-commutative56.4%
Simplified56.4%
if 7.5000000000000001e-192 < t < 5.3e13Initial program 87.5%
Taylor expanded in y around inf 68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
*-commutative68.3%
Simplified68.3%
if 5.3e13 < t Initial program 73.5%
Taylor expanded in t around inf 72.1%
distribute-lft-out--72.1%
Simplified72.1%
Final simplification63.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1e-13)
t_1
(if (<= i 3.3e-80)
(* a (- (* c j) (* x t)))
(if (<= i 0.105) (* 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1e-13) {
tmp = t_1;
} else if (i <= 3.3e-80) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 0.105) {
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 = i * ((t * b) - (y * j))
if (i <= (-1d-13)) then
tmp = t_1
else if (i <= 3.3d-80) then
tmp = a * ((c * j) - (x * t))
else if (i <= 0.105d0) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1e-13) {
tmp = t_1;
} else if (i <= 3.3e-80) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 0.105) {
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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1e-13: tmp = t_1 elif i <= 3.3e-80: tmp = a * ((c * j) - (x * t)) elif i <= 0.105: 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1e-13) tmp = t_1; elseif (i <= 3.3e-80) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 0.105) 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1e-13) tmp = t_1; elseif (i <= 3.3e-80) tmp = a * ((c * j) - (x * t)); elseif (i <= 0.105) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1e-13], t$95$1, If[LessEqual[i, 3.3e-80], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 0.105], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-80}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 0.105:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1e-13 or 0.104999999999999996 < i Initial program 68.6%
Taylor expanded in a around 0 70.6%
Simplified69.8%
Taylor expanded in i around inf 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
Simplified66.4%
if -1e-13 < i < 3.3e-80Initial program 80.5%
Taylor expanded in a around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
Simplified50.2%
if 3.3e-80 < i < 0.104999999999999996Initial program 71.6%
Taylor expanded in c around inf 63.1%
*-commutative63.1%
Simplified63.1%
Final simplification59.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.5e+116)
t_1
(if (<= a -9e-300)
(* b (- (* t i) (* z c)))
(if (<= a 1.65e-22) (* (* y j) (- i)) 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 <= -2.5e+116) {
tmp = t_1;
} else if (a <= -9e-300) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.65e-22) {
tmp = (y * j) * -i;
} 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 <= (-2.5d+116)) then
tmp = t_1
else if (a <= (-9d-300)) then
tmp = b * ((t * i) - (z * c))
else if (a <= 1.65d-22) then
tmp = (y * j) * -i
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 <= -2.5e+116) {
tmp = t_1;
} else if (a <= -9e-300) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 1.65e-22) {
tmp = (y * j) * -i;
} 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 <= -2.5e+116: tmp = t_1 elif a <= -9e-300: tmp = b * ((t * i) - (z * c)) elif a <= 1.65e-22: tmp = (y * j) * -i 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 <= -2.5e+116) tmp = t_1; elseif (a <= -9e-300) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 1.65e-22) tmp = Float64(Float64(y * j) * Float64(-i)); 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 <= -2.5e+116) tmp = t_1; elseif (a <= -9e-300) tmp = b * ((t * i) - (z * c)); elseif (a <= 1.65e-22) tmp = (y * j) * -i; 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, -2.5e+116], t$95$1, If[LessEqual[a, -9e-300], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.65e-22], N[(N[(y * j), $MachinePrecision] * (-i)), $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 -2.5 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-300}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-22}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.50000000000000013e116 or 1.65e-22 < a Initial program 66.9%
Taylor expanded in a around inf 62.8%
+-commutative62.8%
mul-1-neg62.8%
unsub-neg62.8%
Simplified62.8%
if -2.50000000000000013e116 < a < -9.0000000000000001e-300Initial program 76.4%
Taylor expanded in b around inf 50.4%
if -9.0000000000000001e-300 < a < 1.65e-22Initial program 83.6%
Taylor expanded in a around -inf 62.1%
Simplified59.8%
Taylor expanded in j around inf 41.7%
associate-*r*41.3%
mul-1-neg41.3%
unsub-neg41.3%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in a around 0 41.4%
mul-1-neg41.4%
*-commutative41.4%
distribute-rgt-neg-in41.4%
*-commutative41.4%
Simplified41.4%
Final simplification54.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -3.15e+115)
t_1
(if (<= a -1.45e-291)
(* t (* b i))
(if (<= a 5e-23) (* (* y j) (- i)) 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 <= -3.15e+115) {
tmp = t_1;
} else if (a <= -1.45e-291) {
tmp = t * (b * i);
} else if (a <= 5e-23) {
tmp = (y * j) * -i;
} 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 <= (-3.15d+115)) then
tmp = t_1
else if (a <= (-1.45d-291)) then
tmp = t * (b * i)
else if (a <= 5d-23) then
tmp = (y * j) * -i
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 <= -3.15e+115) {
tmp = t_1;
} else if (a <= -1.45e-291) {
tmp = t * (b * i);
} else if (a <= 5e-23) {
tmp = (y * j) * -i;
} 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 <= -3.15e+115: tmp = t_1 elif a <= -1.45e-291: tmp = t * (b * i) elif a <= 5e-23: tmp = (y * j) * -i 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 <= -3.15e+115) tmp = t_1; elseif (a <= -1.45e-291) tmp = Float64(t * Float64(b * i)); elseif (a <= 5e-23) tmp = Float64(Float64(y * j) * Float64(-i)); 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 <= -3.15e+115) tmp = t_1; elseif (a <= -1.45e-291) tmp = t * (b * i); elseif (a <= 5e-23) tmp = (y * j) * -i; 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, -3.15e+115], t$95$1, If[LessEqual[a, -1.45e-291], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-23], N[(N[(y * j), $MachinePrecision] * (-i)), $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 -3.15 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.45 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-23}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.1499999999999998e115 or 5.0000000000000002e-23 < a Initial program 67.2%
Taylor expanded in a around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
Simplified62.3%
if -3.1499999999999998e115 < a < -1.45000000000000001e-291Initial program 76.2%
Taylor expanded in j around 0 66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in i around inf 30.7%
associate-*r*34.4%
Simplified34.4%
if -1.45000000000000001e-291 < a < 5.0000000000000002e-23Initial program 83.6%
Taylor expanded in a around -inf 62.1%
Simplified59.8%
Taylor expanded in j around inf 41.7%
associate-*r*41.3%
mul-1-neg41.3%
unsub-neg41.3%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in a around 0 41.4%
mul-1-neg41.4%
*-commutative41.4%
distribute-rgt-neg-in41.4%
*-commutative41.4%
Simplified41.4%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5e+15)
(* a (* x (- t)))
(if (<= t 3.25e-199)
(* z (* b (- c)))
(if (<= t 6.6e+56) (* z (* x y)) (* x (* t (- a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+15) {
tmp = a * (x * -t);
} else if (t <= 3.25e-199) {
tmp = z * (b * -c);
} else if (t <= 6.6e+56) {
tmp = z * (x * y);
} else {
tmp = x * (t * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-5d+15)) then
tmp = a * (x * -t)
else if (t <= 3.25d-199) then
tmp = z * (b * -c)
else if (t <= 6.6d+56) then
tmp = z * (x * y)
else
tmp = x * (t * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+15) {
tmp = a * (x * -t);
} else if (t <= 3.25e-199) {
tmp = z * (b * -c);
} else if (t <= 6.6e+56) {
tmp = z * (x * y);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5e+15: tmp = a * (x * -t) elif t <= 3.25e-199: tmp = z * (b * -c) elif t <= 6.6e+56: tmp = z * (x * y) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5e+15) tmp = Float64(a * Float64(x * Float64(-t))); elseif (t <= 3.25e-199) tmp = Float64(z * Float64(b * Float64(-c))); elseif (t <= 6.6e+56) tmp = Float64(z * Float64(x * y)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5e+15) tmp = a * (x * -t); elseif (t <= 3.25e-199) tmp = z * (b * -c); elseif (t <= 6.6e+56) tmp = z * (x * y); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5e+15], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.25e-199], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+56], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+15}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;t \leq 3.25 \cdot 10^{-199}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+56}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if t < -5e15Initial program 57.9%
Taylor expanded in a around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Taylor expanded in c around 0 42.3%
associate-*r*42.3%
neg-mul-142.3%
Simplified42.3%
if -5e15 < t < 3.25000000000000009e-199Initial program 80.8%
Taylor expanded in z around inf 55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in y around 0 35.1%
neg-mul-135.1%
distribute-rgt-neg-in35.1%
Simplified35.1%
if 3.25000000000000009e-199 < t < 6.60000000000000004e56Initial program 86.0%
Taylor expanded in z around inf 40.2%
*-commutative40.2%
Simplified40.2%
Taylor expanded in y around inf 32.4%
if 6.60000000000000004e56 < t Initial program 72.0%
Taylor expanded in a around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
Simplified47.5%
Taylor expanded in x around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
associate-*r*49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in c around 0 44.7%
mul-1-neg44.7%
*-commutative44.7%
distribute-rgt-neg-in44.7%
Simplified44.7%
Final simplification38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.5e+76)
(* a (* c j))
(if (<= c 1.05e-200)
(* z (* x y))
(if (<= c 9.5e-14) (* 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 <= -1.5e+76) {
tmp = a * (c * j);
} else if (c <= 1.05e-200) {
tmp = z * (x * y);
} else if (c <= 9.5e-14) {
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 <= (-1.5d+76)) then
tmp = a * (c * j)
else if (c <= 1.05d-200) then
tmp = z * (x * y)
else if (c <= 9.5d-14) 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 <= -1.5e+76) {
tmp = a * (c * j);
} else if (c <= 1.05e-200) {
tmp = z * (x * y);
} else if (c <= 9.5e-14) {
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 <= -1.5e+76: tmp = a * (c * j) elif c <= 1.05e-200: tmp = z * (x * y) elif c <= 9.5e-14: 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 <= -1.5e+76) tmp = Float64(a * Float64(c * j)); elseif (c <= 1.05e-200) tmp = Float64(z * Float64(x * y)); elseif (c <= 9.5e-14) 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 <= -1.5e+76) tmp = a * (c * j); elseif (c <= 1.05e-200) tmp = z * (x * y); elseif (c <= 9.5e-14) 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, -1.5e+76], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e-200], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-14], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.5 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-200}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if c < -1.4999999999999999e76Initial program 66.6%
Taylor expanded in a around inf 48.2%
+-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
Simplified48.2%
Taylor expanded in c around inf 37.6%
if -1.4999999999999999e76 < c < 1.05e-200Initial program 81.3%
Taylor expanded in z around inf 39.6%
*-commutative39.6%
Simplified39.6%
Taylor expanded in y around inf 34.5%
if 1.05e-200 < c < 9.4999999999999999e-14Initial program 75.2%
Taylor expanded in a around 0 62.1%
Simplified68.5%
Taylor expanded in i around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in b around inf 29.2%
if 9.4999999999999999e-14 < c Initial program 64.9%
Taylor expanded in a around -inf 63.5%
Simplified61.7%
Taylor expanded in j around inf 49.4%
associate-*r*54.1%
mul-1-neg54.1%
unsub-neg54.1%
associate-/l*54.1%
Simplified54.1%
Taylor expanded in c around inf 36.1%
Final simplification34.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -3.5e-13)
t_1
(if (<= y 4.4e-210) (* a (* c j)) (if (<= y 8e+122) (* i (* t 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 = x * (y * z);
double tmp;
if (y <= -3.5e-13) {
tmp = t_1;
} else if (y <= 4.4e-210) {
tmp = a * (c * j);
} else if (y <= 8e+122) {
tmp = i * (t * 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 = x * (y * z)
if (y <= (-3.5d-13)) then
tmp = t_1
else if (y <= 4.4d-210) then
tmp = a * (c * j)
else if (y <= 8d+122) then
tmp = i * (t * 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 = x * (y * z);
double tmp;
if (y <= -3.5e-13) {
tmp = t_1;
} else if (y <= 4.4e-210) {
tmp = a * (c * j);
} else if (y <= 8e+122) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -3.5e-13: tmp = t_1 elif y <= 4.4e-210: tmp = a * (c * j) elif y <= 8e+122: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -3.5e-13) tmp = t_1; elseif (y <= 4.4e-210) tmp = Float64(a * Float64(c * j)); elseif (y <= 8e+122) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -3.5e-13) tmp = t_1; elseif (y <= 4.4e-210) tmp = a * (c * j); elseif (y <= 8e+122) tmp = i * (t * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e-13], t$95$1, If[LessEqual[y, 4.4e-210], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e+122], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-210}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+122}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.5000000000000002e-13 or 8.00000000000000012e122 < y Initial program 66.9%
Taylor expanded in z around inf 48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in y around inf 35.6%
*-commutative35.6%
Simplified35.6%
if -3.5000000000000002e-13 < y < 4.39999999999999979e-210Initial program 76.4%
Taylor expanded in a around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
Simplified51.5%
Taylor expanded in c around inf 32.3%
if 4.39999999999999979e-210 < y < 8.00000000000000012e122Initial program 81.1%
Taylor expanded in a around 0 65.9%
Simplified64.7%
Taylor expanded in i around inf 41.9%
+-commutative41.9%
mul-1-neg41.9%
unsub-neg41.9%
Simplified41.9%
Taylor expanded in b around inf 30.9%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.3e+117) (not (<= a 8e+107))) (* a (* c j)) (* i (* t 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 <= -2.3e+117) || !(a <= 8e+107)) {
tmp = a * (c * j);
} else {
tmp = i * (t * 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 <= (-2.3d+117)) .or. (.not. (a <= 8d+107))) then
tmp = a * (c * j)
else
tmp = i * (t * 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 <= -2.3e+117) || !(a <= 8e+107)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.3e+117) or not (a <= 8e+107): tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.3e+117) || !(a <= 8e+107)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.3e+117) || ~((a <= 8e+107))) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.3e+117], N[Not[LessEqual[a, 8e+107]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.3 \cdot 10^{+117} \lor \neg \left(a \leq 8 \cdot 10^{+107}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if a < -2.29999999999999988e117 or 7.9999999999999998e107 < a Initial program 63.3%
Taylor expanded in a around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
Simplified66.1%
Taylor expanded in c around inf 37.6%
if -2.29999999999999988e117 < a < 7.9999999999999998e107Initial program 79.4%
Taylor expanded in a around 0 70.8%
Simplified71.5%
Taylor expanded in i around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
Simplified49.6%
Taylor expanded in b around inf 27.8%
Final simplification31.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -5.4e+118) (not (<= a 6e+108))) (* 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 ((a <= -5.4e+118) || !(a <= 6e+108)) {
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 ((a <= (-5.4d+118)) .or. (.not. (a <= 6d+108))) 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 ((a <= -5.4e+118) || !(a <= 6e+108)) {
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 (a <= -5.4e+118) or not (a <= 6e+108): 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 ((a <= -5.4e+118) || !(a <= 6e+108)) 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 ((a <= -5.4e+118) || ~((a <= 6e+108))) 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[a, -5.4e+118], N[Not[LessEqual[a, 6e+108]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.4 \cdot 10^{+118} \lor \neg \left(a \leq 6 \cdot 10^{+108}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if a < -5.4e118 or 5.99999999999999968e108 < a Initial program 63.3%
Taylor expanded in a around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
Simplified66.1%
Taylor expanded in c around inf 37.6%
if -5.4e118 < a < 5.99999999999999968e108Initial program 79.4%
Taylor expanded in j around 0 65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in i around inf 26.1%
Final simplification30.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 73.8%
Taylor expanded in a around inf 37.2%
+-commutative37.2%
mul-1-neg37.2%
unsub-neg37.2%
Simplified37.2%
Taylor expanded in c around inf 19.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024131
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))