
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(* t (* z (- (- (* c (/ j z)) (* b (/ c t))) (* a (/ x z))))))))
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * (z * (((c * (j / z)) - (b * (c / t))) - (a * (x / z))));
}
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * (z * (((c * (j / z)) - (b * (c / t))) - (a * (x / z))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * (z * (((c * (j / z)) - (b * (c / t))) - (a * (x / z)))) 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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(z * Float64(Float64(Float64(c * Float64(j / z)) - Float64(b * Float64(c / t))) - Float64(a * Float64(x / z))))); 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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * (z * (((c * (j / z)) - (b * (c / t))) - (a * (x / z)))); 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(z * N[(N[(N[(c * N[(j / z), $MachinePrecision]), $MachinePrecision] - N[(b * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $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(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(\left(c \cdot \frac{j}{z} - b \cdot \frac{c}{t}\right) - a \cdot \frac{x}{z}\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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in t around -inf 27.3%
Simplified35.9%
Taylor expanded in c around inf 49.3%
associate-*r/49.3%
associate-*r*49.3%
neg-mul-149.3%
Simplified49.3%
Taylor expanded in z around inf 51.0%
mul-1-neg51.0%
associate-/l*52.7%
+-commutative52.7%
unsub-neg52.7%
associate-/l*56.0%
associate-/l*61.1%
Simplified61.1%
Final simplification83.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z c)))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (+ t_2 (* a (* b i))))
(t_4 (- (* x (- (* y z) (* t a))) t_1)))
(if (<= x -5.3e-30)
t_4
(if (<= x 1.55e-251)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= x 1.05e-152)
t_3
(if (<= x 1.15e-28)
(- t_2 t_1)
(if (<= x 1.7e-6)
(* i (- (* a b) (* y j)))
(if (<= x 9.6e+25)
t_4
(if (<= x 3.5e+60) t_3 (* z (- (* x y) (* b 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 * (z * c);
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 + (a * (b * i));
double t_4 = (x * ((y * z) - (t * a))) - t_1;
double tmp;
if (x <= -5.3e-30) {
tmp = t_4;
} else if (x <= 1.55e-251) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 1.05e-152) {
tmp = t_3;
} else if (x <= 1.15e-28) {
tmp = t_2 - t_1;
} else if (x <= 1.7e-6) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 9.6e+25) {
tmp = t_4;
} else if (x <= 3.5e+60) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = b * (z * c)
t_2 = j * ((t * c) - (y * i))
t_3 = t_2 + (a * (b * i))
t_4 = (x * ((y * z) - (t * a))) - t_1
if (x <= (-5.3d-30)) then
tmp = t_4
else if (x <= 1.55d-251) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (x <= 1.05d-152) then
tmp = t_3
else if (x <= 1.15d-28) then
tmp = t_2 - t_1
else if (x <= 1.7d-6) then
tmp = i * ((a * b) - (y * j))
else if (x <= 9.6d+25) then
tmp = t_4
else if (x <= 3.5d+60) then
tmp = t_3
else
tmp = z * ((x * y) - (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 t_1 = b * (z * c);
double t_2 = j * ((t * c) - (y * i));
double t_3 = t_2 + (a * (b * i));
double t_4 = (x * ((y * z) - (t * a))) - t_1;
double tmp;
if (x <= -5.3e-30) {
tmp = t_4;
} else if (x <= 1.55e-251) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 1.05e-152) {
tmp = t_3;
} else if (x <= 1.15e-28) {
tmp = t_2 - t_1;
} else if (x <= 1.7e-6) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 9.6e+25) {
tmp = t_4;
} else if (x <= 3.5e+60) {
tmp = t_3;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * c) t_2 = j * ((t * c) - (y * i)) t_3 = t_2 + (a * (b * i)) t_4 = (x * ((y * z) - (t * a))) - t_1 tmp = 0 if x <= -5.3e-30: tmp = t_4 elif x <= 1.55e-251: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif x <= 1.05e-152: tmp = t_3 elif x <= 1.15e-28: tmp = t_2 - t_1 elif x <= 1.7e-6: tmp = i * ((a * b) - (y * j)) elif x <= 9.6e+25: tmp = t_4 elif x <= 3.5e+60: tmp = t_3 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * c)) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(t_2 + Float64(a * Float64(b * i))) t_4 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1) tmp = 0.0 if (x <= -5.3e-30) tmp = t_4; elseif (x <= 1.55e-251) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 1.05e-152) tmp = t_3; elseif (x <= 1.15e-28) tmp = Float64(t_2 - t_1); elseif (x <= 1.7e-6) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 9.6e+25) tmp = t_4; elseif (x <= 3.5e+60) tmp = t_3; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * c); t_2 = j * ((t * c) - (y * i)); t_3 = t_2 + (a * (b * i)); t_4 = (x * ((y * z) - (t * a))) - t_1; tmp = 0.0; if (x <= -5.3e-30) tmp = t_4; elseif (x <= 1.55e-251) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (x <= 1.05e-152) tmp = t_3; elseif (x <= 1.15e-28) tmp = t_2 - t_1; elseif (x <= 1.7e-6) tmp = i * ((a * b) - (y * j)); elseif (x <= 9.6e+25) tmp = t_4; elseif (x <= 3.5e+60) tmp = t_3; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[x, -5.3e-30], t$95$4, If[LessEqual[x, 1.55e-251], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e-152], t$95$3, If[LessEqual[x, 1.15e-28], N[(t$95$2 - t$95$1), $MachinePrecision], If[LessEqual[x, 1.7e-6], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.6e+25], t$95$4, If[LessEqual[x, 3.5e+60], t$95$3, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := t\_2 + a \cdot \left(b \cdot i\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right) - t\_1\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{-30}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{-251}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-152}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-28}:\\
\;\;\;\;t\_2 - t\_1\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-6}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+25}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+60}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if x < -5.29999999999999974e-30 or 1.70000000000000003e-6 < x < 9.59999999999999984e25Initial program 79.0%
Taylor expanded in j around 0 75.6%
Taylor expanded in c around inf 69.4%
*-commutative69.4%
Simplified69.4%
if -5.29999999999999974e-30 < x < 1.55000000000000001e-251Initial program 66.0%
Taylor expanded in z around inf 75.9%
Taylor expanded in x around 0 68.7%
*-commutative68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in t around inf 67.4%
*-commutative67.4%
Simplified67.4%
if 1.55000000000000001e-251 < x < 1.04999999999999999e-152 or 9.59999999999999984e25 < x < 3.5000000000000002e60Initial program 73.9%
Taylor expanded in z around inf 74.1%
Taylor expanded in x around 0 72.1%
*-commutative72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in z around 0 75.9%
associate-*r*75.9%
neg-mul-175.9%
Simplified75.9%
if 1.04999999999999999e-152 < x < 1.14999999999999993e-28Initial program 61.7%
Taylor expanded in z around inf 77.1%
Taylor expanded in x around 0 84.8%
*-commutative84.8%
*-commutative84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in z around inf 76.9%
if 1.14999999999999993e-28 < x < 1.70000000000000003e-6Initial program 59.7%
Taylor expanded in i around inf 96.6%
distribute-lft-out--96.6%
Simplified96.6%
if 3.5000000000000002e60 < x Initial program 58.4%
Taylor expanded in z around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
Final simplification69.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- (* y (/ z t)) a)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= x -4e+113)
(* a (- (/ (* x (* y z)) a) (* x t)))
(if (<= x -5e+27)
(* (* t a) (- (* b (/ i t)) x))
(if (<= x -29000000000.0)
t_1
(if (<= x 1.45e-28)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= x 3.15e-6)
t_2
(if (<= x 70000000000.0)
(* t (- (* c j) (* x a)))
(if (<= x 1.55e+23)
t_1
(if (<= x 7.8e+80) t_2 (* z (- (* x y) (* b c)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (x * ((y * (z / t)) - a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (x <= -4e+113) {
tmp = a * (((x * (y * z)) / a) - (x * t));
} else if (x <= -5e+27) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -29000000000.0) {
tmp = t_1;
} else if (x <= 1.45e-28) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.15e-6) {
tmp = t_2;
} else if (x <= 70000000000.0) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 1.55e+23) {
tmp = t_1;
} else if (x <= 7.8e+80) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (x * ((y * (z / t)) - a))
t_2 = i * ((a * b) - (y * j))
if (x <= (-4d+113)) then
tmp = a * (((x * (y * z)) / a) - (x * t))
else if (x <= (-5d+27)) then
tmp = (t * a) * ((b * (i / t)) - x)
else if (x <= (-29000000000.0d0)) then
tmp = t_1
else if (x <= 1.45d-28) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (x <= 3.15d-6) then
tmp = t_2
else if (x <= 70000000000.0d0) then
tmp = t * ((c * j) - (x * a))
else if (x <= 1.55d+23) then
tmp = t_1
else if (x <= 7.8d+80) then
tmp = t_2
else
tmp = z * ((x * y) - (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 t_1 = t * (x * ((y * (z / t)) - a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (x <= -4e+113) {
tmp = a * (((x * (y * z)) / a) - (x * t));
} else if (x <= -5e+27) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -29000000000.0) {
tmp = t_1;
} else if (x <= 1.45e-28) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.15e-6) {
tmp = t_2;
} else if (x <= 70000000000.0) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 1.55e+23) {
tmp = t_1;
} else if (x <= 7.8e+80) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (x * ((y * (z / t)) - a)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if x <= -4e+113: tmp = a * (((x * (y * z)) / a) - (x * t)) elif x <= -5e+27: tmp = (t * a) * ((b * (i / t)) - x) elif x <= -29000000000.0: tmp = t_1 elif x <= 1.45e-28: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif x <= 3.15e-6: tmp = t_2 elif x <= 70000000000.0: tmp = t * ((c * j) - (x * a)) elif x <= 1.55e+23: tmp = t_1 elif x <= 7.8e+80: tmp = t_2 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(Float64(y * Float64(z / t)) - a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (x <= -4e+113) tmp = Float64(a * Float64(Float64(Float64(x * Float64(y * z)) / a) - Float64(x * t))); elseif (x <= -5e+27) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / t)) - x)); elseif (x <= -29000000000.0) tmp = t_1; elseif (x <= 1.45e-28) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 3.15e-6) tmp = t_2; elseif (x <= 70000000000.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (x <= 1.55e+23) tmp = t_1; elseif (x <= 7.8e+80) tmp = t_2; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (x * ((y * (z / t)) - a)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (x <= -4e+113) tmp = a * (((x * (y * z)) / a) - (x * t)); elseif (x <= -5e+27) tmp = (t * a) * ((b * (i / t)) - x); elseif (x <= -29000000000.0) tmp = t_1; elseif (x <= 1.45e-28) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (x <= 3.15e-6) tmp = t_2; elseif (x <= 70000000000.0) tmp = t * ((c * j) - (x * a)); elseif (x <= 1.55e+23) tmp = t_1; elseif (x <= 7.8e+80) tmp = t_2; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(x * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+113], N[(a * N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5e+27], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -29000000000.0], t$95$1, If[LessEqual[x, 1.45e-28], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.15e-6], t$95$2, If[LessEqual[x, 70000000000.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+23], t$95$1, If[LessEqual[x, 7.8e+80], t$95$2, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(y \cdot \frac{z}{t} - a\right)\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+113}:\\
\;\;\;\;a \cdot \left(\frac{x \cdot \left(y \cdot z\right)}{a} - x \cdot t\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{+27}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{t} - x\right)\\
\mathbf{elif}\;x \leq -29000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-28}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.15 \cdot 10^{-6}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 70000000000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+80}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if x < -4e113Initial program 72.4%
Taylor expanded in j around 0 66.6%
Taylor expanded in a around -inf 71.8%
mul-1-neg71.8%
*-commutative71.8%
distribute-rgt-neg-in71.8%
Simplified72.0%
Taylor expanded in b around 0 74.5%
if -4e113 < x < -4.99999999999999979e27Initial program 86.8%
Taylor expanded in t around -inf 78.7%
Simplified70.0%
Taylor expanded in a around -inf 56.6%
associate-*r*60.7%
*-commutative60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
associate-/l*64.8%
Simplified64.8%
if -4.99999999999999979e27 < x < -2.9e10 or 7e10 < x < 1.54999999999999985e23Initial program 77.6%
Taylor expanded in t around -inf 77.3%
Simplified78.5%
Taylor expanded in x around inf 80.2%
associate-*r*80.2%
neg-mul-180.2%
associate-/l*91.1%
Simplified91.1%
if -2.9e10 < x < 1.45000000000000006e-28Initial program 67.8%
Taylor expanded in z around inf 78.5%
Taylor expanded in x around 0 72.1%
*-commutative72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in t around inf 64.7%
*-commutative64.7%
Simplified64.7%
if 1.45000000000000006e-28 < x < 3.14999999999999991e-6 or 1.54999999999999985e23 < x < 7.79999999999999998e80Initial program 65.2%
Taylor expanded in i around inf 70.3%
distribute-lft-out--70.3%
Simplified70.3%
if 3.14999999999999991e-6 < x < 7e10Initial program 99.6%
Taylor expanded in z around inf 77.9%
Taylor expanded in t around inf 99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
Simplified99.2%
if 7.79999999999999998e80 < x Initial program 58.6%
Taylor expanded in z around inf 63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= b -5.5e+220)
(* b (- (* a i) (* z c)))
(if (<= b -1.5e+209)
t_2
(if (<= b -3.6e+27)
(* z (- (* x y) (* b c)))
(if (<= b -8.2e-97)
(* a (- (* b i) (* x t)))
(if (<= b -2.5e-170)
t_1
(if (<= b 8.6e-40)
t_2
(if (<= b 2e+43) t_1 (* b (* c (- (/ (* a i) c) z))))))))))))
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 t_2 = t * ((c * j) - (x * a));
double tmp;
if (b <= -5.5e+220) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -1.5e+209) {
tmp = t_2;
} else if (b <= -3.6e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -8.2e-97) {
tmp = a * ((b * i) - (x * t));
} else if (b <= -2.5e-170) {
tmp = t_1;
} else if (b <= 8.6e-40) {
tmp = t_2;
} else if (b <= 2e+43) {
tmp = t_1;
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
if (b <= (-5.5d+220)) then
tmp = b * ((a * i) - (z * c))
else if (b <= (-1.5d+209)) then
tmp = t_2
else if (b <= (-3.6d+27)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-8.2d-97)) then
tmp = a * ((b * i) - (x * t))
else if (b <= (-2.5d-170)) then
tmp = t_1
else if (b <= 8.6d-40) then
tmp = t_2
else if (b <= 2d+43) then
tmp = t_1
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (b <= -5.5e+220) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -1.5e+209) {
tmp = t_2;
} else if (b <= -3.6e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -8.2e-97) {
tmp = a * ((b * i) - (x * t));
} else if (b <= -2.5e-170) {
tmp = t_1;
} else if (b <= 8.6e-40) {
tmp = t_2;
} else if (b <= 2e+43) {
tmp = t_1;
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if b <= -5.5e+220: tmp = b * ((a * i) - (z * c)) elif b <= -1.5e+209: tmp = t_2 elif b <= -3.6e+27: tmp = z * ((x * y) - (b * c)) elif b <= -8.2e-97: tmp = a * ((b * i) - (x * t)) elif b <= -2.5e-170: tmp = t_1 elif b <= 8.6e-40: tmp = t_2 elif b <= 2e+43: tmp = t_1 else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (b <= -5.5e+220) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (b <= -1.5e+209) tmp = t_2; elseif (b <= -3.6e+27) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -8.2e-97) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= -2.5e-170) tmp = t_1; elseif (b <= 8.6e-40) tmp = t_2; elseif (b <= 2e+43) tmp = t_1; else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (b <= -5.5e+220) tmp = b * ((a * i) - (z * c)); elseif (b <= -1.5e+209) tmp = t_2; elseif (b <= -3.6e+27) tmp = z * ((x * y) - (b * c)); elseif (b <= -8.2e-97) tmp = a * ((b * i) - (x * t)); elseif (b <= -2.5e-170) tmp = t_1; elseif (b <= 8.6e-40) tmp = t_2; elseif (b <= 2e+43) tmp = t_1; else tmp = b * (c * (((a * i) / c) - z)); 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]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+220], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e+209], t$95$2, If[LessEqual[b, -3.6e+27], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.2e-97], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-170], t$95$1, If[LessEqual[b, 8.6e-40], t$95$2, If[LessEqual[b, 2e+43], t$95$1, N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+220}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{+209}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{+27}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-97}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -5.4999999999999999e220Initial program 57.6%
Taylor expanded in b around inf 81.5%
*-commutative81.5%
Simplified81.5%
if -5.4999999999999999e220 < b < -1.49999999999999993e209 or -2.50000000000000005e-170 < b < 8.6000000000000005e-40Initial program 70.1%
Taylor expanded in z around inf 68.3%
Taylor expanded in t around inf 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
*-commutative59.7%
Simplified59.7%
if -1.49999999999999993e209 < b < -3.59999999999999983e27Initial program 68.8%
Taylor expanded in z around inf 66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
if -3.59999999999999983e27 < b < -8.19999999999999986e-97Initial program 70.0%
Taylor expanded in a around inf 50.1%
distribute-lft-out--50.1%
*-commutative50.1%
Simplified50.1%
if -8.19999999999999986e-97 < b < -2.50000000000000005e-170 or 8.6000000000000005e-40 < b < 2.00000000000000003e43Initial program 70.7%
Taylor expanded in y around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
Simplified50.2%
if 2.00000000000000003e43 < b Initial program 72.3%
Taylor expanded in b around inf 75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in c around inf 77.2%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= b -2.2e+227)
(* b (- (* a i) (* z c)))
(if (<= b -9.2e+151)
t_1
(if (<= b -5e+27)
(* z (- (* x y) (* b c)))
(if (<= b -2.3e-94)
t_1
(if (<= b -3.8e-168)
(* y (- (* x z) (* i j)))
(if (<= b 1.1e-35)
(* t (- (* c j) (* x a)))
(if (<= b 8.5e+36) t_1 (* b (* c (- (/ (* a i) c) z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -2.2e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.2e+151) {
tmp = t_1;
} else if (b <= -5e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.3e-94) {
tmp = t_1;
} else if (b <= -3.8e-168) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.1e-35) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 8.5e+36) {
tmp = t_1;
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (b <= (-2.2d+227)) then
tmp = b * ((a * i) - (z * c))
else if (b <= (-9.2d+151)) then
tmp = t_1
else if (b <= (-5d+27)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.3d-94)) then
tmp = t_1
else if (b <= (-3.8d-168)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 1.1d-35) then
tmp = t * ((c * j) - (x * a))
else if (b <= 8.5d+36) then
tmp = t_1
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -2.2e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.2e+151) {
tmp = t_1;
} else if (b <= -5e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.3e-94) {
tmp = t_1;
} else if (b <= -3.8e-168) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.1e-35) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 8.5e+36) {
tmp = t_1;
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if b <= -2.2e+227: tmp = b * ((a * i) - (z * c)) elif b <= -9.2e+151: tmp = t_1 elif b <= -5e+27: tmp = z * ((x * y) - (b * c)) elif b <= -2.3e-94: tmp = t_1 elif b <= -3.8e-168: tmp = y * ((x * z) - (i * j)) elif b <= 1.1e-35: tmp = t * ((c * j) - (x * a)) elif b <= 8.5e+36: tmp = t_1 else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (b <= -2.2e+227) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (b <= -9.2e+151) tmp = t_1; elseif (b <= -5e+27) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.3e-94) tmp = t_1; elseif (b <= -3.8e-168) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 1.1e-35) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 8.5e+36) tmp = t_1; else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (b <= -2.2e+227) tmp = b * ((a * i) - (z * c)); elseif (b <= -9.2e+151) tmp = t_1; elseif (b <= -5e+27) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.3e-94) tmp = t_1; elseif (b <= -3.8e-168) tmp = y * ((x * z) - (i * j)); elseif (b <= 1.1e-35) tmp = t * ((c * j) - (x * a)); elseif (b <= 8.5e+36) tmp = t_1; else tmp = b * (c * (((a * i) / c) - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+227], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e+151], t$95$1, If[LessEqual[b, -5e+27], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.3e-94], t$95$1, If[LessEqual[b, -3.8e-168], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e-35], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+36], t$95$1, N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+227}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{+27}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-168}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{-35}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -2.2000000000000002e227Initial program 61.7%
Taylor expanded in b around inf 84.0%
*-commutative84.0%
Simplified84.0%
if -2.2000000000000002e227 < b < -9.2000000000000003e151 or -4.99999999999999979e27 < b < -2.2999999999999999e-94 or 1.09999999999999997e-35 < b < 8.50000000000000014e36Initial program 64.3%
Taylor expanded in i around inf 57.3%
distribute-lft-out--57.3%
Simplified57.3%
if -9.2000000000000003e151 < b < -4.99999999999999979e27Initial program 66.7%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -2.2999999999999999e-94 < b < -3.8e-168Initial program 75.2%
Taylor expanded in y around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if -3.8e-168 < b < 1.09999999999999997e-35Initial program 72.5%
Taylor expanded in z around inf 70.7%
Taylor expanded in t around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
if 8.50000000000000014e36 < b Initial program 72.3%
Taylor expanded in b around inf 75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in c around inf 77.2%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= b -2.2e+227)
(* b (- (* a i) (* z c)))
(if (<= b -9.5e+151)
t_1
(if (<= b -3.9e+27)
(* z (- (* x y) (* b c)))
(if (<= b -2.5e-94)
t_1
(if (<= b -3.8e-171)
(* y (- (* x z) (* i j)))
(if (<= b 2.05e-45)
(* t (- (* c j) (* x a)))
(if (<= b 9.5e+44)
(* t (* x (- (* y (/ z t)) a)))
(* b (* c (- (/ (* a i) c) z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -2.2e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.5e+151) {
tmp = t_1;
} else if (b <= -3.9e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.5e-94) {
tmp = t_1;
} else if (b <= -3.8e-171) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.05e-45) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9.5e+44) {
tmp = t * (x * ((y * (z / t)) - a));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (b <= (-2.2d+227)) then
tmp = b * ((a * i) - (z * c))
else if (b <= (-9.5d+151)) then
tmp = t_1
else if (b <= (-3.9d+27)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.5d-94)) then
tmp = t_1
else if (b <= (-3.8d-171)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2.05d-45) then
tmp = t * ((c * j) - (x * a))
else if (b <= 9.5d+44) then
tmp = t * (x * ((y * (z / t)) - a))
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -2.2e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.5e+151) {
tmp = t_1;
} else if (b <= -3.9e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.5e-94) {
tmp = t_1;
} else if (b <= -3.8e-171) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.05e-45) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9.5e+44) {
tmp = t * (x * ((y * (z / t)) - a));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if b <= -2.2e+227: tmp = b * ((a * i) - (z * c)) elif b <= -9.5e+151: tmp = t_1 elif b <= -3.9e+27: tmp = z * ((x * y) - (b * c)) elif b <= -2.5e-94: tmp = t_1 elif b <= -3.8e-171: tmp = y * ((x * z) - (i * j)) elif b <= 2.05e-45: tmp = t * ((c * j) - (x * a)) elif b <= 9.5e+44: tmp = t * (x * ((y * (z / t)) - a)) else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (b <= -2.2e+227) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (b <= -9.5e+151) tmp = t_1; elseif (b <= -3.9e+27) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.5e-94) tmp = t_1; elseif (b <= -3.8e-171) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2.05e-45) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 9.5e+44) tmp = Float64(t * Float64(x * Float64(Float64(y * Float64(z / t)) - a))); else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (b <= -2.2e+227) tmp = b * ((a * i) - (z * c)); elseif (b <= -9.5e+151) tmp = t_1; elseif (b <= -3.9e+27) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.5e-94) tmp = t_1; elseif (b <= -3.8e-171) tmp = y * ((x * z) - (i * j)); elseif (b <= 2.05e-45) tmp = t * ((c * j) - (x * a)); elseif (b <= 9.5e+44) tmp = t * (x * ((y * (z / t)) - a)); else tmp = b * (c * (((a * i) / c) - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.2e+227], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e+151], t$95$1, If[LessEqual[b, -3.9e+27], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-94], t$95$1, If[LessEqual[b, -3.8e-171], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e-45], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e+44], N[(t * N[(x * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{+227}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{+27}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-171}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{-45}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+44}:\\
\;\;\;\;t \cdot \left(x \cdot \left(y \cdot \frac{z}{t} - a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -2.2000000000000002e227Initial program 61.7%
Taylor expanded in b around inf 84.0%
*-commutative84.0%
Simplified84.0%
if -2.2000000000000002e227 < b < -9.5000000000000001e151 or -3.8999999999999999e27 < b < -2.4999999999999998e-94Initial program 61.8%
Taylor expanded in i around inf 60.6%
distribute-lft-out--60.6%
Simplified60.6%
if -9.5000000000000001e151 < b < -3.8999999999999999e27Initial program 66.7%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -2.4999999999999998e-94 < b < -3.80000000000000021e-171Initial program 75.2%
Taylor expanded in y around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if -3.80000000000000021e-171 < b < 2.05e-45Initial program 71.6%
Taylor expanded in z around inf 70.7%
Taylor expanded in t around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
unsub-neg57.8%
*-commutative57.8%
Simplified57.8%
if 2.05e-45 < b < 9.5000000000000004e44Initial program 73.5%
Taylor expanded in t around -inf 66.4%
Simplified66.5%
Taylor expanded in x around inf 51.6%
associate-*r*51.6%
neg-mul-151.6%
associate-/l*51.6%
Simplified51.6%
if 9.5000000000000004e44 < b Initial program 71.7%
Taylor expanded in b around inf 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 78.8%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= b -6.4e+227)
(* b (- (* a i) (* z c)))
(if (<= b -9.2e+151)
t_1
(if (<= b -4.8e+27)
(* z (- (* x y) (* b c)))
(if (<= b -2.15e-94)
t_1
(if (<= b -1.26e-170)
(* y (- (* x z) (* i j)))
(if (<= b 1.3e-27)
(* t (- (* c j) (* x a)))
(if (<= b 1.05e+45)
(* a (* x (- (/ (* y z) a) t)))
(* b (* c (- (/ (* a i) c) z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -6.4e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.2e+151) {
tmp = t_1;
} else if (b <= -4.8e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.15e-94) {
tmp = t_1;
} else if (b <= -1.26e-170) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.3e-27) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.05e+45) {
tmp = a * (x * (((y * z) / a) - t));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((a * b) - (y * j))
if (b <= (-6.4d+227)) then
tmp = b * ((a * i) - (z * c))
else if (b <= (-9.2d+151)) then
tmp = t_1
else if (b <= (-4.8d+27)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.15d-94)) then
tmp = t_1
else if (b <= (-1.26d-170)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 1.3d-27) then
tmp = t * ((c * j) - (x * a))
else if (b <= 1.05d+45) then
tmp = a * (x * (((y * z) / a) - t))
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double tmp;
if (b <= -6.4e+227) {
tmp = b * ((a * i) - (z * c));
} else if (b <= -9.2e+151) {
tmp = t_1;
} else if (b <= -4.8e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.15e-94) {
tmp = t_1;
} else if (b <= -1.26e-170) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.3e-27) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 1.05e+45) {
tmp = a * (x * (((y * z) / a) - t));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if b <= -6.4e+227: tmp = b * ((a * i) - (z * c)) elif b <= -9.2e+151: tmp = t_1 elif b <= -4.8e+27: tmp = z * ((x * y) - (b * c)) elif b <= -2.15e-94: tmp = t_1 elif b <= -1.26e-170: tmp = y * ((x * z) - (i * j)) elif b <= 1.3e-27: tmp = t * ((c * j) - (x * a)) elif b <= 1.05e+45: tmp = a * (x * (((y * z) / a) - t)) else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (b <= -6.4e+227) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (b <= -9.2e+151) tmp = t_1; elseif (b <= -4.8e+27) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.15e-94) tmp = t_1; elseif (b <= -1.26e-170) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 1.3e-27) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 1.05e+45) tmp = Float64(a * Float64(x * Float64(Float64(Float64(y * z) / a) - t))); else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (b <= -6.4e+227) tmp = b * ((a * i) - (z * c)); elseif (b <= -9.2e+151) tmp = t_1; elseif (b <= -4.8e+27) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.15e-94) tmp = t_1; elseif (b <= -1.26e-170) tmp = y * ((x * z) - (i * j)); elseif (b <= 1.3e-27) tmp = t * ((c * j) - (x * a)); elseif (b <= 1.05e+45) tmp = a * (x * (((y * z) / a) - t)); else tmp = b * (c * (((a * i) / c) - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.4e+227], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e+151], t$95$1, If[LessEqual[b, -4.8e+27], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.15e-94], t$95$1, If[LessEqual[b, -1.26e-170], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.3e-27], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e+45], N[(a * N[(x * N[(N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{+227}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{+27}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.26 \cdot 10^{-170}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{y \cdot z}{a} - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -6.39999999999999975e227Initial program 61.7%
Taylor expanded in b around inf 84.0%
*-commutative84.0%
Simplified84.0%
if -6.39999999999999975e227 < b < -9.2000000000000003e151 or -4.79999999999999995e27 < b < -2.1499999999999999e-94Initial program 61.8%
Taylor expanded in i around inf 60.6%
distribute-lft-out--60.6%
Simplified60.6%
if -9.2000000000000003e151 < b < -4.79999999999999995e27Initial program 66.7%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -2.1499999999999999e-94 < b < -1.26e-170Initial program 75.2%
Taylor expanded in y around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if -1.26e-170 < b < 1.30000000000000009e-27Initial program 73.1%
Taylor expanded in z around inf 71.3%
Taylor expanded in t around inf 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
Simplified56.9%
if 1.30000000000000009e-27 < b < 1.04999999999999997e45Initial program 67.3%
Taylor expanded in j around 0 58.5%
Taylor expanded in a around -inf 63.4%
mul-1-neg63.4%
*-commutative63.4%
distribute-rgt-neg-in63.4%
Simplified63.4%
Taylor expanded in x around inf 54.2%
if 1.04999999999999997e45 < b Initial program 71.7%
Taylor expanded in b around inf 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 78.8%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y)))
(t_2 (* c (* t j)))
(t_3 (* (* z c) (- b)))
(t_4 (* b (* a i))))
(if (<= i -4500000000.0)
t_4
(if (<= i -4.3e-125)
(* x (* y z))
(if (<= i -1.25e-227)
t_3
(if (<= i -1.4e-259)
t_1
(if (<= i 1.4e-229)
t_2
(if (<= i 2.7e-125)
t_1
(if (<= i 1.65e-63) t_3 (if (<= i 4.2e+85) t_2 t_4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = c * (t * j);
double t_3 = (z * c) * -b;
double t_4 = b * (a * i);
double tmp;
if (i <= -4500000000.0) {
tmp = t_4;
} else if (i <= -4.3e-125) {
tmp = x * (y * z);
} else if (i <= -1.25e-227) {
tmp = t_3;
} else if (i <= -1.4e-259) {
tmp = t_1;
} else if (i <= 1.4e-229) {
tmp = t_2;
} else if (i <= 2.7e-125) {
tmp = t_1;
} else if (i <= 1.65e-63) {
tmp = t_3;
} else if (i <= 4.2e+85) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = z * (x * y)
t_2 = c * (t * j)
t_3 = (z * c) * -b
t_4 = b * (a * i)
if (i <= (-4500000000.0d0)) then
tmp = t_4
else if (i <= (-4.3d-125)) then
tmp = x * (y * z)
else if (i <= (-1.25d-227)) then
tmp = t_3
else if (i <= (-1.4d-259)) then
tmp = t_1
else if (i <= 1.4d-229) then
tmp = t_2
else if (i <= 2.7d-125) then
tmp = t_1
else if (i <= 1.65d-63) then
tmp = t_3
else if (i <= 4.2d+85) then
tmp = t_2
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = c * (t * j);
double t_3 = (z * c) * -b;
double t_4 = b * (a * i);
double tmp;
if (i <= -4500000000.0) {
tmp = t_4;
} else if (i <= -4.3e-125) {
tmp = x * (y * z);
} else if (i <= -1.25e-227) {
tmp = t_3;
} else if (i <= -1.4e-259) {
tmp = t_1;
} else if (i <= 1.4e-229) {
tmp = t_2;
} else if (i <= 2.7e-125) {
tmp = t_1;
} else if (i <= 1.65e-63) {
tmp = t_3;
} else if (i <= 4.2e+85) {
tmp = t_2;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = c * (t * j) t_3 = (z * c) * -b t_4 = b * (a * i) tmp = 0 if i <= -4500000000.0: tmp = t_4 elif i <= -4.3e-125: tmp = x * (y * z) elif i <= -1.25e-227: tmp = t_3 elif i <= -1.4e-259: tmp = t_1 elif i <= 1.4e-229: tmp = t_2 elif i <= 2.7e-125: tmp = t_1 elif i <= 1.65e-63: tmp = t_3 elif i <= 4.2e+85: tmp = t_2 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(c * Float64(t * j)) t_3 = Float64(Float64(z * c) * Float64(-b)) t_4 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -4500000000.0) tmp = t_4; elseif (i <= -4.3e-125) tmp = Float64(x * Float64(y * z)); elseif (i <= -1.25e-227) tmp = t_3; elseif (i <= -1.4e-259) tmp = t_1; elseif (i <= 1.4e-229) tmp = t_2; elseif (i <= 2.7e-125) tmp = t_1; elseif (i <= 1.65e-63) tmp = t_3; elseif (i <= 4.2e+85) tmp = t_2; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = c * (t * j); t_3 = (z * c) * -b; t_4 = b * (a * i); tmp = 0.0; if (i <= -4500000000.0) tmp = t_4; elseif (i <= -4.3e-125) tmp = x * (y * z); elseif (i <= -1.25e-227) tmp = t_3; elseif (i <= -1.4e-259) tmp = t_1; elseif (i <= 1.4e-229) tmp = t_2; elseif (i <= 2.7e-125) tmp = t_1; elseif (i <= 1.65e-63) tmp = t_3; elseif (i <= 4.2e+85) tmp = t_2; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4500000000.0], t$95$4, If[LessEqual[i, -4.3e-125], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.25e-227], t$95$3, If[LessEqual[i, -1.4e-259], t$95$1, If[LessEqual[i, 1.4e-229], t$95$2, If[LessEqual[i, 2.7e-125], t$95$1, If[LessEqual[i, 1.65e-63], t$95$3, If[LessEqual[i, 4.2e+85], t$95$2, t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
t_3 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_4 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -4500000000:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{-125}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq -1.25 \cdot 10^{-227}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-259}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-229}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.7 \cdot 10^{-125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-63}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if i < -4.5e9 or 4.2000000000000002e85 < i Initial program 58.9%
Taylor expanded in b around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in i around inf 43.7%
if -4.5e9 < i < -4.3000000000000002e-125Initial program 92.0%
Taylor expanded in j around 0 80.6%
Taylor expanded in a around -inf 73.2%
mul-1-neg73.2%
*-commutative73.2%
distribute-rgt-neg-in73.2%
Simplified73.1%
Taylor expanded in y around inf 42.1%
*-commutative42.1%
Simplified42.1%
if -4.3000000000000002e-125 < i < -1.2499999999999999e-227 or 2.6999999999999998e-125 < i < 1.64999999999999997e-63Initial program 72.5%
Taylor expanded in b around inf 47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in i around 0 47.5%
associate-*r*47.5%
neg-mul-147.5%
*-commutative47.5%
Simplified47.5%
if -1.2499999999999999e-227 < i < -1.4e-259 or 1.39999999999999995e-229 < i < 2.6999999999999998e-125Initial program 77.3%
Taylor expanded in z around inf 53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in y around inf 48.0%
if -1.4e-259 < i < 1.39999999999999995e-229 or 1.64999999999999997e-63 < i < 4.2000000000000002e85Initial program 73.9%
Taylor expanded in t around -inf 72.3%
Simplified81.1%
Taylor expanded in c around inf 69.3%
associate-*r/69.3%
associate-*r*69.3%
neg-mul-169.3%
Simplified69.3%
Taylor expanded in j around inf 38.2%
*-commutative38.2%
Simplified38.2%
Final simplification43.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -5.5e+220)
t_2
(if (<= b -1.56e+209)
t_1
(if (<= b -8e+151)
t_2
(if (<= b -4.5e+27)
(* z (- (* x y) (* b c)))
(if (<= b -4.8e-97)
(* a (- (* b i) (* x t)))
(if (<= b -2e-169)
(* y (- (* x z) (* i j)))
(if (<= b 1.7e-15) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e+220) {
tmp = t_2;
} else if (b <= -1.56e+209) {
tmp = t_1;
} else if (b <= -8e+151) {
tmp = t_2;
} else if (b <= -4.5e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -4.8e-97) {
tmp = a * ((b * i) - (x * t));
} else if (b <= -2e-169) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.7e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-5.5d+220)) then
tmp = t_2
else if (b <= (-1.56d+209)) then
tmp = t_1
else if (b <= (-8d+151)) then
tmp = t_2
else if (b <= (-4.5d+27)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-4.8d-97)) then
tmp = a * ((b * i) - (x * t))
else if (b <= (-2d-169)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 1.7d-15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e+220) {
tmp = t_2;
} else if (b <= -1.56e+209) {
tmp = t_1;
} else if (b <= -8e+151) {
tmp = t_2;
} else if (b <= -4.5e+27) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -4.8e-97) {
tmp = a * ((b * i) - (x * t));
} else if (b <= -2e-169) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 1.7e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.5e+220: tmp = t_2 elif b <= -1.56e+209: tmp = t_1 elif b <= -8e+151: tmp = t_2 elif b <= -4.5e+27: tmp = z * ((x * y) - (b * c)) elif b <= -4.8e-97: tmp = a * ((b * i) - (x * t)) elif b <= -2e-169: tmp = y * ((x * z) - (i * j)) elif b <= 1.7e-15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.5e+220) tmp = t_2; elseif (b <= -1.56e+209) tmp = t_1; elseif (b <= -8e+151) tmp = t_2; elseif (b <= -4.5e+27) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -4.8e-97) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= -2e-169) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 1.7e-15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.5e+220) tmp = t_2; elseif (b <= -1.56e+209) tmp = t_1; elseif (b <= -8e+151) tmp = t_2; elseif (b <= -4.5e+27) tmp = z * ((x * y) - (b * c)); elseif (b <= -4.8e-97) tmp = a * ((b * i) - (x * t)); elseif (b <= -2e-169) tmp = y * ((x * z) - (i * j)); elseif (b <= 1.7e-15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+220], t$95$2, If[LessEqual[b, -1.56e+209], t$95$1, If[LessEqual[b, -8e+151], t$95$2, If[LessEqual[b, -4.5e+27], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.8e-97], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-169], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e-15], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+220}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{+151}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{+27}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-97}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-169}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.4999999999999999e220 or -1.56e209 < b < -8.00000000000000014e151 or 1.7e-15 < b Initial program 69.4%
Taylor expanded in b around inf 68.4%
*-commutative68.4%
Simplified68.4%
if -5.4999999999999999e220 < b < -1.56e209 or -2.00000000000000004e-169 < b < 1.7e-15Initial program 69.3%
Taylor expanded in z around inf 68.5%
Taylor expanded in t around inf 57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
*-commutative57.7%
Simplified57.7%
if -8.00000000000000014e151 < b < -4.4999999999999999e27Initial program 66.7%
Taylor expanded in z around inf 75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
if -4.4999999999999999e27 < b < -4.8e-97Initial program 70.0%
Taylor expanded in a around inf 50.1%
distribute-lft-out--50.1%
*-commutative50.1%
Simplified50.1%
if -4.8e-97 < b < -2.00000000000000004e-169Initial program 73.7%
Taylor expanded in y around inf 56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
Simplified56.5%
Final simplification62.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.55e+110)
(* a (- (/ (* x (* y z)) a) (* x t)))
(if (<= x -9.2e+27)
(* (* t a) (- (* b (/ i t)) x))
(if (<= x -2800000000000.0)
(* t (* x (- (* y (/ z t)) a)))
(if (<= x 1.45e-251)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= x 5e-7)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (<= x 1.6e+28)
(* t (- (* c j) (* x a)))
(if (<= x 7.2e+80)
(* i (- (* a b) (* y j)))
(* z (- (* x y) (* 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 (x <= -2.55e+110) {
tmp = a * (((x * (y * z)) / a) - (x * t));
} else if (x <= -9.2e+27) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -2800000000000.0) {
tmp = t * (x * ((y * (z / t)) - a));
} else if (x <= 1.45e-251) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 5e-7) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 1.6e+28) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 7.2e+80) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (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 (x <= (-2.55d+110)) then
tmp = a * (((x * (y * z)) / a) - (x * t))
else if (x <= (-9.2d+27)) then
tmp = (t * a) * ((b * (i / t)) - x)
else if (x <= (-2800000000000.0d0)) then
tmp = t * (x * ((y * (z / t)) - a))
else if (x <= 1.45d-251) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (x <= 5d-7) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if (x <= 1.6d+28) then
tmp = t * ((c * j) - (x * a))
else if (x <= 7.2d+80) then
tmp = i * ((a * b) - (y * j))
else
tmp = z * ((x * y) - (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 (x <= -2.55e+110) {
tmp = a * (((x * (y * z)) / a) - (x * t));
} else if (x <= -9.2e+27) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -2800000000000.0) {
tmp = t * (x * ((y * (z / t)) - a));
} else if (x <= 1.45e-251) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 5e-7) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 1.6e+28) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 7.2e+80) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.55e+110: tmp = a * (((x * (y * z)) / a) - (x * t)) elif x <= -9.2e+27: tmp = (t * a) * ((b * (i / t)) - x) elif x <= -2800000000000.0: tmp = t * (x * ((y * (z / t)) - a)) elif x <= 1.45e-251: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif x <= 5e-7: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif x <= 1.6e+28: tmp = t * ((c * j) - (x * a)) elif x <= 7.2e+80: tmp = i * ((a * b) - (y * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.55e+110) tmp = Float64(a * Float64(Float64(Float64(x * Float64(y * z)) / a) - Float64(x * t))); elseif (x <= -9.2e+27) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / t)) - x)); elseif (x <= -2800000000000.0) tmp = Float64(t * Float64(x * Float64(Float64(y * Float64(z / t)) - a))); elseif (x <= 1.45e-251) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 5e-7) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (x <= 1.6e+28) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (x <= 7.2e+80) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.55e+110) tmp = a * (((x * (y * z)) / a) - (x * t)); elseif (x <= -9.2e+27) tmp = (t * a) * ((b * (i / t)) - x); elseif (x <= -2800000000000.0) tmp = t * (x * ((y * (z / t)) - a)); elseif (x <= 1.45e-251) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (x <= 5e-7) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif (x <= 1.6e+28) tmp = t * ((c * j) - (x * a)); elseif (x <= 7.2e+80) tmp = i * ((a * b) - (y * j)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.55e+110], N[(a * N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.2e+27], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2800000000000.0], N[(t * N[(x * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e-251], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e-7], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e+28], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+80], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{+110}:\\
\;\;\;\;a \cdot \left(\frac{x \cdot \left(y \cdot z\right)}{a} - x \cdot t\right)\\
\mathbf{elif}\;x \leq -9.2 \cdot 10^{+27}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{t} - x\right)\\
\mathbf{elif}\;x \leq -2800000000000:\\
\;\;\;\;t \cdot \left(x \cdot \left(y \cdot \frac{z}{t} - a\right)\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-251}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-7}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+80}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if x < -2.5500000000000001e110Initial program 72.4%
Taylor expanded in j around 0 66.6%
Taylor expanded in a around -inf 71.8%
mul-1-neg71.8%
*-commutative71.8%
distribute-rgt-neg-in71.8%
Simplified72.0%
Taylor expanded in b around 0 74.5%
if -2.5500000000000001e110 < x < -9.2000000000000002e27Initial program 86.8%
Taylor expanded in t around -inf 78.7%
Simplified70.0%
Taylor expanded in a around -inf 56.6%
associate-*r*60.7%
*-commutative60.7%
+-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
associate-/l*64.8%
Simplified64.8%
if -9.2000000000000002e27 < x < -2.8e12Initial program 74.6%
Taylor expanded in t around -inf 74.4%
Simplified75.0%
Taylor expanded in x around inf 79.8%
associate-*r*79.8%
neg-mul-179.8%
associate-/l*80.4%
Simplified80.4%
if -2.8e12 < x < 1.45e-251Initial program 67.1%
Taylor expanded in z around inf 77.1%
Taylor expanded in x around 0 66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in t around inf 65.7%
*-commutative65.7%
Simplified65.7%
if 1.45e-251 < x < 4.99999999999999977e-7Initial program 69.5%
Taylor expanded in z around inf 80.4%
Taylor expanded in x around 0 81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in z around inf 71.9%
if 4.99999999999999977e-7 < x < 1.6e28Initial program 84.3%
Taylor expanded in z around inf 70.4%
Taylor expanded in t around inf 77.2%
+-commutative77.2%
mul-1-neg77.2%
unsub-neg77.2%
*-commutative77.2%
Simplified77.2%
if 1.6e28 < x < 7.1999999999999999e80Initial program 59.1%
Taylor expanded in i around inf 68.2%
distribute-lft-out--68.2%
Simplified68.2%
if 7.1999999999999999e80 < x Initial program 58.6%
Taylor expanded in z around inf 63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= x -2.4e+110)
(* a (- (/ t_1 a) (* x t)))
(if (<= x -4.7e+26)
(* (* t a) (- (* b (/ i t)) x))
(if (<= x -2e-23)
(+ t_1 t_2)
(if (<= x 3e-257)
(+ (* c (* t j)) t_2)
(if (<= x 1.65e-6)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (<= x 3.5e+28)
(* t (- (* c j) (* x a)))
(if (<= x 4.6e+82)
(* i (- (* a b) (* y j)))
(* z (- (* x y) (* b 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);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -2.4e+110) {
tmp = a * ((t_1 / a) - (x * t));
} else if (x <= -4.7e+26) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -2e-23) {
tmp = t_1 + t_2;
} else if (x <= 3e-257) {
tmp = (c * (t * j)) + t_2;
} else if (x <= 1.65e-6) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 3.5e+28) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 4.6e+82) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * ((a * i) - (z * c))
if (x <= (-2.4d+110)) then
tmp = a * ((t_1 / a) - (x * t))
else if (x <= (-4.7d+26)) then
tmp = (t * a) * ((b * (i / t)) - x)
else if (x <= (-2d-23)) then
tmp = t_1 + t_2
else if (x <= 3d-257) then
tmp = (c * (t * j)) + t_2
else if (x <= 1.65d-6) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if (x <= 3.5d+28) then
tmp = t * ((c * j) - (x * a))
else if (x <= 4.6d+82) then
tmp = i * ((a * b) - (y * j))
else
tmp = z * ((x * y) - (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 t_1 = x * (y * z);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -2.4e+110) {
tmp = a * ((t_1 / a) - (x * t));
} else if (x <= -4.7e+26) {
tmp = (t * a) * ((b * (i / t)) - x);
} else if (x <= -2e-23) {
tmp = t_1 + t_2;
} else if (x <= 3e-257) {
tmp = (c * (t * j)) + t_2;
} else if (x <= 1.65e-6) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 3.5e+28) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 4.6e+82) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * ((a * i) - (z * c)) tmp = 0 if x <= -2.4e+110: tmp = a * ((t_1 / a) - (x * t)) elif x <= -4.7e+26: tmp = (t * a) * ((b * (i / t)) - x) elif x <= -2e-23: tmp = t_1 + t_2 elif x <= 3e-257: tmp = (c * (t * j)) + t_2 elif x <= 1.65e-6: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif x <= 3.5e+28: tmp = t * ((c * j) - (x * a)) elif x <= 4.6e+82: tmp = i * ((a * b) - (y * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (x <= -2.4e+110) tmp = Float64(a * Float64(Float64(t_1 / a) - Float64(x * t))); elseif (x <= -4.7e+26) tmp = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / t)) - x)); elseif (x <= -2e-23) tmp = Float64(t_1 + t_2); elseif (x <= 3e-257) tmp = Float64(Float64(c * Float64(t * j)) + t_2); elseif (x <= 1.65e-6) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (x <= 3.5e+28) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (x <= 4.6e+82) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (x <= -2.4e+110) tmp = a * ((t_1 / a) - (x * t)); elseif (x <= -4.7e+26) tmp = (t * a) * ((b * (i / t)) - x); elseif (x <= -2e-23) tmp = t_1 + t_2; elseif (x <= 3e-257) tmp = (c * (t * j)) + t_2; elseif (x <= 1.65e-6) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif (x <= 3.5e+28) tmp = t * ((c * j) - (x * a)); elseif (x <= 4.6e+82) tmp = i * ((a * b) - (y * j)); else tmp = z * ((x * y) - (b * c)); 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]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.4e+110], N[(a * N[(N[(t$95$1 / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.7e+26], N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2e-23], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[x, 3e-257], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[x, 1.65e-6], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e+28], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e+82], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -2.4 \cdot 10^{+110}:\\
\;\;\;\;a \cdot \left(\frac{t\_1}{a} - x \cdot t\right)\\
\mathbf{elif}\;x \leq -4.7 \cdot 10^{+26}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{t} - x\right)\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-23}:\\
\;\;\;\;t\_1 + t\_2\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-257}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + t\_2\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-6}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+28}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+82}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if x < -2.40000000000000012e110Initial program 72.4%
Taylor expanded in j around 0 66.6%
Taylor expanded in a around -inf 71.8%
mul-1-neg71.8%
*-commutative71.8%
distribute-rgt-neg-in71.8%
Simplified72.0%
Taylor expanded in b around 0 74.5%
if -2.40000000000000012e110 < x < -4.6999999999999998e26Initial program 87.4%
Taylor expanded in t around -inf 79.6%
Simplified71.3%
Taylor expanded in a around -inf 58.4%
associate-*r*62.3%
*-commutative62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
associate-/l*66.3%
Simplified66.3%
if -4.6999999999999998e26 < x < -1.99999999999999992e-23Initial program 70.7%
Taylor expanded in j around 0 61.0%
Taylor expanded in t around 0 60.8%
*-commutative60.8%
Simplified60.8%
if -1.99999999999999992e-23 < x < 2.9999999999999999e-257Initial program 66.5%
Taylor expanded in z around inf 76.3%
Taylor expanded in x around 0 69.1%
*-commutative69.1%
*-commutative69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in t around inf 67.9%
*-commutative67.9%
Simplified67.9%
if 2.9999999999999999e-257 < x < 1.65000000000000008e-6Initial program 69.5%
Taylor expanded in z around inf 80.4%
Taylor expanded in x around 0 81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in z around inf 71.9%
if 1.65000000000000008e-6 < x < 3.5e28Initial program 84.3%
Taylor expanded in z around inf 70.4%
Taylor expanded in t around inf 77.2%
+-commutative77.2%
mul-1-neg77.2%
unsub-neg77.2%
*-commutative77.2%
Simplified77.2%
if 3.5e28 < x < 4.59999999999999976e82Initial program 59.1%
Taylor expanded in i around inf 68.2%
distribute-lft-out--68.2%
Simplified68.2%
if 4.59999999999999976e82 < x Initial program 58.6%
Taylor expanded in z around inf 63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Final simplification69.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= b -1.7e+109)
(+ t_1 (* b (- (* a i) (* z c))))
(if (<= b -1.6e-95)
(* a (- (* b i) (/ (* z (- (* b c) (* x y))) a)))
(if (<= b -5.9e-117)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= b 1.9e-27)
(* t (+ (* c j) (- (/ t_1 t) (* x a))))
(if (<= b 7.5e+44)
(* a (- (/ t_1 a) (* x t)))
(* b (* c (- (/ (* a i) c) z))))))))))
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 (b <= -1.7e+109) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (b <= -1.6e-95) {
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a));
} else if (b <= -5.9e-117) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (b <= 1.9e-27) {
tmp = t * ((c * j) + ((t_1 / t) - (x * a)));
} else if (b <= 7.5e+44) {
tmp = a * ((t_1 / a) - (x * t));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (b <= (-1.7d+109)) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else if (b <= (-1.6d-95)) then
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a))
else if (b <= (-5.9d-117)) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (b <= 1.9d-27) then
tmp = t * ((c * j) + ((t_1 / t) - (x * a)))
else if (b <= 7.5d+44) then
tmp = a * ((t_1 / a) - (x * t))
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (b <= -1.7e+109) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (b <= -1.6e-95) {
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a));
} else if (b <= -5.9e-117) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (b <= 1.9e-27) {
tmp = t * ((c * j) + ((t_1 / t) - (x * a)));
} else if (b <= 7.5e+44) {
tmp = a * ((t_1 / a) - (x * t));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if b <= -1.7e+109: tmp = t_1 + (b * ((a * i) - (z * c))) elif b <= -1.6e-95: tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a)) elif b <= -5.9e-117: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif b <= 1.9e-27: tmp = t * ((c * j) + ((t_1 / t) - (x * a))) elif b <= 7.5e+44: tmp = a * ((t_1 / a) - (x * t)) else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (b <= -1.7e+109) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= -1.6e-95) tmp = Float64(a * Float64(Float64(b * i) - Float64(Float64(z * Float64(Float64(b * c) - Float64(x * y))) / a))); elseif (b <= -5.9e-117) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (b <= 1.9e-27) tmp = Float64(t * Float64(Float64(c * j) + Float64(Float64(t_1 / t) - Float64(x * a)))); elseif (b <= 7.5e+44) tmp = Float64(a * Float64(Float64(t_1 / a) - Float64(x * t))); else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); 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 (b <= -1.7e+109) tmp = t_1 + (b * ((a * i) - (z * c))); elseif (b <= -1.6e-95) tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a)); elseif (b <= -5.9e-117) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (b <= 1.9e-27) tmp = t * ((c * j) + ((t_1 / t) - (x * a))); elseif (b <= 7.5e+44) tmp = a * ((t_1 / a) - (x * t)); else tmp = b * (c * (((a * i) / c) - z)); 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[b, -1.7e+109], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-95], N[(a * N[(N[(b * i), $MachinePrecision] - N[(N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.9e-117], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-27], N[(t * N[(N[(c * j), $MachinePrecision] + N[(N[(t$95$1 / t), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e+44], N[(a * N[(N[(t$95$1 / a), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;b \leq -1.7 \cdot 10^{+109}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-95}:\\
\;\;\;\;a \cdot \left(b \cdot i - \frac{z \cdot \left(b \cdot c - x \cdot y\right)}{a}\right)\\
\mathbf{elif}\;b \leq -5.9 \cdot 10^{-117}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \left(c \cdot j + \left(\frac{t\_1}{t} - x \cdot a\right)\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+44}:\\
\;\;\;\;a \cdot \left(\frac{t\_1}{a} - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -1.70000000000000003e109Initial program 59.2%
Taylor expanded in j around 0 59.3%
Taylor expanded in t around 0 72.1%
*-commutative72.1%
Simplified72.1%
if -1.70000000000000003e109 < b < -1.5999999999999999e-95Initial program 66.9%
Taylor expanded in j around 0 59.4%
Taylor expanded in a around -inf 59.3%
mul-1-neg59.3%
*-commutative59.3%
distribute-rgt-neg-in59.3%
Simplified73.5%
Taylor expanded in t around 0 68.9%
if -1.5999999999999999e-95 < b < -5.9000000000000003e-117Initial program 79.4%
Taylor expanded in j around 0 99.4%
Taylor expanded in c around inf 99.4%
*-commutative99.4%
Simplified99.4%
if -5.9000000000000003e-117 < b < 1.9e-27Initial program 73.1%
Taylor expanded in t around -inf 71.0%
Simplified77.2%
Taylor expanded in x around inf 68.4%
if 1.9e-27 < b < 7.50000000000000027e44Initial program 67.3%
Taylor expanded in j around 0 58.5%
Taylor expanded in a around -inf 63.4%
mul-1-neg63.4%
*-commutative63.4%
distribute-rgt-neg-in63.4%
Simplified63.4%
Taylor expanded in b around 0 59.0%
if 7.50000000000000027e44 < b Initial program 71.7%
Taylor expanded in b around inf 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 78.8%
Final simplification70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -7.2e+39)
(* c (* t j))
(if (<= t -1e-85)
(* x (* y z))
(if (<= t -4.2e-150)
(* i (* j (- y)))
(if (<= t -7.5e-294)
(* y (* x z))
(if (<= t 3.1e-201)
(* a (* b i))
(if (<= t 1.45e+79) (* z (* x y)) (* t (* 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 <= -7.2e+39) {
tmp = c * (t * j);
} else if (t <= -1e-85) {
tmp = x * (y * z);
} else if (t <= -4.2e-150) {
tmp = i * (j * -y);
} else if (t <= -7.5e-294) {
tmp = y * (x * z);
} else if (t <= 3.1e-201) {
tmp = a * (b * i);
} else if (t <= 1.45e+79) {
tmp = z * (x * y);
} else {
tmp = t * (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 <= (-7.2d+39)) then
tmp = c * (t * j)
else if (t <= (-1d-85)) then
tmp = x * (y * z)
else if (t <= (-4.2d-150)) then
tmp = i * (j * -y)
else if (t <= (-7.5d-294)) then
tmp = y * (x * z)
else if (t <= 3.1d-201) then
tmp = a * (b * i)
else if (t <= 1.45d+79) then
tmp = z * (x * y)
else
tmp = t * (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 <= -7.2e+39) {
tmp = c * (t * j);
} else if (t <= -1e-85) {
tmp = x * (y * z);
} else if (t <= -4.2e-150) {
tmp = i * (j * -y);
} else if (t <= -7.5e-294) {
tmp = y * (x * z);
} else if (t <= 3.1e-201) {
tmp = a * (b * i);
} else if (t <= 1.45e+79) {
tmp = z * (x * y);
} else {
tmp = t * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -7.2e+39: tmp = c * (t * j) elif t <= -1e-85: tmp = x * (y * z) elif t <= -4.2e-150: tmp = i * (j * -y) elif t <= -7.5e-294: tmp = y * (x * z) elif t <= 3.1e-201: tmp = a * (b * i) elif t <= 1.45e+79: tmp = z * (x * y) else: tmp = t * (x * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -7.2e+39) tmp = Float64(c * Float64(t * j)); elseif (t <= -1e-85) tmp = Float64(x * Float64(y * z)); elseif (t <= -4.2e-150) tmp = Float64(i * Float64(j * Float64(-y))); elseif (t <= -7.5e-294) tmp = Float64(y * Float64(x * z)); elseif (t <= 3.1e-201) tmp = Float64(a * Float64(b * i)); elseif (t <= 1.45e+79) tmp = Float64(z * Float64(x * y)); else tmp = Float64(t * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -7.2e+39) tmp = c * (t * j); elseif (t <= -1e-85) tmp = x * (y * z); elseif (t <= -4.2e-150) tmp = i * (j * -y); elseif (t <= -7.5e-294) tmp = y * (x * z); elseif (t <= 3.1e-201) tmp = a * (b * i); elseif (t <= 1.45e+79) tmp = z * (x * y); else tmp = t * (x * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -7.2e+39], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1e-85], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.2e-150], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e-294], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-201], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e+79], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{+39}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-85}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-150}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-294}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-201}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+79}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if t < -7.19999999999999969e39Initial program 56.2%
Taylor expanded in t around -inf 64.1%
Simplified68.1%
Taylor expanded in c around inf 70.9%
associate-*r/70.9%
associate-*r*70.9%
neg-mul-170.9%
Simplified70.9%
Taylor expanded in j around inf 44.5%
*-commutative44.5%
Simplified44.5%
if -7.19999999999999969e39 < t < -9.9999999999999998e-86Initial program 71.8%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around -inf 72.3%
mul-1-neg72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
Simplified72.3%
Taylor expanded in y around inf 46.3%
*-commutative46.3%
Simplified46.3%
if -9.9999999999999998e-86 < t < -4.2000000000000002e-150Initial program 82.3%
Taylor expanded in i around inf 60.0%
distribute-lft-out--60.0%
Simplified60.0%
Taylor expanded in j around inf 43.1%
associate-*r*43.1%
neg-mul-143.1%
*-commutative43.1%
Simplified43.1%
if -4.2000000000000002e-150 < t < -7.5000000000000004e-294Initial program 77.9%
Taylor expanded in t around -inf 57.0%
Simplified60.6%
Taylor expanded in y around -inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around inf 34.6%
*-commutative34.6%
Simplified34.6%
if -7.5000000000000004e-294 < t < 3.0999999999999999e-201Initial program 83.9%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Taylor expanded in i around inf 50.2%
*-commutative50.2%
Simplified50.2%
if 3.0999999999999999e-201 < t < 1.44999999999999996e79Initial program 78.9%
Taylor expanded in z around inf 49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in y around inf 31.8%
if 1.44999999999999996e79 < t Initial program 50.6%
Taylor expanded in t around -inf 71.7%
Simplified70.0%
Taylor expanded in c around inf 68.2%
associate-*r/68.2%
associate-*r*68.2%
neg-mul-168.2%
Simplified68.2%
Taylor expanded in x around inf 47.8%
Final simplification41.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5.2e+39)
(* c (* t j))
(if (<= t -3.5e-84)
(* x (* y z))
(if (<= t -9e-151)
(* i (* j (- y)))
(if (<= t -6.3e-291)
(* y (* x z))
(if (<= t 1.36e-201)
(* a (* b i))
(if (<= t 2.7e+68) (* 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 <= -5.2e+39) {
tmp = c * (t * j);
} else if (t <= -3.5e-84) {
tmp = x * (y * z);
} else if (t <= -9e-151) {
tmp = i * (j * -y);
} else if (t <= -6.3e-291) {
tmp = y * (x * z);
} else if (t <= 1.36e-201) {
tmp = a * (b * i);
} else if (t <= 2.7e+68) {
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 <= (-5.2d+39)) then
tmp = c * (t * j)
else if (t <= (-3.5d-84)) then
tmp = x * (y * z)
else if (t <= (-9d-151)) then
tmp = i * (j * -y)
else if (t <= (-6.3d-291)) then
tmp = y * (x * z)
else if (t <= 1.36d-201) then
tmp = a * (b * i)
else if (t <= 2.7d+68) 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 <= -5.2e+39) {
tmp = c * (t * j);
} else if (t <= -3.5e-84) {
tmp = x * (y * z);
} else if (t <= -9e-151) {
tmp = i * (j * -y);
} else if (t <= -6.3e-291) {
tmp = y * (x * z);
} else if (t <= 1.36e-201) {
tmp = a * (b * i);
} else if (t <= 2.7e+68) {
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 <= -5.2e+39: tmp = c * (t * j) elif t <= -3.5e-84: tmp = x * (y * z) elif t <= -9e-151: tmp = i * (j * -y) elif t <= -6.3e-291: tmp = y * (x * z) elif t <= 1.36e-201: tmp = a * (b * i) elif t <= 2.7e+68: 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 <= -5.2e+39) tmp = Float64(c * Float64(t * j)); elseif (t <= -3.5e-84) tmp = Float64(x * Float64(y * z)); elseif (t <= -9e-151) tmp = Float64(i * Float64(j * Float64(-y))); elseif (t <= -6.3e-291) tmp = Float64(y * Float64(x * z)); elseif (t <= 1.36e-201) tmp = Float64(a * Float64(b * i)); elseif (t <= 2.7e+68) 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 <= -5.2e+39) tmp = c * (t * j); elseif (t <= -3.5e-84) tmp = x * (y * z); elseif (t <= -9e-151) tmp = i * (j * -y); elseif (t <= -6.3e-291) tmp = y * (x * z); elseif (t <= 1.36e-201) tmp = a * (b * i); elseif (t <= 2.7e+68) 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, -5.2e+39], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.5e-84], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-151], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.3e-291], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.36e-201], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+68], 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.2 \cdot 10^{+39}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-84}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-151}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;t \leq -6.3 \cdot 10^{-291}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 1.36 \cdot 10^{-201}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+68}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if t < -5.2e39Initial program 56.2%
Taylor expanded in t around -inf 64.1%
Simplified68.1%
Taylor expanded in c around inf 70.9%
associate-*r/70.9%
associate-*r*70.9%
neg-mul-170.9%
Simplified70.9%
Taylor expanded in j around inf 44.5%
*-commutative44.5%
Simplified44.5%
if -5.2e39 < t < -3.5000000000000001e-84Initial program 71.8%
Taylor expanded in j around 0 68.4%
Taylor expanded in a around -inf 72.3%
mul-1-neg72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
Simplified72.3%
Taylor expanded in y around inf 46.3%
*-commutative46.3%
Simplified46.3%
if -3.5000000000000001e-84 < t < -9.0000000000000005e-151Initial program 82.3%
Taylor expanded in i around inf 60.0%
distribute-lft-out--60.0%
Simplified60.0%
Taylor expanded in j around inf 43.1%
associate-*r*43.1%
neg-mul-143.1%
*-commutative43.1%
Simplified43.1%
if -9.0000000000000005e-151 < t < -6.29999999999999992e-291Initial program 77.9%
Taylor expanded in t around -inf 57.0%
Simplified60.6%
Taylor expanded in y around -inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around inf 34.6%
*-commutative34.6%
Simplified34.6%
if -6.29999999999999992e-291 < t < 1.36000000000000005e-201Initial program 83.9%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Taylor expanded in i around inf 50.2%
*-commutative50.2%
Simplified50.2%
if 1.36000000000000005e-201 < t < 2.69999999999999991e68Initial program 78.9%
Taylor expanded in z around inf 49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in y around inf 31.8%
if 2.69999999999999991e68 < t Initial program 50.6%
Taylor expanded in j around 0 46.7%
Taylor expanded in a around -inf 52.0%
mul-1-neg52.0%
*-commutative52.0%
distribute-rgt-neg-in52.0%
Simplified54.1%
Taylor expanded in t around inf 47.7%
mul-1-neg47.7%
associate-*r*51.0%
distribute-lft-neg-in51.0%
distribute-rgt-neg-in51.0%
Simplified51.0%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* t a) (- (* b (/ i t)) x))))
(if (<= a -2.1e+58)
t_1
(if (<= a -5.6e-27)
(* y (- (* x z) (* i j)))
(if (<= a -1.3e-121)
(* t (- (* c j) (* b (* z (/ c t)))))
(if (<= a -9.5e-285)
(* j (- (* t c) (* y i)))
(if (<= a 9.2e-59) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * a) * ((b * (i / t)) - x);
double tmp;
if (a <= -2.1e+58) {
tmp = t_1;
} else if (a <= -5.6e-27) {
tmp = y * ((x * z) - (i * j));
} else if (a <= -1.3e-121) {
tmp = t * ((c * j) - (b * (z * (c / t))));
} else if (a <= -9.5e-285) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 9.2e-59) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (t * a) * ((b * (i / t)) - x)
if (a <= (-2.1d+58)) then
tmp = t_1
else if (a <= (-5.6d-27)) then
tmp = y * ((x * z) - (i * j))
else if (a <= (-1.3d-121)) then
tmp = t * ((c * j) - (b * (z * (c / t))))
else if (a <= (-9.5d-285)) then
tmp = j * ((t * c) - (y * i))
else if (a <= 9.2d-59) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * a) * ((b * (i / t)) - x);
double tmp;
if (a <= -2.1e+58) {
tmp = t_1;
} else if (a <= -5.6e-27) {
tmp = y * ((x * z) - (i * j));
} else if (a <= -1.3e-121) {
tmp = t * ((c * j) - (b * (z * (c / t))));
} else if (a <= -9.5e-285) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 9.2e-59) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * a) * ((b * (i / t)) - x) tmp = 0 if a <= -2.1e+58: tmp = t_1 elif a <= -5.6e-27: tmp = y * ((x * z) - (i * j)) elif a <= -1.3e-121: tmp = t * ((c * j) - (b * (z * (c / t)))) elif a <= -9.5e-285: tmp = j * ((t * c) - (y * i)) elif a <= 9.2e-59: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * a) * Float64(Float64(b * Float64(i / t)) - x)) tmp = 0.0 if (a <= -2.1e+58) tmp = t_1; elseif (a <= -5.6e-27) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= -1.3e-121) tmp = Float64(t * Float64(Float64(c * j) - Float64(b * Float64(z * Float64(c / t))))); elseif (a <= -9.5e-285) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 9.2e-59) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * a) * ((b * (i / t)) - x); tmp = 0.0; if (a <= -2.1e+58) tmp = t_1; elseif (a <= -5.6e-27) tmp = y * ((x * z) - (i * j)); elseif (a <= -1.3e-121) tmp = t * ((c * j) - (b * (z * (c / t)))); elseif (a <= -9.5e-285) tmp = j * ((t * c) - (y * i)); elseif (a <= 9.2e-59) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * a), $MachinePrecision] * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e+58], t$95$1, If[LessEqual[a, -5.6e-27], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.3e-121], N[(t * N[(N[(c * j), $MachinePrecision] - N[(b * N[(z * N[(c / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e-285], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.2e-59], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t \cdot a\right) \cdot \left(b \cdot \frac{i}{t} - x\right)\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.6 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(c \cdot j - b \cdot \left(z \cdot \frac{c}{t}\right)\right)\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-285}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-59}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.10000000000000012e58 or 9.19999999999999918e-59 < a Initial program 62.2%
Taylor expanded in t around -inf 61.1%
Simplified61.1%
Taylor expanded in a around -inf 65.0%
associate-*r*64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
associate-/l*65.5%
Simplified65.5%
if -2.10000000000000012e58 < a < -5.5999999999999999e-27Initial program 74.1%
Taylor expanded in y around inf 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
Simplified50.2%
if -5.5999999999999999e-27 < a < -1.29999999999999993e-121Initial program 78.9%
Taylor expanded in t around -inf 64.7%
Simplified79.0%
Taylor expanded in c around inf 65.8%
associate-*r/65.8%
associate-*r*65.8%
neg-mul-165.8%
Simplified65.8%
Taylor expanded in x around 0 65.8%
distribute-rgt-in65.8%
*-commutative65.8%
neg-mul-165.8%
unsub-neg65.8%
mul-1-neg65.8%
distribute-lft-neg-in65.8%
*-commutative65.8%
mul-1-neg65.8%
remove-double-neg65.8%
associate-/l*79.7%
*-commutative79.7%
associate-/l*79.7%
Simplified79.7%
if -1.29999999999999993e-121 < a < -9.4999999999999997e-285Initial program 89.6%
Taylor expanded in z around inf 73.2%
Taylor expanded in j around inf 49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
if -9.4999999999999997e-285 < a < 9.19999999999999918e-59Initial program 71.2%
Taylor expanded in z around inf 60.2%
*-commutative60.2%
*-commutative60.2%
Simplified60.2%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= x -1.62e+137)
(+ (* x (- (* y z) (* t a))) t_2)
(if (<= x -5.3e-58)
(- t_1 (* x (* z (- (* a (/ t z)) y))))
(if (<= x 4.5e-7)
(+ t_2 t_1)
(* a (- (* b i) (+ (* x t) (/ (* z (- (* b c) (* x y))) a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -1.62e+137) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else if (x <= -5.3e-58) {
tmp = t_1 - (x * (z * ((a * (t / z)) - y)));
} else if (x <= 4.5e-7) {
tmp = t_2 + t_1;
} else {
tmp = a * ((b * i) - ((x * t) + ((z * ((b * c) - (x * y))) / 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) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
if (x <= (-1.62d+137)) then
tmp = (x * ((y * z) - (t * a))) + t_2
else if (x <= (-5.3d-58)) then
tmp = t_1 - (x * (z * ((a * (t / z)) - y)))
else if (x <= 4.5d-7) then
tmp = t_2 + t_1
else
tmp = a * ((b * i) - ((x * t) + ((z * ((b * c) - (x * y))) / 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 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -1.62e+137) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else if (x <= -5.3e-58) {
tmp = t_1 - (x * (z * ((a * (t / z)) - y)));
} else if (x <= 4.5e-7) {
tmp = t_2 + t_1;
} else {
tmp = a * ((b * i) - ((x * t) + ((z * ((b * c) - (x * y))) / a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if x <= -1.62e+137: tmp = (x * ((y * z) - (t * a))) + t_2 elif x <= -5.3e-58: tmp = t_1 - (x * (z * ((a * (t / z)) - y))) elif x <= 4.5e-7: tmp = t_2 + t_1 else: tmp = a * ((b * i) - ((x * t) + ((z * ((b * c) - (x * y))) / a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (x <= -1.62e+137) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2); elseif (x <= -5.3e-58) tmp = Float64(t_1 - Float64(x * Float64(z * Float64(Float64(a * Float64(t / z)) - y)))); elseif (x <= 4.5e-7) tmp = Float64(t_2 + t_1); else tmp = Float64(a * Float64(Float64(b * i) - Float64(Float64(x * t) + Float64(Float64(z * Float64(Float64(b * c) - Float64(x * y))) / a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (x <= -1.62e+137) tmp = (x * ((y * z) - (t * a))) + t_2; elseif (x <= -5.3e-58) tmp = t_1 - (x * (z * ((a * (t / z)) - y))); elseif (x <= 4.5e-7) tmp = t_2 + t_1; else tmp = a * ((b * i) - ((x * t) + ((z * ((b * c) - (x * y))) / a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.62e+137], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[x, -5.3e-58], N[(t$95$1 - N[(x * N[(z * N[(N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e-7], N[(t$95$2 + t$95$1), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(N[(x * t), $MachinePrecision] + N[(N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -1.62 \cdot 10^{+137}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_2\\
\mathbf{elif}\;x \leq -5.3 \cdot 10^{-58}:\\
\;\;\;\;t\_1 - x \cdot \left(z \cdot \left(a \cdot \frac{t}{z} - y\right)\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-7}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - \left(x \cdot t + \frac{z \cdot \left(b \cdot c - x \cdot y\right)}{a}\right)\right)\\
\end{array}
\end{array}
if x < -1.6200000000000001e137Initial program 71.0%
Taylor expanded in b around 0 79.2%
if -1.6200000000000001e137 < x < -5.3000000000000003e-58Initial program 84.7%
Taylor expanded in j around 0 76.9%
Taylor expanded in z around inf 79.0%
mul-1-neg79.0%
unsub-neg79.0%
associate-/l*79.0%
Simplified79.0%
if -5.3000000000000003e-58 < x < 4.4999999999999998e-7Initial program 65.9%
Taylor expanded in x around 0 74.5%
*-commutative74.5%
Simplified74.5%
if 4.4999999999999998e-7 < x Initial program 63.7%
Taylor expanded in j around 0 62.5%
Taylor expanded in a around -inf 62.7%
mul-1-neg62.7%
*-commutative62.7%
distribute-rgt-neg-in62.7%
Simplified67.3%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -3.5e+145)
t_2
(if (<= c -2.6e-169)
t_1
(if (<= c -7.8e-215)
(* y (* x z))
(if (<= c -3.7e-304)
t_1
(if (<= c 7.2e-59) (* x (* t (- a))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -3.5e+145) {
tmp = t_2;
} else if (c <= -2.6e-169) {
tmp = t_1;
} else if (c <= -7.8e-215) {
tmp = y * (x * z);
} else if (c <= -3.7e-304) {
tmp = t_1;
} else if (c <= 7.2e-59) {
tmp = x * (t * -a);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = c * ((t * j) - (z * b))
if (c <= (-3.5d+145)) then
tmp = t_2
else if (c <= (-2.6d-169)) then
tmp = t_1
else if (c <= (-7.8d-215)) then
tmp = y * (x * z)
else if (c <= (-3.7d-304)) then
tmp = t_1
else if (c <= 7.2d-59) then
tmp = x * (t * -a)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -3.5e+145) {
tmp = t_2;
} else if (c <= -2.6e-169) {
tmp = t_1;
} else if (c <= -7.8e-215) {
tmp = y * (x * z);
} else if (c <= -3.7e-304) {
tmp = t_1;
} else if (c <= 7.2e-59) {
tmp = x * (t * -a);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -3.5e+145: tmp = t_2 elif c <= -2.6e-169: tmp = t_1 elif c <= -7.8e-215: tmp = y * (x * z) elif c <= -3.7e-304: tmp = t_1 elif c <= 7.2e-59: tmp = x * (t * -a) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.5e+145) tmp = t_2; elseif (c <= -2.6e-169) tmp = t_1; elseif (c <= -7.8e-215) tmp = Float64(y * Float64(x * z)); elseif (c <= -3.7e-304) tmp = t_1; elseif (c <= 7.2e-59) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -3.5e+145) tmp = t_2; elseif (c <= -2.6e-169) tmp = t_1; elseif (c <= -7.8e-215) tmp = y * (x * z); elseif (c <= -3.7e-304) tmp = t_1; elseif (c <= 7.2e-59) tmp = x * (t * -a); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.5e+145], t$95$2, If[LessEqual[c, -2.6e-169], t$95$1, If[LessEqual[c, -7.8e-215], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.7e-304], t$95$1, If[LessEqual[c, 7.2e-59], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.5 \cdot 10^{+145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -7.8 \cdot 10^{-215}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq -3.7 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -3.5000000000000001e145 or 7.20000000000000001e-59 < c Initial program 51.3%
Taylor expanded in c around inf 61.9%
*-commutative61.9%
Simplified61.9%
if -3.5000000000000001e145 < c < -2.60000000000000014e-169 or -7.7999999999999999e-215 < c < -3.7000000000000003e-304Initial program 82.6%
Taylor expanded in b around inf 50.2%
*-commutative50.2%
Simplified50.2%
if -2.60000000000000014e-169 < c < -7.7999999999999999e-215Initial program 68.2%
Taylor expanded in t around -inf 68.0%
Simplified91.5%
Taylor expanded in y around -inf 67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in z around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -3.7000000000000003e-304 < c < 7.20000000000000001e-59Initial program 79.1%
Taylor expanded in j around 0 63.2%
Taylor expanded in a around -inf 69.8%
mul-1-neg69.8%
*-commutative69.8%
distribute-rgt-neg-in69.8%
Simplified69.9%
Taylor expanded in t around inf 37.1%
mul-1-neg37.1%
associate-*r*39.7%
distribute-lft-neg-in39.7%
distribute-rgt-neg-in39.7%
Simplified39.7%
Final simplification53.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -5.5e+220)
t_2
(if (<= b -1.56e+209)
t_1
(if (<= b -9.2e+151)
t_2
(if (<= b -3.6e+14)
(* z (- (* x y) (* b c)))
(if (<= b 1.9e-15) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e+220) {
tmp = t_2;
} else if (b <= -1.56e+209) {
tmp = t_1;
} else if (b <= -9.2e+151) {
tmp = t_2;
} else if (b <= -3.6e+14) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 1.9e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-5.5d+220)) then
tmp = t_2
else if (b <= (-1.56d+209)) then
tmp = t_1
else if (b <= (-9.2d+151)) then
tmp = t_2
else if (b <= (-3.6d+14)) then
tmp = z * ((x * y) - (b * c))
else if (b <= 1.9d-15) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.5e+220) {
tmp = t_2;
} else if (b <= -1.56e+209) {
tmp = t_1;
} else if (b <= -9.2e+151) {
tmp = t_2;
} else if (b <= -3.6e+14) {
tmp = z * ((x * y) - (b * c));
} else if (b <= 1.9e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.5e+220: tmp = t_2 elif b <= -1.56e+209: tmp = t_1 elif b <= -9.2e+151: tmp = t_2 elif b <= -3.6e+14: tmp = z * ((x * y) - (b * c)) elif b <= 1.9e-15: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.5e+220) tmp = t_2; elseif (b <= -1.56e+209) tmp = t_1; elseif (b <= -9.2e+151) tmp = t_2; elseif (b <= -3.6e+14) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= 1.9e-15) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.5e+220) tmp = t_2; elseif (b <= -1.56e+209) tmp = t_1; elseif (b <= -9.2e+151) tmp = t_2; elseif (b <= -3.6e+14) tmp = z * ((x * y) - (b * c)); elseif (b <= 1.9e-15) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+220], t$95$2, If[LessEqual[b, -1.56e+209], t$95$1, If[LessEqual[b, -9.2e+151], t$95$2, If[LessEqual[b, -3.6e+14], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.9e-15], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+220}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{+151}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.6 \cdot 10^{+14}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.4999999999999999e220 or -1.56e209 < b < -9.2000000000000003e151 or 1.9000000000000001e-15 < b Initial program 69.4%
Taylor expanded in b around inf 68.4%
*-commutative68.4%
Simplified68.4%
if -5.4999999999999999e220 < b < -1.56e209 or -3.6e14 < b < 1.9000000000000001e-15Initial program 70.0%
Taylor expanded in z around inf 68.1%
Taylor expanded in t around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
*-commutative53.3%
Simplified53.3%
if -9.2000000000000003e151 < b < -3.6e14Initial program 66.7%
Taylor expanded in z around inf 70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z c))))
(if (<= x -4.5e-29)
(- (* x (- (* y z) (* t a))) t_1)
(if (<= x 1.85e-252)
(+ (* c (* t j)) (* b (- (* a i) (* z c))))
(if (<= x 2.4e-7)
(- (* j (- (* t c) (* y i))) t_1)
(if (<= x 6.5e+27)
(* t (- (* c j) (* x a)))
(if (<= x 7.5e+91)
(* i (- (* a b) (* y j)))
(* z (- (* x y) (* b 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 * (z * c);
double tmp;
if (x <= -4.5e-29) {
tmp = (x * ((y * z) - (t * a))) - t_1;
} else if (x <= 1.85e-252) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 2.4e-7) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (x <= 6.5e+27) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 7.5e+91) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (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) :: t_1
real(8) :: tmp
t_1 = b * (z * c)
if (x <= (-4.5d-29)) then
tmp = (x * ((y * z) - (t * a))) - t_1
else if (x <= 1.85d-252) then
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)))
else if (x <= 2.4d-7) then
tmp = (j * ((t * c) - (y * i))) - t_1
else if (x <= 6.5d+27) then
tmp = t * ((c * j) - (x * a))
else if (x <= 7.5d+91) then
tmp = i * ((a * b) - (y * j))
else
tmp = z * ((x * y) - (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 t_1 = b * (z * c);
double tmp;
if (x <= -4.5e-29) {
tmp = (x * ((y * z) - (t * a))) - t_1;
} else if (x <= 1.85e-252) {
tmp = (c * (t * j)) + (b * ((a * i) - (z * c)));
} else if (x <= 2.4e-7) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (x <= 6.5e+27) {
tmp = t * ((c * j) - (x * a));
} else if (x <= 7.5e+91) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * c) tmp = 0 if x <= -4.5e-29: tmp = (x * ((y * z) - (t * a))) - t_1 elif x <= 1.85e-252: tmp = (c * (t * j)) + (b * ((a * i) - (z * c))) elif x <= 2.4e-7: tmp = (j * ((t * c) - (y * i))) - t_1 elif x <= 6.5e+27: tmp = t * ((c * j) - (x * a)) elif x <= 7.5e+91: tmp = i * ((a * b) - (y * j)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * c)) tmp = 0.0 if (x <= -4.5e-29) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - t_1); elseif (x <= 1.85e-252) tmp = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 2.4e-7) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); elseif (x <= 6.5e+27) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (x <= 7.5e+91) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * c); tmp = 0.0; if (x <= -4.5e-29) tmp = (x * ((y * z) - (t * a))) - t_1; elseif (x <= 1.85e-252) tmp = (c * (t * j)) + (b * ((a * i) - (z * c))); elseif (x <= 2.4e-7) tmp = (j * ((t * c) - (y * i))) - t_1; elseif (x <= 6.5e+27) tmp = t * ((c * j) - (x * a)); elseif (x <= 7.5e+91) tmp = i * ((a * b) - (y * j)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.5e-29], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 1.85e-252], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-7], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[x, 6.5e+27], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+91], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot c\right)\\
\mathbf{if}\;x \leq -4.5 \cdot 10^{-29}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - t\_1\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-252}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-7}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t\_1\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+27}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+91}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if x < -4.4999999999999998e-29Initial program 77.3%
Taylor expanded in j around 0 72.0%
Taylor expanded in c around inf 66.2%
*-commutative66.2%
Simplified66.2%
if -4.4999999999999998e-29 < x < 1.8500000000000001e-252Initial program 66.0%
Taylor expanded in z around inf 75.9%
Taylor expanded in x around 0 68.7%
*-commutative68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in t around inf 67.4%
*-commutative67.4%
Simplified67.4%
if 1.8500000000000001e-252 < x < 2.39999999999999979e-7Initial program 69.5%
Taylor expanded in z around inf 80.4%
Taylor expanded in x around 0 81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in z around inf 71.9%
if 2.39999999999999979e-7 < x < 6.5000000000000005e27Initial program 84.3%
Taylor expanded in z around inf 70.4%
Taylor expanded in t around inf 77.2%
+-commutative77.2%
mul-1-neg77.2%
unsub-neg77.2%
*-commutative77.2%
Simplified77.2%
if 6.5000000000000005e27 < x < 7.50000000000000033e91Initial program 59.1%
Taylor expanded in i around inf 68.2%
distribute-lft-out--68.2%
Simplified68.2%
if 7.50000000000000033e91 < x Initial program 58.6%
Taylor expanded in z around inf 63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Final simplification67.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -2.9e+112)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= b -2.5e-94)
(* a (- (* b i) (/ (* z (- (* b c) (* x y))) a)))
(if (<= b 6.4e+44)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(* b (* c (- (/ (* a i) c) z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.9e+112) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= -2.5e-94) {
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a));
} else if (b <= 6.4e+44) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.9d+112)) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (b <= (-2.5d-94)) then
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a))
else if (b <= 6.4d+44) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = b * (c * (((a * i) / c) - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.9e+112) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= -2.5e-94) {
tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a));
} else if (b <= 6.4e+44) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * (c * (((a * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.9e+112: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif b <= -2.5e-94: tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a)) elif b <= 6.4e+44: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = b * (c * (((a * i) / c) - z)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.9e+112) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= -2.5e-94) tmp = Float64(a * Float64(Float64(b * i) - Float64(Float64(z * Float64(Float64(b * c) - Float64(x * y))) / a))); elseif (b <= 6.4e+44) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(b * Float64(c * Float64(Float64(Float64(a * i) / c) - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.9e+112) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (b <= -2.5e-94) tmp = a * ((b * i) - ((z * ((b * c) - (x * y))) / a)); elseif (b <= 6.4e+44) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = b * (c * (((a * i) / c) - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.9e+112], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-94], N[(a * N[(N[(b * i), $MachinePrecision] - N[(N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+44], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(c * N[(N[(N[(a * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.9 \cdot 10^{+112}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-94}:\\
\;\;\;\;a \cdot \left(b \cdot i - \frac{z \cdot \left(b \cdot c - x \cdot y\right)}{a}\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(c \cdot \left(\frac{a \cdot i}{c} - z\right)\right)\\
\end{array}
\end{array}
if b < -2.9000000000000002e112Initial program 59.2%
Taylor expanded in j around 0 59.3%
Taylor expanded in t around 0 72.1%
*-commutative72.1%
Simplified72.1%
if -2.9000000000000002e112 < b < -2.4999999999999998e-94Initial program 66.9%
Taylor expanded in j around 0 59.4%
Taylor expanded in a around -inf 59.3%
mul-1-neg59.3%
*-commutative59.3%
distribute-rgt-neg-in59.3%
Simplified73.5%
Taylor expanded in t around 0 68.9%
if -2.4999999999999998e-94 < b < 6.40000000000000009e44Initial program 72.4%
Taylor expanded in b around 0 71.5%
if 6.40000000000000009e44 < b Initial program 71.7%
Taylor expanded in b around inf 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 78.8%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* c (* t j))) (t_3 (* b (* a i))))
(if (<= i -3800000000.0)
t_3
(if (<= i -1.4e-260)
t_1
(if (<= i 5.8e-230)
t_2
(if (<= i 6e-112) t_1 (if (<= i 1.45e+85) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = c * (t * j);
double t_3 = b * (a * i);
double tmp;
if (i <= -3800000000.0) {
tmp = t_3;
} else if (i <= -1.4e-260) {
tmp = t_1;
} else if (i <= 5.8e-230) {
tmp = t_2;
} else if (i <= 6e-112) {
tmp = t_1;
} else if (i <= 1.45e+85) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = c * (t * j)
t_3 = b * (a * i)
if (i <= (-3800000000.0d0)) then
tmp = t_3
else if (i <= (-1.4d-260)) then
tmp = t_1
else if (i <= 5.8d-230) then
tmp = t_2
else if (i <= 6d-112) then
tmp = t_1
else if (i <= 1.45d+85) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = c * (t * j);
double t_3 = b * (a * i);
double tmp;
if (i <= -3800000000.0) {
tmp = t_3;
} else if (i <= -1.4e-260) {
tmp = t_1;
} else if (i <= 5.8e-230) {
tmp = t_2;
} else if (i <= 6e-112) {
tmp = t_1;
} else if (i <= 1.45e+85) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = c * (t * j) t_3 = b * (a * i) tmp = 0 if i <= -3800000000.0: tmp = t_3 elif i <= -1.4e-260: tmp = t_1 elif i <= 5.8e-230: tmp = t_2 elif i <= 6e-112: tmp = t_1 elif i <= 1.45e+85: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(c * Float64(t * j)) t_3 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -3800000000.0) tmp = t_3; elseif (i <= -1.4e-260) tmp = t_1; elseif (i <= 5.8e-230) tmp = t_2; elseif (i <= 6e-112) tmp = t_1; elseif (i <= 1.45e+85) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = c * (t * j); t_3 = b * (a * i); tmp = 0.0; if (i <= -3800000000.0) tmp = t_3; elseif (i <= -1.4e-260) tmp = t_1; elseif (i <= 5.8e-230) tmp = t_2; elseif (i <= 6e-112) tmp = t_1; elseif (i <= 1.45e+85) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3800000000.0], t$95$3, If[LessEqual[i, -1.4e-260], t$95$1, If[LessEqual[i, 5.8e-230], t$95$2, If[LessEqual[i, 6e-112], t$95$1, If[LessEqual[i, 1.45e+85], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
t_3 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -3800000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-260}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{-230}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.45 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -3.8e9 or 1.44999999999999999e85 < i Initial program 58.9%
Taylor expanded in b around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in i around inf 43.7%
if -3.8e9 < i < -1.3999999999999999e-260 or 5.80000000000000011e-230 < i < 6.0000000000000002e-112Initial program 81.9%
Taylor expanded in j around 0 66.8%
Taylor expanded in a around -inf 59.4%
mul-1-neg59.4%
*-commutative59.4%
distribute-rgt-neg-in59.4%
Simplified67.1%
Taylor expanded in y around inf 31.8%
*-commutative31.8%
Simplified31.8%
if -1.3999999999999999e-260 < i < 5.80000000000000011e-230 or 6.0000000000000002e-112 < i < 1.44999999999999999e85Initial program 72.1%
Taylor expanded in t around -inf 72.5%
Simplified79.5%
Taylor expanded in c around inf 71.3%
associate-*r/71.3%
associate-*r*71.3%
neg-mul-171.3%
Simplified71.3%
Taylor expanded in j around inf 36.7%
*-commutative36.7%
Simplified36.7%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* c (* t j))) (t_3 (* b (* a i))))
(if (<= i -450000000.0)
t_3
(if (<= i -3e-260)
t_1
(if (<= i 5.2e-230)
t_2
(if (<= i 2.6e-111) t_1 (if (<= i 6.3e+84) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (t * j);
double t_3 = b * (a * i);
double tmp;
if (i <= -450000000.0) {
tmp = t_3;
} else if (i <= -3e-260) {
tmp = t_1;
} else if (i <= 5.2e-230) {
tmp = t_2;
} else if (i <= 2.6e-111) {
tmp = t_1;
} else if (i <= 6.3e+84) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * (x * z)
t_2 = c * (t * j)
t_3 = b * (a * i)
if (i <= (-450000000.0d0)) then
tmp = t_3
else if (i <= (-3d-260)) then
tmp = t_1
else if (i <= 5.2d-230) then
tmp = t_2
else if (i <= 2.6d-111) then
tmp = t_1
else if (i <= 6.3d+84) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (t * j);
double t_3 = b * (a * i);
double tmp;
if (i <= -450000000.0) {
tmp = t_3;
} else if (i <= -3e-260) {
tmp = t_1;
} else if (i <= 5.2e-230) {
tmp = t_2;
} else if (i <= 2.6e-111) {
tmp = t_1;
} else if (i <= 6.3e+84) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = c * (t * j) t_3 = b * (a * i) tmp = 0 if i <= -450000000.0: tmp = t_3 elif i <= -3e-260: tmp = t_1 elif i <= 5.2e-230: tmp = t_2 elif i <= 2.6e-111: tmp = t_1 elif i <= 6.3e+84: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(c * Float64(t * j)) t_3 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -450000000.0) tmp = t_3; elseif (i <= -3e-260) tmp = t_1; elseif (i <= 5.2e-230) tmp = t_2; elseif (i <= 2.6e-111) tmp = t_1; elseif (i <= 6.3e+84) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = c * (t * j); t_3 = b * (a * i); tmp = 0.0; if (i <= -450000000.0) tmp = t_3; elseif (i <= -3e-260) tmp = t_1; elseif (i <= 5.2e-230) tmp = t_2; elseif (i <= 2.6e-111) tmp = t_1; elseif (i <= 6.3e+84) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -450000000.0], t$95$3, If[LessEqual[i, -3e-260], t$95$1, If[LessEqual[i, 5.2e-230], t$95$2, If[LessEqual[i, 2.6e-111], t$95$1, If[LessEqual[i, 6.3e+84], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j\right)\\
t_3 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -450000000:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -3 \cdot 10^{-260}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-230}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.3 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -4.5e8 or 6.30000000000000013e84 < i Initial program 58.9%
Taylor expanded in b around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in i around inf 43.7%
if -4.5e8 < i < -3.0000000000000001e-260 or 5.2000000000000003e-230 < i < 2.59999999999999982e-111Initial program 81.9%
Taylor expanded in t around -inf 74.1%
Simplified79.3%
Taylor expanded in y around -inf 42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in z around inf 35.1%
*-commutative35.1%
Simplified35.1%
if -3.0000000000000001e-260 < i < 5.2000000000000003e-230 or 2.59999999999999982e-111 < i < 6.30000000000000013e84Initial program 72.1%
Taylor expanded in t around -inf 72.5%
Simplified79.5%
Taylor expanded in c around inf 71.3%
associate-*r/71.3%
associate-*r*71.3%
neg-mul-171.3%
Simplified71.3%
Taylor expanded in j around inf 36.7%
*-commutative36.7%
Simplified36.7%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* b (* a i))))
(if (<= i -4100000000.0)
t_2
(if (<= i -1.15e-260)
(* y (* x z))
(if (<= i 6.8e-229)
t_1
(if (<= i 6.8e-111) (* z (* x y)) (if (<= i 3.7e+85) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = b * (a * i);
double tmp;
if (i <= -4100000000.0) {
tmp = t_2;
} else if (i <= -1.15e-260) {
tmp = y * (x * z);
} else if (i <= 6.8e-229) {
tmp = t_1;
} else if (i <= 6.8e-111) {
tmp = z * (x * y);
} else if (i <= 3.7e+85) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (t * j)
t_2 = b * (a * i)
if (i <= (-4100000000.0d0)) then
tmp = t_2
else if (i <= (-1.15d-260)) then
tmp = y * (x * z)
else if (i <= 6.8d-229) then
tmp = t_1
else if (i <= 6.8d-111) then
tmp = z * (x * y)
else if (i <= 3.7d+85) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double t_2 = b * (a * i);
double tmp;
if (i <= -4100000000.0) {
tmp = t_2;
} else if (i <= -1.15e-260) {
tmp = y * (x * z);
} else if (i <= 6.8e-229) {
tmp = t_1;
} else if (i <= 6.8e-111) {
tmp = z * (x * y);
} else if (i <= 3.7e+85) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = b * (a * i) tmp = 0 if i <= -4100000000.0: tmp = t_2 elif i <= -1.15e-260: tmp = y * (x * z) elif i <= 6.8e-229: tmp = t_1 elif i <= 6.8e-111: tmp = z * (x * y) elif i <= 3.7e+85: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -4100000000.0) tmp = t_2; elseif (i <= -1.15e-260) tmp = Float64(y * Float64(x * z)); elseif (i <= 6.8e-229) tmp = t_1; elseif (i <= 6.8e-111) tmp = Float64(z * Float64(x * y)); elseif (i <= 3.7e+85) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = b * (a * i); tmp = 0.0; if (i <= -4100000000.0) tmp = t_2; elseif (i <= -1.15e-260) tmp = y * (x * z); elseif (i <= 6.8e-229) tmp = t_1; elseif (i <= 6.8e-111) tmp = z * (x * y); elseif (i <= 3.7e+85) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4100000000.0], t$95$2, If[LessEqual[i, -1.15e-260], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.8e-229], t$95$1, If[LessEqual[i, 6.8e-111], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.7e+85], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -4100000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-260}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.8 \cdot 10^{-111}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -4.1e9 or 3.7000000000000002e85 < i Initial program 58.9%
Taylor expanded in b around inf 50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in i around inf 43.7%
if -4.1e9 < i < -1.15e-260Initial program 87.0%
Taylor expanded in t around -inf 79.6%
Simplified83.4%
Taylor expanded in y around -inf 39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in z around inf 36.2%
*-commutative36.2%
Simplified36.2%
if -1.15e-260 < i < 6.7999999999999998e-229 or 6.79999999999999993e-111 < i < 3.7000000000000002e85Initial program 72.1%
Taylor expanded in t around -inf 72.5%
Simplified79.5%
Taylor expanded in c around inf 71.3%
associate-*r/71.3%
associate-*r*71.3%
neg-mul-171.3%
Simplified71.3%
Taylor expanded in j around inf 36.7%
*-commutative36.7%
Simplified36.7%
if 6.7999999999999998e-229 < i < 6.79999999999999993e-111Initial program 70.0%
Taylor expanded in z around inf 44.8%
*-commutative44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in y around inf 34.2%
Final simplification39.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= b -5.5e+220)
(and (not (<= b -1.56e+209))
(or (<= b -23000000000.0) (not (<= b 5.6e-16)))))
(* b (- (* a i) (* z c)))
(* t (- (* c j) (* 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 ((b <= -5.5e+220) || (!(b <= -1.56e+209) && ((b <= -23000000000.0) || !(b <= 5.6e-16)))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (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 ((b <= (-5.5d+220)) .or. (.not. (b <= (-1.56d+209))) .and. (b <= (-23000000000.0d0)) .or. (.not. (b <= 5.6d-16))) then
tmp = b * ((a * i) - (z * c))
else
tmp = t * ((c * j) - (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 ((b <= -5.5e+220) || (!(b <= -1.56e+209) && ((b <= -23000000000.0) || !(b <= 5.6e-16)))) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -5.5e+220) or (not (b <= -1.56e+209) and ((b <= -23000000000.0) or not (b <= 5.6e-16))): tmp = b * ((a * i) - (z * c)) else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -5.5e+220) || (!(b <= -1.56e+209) && ((b <= -23000000000.0) || !(b <= 5.6e-16)))) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -5.5e+220) || (~((b <= -1.56e+209)) && ((b <= -23000000000.0) || ~((b <= 5.6e-16))))) tmp = b * ((a * i) - (z * c)); else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -5.5e+220], And[N[Not[LessEqual[b, -1.56e+209]], $MachinePrecision], Or[LessEqual[b, -23000000000.0], N[Not[LessEqual[b, 5.6e-16]], $MachinePrecision]]]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+220} \lor \neg \left(b \leq -1.56 \cdot 10^{+209}\right) \land \left(b \leq -23000000000 \lor \neg \left(b \leq 5.6 \cdot 10^{-16}\right)\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if b < -5.4999999999999999e220 or -1.56e209 < b < -2.3e10 or 5.6000000000000003e-16 < b Initial program 68.1%
Taylor expanded in b around inf 64.4%
*-commutative64.4%
Simplified64.4%
if -5.4999999999999999e220 < b < -1.56e209 or -2.3e10 < b < 5.6000000000000003e-16Initial program 70.5%
Taylor expanded in z around inf 68.6%
Taylor expanded in t around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Final simplification58.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -3.8e-109)
t_2
(if (<= b 3.25e-279)
t_1
(if (<= b 1.15e-174) (* x (* t (- a))) (if (<= b 1.45e-15) 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 * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.8e-109) {
tmp = t_2;
} else if (b <= 3.25e-279) {
tmp = t_1;
} else if (b <= 1.15e-174) {
tmp = x * (t * -a);
} else if (b <= 1.45e-15) {
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 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
if (b <= (-3.8d-109)) then
tmp = t_2
else if (b <= 3.25d-279) then
tmp = t_1
else if (b <= 1.15d-174) then
tmp = x * (t * -a)
else if (b <= 1.45d-15) 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 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.8e-109) {
tmp = t_2;
} else if (b <= 3.25e-279) {
tmp = t_1;
} else if (b <= 1.15e-174) {
tmp = x * (t * -a);
} else if (b <= 1.45e-15) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.8e-109: tmp = t_2 elif b <= 3.25e-279: tmp = t_1 elif b <= 1.15e-174: tmp = x * (t * -a) elif b <= 1.45e-15: tmp = 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(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.8e-109) tmp = t_2; elseif (b <= 3.25e-279) tmp = t_1; elseif (b <= 1.15e-174) tmp = Float64(x * Float64(t * Float64(-a))); elseif (b <= 1.45e-15) 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 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.8e-109) tmp = t_2; elseif (b <= 3.25e-279) tmp = t_1; elseif (b <= 1.15e-174) tmp = x * (t * -a); elseif (b <= 1.45e-15) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e-109], t$95$2, If[LessEqual[b, 3.25e-279], t$95$1, If[LessEqual[b, 1.15e-174], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-15], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{-109}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.25 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{-174}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -3.80000000000000002e-109 or 1.45000000000000009e-15 < b Initial program 67.5%
Taylor expanded in b around inf 58.3%
*-commutative58.3%
Simplified58.3%
if -3.80000000000000002e-109 < b < 3.2499999999999998e-279 or 1.1499999999999999e-174 < b < 1.45000000000000009e-15Initial program 71.4%
Taylor expanded in z around inf 72.6%
Taylor expanded in j around inf 46.5%
*-commutative46.5%
*-commutative46.5%
Simplified46.5%
if 3.2499999999999998e-279 < b < 1.1499999999999999e-174Initial program 73.8%
Taylor expanded in j around 0 49.1%
Taylor expanded in a around -inf 57.8%
mul-1-neg57.8%
*-commutative57.8%
distribute-rgt-neg-in57.8%
Simplified62.2%
Taylor expanded in t around inf 50.7%
mul-1-neg50.7%
associate-*r*50.8%
distribute-lft-neg-in50.8%
distribute-rgt-neg-in50.8%
Simplified50.8%
Final simplification53.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -7.5e-286) (not (<= b 4.25e-16))) (* b (- (* a i) (* z c))) (* 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 ((b <= -7.5e-286) || !(b <= 4.25e-16)) {
tmp = b * ((a * i) - (z * c));
} 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 ((b <= (-7.5d-286)) .or. (.not. (b <= 4.25d-16))) then
tmp = b * ((a * i) - (z * c))
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 ((b <= -7.5e-286) || !(b <= 4.25e-16)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -7.5e-286) or not (b <= 4.25e-16): tmp = b * ((a * i) - (z * c)) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -7.5e-286) || !(b <= 4.25e-16)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); 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 ((b <= -7.5e-286) || ~((b <= 4.25e-16))) tmp = b * ((a * i) - (z * c)); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -7.5e-286], N[Not[LessEqual[b, 4.25e-16]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.5 \cdot 10^{-286} \lor \neg \left(b \leq 4.25 \cdot 10^{-16}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if b < -7.50000000000000009e-286 or 4.25e-16 < b Initial program 67.8%
Taylor expanded in b around inf 52.6%
*-commutative52.6%
Simplified52.6%
if -7.50000000000000009e-286 < b < 4.25e-16Initial program 73.5%
Taylor expanded in j around 0 48.8%
Taylor expanded in a around -inf 51.3%
mul-1-neg51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified55.5%
Taylor expanded in t around inf 34.0%
mul-1-neg34.0%
associate-*r*36.1%
distribute-lft-neg-in36.1%
distribute-rgt-neg-in36.1%
Simplified36.1%
Final simplification48.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -8e-101) (not (<= i 9.6e+84))) (* b (* a i)) (* c (* t 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 <= -8e-101) || !(i <= 9.6e+84)) {
tmp = b * (a * i);
} else {
tmp = c * (t * 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 <= (-8d-101)) .or. (.not. (i <= 9.6d+84))) then
tmp = b * (a * i)
else
tmp = c * (t * 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 <= -8e-101) || !(i <= 9.6e+84)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -8e-101) or not (i <= 9.6e+84): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -8e-101) || !(i <= 9.6e+84)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -8e-101) || ~((i <= 9.6e+84))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -8e-101], N[Not[LessEqual[i, 9.6e+84]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8 \cdot 10^{-101} \lor \neg \left(i \leq 9.6 \cdot 10^{+84}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -8.00000000000000041e-101 or 9.5999999999999999e84 < i Initial program 64.1%
Taylor expanded in b around inf 50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in i around inf 40.9%
if -8.00000000000000041e-101 < i < 9.5999999999999999e84Initial program 74.6%
Taylor expanded in t around -inf 72.5%
Simplified80.1%
Taylor expanded in c around inf 64.4%
associate-*r/64.4%
associate-*r*64.4%
neg-mul-164.4%
Simplified64.4%
Taylor expanded in j around inf 26.1%
*-commutative26.1%
Simplified26.1%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 69.4%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in i around inf 22.6%
*-commutative22.6%
Simplified22.6%
Final simplification22.6%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 69.4%
Taylor expanded in b around inf 41.2%
*-commutative41.2%
Simplified41.2%
Taylor expanded in i around inf 23.4%
Final simplification23.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024082
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))