
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (+ t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))))))
(if (<= t_2 INFINITY) t_2 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 = j * ((a * c) - (y * i));
double t_2 = t_1 + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 + ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t\_1 + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in j around inf 50.4%
*-commutative50.4%
Simplified50.4%
Final simplification84.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (- t_2 (* b (* z c)))))
(if (<= c -9.5e+195)
t_2
(if (<= c -4.4e+74)
t_3
(if (<= c -1.2e+69)
t_1
(if (<= c -1500000000000.0)
(* x (- (* y z) (* t a)))
(if (<= c -9.2e-49)
t_3
(if (<= c -6.5e-59)
t_1
(if (<= c -2.6e-151)
(* i (- (* t b) (* y j)))
(if (<= c -5.8e-223)
(* y (- (* x z) (* i j)))
(if (<= c 3.2e+24) (* t (- (* b i) (* x a))) 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 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t_2 - (b * (z * c));
double tmp;
if (c <= -9.5e+195) {
tmp = t_2;
} else if (c <= -4.4e+74) {
tmp = t_3;
} else if (c <= -1.2e+69) {
tmp = t_1;
} else if (c <= -1500000000000.0) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -9.2e-49) {
tmp = t_3;
} else if (c <= -6.5e-59) {
tmp = t_1;
} else if (c <= -2.6e-151) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -5.8e-223) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e+24) {
tmp = t * ((b * i) - (x * a));
} 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 = z * ((x * y) - (b * c))
t_2 = j * ((a * c) - (y * i))
t_3 = t_2 - (b * (z * c))
if (c <= (-9.5d+195)) then
tmp = t_2
else if (c <= (-4.4d+74)) then
tmp = t_3
else if (c <= (-1.2d+69)) then
tmp = t_1
else if (c <= (-1500000000000.0d0)) then
tmp = x * ((y * z) - (t * a))
else if (c <= (-9.2d-49)) then
tmp = t_3
else if (c <= (-6.5d-59)) then
tmp = t_1
else if (c <= (-2.6d-151)) then
tmp = i * ((t * b) - (y * j))
else if (c <= (-5.8d-223)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 3.2d+24) then
tmp = t * ((b * i) - (x * a))
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 = z * ((x * y) - (b * c));
double t_2 = j * ((a * c) - (y * i));
double t_3 = t_2 - (b * (z * c));
double tmp;
if (c <= -9.5e+195) {
tmp = t_2;
} else if (c <= -4.4e+74) {
tmp = t_3;
} else if (c <= -1.2e+69) {
tmp = t_1;
} else if (c <= -1500000000000.0) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -9.2e-49) {
tmp = t_3;
} else if (c <= -6.5e-59) {
tmp = t_1;
} else if (c <= -2.6e-151) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -5.8e-223) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e+24) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) t_2 = j * ((a * c) - (y * i)) t_3 = t_2 - (b * (z * c)) tmp = 0 if c <= -9.5e+195: tmp = t_2 elif c <= -4.4e+74: tmp = t_3 elif c <= -1.2e+69: tmp = t_1 elif c <= -1500000000000.0: tmp = x * ((y * z) - (t * a)) elif c <= -9.2e-49: tmp = t_3 elif c <= -6.5e-59: tmp = t_1 elif c <= -2.6e-151: tmp = i * ((t * b) - (y * j)) elif c <= -5.8e-223: tmp = y * ((x * z) - (i * j)) elif c <= 3.2e+24: tmp = t * ((b * i) - (x * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(t_2 - Float64(b * Float64(z * c))) tmp = 0.0 if (c <= -9.5e+195) tmp = t_2; elseif (c <= -4.4e+74) tmp = t_3; elseif (c <= -1.2e+69) tmp = t_1; elseif (c <= -1500000000000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= -9.2e-49) tmp = t_3; elseif (c <= -6.5e-59) tmp = t_1; elseif (c <= -2.6e-151) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= -5.8e-223) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 3.2e+24) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); t_2 = j * ((a * c) - (y * i)); t_3 = t_2 - (b * (z * c)); tmp = 0.0; if (c <= -9.5e+195) tmp = t_2; elseif (c <= -4.4e+74) tmp = t_3; elseif (c <= -1.2e+69) tmp = t_1; elseif (c <= -1500000000000.0) tmp = x * ((y * z) - (t * a)); elseif (c <= -9.2e-49) tmp = t_3; elseif (c <= -6.5e-59) tmp = t_1; elseif (c <= -2.6e-151) tmp = i * ((t * b) - (y * j)); elseif (c <= -5.8e-223) tmp = y * ((x * z) - (i * j)); elseif (c <= 3.2e+24) tmp = t * ((b * i) - (x * a)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.5e+195], t$95$2, If[LessEqual[c, -4.4e+74], t$95$3, If[LessEqual[c, -1.2e+69], t$95$1, If[LessEqual[c, -1500000000000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.2e-49], t$95$3, If[LessEqual[c, -6.5e-59], t$95$1, If[LessEqual[c, -2.6e-151], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.8e-223], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+24], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := t\_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{if}\;c \leq -9.5 \cdot 10^{+195}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -4.4 \cdot 10^{+74}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1500000000000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq -9.2 \cdot 10^{-49}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -6.5 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-151}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq -5.8 \cdot 10^{-223}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+24}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -9.5000000000000004e195Initial program 30.0%
Taylor expanded in j around inf 77.9%
*-commutative77.9%
Simplified77.9%
if -9.5000000000000004e195 < c < -4.4000000000000002e74 or -1.5e12 < c < -9.1999999999999996e-49 or 3.1999999999999997e24 < c Initial program 81.8%
Taylor expanded in x around 0 77.7%
*-commutative77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in t around 0 72.5%
*-commutative72.5%
Simplified72.5%
if -4.4000000000000002e74 < c < -1.2000000000000001e69 or -9.1999999999999996e-49 < c < -6.50000000000000017e-59Initial program 59.7%
Taylor expanded in z around inf 99.4%
*-commutative99.4%
Simplified99.4%
if -1.2000000000000001e69 < c < -1.5e12Initial program 84.4%
Taylor expanded in a around -inf 76.7%
Simplified77.5%
Taylor expanded in x around inf 84.6%
*-commutative84.6%
Simplified84.6%
if -6.50000000000000017e-59 < c < -2.6e-151Initial program 75.8%
Taylor expanded in a around -inf 75.4%
Simplified83.5%
Taylor expanded in i around inf 68.9%
+-commutative68.9%
*-commutative68.9%
mul-1-neg68.9%
*-commutative68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if -2.6e-151 < c < -5.8000000000000001e-223Initial program 60.0%
Taylor expanded in y around inf 90.1%
+-commutative90.1%
mul-1-neg90.1%
unsub-neg90.1%
*-commutative90.1%
Simplified90.1%
if -5.8000000000000001e-223 < c < 3.1999999999999997e24Initial program 82.1%
Taylor expanded in a around -inf 80.9%
Simplified77.8%
Taylor expanded in t around inf 61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* i (- (* t b) (* y j))))
(t_4 (* c (- (* a j) (* z b)))))
(if (<= c -5.7e+72)
t_4
(if (<= c -400000000000.0)
t_2
(if (<= c -8.2e-59)
(* b (- (* t i) (* z c)))
(if (<= c -5e-257)
t_3
(if (<= c 4.4e-259)
t_1
(if (<= c 3.1e-210)
t_3
(if (<= c 7e-147) t_2 (if (<= c 1.6e+102) t_1 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 = t * ((b * i) - (x * a));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.7e+72) {
tmp = t_4;
} else if (c <= -400000000000.0) {
tmp = t_2;
} else if (c <= -8.2e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -5e-257) {
tmp = t_3;
} else if (c <= 4.4e-259) {
tmp = t_1;
} else if (c <= 3.1e-210) {
tmp = t_3;
} else if (c <= 7e-147) {
tmp = t_2;
} else if (c <= 1.6e+102) {
tmp = t_1;
} 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 = t * ((b * i) - (x * a))
t_2 = x * ((y * z) - (t * a))
t_3 = i * ((t * b) - (y * j))
t_4 = c * ((a * j) - (z * b))
if (c <= (-5.7d+72)) then
tmp = t_4
else if (c <= (-400000000000.0d0)) then
tmp = t_2
else if (c <= (-8.2d-59)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-5d-257)) then
tmp = t_3
else if (c <= 4.4d-259) then
tmp = t_1
else if (c <= 3.1d-210) then
tmp = t_3
else if (c <= 7d-147) then
tmp = t_2
else if (c <= 1.6d+102) then
tmp = t_1
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 = t * ((b * i) - (x * a));
double t_2 = x * ((y * z) - (t * a));
double t_3 = i * ((t * b) - (y * j));
double t_4 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.7e+72) {
tmp = t_4;
} else if (c <= -400000000000.0) {
tmp = t_2;
} else if (c <= -8.2e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -5e-257) {
tmp = t_3;
} else if (c <= 4.4e-259) {
tmp = t_1;
} else if (c <= 3.1e-210) {
tmp = t_3;
} else if (c <= 7e-147) {
tmp = t_2;
} else if (c <= 1.6e+102) {
tmp = t_1;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = x * ((y * z) - (t * a)) t_3 = i * ((t * b) - (y * j)) t_4 = c * ((a * j) - (z * b)) tmp = 0 if c <= -5.7e+72: tmp = t_4 elif c <= -400000000000.0: tmp = t_2 elif c <= -8.2e-59: tmp = b * ((t * i) - (z * c)) elif c <= -5e-257: tmp = t_3 elif c <= 4.4e-259: tmp = t_1 elif c <= 3.1e-210: tmp = t_3 elif c <= 7e-147: tmp = t_2 elif c <= 1.6e+102: tmp = t_1 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_4 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -5.7e+72) tmp = t_4; elseif (c <= -400000000000.0) tmp = t_2; elseif (c <= -8.2e-59) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -5e-257) tmp = t_3; elseif (c <= 4.4e-259) tmp = t_1; elseif (c <= 3.1e-210) tmp = t_3; elseif (c <= 7e-147) tmp = t_2; elseif (c <= 1.6e+102) tmp = t_1; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = x * ((y * z) - (t * a)); t_3 = i * ((t * b) - (y * j)); t_4 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -5.7e+72) tmp = t_4; elseif (c <= -400000000000.0) tmp = t_2; elseif (c <= -8.2e-59) tmp = b * ((t * i) - (z * c)); elseif (c <= -5e-257) tmp = t_3; elseif (c <= 4.4e-259) tmp = t_1; elseif (c <= 3.1e-210) tmp = t_3; elseif (c <= 7e-147) tmp = t_2; elseif (c <= 1.6e+102) tmp = t_1; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.7e+72], t$95$4, If[LessEqual[c, -400000000000.0], t$95$2, If[LessEqual[c, -8.2e-59], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5e-257], t$95$3, If[LessEqual[c, 4.4e-259], t$95$1, If[LessEqual[c, 3.1e-210], t$95$3, If[LessEqual[c, 7e-147], t$95$2, If[LessEqual[c, 1.6e+102], t$95$1, t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_4 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.7 \cdot 10^{+72}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;c \leq -400000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -5 \cdot 10^{-257}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-259}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{-210}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-147}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if c < -5.6999999999999997e72 or 1.6e102 < c Initial program 62.4%
Taylor expanded in c around inf 71.7%
*-commutative71.7%
Simplified71.7%
if -5.6999999999999997e72 < c < -4e11 or 3.09999999999999987e-210 < c < 7.00000000000000007e-147Initial program 84.3%
Taylor expanded in a around -inf 84.1%
Simplified79.3%
Taylor expanded in x around inf 62.6%
*-commutative62.6%
Simplified62.6%
if -4e11 < c < -8.1999999999999991e-59Initial program 99.8%
Taylor expanded in b around inf 54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if -8.1999999999999991e-59 < c < -4.99999999999999989e-257 or 4.40000000000000019e-259 < c < 3.09999999999999987e-210Initial program 75.7%
Taylor expanded in a around -inf 77.1%
Simplified82.2%
Taylor expanded in i around inf 64.7%
+-commutative64.7%
*-commutative64.7%
mul-1-neg64.7%
*-commutative64.7%
unsub-neg64.7%
*-commutative64.7%
Simplified64.7%
if -4.99999999999999989e-257 < c < 4.40000000000000019e-259 or 7.00000000000000007e-147 < c < 1.6e102Initial program 81.5%
Taylor expanded in a around -inf 76.8%
Simplified76.8%
Taylor expanded in t around inf 62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -2.05e+173)
t_3
(if (<= j -126.0)
(+ t_3 t_1)
(if (<= j 6.6e-186)
t_2
(if (<= j 7.6e-132)
(* z (- (* x y) (* b c)))
(if (<= j 2.5e+138) 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 = b * ((t * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.05e+173) {
tmp = t_3;
} else if (j <= -126.0) {
tmp = t_3 + t_1;
} else if (j <= 6.6e-186) {
tmp = t_2;
} else if (j <= 7.6e-132) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.5e+138) {
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 = b * ((t * i) - (z * c))
t_2 = (x * ((y * z) - (t * a))) + t_1
t_3 = j * ((a * c) - (y * i))
if (j <= (-2.05d+173)) then
tmp = t_3
else if (j <= (-126.0d0)) then
tmp = t_3 + t_1
else if (j <= 6.6d-186) then
tmp = t_2
else if (j <= 7.6d-132) then
tmp = z * ((x * y) - (b * c))
else if (j <= 2.5d+138) 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 = b * ((t * i) - (z * c));
double t_2 = (x * ((y * z) - (t * a))) + t_1;
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.05e+173) {
tmp = t_3;
} else if (j <= -126.0) {
tmp = t_3 + t_1;
} else if (j <= 6.6e-186) {
tmp = t_2;
} else if (j <= 7.6e-132) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 2.5e+138) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = (x * ((y * z) - (t * a))) + t_1 t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.05e+173: tmp = t_3 elif j <= -126.0: tmp = t_3 + t_1 elif j <= 6.6e-186: tmp = t_2 elif j <= 7.6e-132: tmp = z * ((x * y) - (b * c)) elif j <= 2.5e+138: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.05e+173) tmp = t_3; elseif (j <= -126.0) tmp = Float64(t_3 + t_1); elseif (j <= 6.6e-186) tmp = t_2; elseif (j <= 7.6e-132) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 2.5e+138) 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 = b * ((t * i) - (z * c)); t_2 = (x * ((y * z) - (t * a))) + t_1; t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.05e+173) tmp = t_3; elseif (j <= -126.0) tmp = t_3 + t_1; elseif (j <= 6.6e-186) tmp = t_2; elseif (j <= 7.6e-132) tmp = z * ((x * y) - (b * c)); elseif (j <= 2.5e+138) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.05e+173], t$95$3, If[LessEqual[j, -126.0], N[(t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[j, 6.6e-186], t$95$2, If[LessEqual[j, 7.6e-132], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+138], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.05 \cdot 10^{+173}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -126:\\
\;\;\;\;t\_3 + t\_1\\
\mathbf{elif}\;j \leq 6.6 \cdot 10^{-186}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 7.6 \cdot 10^{-132}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+138}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -2.04999999999999988e173 or 2.50000000000000008e138 < j Initial program 65.7%
Taylor expanded in j around inf 76.7%
*-commutative76.7%
Simplified76.7%
if -2.04999999999999988e173 < j < -126Initial program 81.6%
Taylor expanded in x around 0 75.7%
*-commutative75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if -126 < j < 6.59999999999999998e-186 or 7.5999999999999994e-132 < j < 2.50000000000000008e138Initial program 81.3%
Taylor expanded in j around 0 78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
if 6.59999999999999998e-186 < j < 7.5999999999999994e-132Initial program 57.5%
Taylor expanded in z around inf 78.3%
*-commutative78.3%
Simplified78.3%
Final simplification77.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j))))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= a -1.35e+155)
t_3
(if (<= a -2.25e-42)
(* c (- (* a j) (* z b)))
(if (<= a -1.65e-143)
t_1
(if (<= a -1.6e-221)
t_2
(if (<= a -3.6e-269) t_1 (if (<= a 44000.0) 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 * (i * -j);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.35e+155) {
tmp = t_3;
} else if (a <= -2.25e-42) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -1.65e-143) {
tmp = t_1;
} else if (a <= -1.6e-221) {
tmp = t_2;
} else if (a <= -3.6e-269) {
tmp = t_1;
} else if (a <= 44000.0) {
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 * (i * -j)
t_2 = b * ((t * i) - (z * c))
t_3 = a * ((c * j) - (x * t))
if (a <= (-1.35d+155)) then
tmp = t_3
else if (a <= (-2.25d-42)) then
tmp = c * ((a * j) - (z * b))
else if (a <= (-1.65d-143)) then
tmp = t_1
else if (a <= (-1.6d-221)) then
tmp = t_2
else if (a <= (-3.6d-269)) then
tmp = t_1
else if (a <= 44000.0d0) 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 * (i * -j);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.35e+155) {
tmp = t_3;
} else if (a <= -2.25e-42) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -1.65e-143) {
tmp = t_1;
} else if (a <= -1.6e-221) {
tmp = t_2;
} else if (a <= -3.6e-269) {
tmp = t_1;
} else if (a <= 44000.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = b * ((t * i) - (z * c)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1.35e+155: tmp = t_3 elif a <= -2.25e-42: tmp = c * ((a * j) - (z * b)) elif a <= -1.65e-143: tmp = t_1 elif a <= -1.6e-221: tmp = t_2 elif a <= -3.6e-269: tmp = t_1 elif a <= 44000.0: 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(i * Float64(-j))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -1.35e+155) tmp = t_3; elseif (a <= -2.25e-42) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= -1.65e-143) tmp = t_1; elseif (a <= -1.6e-221) tmp = t_2; elseif (a <= -3.6e-269) tmp = t_1; elseif (a <= 44000.0) 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 * (i * -j); t_2 = b * ((t * i) - (z * c)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -1.35e+155) tmp = t_3; elseif (a <= -2.25e-42) tmp = c * ((a * j) - (z * b)); elseif (a <= -1.65e-143) tmp = t_1; elseif (a <= -1.6e-221) tmp = t_2; elseif (a <= -3.6e-269) tmp = t_1; elseif (a <= 44000.0) 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[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.35e+155], t$95$3, If[LessEqual[a, -2.25e-42], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.65e-143], t$95$1, If[LessEqual[a, -1.6e-221], t$95$2, If[LessEqual[a, -3.6e-269], t$95$1, If[LessEqual[a, 44000.0], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.35 \cdot 10^{+155}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -2.25 \cdot 10^{-42}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-221}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-269}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 44000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -1.34999999999999997e155 or 44000 < a Initial program 74.3%
Taylor expanded in a around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
if -1.34999999999999997e155 < a < -2.25e-42Initial program 72.7%
Taylor expanded in c around inf 48.9%
*-commutative48.9%
Simplified48.9%
if -2.25e-42 < a < -1.65e-143 or -1.60000000000000008e-221 < a < -3.59999999999999998e-269Initial program 61.8%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around 0 55.0%
mul-1-neg55.0%
distribute-rgt-neg-in55.0%
Simplified55.0%
if -1.65e-143 < a < -1.60000000000000008e-221 or -3.59999999999999998e-269 < a < 44000Initial program 83.1%
Taylor expanded in b around inf 56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Final simplification57.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -8.2e+154)
t_2
(if (<= a -6.8e+35)
(* c (- (* a j) (* z b)))
(if (<= a -3.1e-300)
(* i (- (* t b) (* y j)))
(if (<= a 4.2e-72)
t_1
(if (<= a 5e-8)
(* j (- (* a c) (* y i)))
(if (<= a 12500.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.2e+154) {
tmp = t_2;
} else if (a <= -6.8e+35) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -3.1e-300) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 4.2e-72) {
tmp = t_1;
} else if (a <= 5e-8) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 12500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-8.2d+154)) then
tmp = t_2
else if (a <= (-6.8d+35)) then
tmp = c * ((a * j) - (z * b))
else if (a <= (-3.1d-300)) then
tmp = i * ((t * b) - (y * j))
else if (a <= 4.2d-72) then
tmp = t_1
else if (a <= 5d-8) then
tmp = j * ((a * c) - (y * i))
else if (a <= 12500.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.2e+154) {
tmp = t_2;
} else if (a <= -6.8e+35) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -3.1e-300) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 4.2e-72) {
tmp = t_1;
} else if (a <= 5e-8) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 12500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -8.2e+154: tmp = t_2 elif a <= -6.8e+35: tmp = c * ((a * j) - (z * b)) elif a <= -3.1e-300: tmp = i * ((t * b) - (y * j)) elif a <= 4.2e-72: tmp = t_1 elif a <= 5e-8: tmp = j * ((a * c) - (y * i)) elif a <= 12500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -8.2e+154) tmp = t_2; elseif (a <= -6.8e+35) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= -3.1e-300) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 4.2e-72) tmp = t_1; elseif (a <= 5e-8) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= 12500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -8.2e+154) tmp = t_2; elseif (a <= -6.8e+35) tmp = c * ((a * j) - (z * b)); elseif (a <= -3.1e-300) tmp = i * ((t * b) - (y * j)); elseif (a <= 4.2e-72) tmp = t_1; elseif (a <= 5e-8) tmp = j * ((a * c) - (y * i)); elseif (a <= 12500.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.2e+154], t$95$2, If[LessEqual[a, -6.8e+35], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.1e-300], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-72], t$95$1, If[LessEqual[a, 5e-8], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 12500.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{+35}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-300}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-8}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 12500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.2e154 or 12500 < a Initial program 74.3%
Taylor expanded in a around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
if -8.2e154 < a < -6.8000000000000002e35Initial program 73.0%
Taylor expanded in c around inf 58.6%
*-commutative58.6%
Simplified58.6%
if -6.8000000000000002e35 < a < -3.1000000000000002e-300Initial program 67.7%
Taylor expanded in a around -inf 61.7%
Simplified67.3%
Taylor expanded in i around inf 55.0%
+-commutative55.0%
*-commutative55.0%
mul-1-neg55.0%
*-commutative55.0%
unsub-neg55.0%
*-commutative55.0%
Simplified55.0%
if -3.1000000000000002e-300 < a < 4.2e-72 or 4.9999999999999998e-8 < a < 12500Initial program 89.2%
Taylor expanded in b around inf 66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if 4.2e-72 < a < 4.9999999999999998e-8Initial program 79.9%
Taylor expanded in j around inf 54.5%
*-commutative54.5%
Simplified54.5%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.6e+73)
t_1
(if (<= c -92000000000.0)
(* x (- (* y z) (* t a)))
(if (<= c -1.75e-59)
(* b (- (* t i) (* z c)))
(if (<= c -1.02e-154)
(* i (- (* t b) (* y j)))
(if (<= c -7.3e-224)
(* y (- (* x z) (* i j)))
(if (<= c 3.2e+102) (* t (- (* b i) (* x a))) 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.6e+73) {
tmp = t_1;
} else if (c <= -92000000000.0) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -1.75e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.02e-154) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -7.3e-224) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e+102) {
tmp = t * ((b * i) - (x * a));
} 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 = c * ((a * j) - (z * b))
if (c <= (-1.6d+73)) then
tmp = t_1
else if (c <= (-92000000000.0d0)) then
tmp = x * ((y * z) - (t * a))
else if (c <= (-1.75d-59)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-1.02d-154)) then
tmp = i * ((t * b) - (y * j))
else if (c <= (-7.3d-224)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 3.2d+102) then
tmp = t * ((b * i) - (x * a))
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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.6e+73) {
tmp = t_1;
} else if (c <= -92000000000.0) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -1.75e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.02e-154) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -7.3e-224) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 3.2e+102) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.6e+73: tmp = t_1 elif c <= -92000000000.0: tmp = x * ((y * z) - (t * a)) elif c <= -1.75e-59: tmp = b * ((t * i) - (z * c)) elif c <= -1.02e-154: tmp = i * ((t * b) - (y * j)) elif c <= -7.3e-224: tmp = y * ((x * z) - (i * j)) elif c <= 3.2e+102: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.6e+73) tmp = t_1; elseif (c <= -92000000000.0) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= -1.75e-59) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -1.02e-154) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= -7.3e-224) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 3.2e+102) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.6e+73) tmp = t_1; elseif (c <= -92000000000.0) tmp = x * ((y * z) - (t * a)); elseif (c <= -1.75e-59) tmp = b * ((t * i) - (z * c)); elseif (c <= -1.02e-154) tmp = i * ((t * b) - (y * j)); elseif (c <= -7.3e-224) tmp = y * ((x * z) - (i * j)); elseif (c <= 3.2e+102) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.6e+73], t$95$1, If[LessEqual[c, -92000000000.0], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.75e-59], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.02e-154], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.3e-224], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+102], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.6 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -92000000000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -1.02 \cdot 10^{-154}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq -7.3 \cdot 10^{-224}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+102}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.59999999999999991e73 or 3.1999999999999999e102 < c Initial program 62.4%
Taylor expanded in c around inf 71.7%
*-commutative71.7%
Simplified71.7%
if -1.59999999999999991e73 < c < -9.2e10Initial program 79.7%
Taylor expanded in a around -inf 73.0%
Simplified73.8%
Taylor expanded in x around inf 80.2%
*-commutative80.2%
Simplified80.2%
if -9.2e10 < c < -1.75e-59Initial program 99.8%
Taylor expanded in b around inf 54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if -1.75e-59 < c < -1.01999999999999992e-154Initial program 75.8%
Taylor expanded in a around -inf 75.4%
Simplified83.5%
Taylor expanded in i around inf 68.9%
+-commutative68.9%
*-commutative68.9%
mul-1-neg68.9%
*-commutative68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if -1.01999999999999992e-154 < c < -7.3e-224Initial program 60.0%
Taylor expanded in y around inf 90.1%
+-commutative90.1%
mul-1-neg90.1%
unsub-neg90.1%
*-commutative90.1%
Simplified90.1%
if -7.3e-224 < c < 3.1999999999999999e102Initial program 83.4%
Taylor expanded in a around -inf 81.5%
Simplified78.7%
Taylor expanded in t around inf 57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))))
(if (<= y -9e+170)
(* x (* y z))
(if (<= y -3.4e+82)
(* j (* a c))
(if (<= y -7.5e-161)
t_1
(if (<= y 1.16e-296)
(* i (* t b))
(if (<= y 4.8e-205)
t_1
(if (<= y 7.2e-99) (* a (* x (- t))) (* y (* 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 = c * -(z * b);
double tmp;
if (y <= -9e+170) {
tmp = x * (y * z);
} else if (y <= -3.4e+82) {
tmp = j * (a * c);
} else if (y <= -7.5e-161) {
tmp = t_1;
} else if (y <= 1.16e-296) {
tmp = i * (t * b);
} else if (y <= 4.8e-205) {
tmp = t_1;
} else if (y <= 7.2e-99) {
tmp = a * (x * -t);
} else {
tmp = y * (x * 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 = c * -(z * b)
if (y <= (-9d+170)) then
tmp = x * (y * z)
else if (y <= (-3.4d+82)) then
tmp = j * (a * c)
else if (y <= (-7.5d-161)) then
tmp = t_1
else if (y <= 1.16d-296) then
tmp = i * (t * b)
else if (y <= 4.8d-205) then
tmp = t_1
else if (y <= 7.2d-99) then
tmp = a * (x * -t)
else
tmp = y * (x * 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 = c * -(z * b);
double tmp;
if (y <= -9e+170) {
tmp = x * (y * z);
} else if (y <= -3.4e+82) {
tmp = j * (a * c);
} else if (y <= -7.5e-161) {
tmp = t_1;
} else if (y <= 1.16e-296) {
tmp = i * (t * b);
} else if (y <= 4.8e-205) {
tmp = t_1;
} else if (y <= 7.2e-99) {
tmp = a * (x * -t);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) tmp = 0 if y <= -9e+170: tmp = x * (y * z) elif y <= -3.4e+82: tmp = j * (a * c) elif y <= -7.5e-161: tmp = t_1 elif y <= 1.16e-296: tmp = i * (t * b) elif y <= 4.8e-205: tmp = t_1 elif y <= 7.2e-99: tmp = a * (x * -t) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) tmp = 0.0 if (y <= -9e+170) tmp = Float64(x * Float64(y * z)); elseif (y <= -3.4e+82) tmp = Float64(j * Float64(a * c)); elseif (y <= -7.5e-161) tmp = t_1; elseif (y <= 1.16e-296) tmp = Float64(i * Float64(t * b)); elseif (y <= 4.8e-205) tmp = t_1; elseif (y <= 7.2e-99) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); tmp = 0.0; if (y <= -9e+170) tmp = x * (y * z); elseif (y <= -3.4e+82) tmp = j * (a * c); elseif (y <= -7.5e-161) tmp = t_1; elseif (y <= 1.16e-296) tmp = i * (t * b); elseif (y <= 4.8e-205) tmp = t_1; elseif (y <= 7.2e-99) tmp = a * (x * -t); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[y, -9e+170], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e+82], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -7.5e-161], t$95$1, If[LessEqual[y, 1.16e-296], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-205], t$95$1, If[LessEqual[y, 7.2e-99], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+170}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{+82}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-296}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-99}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -9.00000000000000044e170Initial program 53.2%
Taylor expanded in y around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in x around inf 61.9%
if -9.00000000000000044e170 < y < -3.39999999999999994e82Initial program 62.1%
Taylor expanded in x around 0 66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 30.7%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -3.39999999999999994e82 < y < -7.49999999999999991e-161 or 1.15999999999999996e-296 < y < 4.8000000000000004e-205Initial program 82.7%
Taylor expanded in c around inf 53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in a around 0 36.6%
mul-1-neg36.6%
*-commutative36.6%
distribute-rgt-neg-in36.6%
Simplified36.6%
if -7.49999999999999991e-161 < y < 1.15999999999999996e-296Initial program 91.9%
Taylor expanded in x around 0 69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
associate-*r*43.5%
*-commutative43.5%
Simplified43.5%
if 4.8000000000000004e-205 < y < 7.2000000000000001e-99Initial program 88.8%
Taylor expanded in a around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in j around 0 44.1%
mul-1-neg44.1%
*-commutative44.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
if 7.2000000000000001e-99 < y Initial program 71.6%
Taylor expanded in y around inf 55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in x around inf 30.3%
*-commutative30.3%
associate-*l*31.8%
*-commutative31.8%
Simplified31.8%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))))
(if (<= y -8e+171)
(* x (* y z))
(if (<= y -1.45e+80)
(* j (* a c))
(if (<= y -2.1e-164)
t_1
(if (<= y 7.2e-295)
(* i (* t b))
(if (<= y 3.3e-215)
t_1
(if (<= y 2.5e-98) (* x (* t (- a))) (* y (* 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 = c * -(z * b);
double tmp;
if (y <= -8e+171) {
tmp = x * (y * z);
} else if (y <= -1.45e+80) {
tmp = j * (a * c);
} else if (y <= -2.1e-164) {
tmp = t_1;
} else if (y <= 7.2e-295) {
tmp = i * (t * b);
} else if (y <= 3.3e-215) {
tmp = t_1;
} else if (y <= 2.5e-98) {
tmp = x * (t * -a);
} else {
tmp = y * (x * 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 = c * -(z * b)
if (y <= (-8d+171)) then
tmp = x * (y * z)
else if (y <= (-1.45d+80)) then
tmp = j * (a * c)
else if (y <= (-2.1d-164)) then
tmp = t_1
else if (y <= 7.2d-295) then
tmp = i * (t * b)
else if (y <= 3.3d-215) then
tmp = t_1
else if (y <= 2.5d-98) then
tmp = x * (t * -a)
else
tmp = y * (x * 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 = c * -(z * b);
double tmp;
if (y <= -8e+171) {
tmp = x * (y * z);
} else if (y <= -1.45e+80) {
tmp = j * (a * c);
} else if (y <= -2.1e-164) {
tmp = t_1;
} else if (y <= 7.2e-295) {
tmp = i * (t * b);
} else if (y <= 3.3e-215) {
tmp = t_1;
} else if (y <= 2.5e-98) {
tmp = x * (t * -a);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) tmp = 0 if y <= -8e+171: tmp = x * (y * z) elif y <= -1.45e+80: tmp = j * (a * c) elif y <= -2.1e-164: tmp = t_1 elif y <= 7.2e-295: tmp = i * (t * b) elif y <= 3.3e-215: tmp = t_1 elif y <= 2.5e-98: tmp = x * (t * -a) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) tmp = 0.0 if (y <= -8e+171) tmp = Float64(x * Float64(y * z)); elseif (y <= -1.45e+80) tmp = Float64(j * Float64(a * c)); elseif (y <= -2.1e-164) tmp = t_1; elseif (y <= 7.2e-295) tmp = Float64(i * Float64(t * b)); elseif (y <= 3.3e-215) tmp = t_1; elseif (y <= 2.5e-98) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); tmp = 0.0; if (y <= -8e+171) tmp = x * (y * z); elseif (y <= -1.45e+80) tmp = j * (a * c); elseif (y <= -2.1e-164) tmp = t_1; elseif (y <= 7.2e-295) tmp = i * (t * b); elseif (y <= 3.3e-215) tmp = t_1; elseif (y <= 2.5e-98) tmp = x * (t * -a); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[y, -8e+171], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.45e+80], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-164], t$95$1, If[LessEqual[y, 7.2e-295], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-215], t$95$1, If[LessEqual[y, 2.5e-98], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
\mathbf{if}\;y \leq -8 \cdot 10^{+171}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{+80}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-295}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-215}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-98}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -7.99999999999999963e171Initial program 53.2%
Taylor expanded in y around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in x around inf 61.9%
if -7.99999999999999963e171 < y < -1.44999999999999993e80Initial program 62.1%
Taylor expanded in x around 0 66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 30.7%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -1.44999999999999993e80 < y < -2.0999999999999999e-164 or 7.2000000000000003e-295 < y < 3.2999999999999998e-215Initial program 82.9%
Taylor expanded in c around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in a around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if -2.0999999999999999e-164 < y < 7.2000000000000003e-295Initial program 91.9%
Taylor expanded in x around 0 69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
associate-*r*43.5%
*-commutative43.5%
Simplified43.5%
if 3.2999999999999998e-215 < y < 2.50000000000000009e-98Initial program 87.4%
Taylor expanded in a around -inf 78.1%
Simplified71.9%
Taylor expanded in x around inf 44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in y around 0 43.6%
associate-*r*43.6%
neg-mul-143.6%
Simplified43.6%
if 2.50000000000000009e-98 < y Initial program 71.6%
Taylor expanded in y around inf 55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in x around inf 30.3%
*-commutative30.3%
associate-*l*31.8%
*-commutative31.8%
Simplified31.8%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))))
(if (<= y -9.2e+170)
(* x (* y z))
(if (<= y -4.7e+81)
(* j (* a c))
(if (<= y -1.4e-165)
t_1
(if (<= y 1.05e-295)
(* i (* t b))
(if (<= y 1.7e-214)
t_1
(if (<= y 1.1e-100) (* x (* t (- a))) (* y (* i (- j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double tmp;
if (y <= -9.2e+170) {
tmp = x * (y * z);
} else if (y <= -4.7e+81) {
tmp = j * (a * c);
} else if (y <= -1.4e-165) {
tmp = t_1;
} else if (y <= 1.05e-295) {
tmp = i * (t * b);
} else if (y <= 1.7e-214) {
tmp = t_1;
} else if (y <= 1.1e-100) {
tmp = x * (t * -a);
} else {
tmp = y * (i * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * -(z * b)
if (y <= (-9.2d+170)) then
tmp = x * (y * z)
else if (y <= (-4.7d+81)) then
tmp = j * (a * c)
else if (y <= (-1.4d-165)) then
tmp = t_1
else if (y <= 1.05d-295) then
tmp = i * (t * b)
else if (y <= 1.7d-214) then
tmp = t_1
else if (y <= 1.1d-100) then
tmp = x * (t * -a)
else
tmp = y * (i * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double tmp;
if (y <= -9.2e+170) {
tmp = x * (y * z);
} else if (y <= -4.7e+81) {
tmp = j * (a * c);
} else if (y <= -1.4e-165) {
tmp = t_1;
} else if (y <= 1.05e-295) {
tmp = i * (t * b);
} else if (y <= 1.7e-214) {
tmp = t_1;
} else if (y <= 1.1e-100) {
tmp = x * (t * -a);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) tmp = 0 if y <= -9.2e+170: tmp = x * (y * z) elif y <= -4.7e+81: tmp = j * (a * c) elif y <= -1.4e-165: tmp = t_1 elif y <= 1.05e-295: tmp = i * (t * b) elif y <= 1.7e-214: tmp = t_1 elif y <= 1.1e-100: tmp = x * (t * -a) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) tmp = 0.0 if (y <= -9.2e+170) tmp = Float64(x * Float64(y * z)); elseif (y <= -4.7e+81) tmp = Float64(j * Float64(a * c)); elseif (y <= -1.4e-165) tmp = t_1; elseif (y <= 1.05e-295) tmp = Float64(i * Float64(t * b)); elseif (y <= 1.7e-214) tmp = t_1; elseif (y <= 1.1e-100) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); tmp = 0.0; if (y <= -9.2e+170) tmp = x * (y * z); elseif (y <= -4.7e+81) tmp = j * (a * c); elseif (y <= -1.4e-165) tmp = t_1; elseif (y <= 1.05e-295) tmp = i * (t * b); elseif (y <= 1.7e-214) tmp = t_1; elseif (y <= 1.1e-100) tmp = x * (t * -a); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[y, -9.2e+170], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.7e+81], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.4e-165], t$95$1, If[LessEqual[y, 1.05e-295], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-214], t$95$1, If[LessEqual[y, 1.1e-100], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
\mathbf{if}\;y \leq -9.2 \cdot 10^{+170}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -4.7 \cdot 10^{+81}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-295}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-100}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if y < -9.2000000000000003e170Initial program 53.2%
Taylor expanded in y around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in x around inf 61.9%
if -9.2000000000000003e170 < y < -4.7000000000000002e81Initial program 62.1%
Taylor expanded in x around 0 66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 30.7%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -4.7000000000000002e81 < y < -1.4e-165 or 1.04999999999999997e-295 < y < 1.7e-214Initial program 82.9%
Taylor expanded in c around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in a around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if -1.4e-165 < y < 1.04999999999999997e-295Initial program 91.9%
Taylor expanded in x around 0 69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
associate-*r*43.5%
*-commutative43.5%
Simplified43.5%
if 1.7e-214 < y < 1.09999999999999995e-100Initial program 87.4%
Taylor expanded in a around -inf 78.1%
Simplified71.9%
Taylor expanded in x around inf 44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in y around 0 43.6%
associate-*r*43.6%
neg-mul-143.6%
Simplified43.6%
if 1.09999999999999995e-100 < y Initial program 71.6%
Taylor expanded in y around inf 55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in x around 0 35.6%
mul-1-neg35.6%
distribute-rgt-neg-in35.6%
Simplified35.6%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))))
(if (<= y -9e+170)
(* x (* y z))
(if (<= y -3.25e+81)
(* j (* a c))
(if (<= y -4.5e-162)
t_1
(if (<= y 2.8e-296)
(* i (* t b))
(if (<= y 8e-215)
t_1
(if (<= y 2.9e-98) (* x (* t (- a))) (* j (* y (- i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double tmp;
if (y <= -9e+170) {
tmp = x * (y * z);
} else if (y <= -3.25e+81) {
tmp = j * (a * c);
} else if (y <= -4.5e-162) {
tmp = t_1;
} else if (y <= 2.8e-296) {
tmp = i * (t * b);
} else if (y <= 8e-215) {
tmp = t_1;
} else if (y <= 2.9e-98) {
tmp = x * (t * -a);
} else {
tmp = j * (y * -i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * -(z * b)
if (y <= (-9d+170)) then
tmp = x * (y * z)
else if (y <= (-3.25d+81)) then
tmp = j * (a * c)
else if (y <= (-4.5d-162)) then
tmp = t_1
else if (y <= 2.8d-296) then
tmp = i * (t * b)
else if (y <= 8d-215) then
tmp = t_1
else if (y <= 2.9d-98) then
tmp = x * (t * -a)
else
tmp = j * (y * -i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double tmp;
if (y <= -9e+170) {
tmp = x * (y * z);
} else if (y <= -3.25e+81) {
tmp = j * (a * c);
} else if (y <= -4.5e-162) {
tmp = t_1;
} else if (y <= 2.8e-296) {
tmp = i * (t * b);
} else if (y <= 8e-215) {
tmp = t_1;
} else if (y <= 2.9e-98) {
tmp = x * (t * -a);
} else {
tmp = j * (y * -i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) tmp = 0 if y <= -9e+170: tmp = x * (y * z) elif y <= -3.25e+81: tmp = j * (a * c) elif y <= -4.5e-162: tmp = t_1 elif y <= 2.8e-296: tmp = i * (t * b) elif y <= 8e-215: tmp = t_1 elif y <= 2.9e-98: tmp = x * (t * -a) else: tmp = j * (y * -i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) tmp = 0.0 if (y <= -9e+170) tmp = Float64(x * Float64(y * z)); elseif (y <= -3.25e+81) tmp = Float64(j * Float64(a * c)); elseif (y <= -4.5e-162) tmp = t_1; elseif (y <= 2.8e-296) tmp = Float64(i * Float64(t * b)); elseif (y <= 8e-215) tmp = t_1; elseif (y <= 2.9e-98) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(j * Float64(y * Float64(-i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); tmp = 0.0; if (y <= -9e+170) tmp = x * (y * z); elseif (y <= -3.25e+81) tmp = j * (a * c); elseif (y <= -4.5e-162) tmp = t_1; elseif (y <= 2.8e-296) tmp = i * (t * b); elseif (y <= 8e-215) tmp = t_1; elseif (y <= 2.9e-98) tmp = x * (t * -a); else tmp = j * (y * -i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[y, -9e+170], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.25e+81], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.5e-162], t$95$1, If[LessEqual[y, 2.8e-296], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-215], t$95$1, If[LessEqual[y, 2.9e-98], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+170}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -3.25 \cdot 10^{+81}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{-162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-296}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-215}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-98}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\end{array}
\end{array}
if y < -9.00000000000000044e170Initial program 53.2%
Taylor expanded in y around inf 78.4%
+-commutative78.4%
mul-1-neg78.4%
unsub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in x around inf 61.9%
if -9.00000000000000044e170 < y < -3.2499999999999998e81Initial program 62.1%
Taylor expanded in x around 0 66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in a around inf 30.7%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -3.2499999999999998e81 < y < -4.50000000000000023e-162 or 2.7999999999999999e-296 < y < 8.00000000000000033e-215Initial program 82.9%
Taylor expanded in c around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in a around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
if -4.50000000000000023e-162 < y < 2.7999999999999999e-296Initial program 91.9%
Taylor expanded in x around 0 69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
associate-*r*43.5%
*-commutative43.5%
Simplified43.5%
if 8.00000000000000033e-215 < y < 2.9e-98Initial program 87.4%
Taylor expanded in a around -inf 78.1%
Simplified71.9%
Taylor expanded in x around inf 44.0%
*-commutative44.0%
Simplified44.0%
Taylor expanded in y around 0 43.6%
associate-*r*43.6%
neg-mul-143.6%
Simplified43.6%
if 2.9e-98 < y Initial program 71.6%
Taylor expanded in x around 0 56.8%
*-commutative56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in y around inf 34.3%
associate-*r*34.3%
neg-mul-134.3%
*-commutative34.3%
associate-*r*35.7%
distribute-lft-neg-in35.7%
distribute-rgt-neg-in35.7%
Simplified35.7%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -5.8e+72)
t_1
(if (<= c -540000000000.0)
(* x (* y z))
(if (<= c -1.65e-59)
(* b (- (* t i) (* z c)))
(if (<= c -8.5e-262)
(* i (- (* t b) (* y j)))
(if (<= c 8.5e+102) (* t (- (* b i) (* x a))) 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.8e+72) {
tmp = t_1;
} else if (c <= -540000000000.0) {
tmp = x * (y * z);
} else if (c <= -1.65e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -8.5e-262) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 8.5e+102) {
tmp = t * ((b * i) - (x * a));
} 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 = c * ((a * j) - (z * b))
if (c <= (-5.8d+72)) then
tmp = t_1
else if (c <= (-540000000000.0d0)) then
tmp = x * (y * z)
else if (c <= (-1.65d-59)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-8.5d-262)) then
tmp = i * ((t * b) - (y * j))
else if (c <= 8.5d+102) then
tmp = t * ((b * i) - (x * a))
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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -5.8e+72) {
tmp = t_1;
} else if (c <= -540000000000.0) {
tmp = x * (y * z);
} else if (c <= -1.65e-59) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -8.5e-262) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 8.5e+102) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -5.8e+72: tmp = t_1 elif c <= -540000000000.0: tmp = x * (y * z) elif c <= -1.65e-59: tmp = b * ((t * i) - (z * c)) elif c <= -8.5e-262: tmp = i * ((t * b) - (y * j)) elif c <= 8.5e+102: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -5.8e+72) tmp = t_1; elseif (c <= -540000000000.0) tmp = Float64(x * Float64(y * z)); elseif (c <= -1.65e-59) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -8.5e-262) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 8.5e+102) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -5.8e+72) tmp = t_1; elseif (c <= -540000000000.0) tmp = x * (y * z); elseif (c <= -1.65e-59) tmp = b * ((t * i) - (z * c)); elseif (c <= -8.5e-262) tmp = i * ((t * b) - (y * j)); elseif (c <= 8.5e+102) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.8e+72], t$95$1, If[LessEqual[c, -540000000000.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.65e-59], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.5e-262], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.5e+102], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.8 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -540000000000:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -1.65 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-262}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{+102}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -5.80000000000000034e72 or 8.4999999999999996e102 < c Initial program 62.4%
Taylor expanded in c around inf 71.7%
*-commutative71.7%
Simplified71.7%
if -5.80000000000000034e72 < c < -5.4e11Initial program 79.7%
Taylor expanded in y around inf 54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in x around inf 66.9%
if -5.4e11 < c < -1.64999999999999991e-59Initial program 99.8%
Taylor expanded in b around inf 54.4%
*-commutative54.4%
*-commutative54.4%
Simplified54.4%
if -1.64999999999999991e-59 < c < -8.5e-262Initial program 71.6%
Taylor expanded in a around -inf 73.7%
Simplified85.3%
Taylor expanded in i around inf 57.7%
+-commutative57.7%
*-commutative57.7%
mul-1-neg57.7%
*-commutative57.7%
unsub-neg57.7%
*-commutative57.7%
Simplified57.7%
if -8.5e-262 < c < 8.4999999999999996e102Initial program 83.6%
Taylor expanded in a around -inf 81.5%
Simplified77.7%
Taylor expanded in t around inf 58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -6.5e+186)
(* j (- (* a c) (* y i)))
(if (<= c -1e-58)
(* z (- (* x y) (* b c)))
(if (<= c -2.7e-149)
(* i (- (* t b) (* y j)))
(if (<= c -3.1e-225)
(* y (- (* x z) (* i j)))
(if (<= c 1.5e+103)
(* t (- (* b i) (* x a)))
(* c (- (* a j) (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.5e+186) {
tmp = j * ((a * c) - (y * i));
} else if (c <= -1e-58) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -2.7e-149) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -3.1e-225) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 1.5e+103) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-6.5d+186)) then
tmp = j * ((a * c) - (y * i))
else if (c <= (-1d-58)) then
tmp = z * ((x * y) - (b * c))
else if (c <= (-2.7d-149)) then
tmp = i * ((t * b) - (y * j))
else if (c <= (-3.1d-225)) then
tmp = y * ((x * z) - (i * j))
else if (c <= 1.5d+103) then
tmp = t * ((b * i) - (x * a))
else
tmp = c * ((a * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.5e+186) {
tmp = j * ((a * c) - (y * i));
} else if (c <= -1e-58) {
tmp = z * ((x * y) - (b * c));
} else if (c <= -2.7e-149) {
tmp = i * ((t * b) - (y * j));
} else if (c <= -3.1e-225) {
tmp = y * ((x * z) - (i * j));
} else if (c <= 1.5e+103) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -6.5e+186: tmp = j * ((a * c) - (y * i)) elif c <= -1e-58: tmp = z * ((x * y) - (b * c)) elif c <= -2.7e-149: tmp = i * ((t * b) - (y * j)) elif c <= -3.1e-225: tmp = y * ((x * z) - (i * j)) elif c <= 1.5e+103: tmp = t * ((b * i) - (x * a)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -6.5e+186) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (c <= -1e-58) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (c <= -2.7e-149) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= -3.1e-225) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (c <= 1.5e+103) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -6.5e+186) tmp = j * ((a * c) - (y * i)); elseif (c <= -1e-58) tmp = z * ((x * y) - (b * c)); elseif (c <= -2.7e-149) tmp = i * ((t * b) - (y * j)); elseif (c <= -3.1e-225) tmp = y * ((x * z) - (i * j)); elseif (c <= 1.5e+103) tmp = t * ((b * i) - (x * a)); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -6.5e+186], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1e-58], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e-149], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.1e-225], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.5e+103], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.5 \cdot 10^{+186}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-58}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{-149}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq -3.1 \cdot 10^{-225}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{+103}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -6.4999999999999997e186Initial program 36.4%
Taylor expanded in j around inf 79.9%
*-commutative79.9%
Simplified79.9%
if -6.4999999999999997e186 < c < -1e-58Initial program 79.5%
Taylor expanded in z around inf 59.7%
*-commutative59.7%
Simplified59.7%
if -1e-58 < c < -2.70000000000000014e-149Initial program 75.8%
Taylor expanded in a around -inf 75.4%
Simplified83.5%
Taylor expanded in i around inf 68.9%
+-commutative68.9%
*-commutative68.9%
mul-1-neg68.9%
*-commutative68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
if -2.70000000000000014e-149 < c < -3.09999999999999996e-225Initial program 60.0%
Taylor expanded in y around inf 90.1%
+-commutative90.1%
mul-1-neg90.1%
unsub-neg90.1%
*-commutative90.1%
Simplified90.1%
if -3.09999999999999996e-225 < c < 1.5e103Initial program 83.4%
Taylor expanded in a around -inf 81.5%
Simplified78.7%
Taylor expanded in t around inf 57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
if 1.5e103 < c Initial program 78.3%
Taylor expanded in c around inf 78.9%
*-commutative78.9%
Simplified78.9%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -6e+250)
(+ (* j (- (* a c) (* y i))) t_1)
(if (or (<= b -1.06e+54) (not (<= b 7e-103)))
(+ (* x (- (* y z) (* t a))) t_1)
(+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6e+250) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if ((b <= -1.06e+54) || !(b <= 7e-103)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-6d+250)) then
tmp = (j * ((a * c) - (y * i))) + t_1
else if ((b <= (-1.06d+54)) .or. (.not. (b <= 7d-103))) then
tmp = (x * ((y * z) - (t * a))) + t_1
else
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6e+250) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else if ((b <= -1.06e+54) || !(b <= 7e-103)) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -6e+250: tmp = (j * ((a * c) - (y * i))) + t_1 elif (b <= -1.06e+54) or not (b <= 7e-103): tmp = (x * ((y * z) - (t * a))) + t_1 else: tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -6e+250) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); elseif ((b <= -1.06e+54) || !(b <= 7e-103)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -6e+250) tmp = (j * ((a * c) - (y * i))) + t_1; elseif ((b <= -1.06e+54) || ~((b <= 7e-103))) tmp = (x * ((y * z) - (t * a))) + t_1; else tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6e+250], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[Or[LessEqual[b, -1.06e+54], N[Not[LessEqual[b, 7e-103]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6 \cdot 10^{+250}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\mathbf{elif}\;b \leq -1.06 \cdot 10^{+54} \lor \neg \left(b \leq 7 \cdot 10^{-103}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -5.99999999999999953e250Initial program 70.5%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
*-commutative82.2%
*-commutative82.2%
Simplified82.2%
if -5.99999999999999953e250 < b < -1.06e54 or 7.00000000000000032e-103 < b Initial program 77.1%
Taylor expanded in j around 0 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if -1.06e54 < b < 7.00000000000000032e-103Initial program 75.4%
Taylor expanded in a around -inf 73.5%
Simplified73.5%
Taylor expanded in b around 0 73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- a)))) (t_2 (* x (* y z))))
(if (<= i -1.65e+101)
(* i (* t b))
(if (<= i -1.35e-85)
t_1
(if (<= i -1.35e-220)
t_2
(if (<= i 2e-93) t_1 (if (<= i 1.5e+51) t_2 (* b (* t i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (x * -a);
double t_2 = x * (y * z);
double tmp;
if (i <= -1.65e+101) {
tmp = i * (t * b);
} else if (i <= -1.35e-85) {
tmp = t_1;
} else if (i <= -1.35e-220) {
tmp = t_2;
} else if (i <= 2e-93) {
tmp = t_1;
} else if (i <= 1.5e+51) {
tmp = t_2;
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * (x * -a)
t_2 = x * (y * z)
if (i <= (-1.65d+101)) then
tmp = i * (t * b)
else if (i <= (-1.35d-85)) then
tmp = t_1
else if (i <= (-1.35d-220)) then
tmp = t_2
else if (i <= 2d-93) then
tmp = t_1
else if (i <= 1.5d+51) then
tmp = t_2
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (x * -a);
double t_2 = x * (y * z);
double tmp;
if (i <= -1.65e+101) {
tmp = i * (t * b);
} else if (i <= -1.35e-85) {
tmp = t_1;
} else if (i <= -1.35e-220) {
tmp = t_2;
} else if (i <= 2e-93) {
tmp = t_1;
} else if (i <= 1.5e+51) {
tmp = t_2;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (x * -a) t_2 = x * (y * z) tmp = 0 if i <= -1.65e+101: tmp = i * (t * b) elif i <= -1.35e-85: tmp = t_1 elif i <= -1.35e-220: tmp = t_2 elif i <= 2e-93: tmp = t_1 elif i <= 1.5e+51: tmp = t_2 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(-a))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (i <= -1.65e+101) tmp = Float64(i * Float64(t * b)); elseif (i <= -1.35e-85) tmp = t_1; elseif (i <= -1.35e-220) tmp = t_2; elseif (i <= 2e-93) tmp = t_1; elseif (i <= 1.5e+51) tmp = t_2; else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (x * -a); t_2 = x * (y * z); tmp = 0.0; if (i <= -1.65e+101) tmp = i * (t * b); elseif (i <= -1.35e-85) tmp = t_1; elseif (i <= -1.35e-220) tmp = t_2; elseif (i <= 2e-93) tmp = t_1; elseif (i <= 1.5e+51) tmp = t_2; else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.65e+101], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.35e-85], t$95$1, If[LessEqual[i, -1.35e-220], t$95$2, If[LessEqual[i, 2e-93], t$95$1, If[LessEqual[i, 1.5e+51], t$95$2, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-a\right)\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;i \leq -1.65 \cdot 10^{+101}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-220}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{+51}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.65000000000000006e101Initial program 63.2%
Taylor expanded in x around 0 58.6%
*-commutative58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in t around inf 43.8%
*-commutative43.8%
associate-*r*48.5%
*-commutative48.5%
Simplified48.5%
if -1.65000000000000006e101 < i < -1.3500000000000001e-85 or -1.35e-220 < i < 1.9999999999999998e-93Initial program 80.8%
Taylor expanded in a around inf 45.2%
+-commutative45.2%
mul-1-neg45.2%
unsub-neg45.2%
*-commutative45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in j around 0 33.9%
mul-1-neg33.9%
*-commutative33.9%
distribute-rgt-neg-in33.9%
Simplified33.9%
Taylor expanded in a around 0 33.9%
mul-1-neg33.9%
*-commutative33.9%
associate-*l*34.9%
*-commutative34.9%
Simplified34.9%
if -1.3500000000000001e-85 < i < -1.35e-220 or 1.9999999999999998e-93 < i < 1.5e51Initial program 78.9%
Taylor expanded in y around inf 37.7%
+-commutative37.7%
mul-1-neg37.7%
unsub-neg37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in x around inf 36.8%
if 1.5e51 < i Initial program 73.9%
Taylor expanded in i around inf 67.9%
distribute-lft-out--67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around 0 38.6%
Final simplification38.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= y -5.2e+165)
(* x (* y z))
(if (<= y -3.9e-16)
t_1
(if (<= y -4.6e-159)
(* a (* x (- t)))
(if (<= y 2.25e-268)
t_1
(if (<= y 5.2e-47) (* c (* a j)) (* y (* 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 = i * (t * b);
double tmp;
if (y <= -5.2e+165) {
tmp = x * (y * z);
} else if (y <= -3.9e-16) {
tmp = t_1;
} else if (y <= -4.6e-159) {
tmp = a * (x * -t);
} else if (y <= 2.25e-268) {
tmp = t_1;
} else if (y <= 5.2e-47) {
tmp = c * (a * j);
} else {
tmp = y * (x * 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 * (t * b)
if (y <= (-5.2d+165)) then
tmp = x * (y * z)
else if (y <= (-3.9d-16)) then
tmp = t_1
else if (y <= (-4.6d-159)) then
tmp = a * (x * -t)
else if (y <= 2.25d-268) then
tmp = t_1
else if (y <= 5.2d-47) then
tmp = c * (a * j)
else
tmp = y * (x * 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 * (t * b);
double tmp;
if (y <= -5.2e+165) {
tmp = x * (y * z);
} else if (y <= -3.9e-16) {
tmp = t_1;
} else if (y <= -4.6e-159) {
tmp = a * (x * -t);
} else if (y <= 2.25e-268) {
tmp = t_1;
} else if (y <= 5.2e-47) {
tmp = c * (a * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if y <= -5.2e+165: tmp = x * (y * z) elif y <= -3.9e-16: tmp = t_1 elif y <= -4.6e-159: tmp = a * (x * -t) elif y <= 2.25e-268: tmp = t_1 elif y <= 5.2e-47: tmp = c * (a * j) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (y <= -5.2e+165) tmp = Float64(x * Float64(y * z)); elseif (y <= -3.9e-16) tmp = t_1; elseif (y <= -4.6e-159) tmp = Float64(a * Float64(x * Float64(-t))); elseif (y <= 2.25e-268) tmp = t_1; elseif (y <= 5.2e-47) tmp = Float64(c * Float64(a * j)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (y <= -5.2e+165) tmp = x * (y * z); elseif (y <= -3.9e-16) tmp = t_1; elseif (y <= -4.6e-159) tmp = a * (x * -t); elseif (y <= 2.25e-268) tmp = t_1; elseif (y <= 5.2e-47) tmp = c * (a * j); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.2e+165], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.9e-16], t$95$1, If[LessEqual[y, -4.6e-159], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.25e-268], t$95$1, If[LessEqual[y, 5.2e-47], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+165}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -3.9 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.6 \cdot 10^{-159}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-268}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{-47}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if y < -5.2000000000000002e165Initial program 55.7%
Taylor expanded in y around inf 74.5%
+-commutative74.5%
mul-1-neg74.5%
unsub-neg74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in x around inf 58.8%
if -5.2000000000000002e165 < y < -3.89999999999999977e-16 or -4.59999999999999957e-159 < y < 2.2500000000000001e-268Initial program 79.8%
Taylor expanded in x around 0 70.7%
*-commutative70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in t around inf 39.1%
*-commutative39.1%
associate-*r*40.2%
*-commutative40.2%
Simplified40.2%
if -3.89999999999999977e-16 < y < -4.59999999999999957e-159Initial program 81.9%
Taylor expanded in a around inf 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
*-commutative40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in j around 0 30.9%
mul-1-neg30.9%
*-commutative30.9%
distribute-rgt-neg-in30.9%
Simplified30.9%
if 2.2500000000000001e-268 < y < 5.2e-47Initial program 86.9%
Taylor expanded in c around inf 55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in a around inf 33.7%
*-commutative33.7%
Simplified33.7%
if 5.2e-47 < y Initial program 71.1%
Taylor expanded in y around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in x around inf 32.5%
*-commutative32.5%
associate-*l*34.2%
*-commutative34.2%
Simplified34.2%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -1.75e+192)
t_2
(if (<= x 1.8e+187)
(+ t_1 (* b (- (* t i) (* z c))))
(if (<= x 2.05e+260) t_2 (- t_1 (* b (* z c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.75e+192) {
tmp = t_2;
} else if (x <= 1.8e+187) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (x <= 2.05e+260) {
tmp = t_2;
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-1.75d+192)) then
tmp = t_2
else if (x <= 1.8d+187) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else if (x <= 2.05d+260) then
tmp = t_2
else
tmp = t_1 - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.75e+192) {
tmp = t_2;
} else if (x <= 1.8e+187) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (x <= 2.05e+260) {
tmp = t_2;
} else {
tmp = t_1 - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.75e+192: tmp = t_2 elif x <= 1.8e+187: tmp = t_1 + (b * ((t * i) - (z * c))) elif x <= 2.05e+260: tmp = t_2 else: tmp = t_1 - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.75e+192) tmp = t_2; elseif (x <= 1.8e+187) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (x <= 2.05e+260) tmp = t_2; else tmp = Float64(t_1 - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.75e+192) tmp = t_2; elseif (x <= 1.8e+187) tmp = t_1 + (b * ((t * i) - (z * c))); elseif (x <= 2.05e+260) tmp = t_2; else tmp = t_1 - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+192], t$95$2, If[LessEqual[x, 1.8e+187], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.05e+260], t$95$2, N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+192}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{+187}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{+260}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if x < -1.74999999999999991e192 or 1.80000000000000018e187 < x < 2.05000000000000013e260Initial program 76.7%
Taylor expanded in a around -inf 66.1%
Simplified53.8%
Taylor expanded in x around inf 81.2%
*-commutative81.2%
Simplified81.2%
if -1.74999999999999991e192 < x < 1.80000000000000018e187Initial program 75.7%
Taylor expanded in x around 0 64.0%
*-commutative64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
if 2.05000000000000013e260 < x Initial program 77.6%
Taylor expanded in x around 0 78.3%
*-commutative78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in t around 0 89.2%
*-commutative89.2%
Simplified89.2%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -0.000108)
t_1
(if (<= a -7.6e-300)
(* y (* i (- j)))
(if (<= a 6.5e-72)
(* b (* t i))
(if (<= a 1.25e-7) (* j (* y (- i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.000108) {
tmp = t_1;
} else if (a <= -7.6e-300) {
tmp = y * (i * -j);
} else if (a <= 6.5e-72) {
tmp = b * (t * i);
} else if (a <= 1.25e-7) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-0.000108d0)) then
tmp = t_1
else if (a <= (-7.6d-300)) then
tmp = y * (i * -j)
else if (a <= 6.5d-72) then
tmp = b * (t * i)
else if (a <= 1.25d-7) then
tmp = j * (y * -i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.000108) {
tmp = t_1;
} else if (a <= -7.6e-300) {
tmp = y * (i * -j);
} else if (a <= 6.5e-72) {
tmp = b * (t * i);
} else if (a <= 1.25e-7) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -0.000108: tmp = t_1 elif a <= -7.6e-300: tmp = y * (i * -j) elif a <= 6.5e-72: tmp = b * (t * i) elif a <= 1.25e-7: tmp = j * (y * -i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -0.000108) tmp = t_1; elseif (a <= -7.6e-300) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 6.5e-72) tmp = Float64(b * Float64(t * i)); elseif (a <= 1.25e-7) tmp = Float64(j * Float64(y * Float64(-i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -0.000108) tmp = t_1; elseif (a <= -7.6e-300) tmp = y * (i * -j); elseif (a <= 6.5e-72) tmp = b * (t * i); elseif (a <= 1.25e-7) tmp = j * (y * -i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.000108], t$95$1, If[LessEqual[a, -7.6e-300], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-72], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-7], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -0.000108:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.6 \cdot 10^{-300}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-72}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-7}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.08e-4 or 1.24999999999999994e-7 < a Initial program 73.4%
Taylor expanded in a around inf 55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
*-commutative55.4%
Simplified55.4%
if -1.08e-4 < a < -7.60000000000000026e-300Initial program 67.2%
Taylor expanded in y around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in x around 0 34.7%
mul-1-neg34.7%
distribute-rgt-neg-in34.7%
Simplified34.7%
if -7.60000000000000026e-300 < a < 6.4999999999999997e-72Initial program 90.6%
Taylor expanded in i around inf 45.9%
distribute-lft-out--45.9%
*-commutative45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in y around 0 39.0%
if 6.4999999999999997e-72 < a < 1.24999999999999994e-7Initial program 81.2%
Taylor expanded in x around 0 68.9%
*-commutative68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in y around inf 43.2%
associate-*r*43.2%
neg-mul-143.2%
*-commutative43.2%
associate-*r*48.8%
distribute-lft-neg-in48.8%
distribute-rgt-neg-in48.8%
Simplified48.8%
Final simplification47.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -8.5e+108)
t_2
(if (<= a -3.1e-221)
t_1
(if (<= a -3.6e-269) (* y (* i (- j))) (if (<= a 14500.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.5e+108) {
tmp = t_2;
} else if (a <= -3.1e-221) {
tmp = t_1;
} else if (a <= -3.6e-269) {
tmp = y * (i * -j);
} else if (a <= 14500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-8.5d+108)) then
tmp = t_2
else if (a <= (-3.1d-221)) then
tmp = t_1
else if (a <= (-3.6d-269)) then
tmp = y * (i * -j)
else if (a <= 14500.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.5e+108) {
tmp = t_2;
} else if (a <= -3.1e-221) {
tmp = t_1;
} else if (a <= -3.6e-269) {
tmp = y * (i * -j);
} else if (a <= 14500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -8.5e+108: tmp = t_2 elif a <= -3.1e-221: tmp = t_1 elif a <= -3.6e-269: tmp = y * (i * -j) elif a <= 14500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -8.5e+108) tmp = t_2; elseif (a <= -3.1e-221) tmp = t_1; elseif (a <= -3.6e-269) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 14500.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -8.5e+108) tmp = t_2; elseif (a <= -3.1e-221) tmp = t_1; elseif (a <= -3.6e-269) tmp = y * (i * -j); elseif (a <= 14500.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.5e+108], t$95$2, If[LessEqual[a, -3.1e-221], t$95$1, If[LessEqual[a, -3.6e-269], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 14500.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+108}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-269}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 14500:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -8.50000000000000016e108 or 14500 < a Initial program 73.6%
Taylor expanded in a around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
if -8.50000000000000016e108 < a < -3.0999999999999999e-221 or -3.59999999999999998e-269 < a < 14500Initial program 78.2%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if -3.0999999999999999e-221 < a < -3.59999999999999998e-269Initial program 67.3%
Taylor expanded in y around inf 88.7%
+-commutative88.7%
mul-1-neg88.7%
unsub-neg88.7%
*-commutative88.7%
Simplified88.7%
Taylor expanded in x around 0 67.8%
mul-1-neg67.8%
distribute-rgt-neg-in67.8%
Simplified67.8%
Final simplification55.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -8.2e+154)
t_1
(if (<= a -6.4e+35)
(* c (- (* a j) (* z b)))
(if (<= a -8.5e-300)
(* i (- (* t b) (* y j)))
(if (<= a 920.0) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.2e+154) {
tmp = t_1;
} else if (a <= -6.4e+35) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -8.5e-300) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 920.0) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-8.2d+154)) then
tmp = t_1
else if (a <= (-6.4d+35)) then
tmp = c * ((a * j) - (z * b))
else if (a <= (-8.5d-300)) then
tmp = i * ((t * b) - (y * j))
else if (a <= 920.0d0) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.2e+154) {
tmp = t_1;
} else if (a <= -6.4e+35) {
tmp = c * ((a * j) - (z * b));
} else if (a <= -8.5e-300) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 920.0) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -8.2e+154: tmp = t_1 elif a <= -6.4e+35: tmp = c * ((a * j) - (z * b)) elif a <= -8.5e-300: tmp = i * ((t * b) - (y * j)) elif a <= 920.0: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -8.2e+154) tmp = t_1; elseif (a <= -6.4e+35) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= -8.5e-300) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 920.0) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -8.2e+154) tmp = t_1; elseif (a <= -6.4e+35) tmp = c * ((a * j) - (z * b)); elseif (a <= -8.5e-300) tmp = i * ((t * b) - (y * j)); elseif (a <= 920.0) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.2e+154], t$95$1, If[LessEqual[a, -6.4e+35], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-300], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 920.0], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6.4 \cdot 10^{+35}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-300}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 920:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -8.2e154 or 920 < a Initial program 74.3%
Taylor expanded in a around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
*-commutative62.7%
Simplified62.7%
if -8.2e154 < a < -6.39999999999999965e35Initial program 73.0%
Taylor expanded in c around inf 58.6%
*-commutative58.6%
Simplified58.6%
if -6.39999999999999965e35 < a < -8.4999999999999995e-300Initial program 67.7%
Taylor expanded in a around -inf 61.7%
Simplified67.3%
Taylor expanded in i around inf 55.0%
+-commutative55.0%
*-commutative55.0%
mul-1-neg55.0%
*-commutative55.0%
unsub-neg55.0%
*-commutative55.0%
Simplified55.0%
if -8.4999999999999995e-300 < a < 920Initial program 87.2%
Taylor expanded in b around inf 57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
Final simplification59.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.7e+35)
(* i (* t b))
(if (<= i 2e-107)
(* c (* a j))
(if (<= i 4.9e+51) (* x (* y z)) (* b (* t i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.7e+35) {
tmp = i * (t * b);
} else if (i <= 2e-107) {
tmp = c * (a * j);
} else if (i <= 4.9e+51) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-2.7d+35)) then
tmp = i * (t * b)
else if (i <= 2d-107) then
tmp = c * (a * j)
else if (i <= 4.9d+51) then
tmp = x * (y * z)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.7e+35) {
tmp = i * (t * b);
} else if (i <= 2e-107) {
tmp = c * (a * j);
} else if (i <= 4.9e+51) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.7e+35: tmp = i * (t * b) elif i <= 2e-107: tmp = c * (a * j) elif i <= 4.9e+51: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.7e+35) tmp = Float64(i * Float64(t * b)); elseif (i <= 2e-107) tmp = Float64(c * Float64(a * j)); elseif (i <= 4.9e+51) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.7e+35) tmp = i * (t * b); elseif (i <= 2e-107) tmp = c * (a * j); elseif (i <= 4.9e+51) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.7e+35], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-107], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.9e+51], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.7 \cdot 10^{+35}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-107}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;i \leq 4.9 \cdot 10^{+51}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -2.70000000000000003e35Initial program 66.2%
Taylor expanded in x around 0 57.6%
*-commutative57.6%
*-commutative57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in t around inf 41.3%
*-commutative41.3%
associate-*r*44.7%
*-commutative44.7%
Simplified44.7%
if -2.70000000000000003e35 < i < 2e-107Initial program 80.8%
Taylor expanded in c around inf 47.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in a around inf 26.5%
*-commutative26.5%
Simplified26.5%
if 2e-107 < i < 4.89999999999999983e51Initial program 80.4%
Taylor expanded in y around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in x around inf 40.6%
if 4.89999999999999983e51 < i Initial program 73.9%
Taylor expanded in i around inf 67.9%
distribute-lft-out--67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around 0 38.6%
Final simplification35.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.6e-75) (not (<= c 1.35e+103))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.6e-75) || !(c <= 1.35e+103)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.6d-75)) .or. (.not. (c <= 1.35d+103))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.6e-75) || !(c <= 1.35e+103)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.6e-75) or not (c <= 1.35e+103): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.6e-75) || !(c <= 1.35e+103)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.6e-75) || ~((c <= 1.35e+103))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.6e-75], N[Not[LessEqual[c, 1.35e+103]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.6 \cdot 10^{-75} \lor \neg \left(c \leq 1.35 \cdot 10^{+103}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -1.59999999999999988e-75 or 1.34999999999999996e103 < c Initial program 69.7%
Taylor expanded in a around inf 37.4%
+-commutative37.4%
mul-1-neg37.4%
unsub-neg37.4%
*-commutative37.4%
*-commutative37.4%
Simplified37.4%
Taylor expanded in j around inf 33.1%
*-commutative33.1%
Simplified33.1%
if -1.59999999999999988e-75 < c < 1.34999999999999996e103Initial program 81.6%
Taylor expanded in i around inf 48.3%
distribute-lft-out--48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in y around 0 31.1%
Final simplification32.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.4e+53) (not (<= b 7.6e+96))) (* b (* t i)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+53) || !(b <= 7.6e+96)) {
tmp = b * (t * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-4.4d+53)) .or. (.not. (b <= 7.6d+96))) then
tmp = b * (t * i)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.4e+53) || !(b <= 7.6e+96)) {
tmp = b * (t * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.4e+53) or not (b <= 7.6e+96): tmp = b * (t * i) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.4e+53) || !(b <= 7.6e+96)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.4e+53) || ~((b <= 7.6e+96))) tmp = b * (t * i); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.4e+53], N[Not[LessEqual[b, 7.6e+96]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+53} \lor \neg \left(b \leq 7.6 \cdot 10^{+96}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if b < -4.39999999999999997e53 or 7.6000000000000003e96 < b Initial program 75.9%
Taylor expanded in i around inf 50.0%
distribute-lft-out--50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around 0 41.5%
if -4.39999999999999997e53 < b < 7.6000000000000003e96Initial program 76.0%
Taylor expanded in c around inf 36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in a around inf 26.9%
*-commutative26.9%
Simplified26.9%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -7.4e+205) (* a (* x t)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -7.4e+205) {
tmp = a * (x * t);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-7.4d+205)) then
tmp = a * (x * t)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -7.4e+205) {
tmp = a * (x * t);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -7.4e+205: tmp = a * (x * t) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -7.4e+205) tmp = Float64(a * Float64(x * t)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -7.4e+205) tmp = a * (x * t); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -7.4e+205], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.4 \cdot 10^{+205}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -7.39999999999999961e205Initial program 85.1%
Taylor expanded in a around inf 36.0%
+-commutative36.0%
mul-1-neg36.0%
unsub-neg36.0%
*-commutative36.0%
*-commutative36.0%
Simplified36.0%
Taylor expanded in j around 0 35.9%
mul-1-neg35.9%
*-commutative35.9%
distribute-rgt-neg-in35.9%
Simplified35.9%
expm1-log1p-u20.2%
expm1-udef20.2%
associate-*r*24.5%
add-sqr-sqrt24.5%
sqrt-unprod15.6%
sqr-neg15.6%
sqrt-unprod0.0%
add-sqr-sqrt10.9%
Applied egg-rr10.9%
expm1-def10.9%
expm1-log1p16.6%
associate-*l*30.8%
*-commutative30.8%
Simplified30.8%
if -7.39999999999999961e205 < t Initial program 75.2%
Taylor expanded in a around inf 33.8%
+-commutative33.8%
mul-1-neg33.8%
unsub-neg33.8%
*-commutative33.8%
*-commutative33.8%
Simplified33.8%
Taylor expanded in j around inf 19.6%
*-commutative19.6%
Simplified19.6%
Final simplification20.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 76.0%
Taylor expanded in a around inf 33.9%
+-commutative33.9%
mul-1-neg33.9%
unsub-neg33.9%
*-commutative33.9%
*-commutative33.9%
Simplified33.9%
Taylor expanded in j around inf 18.2%
*-commutative18.2%
Simplified18.2%
Final simplification18.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024026
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))