
(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 30 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
(-
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* y i) (* a c))))))
(if (<= t_1 INFINITY) t_1 (* j (- (* a c) (* 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 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
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 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = j * ((a * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) - (j * ((y * i) - (a * c))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = j * ((a * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in j around -inf 55.2%
Final simplification87.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))))
(if (<= y -2.9e+185)
t_1
(if (<= y -1.55e+117)
(+ t_2 (* b (* t i)))
(if (<= y -1.4e+92)
t_1
(if (<= y 5.6e-64)
t_3
(if (<= y 5.7e+175)
(- (* x (- (* y z) (* t a))) (* j (* y i)))
(if (<= y 1.12e+225) t_3 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = j * ((a * c) - (y * i));
double t_3 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
double tmp;
if (y <= -2.9e+185) {
tmp = t_1;
} else if (y <= -1.55e+117) {
tmp = t_2 + (b * (t * i));
} else if (y <= -1.4e+92) {
tmp = t_1;
} else if (y <= 5.6e-64) {
tmp = t_3;
} else if (y <= 5.7e+175) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (y <= 1.12e+225) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = j * ((a * c) - (y * i))
t_3 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
if (y <= (-2.9d+185)) then
tmp = t_1
else if (y <= (-1.55d+117)) then
tmp = t_2 + (b * (t * i))
else if (y <= (-1.4d+92)) then
tmp = t_1
else if (y <= 5.6d-64) then
tmp = t_3
else if (y <= 5.7d+175) then
tmp = (x * ((y * z) - (t * a))) - (j * (y * i))
else if (y <= 1.12d+225) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = j * ((a * c) - (y * i));
double t_3 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
double tmp;
if (y <= -2.9e+185) {
tmp = t_1;
} else if (y <= -1.55e+117) {
tmp = t_2 + (b * (t * i));
} else if (y <= -1.4e+92) {
tmp = t_1;
} else if (y <= 5.6e-64) {
tmp = t_3;
} else if (y <= 5.7e+175) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (y <= 1.12e+225) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = j * ((a * c) - (y * i)) t_3 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) tmp = 0 if y <= -2.9e+185: tmp = t_1 elif y <= -1.55e+117: tmp = t_2 + (b * (t * i)) elif y <= -1.4e+92: tmp = t_1 elif y <= 5.6e-64: tmp = t_3 elif y <= 5.7e+175: tmp = (x * ((y * z) - (t * a))) - (j * (y * i)) elif y <= 1.12e+225: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (y <= -2.9e+185) tmp = t_1; elseif (y <= -1.55e+117) tmp = Float64(t_2 + Float64(b * Float64(t * i))); elseif (y <= -1.4e+92) tmp = t_1; elseif (y <= 5.6e-64) tmp = t_3; elseif (y <= 5.7e+175) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))); elseif (y <= 1.12e+225) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = j * ((a * c) - (y * i)); t_3 = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); tmp = 0.0; if (y <= -2.9e+185) tmp = t_1; elseif (y <= -1.55e+117) tmp = t_2 + (b * (t * i)); elseif (y <= -1.4e+92) tmp = t_1; elseif (y <= 5.6e-64) tmp = t_3; elseif (y <= 5.7e+175) tmp = (x * ((y * z) - (t * a))) - (j * (y * i)); elseif (y <= 1.12e+225) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.9e+185], t$95$1, If[LessEqual[y, -1.55e+117], N[(t$95$2 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.4e+92], t$95$1, If[LessEqual[y, 5.6e-64], t$95$3, If[LessEqual[y, 5.7e+175], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e+225], t$95$3, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{+185}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.55 \cdot 10^{+117}:\\
\;\;\;\;t_2 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{+92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{-64}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 5.7 \cdot 10^{+175}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{+225}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.89999999999999988e185 or -1.54999999999999988e117 < y < -1.4e92Initial program 71.7%
associate-+l-71.7%
*-commutative71.7%
sub-neg71.7%
sub-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in y around inf 87.3%
*-commutative87.3%
mul-1-neg87.3%
unsub-neg87.3%
Simplified87.3%
if -2.89999999999999988e185 < y < -1.54999999999999988e117Initial program 70.8%
+-commutative70.8%
fma-def75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in x around 0 75.8%
Taylor expanded in c around 0 71.0%
neg-mul-171.0%
distribute-rgt-neg-in71.0%
Simplified71.0%
if -1.4e92 < y < 5.60000000000000008e-64 or 5.70000000000000024e175 < y < 1.12000000000000003e225Initial program 84.5%
associate-+l-84.5%
*-commutative84.5%
sub-neg84.5%
sub-neg84.5%
*-commutative84.5%
Simplified84.5%
Taylor expanded in y around 0 75.4%
sub-neg75.4%
mul-1-neg75.4%
associate-*r*75.4%
*-commutative75.4%
*-commutative75.4%
neg-mul-175.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
*-rgt-identity75.4%
cancel-sign-sub-inv75.4%
Simplified77.8%
if 5.60000000000000008e-64 < y < 5.70000000000000024e175Initial program 80.0%
+-commutative80.0%
fma-def80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in b around 0 78.5%
Taylor expanded in c around 0 71.7%
mul-1-neg71.7%
distribute-rgt-neg-out71.7%
Simplified71.7%
if 1.12000000000000003e225 < y Initial program 52.6%
associate-+l-52.6%
*-commutative52.6%
sub-neg52.6%
sub-neg52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in j around -inf 67.5%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* j (* y i)))))
(if (<= c -9.5e+136)
(* c (- (* a j) (* z b)))
(if (<= c -2.9e+75)
(* b (- (* t i) (* z c)))
(if (<= c -1.26e-132)
t_1
(if (<= c -1.85e-177)
(- (* i (* t b)) (* i (* y j)))
(if (<= c 4.9e-166)
t_1
(if (<= c 2e-130)
(* i (- (* t b) (* y j)))
(if (<= c 1.22e+115)
t_1
(- (* j (- (* a c) (* y i))) (* c (* z b))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (j * (y * i));
double tmp;
if (c <= -9.5e+136) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -2.9e+75) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.26e-132) {
tmp = t_1;
} else if (c <= -1.85e-177) {
tmp = (i * (t * b)) - (i * (y * j));
} else if (c <= 4.9e-166) {
tmp = t_1;
} else if (c <= 2e-130) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.22e+115) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (j * (y * i))
if (c <= (-9.5d+136)) then
tmp = c * ((a * j) - (z * b))
else if (c <= (-2.9d+75)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-1.26d-132)) then
tmp = t_1
else if (c <= (-1.85d-177)) then
tmp = (i * (t * b)) - (i * (y * j))
else if (c <= 4.9d-166) then
tmp = t_1
else if (c <= 2d-130) then
tmp = i * ((t * b) - (y * j))
else if (c <= 1.22d+115) then
tmp = t_1
else
tmp = (j * ((a * c) - (y * i))) - (c * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (j * (y * i));
double tmp;
if (c <= -9.5e+136) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -2.9e+75) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.26e-132) {
tmp = t_1;
} else if (c <= -1.85e-177) {
tmp = (i * (t * b)) - (i * (y * j));
} else if (c <= 4.9e-166) {
tmp = t_1;
} else if (c <= 2e-130) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 1.22e+115) {
tmp = t_1;
} else {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (j * (y * i)) tmp = 0 if c <= -9.5e+136: tmp = c * ((a * j) - (z * b)) elif c <= -2.9e+75: tmp = b * ((t * i) - (z * c)) elif c <= -1.26e-132: tmp = t_1 elif c <= -1.85e-177: tmp = (i * (t * b)) - (i * (y * j)) elif c <= 4.9e-166: tmp = t_1 elif c <= 2e-130: tmp = i * ((t * b) - (y * j)) elif c <= 1.22e+115: tmp = t_1 else: tmp = (j * ((a * c) - (y * i))) - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))) tmp = 0.0 if (c <= -9.5e+136) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (c <= -2.9e+75) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -1.26e-132) tmp = t_1; elseif (c <= -1.85e-177) tmp = Float64(Float64(i * Float64(t * b)) - Float64(i * Float64(y * j))); elseif (c <= 4.9e-166) tmp = t_1; elseif (c <= 2e-130) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 1.22e+115) tmp = t_1; else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (j * (y * i)); tmp = 0.0; if (c <= -9.5e+136) tmp = c * ((a * j) - (z * b)); elseif (c <= -2.9e+75) tmp = b * ((t * i) - (z * c)); elseif (c <= -1.26e-132) tmp = t_1; elseif (c <= -1.85e-177) tmp = (i * (t * b)) - (i * (y * j)); elseif (c <= 4.9e-166) tmp = t_1; elseif (c <= 2e-130) tmp = i * ((t * b) - (y * j)); elseif (c <= 1.22e+115) tmp = t_1; else tmp = (j * ((a * c) - (y * i))) - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.5e+136], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.9e+75], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.26e-132], t$95$1, If[LessEqual[c, -1.85e-177], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.9e-166], t$95$1, If[LessEqual[c, 2e-130], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.22e+115], t$95$1, N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{if}\;c \leq -9.5 \cdot 10^{+136}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;c \leq -2.9 \cdot 10^{+75}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -1.26 \cdot 10^{-132}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.85 \cdot 10^{-177}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 4.9 \cdot 10^{-166}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-130}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.22 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if c < -9.49999999999999907e136Initial program 70.4%
associate-+l-70.4%
*-commutative70.4%
sub-neg70.4%
sub-neg70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in c around inf 76.8%
if -9.49999999999999907e136 < c < -2.8999999999999998e75Initial program 61.4%
associate-+l-61.4%
*-commutative61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in b around inf 66.7%
if -2.8999999999999998e75 < c < -1.2600000000000001e-132 or -1.84999999999999997e-177 < c < 4.8999999999999999e-166 or 2.0000000000000002e-130 < c < 1.22e115Initial program 88.0%
+-commutative88.0%
fma-def88.8%
*-commutative88.8%
*-commutative88.8%
Simplified88.8%
Taylor expanded in b around 0 73.5%
Taylor expanded in c around 0 72.9%
mul-1-neg72.9%
distribute-rgt-neg-out72.9%
Simplified72.9%
if -1.2600000000000001e-132 < c < -1.84999999999999997e-177Initial program 54.2%
+-commutative54.2%
fma-def61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in x around 0 85.1%
Taylor expanded in c around 0 70.4%
distribute-lft-out--70.4%
Simplified70.4%
if 4.8999999999999999e-166 < c < 2.0000000000000002e-130Initial program 67.7%
associate-+l-67.7%
*-commutative67.7%
sub-neg67.7%
sub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around inf 83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
*-lft-identity83.4%
+-commutative83.4%
mul-1-neg83.4%
unsub-neg83.4%
Simplified83.4%
if 1.22e115 < c Initial program 71.8%
+-commutative71.8%
fma-def71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around 0 75.0%
Taylor expanded in c around inf 81.3%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -4.5e+196)
(+ t_2 (* b (* t i)))
(if (<= j -3.4e-30)
(+ t_2 (* z (- (* x y) (* b c))))
(if (<= j 9.2e-111)
(- t_1 (* x (- (* t a) (* y z))))
(if (<= j 310000.0)
(+ t_2 t_1)
(if (<= j 2.2e+217)
(- (* x (- (* y z) (* t a))) (* j (- (* y i) (* a c))))
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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.5e+196) {
tmp = t_2 + (b * (t * i));
} else if (j <= -3.4e-30) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.2e-111) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (j <= 310000.0) {
tmp = t_2 + t_1;
} else if (j <= 2.2e+217) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
} 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 = j * ((a * c) - (y * i))
if (j <= (-4.5d+196)) then
tmp = t_2 + (b * (t * i))
else if (j <= (-3.4d-30)) then
tmp = t_2 + (z * ((x * y) - (b * c)))
else if (j <= 9.2d-111) then
tmp = t_1 - (x * ((t * a) - (y * z)))
else if (j <= 310000.0d0) then
tmp = t_2 + t_1
else if (j <= 2.2d+217) then
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)))
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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -4.5e+196) {
tmp = t_2 + (b * (t * i));
} else if (j <= -3.4e-30) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.2e-111) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (j <= 310000.0) {
tmp = t_2 + t_1;
} else if (j <= 2.2e+217) {
tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c)));
} 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 = j * ((a * c) - (y * i)) tmp = 0 if j <= -4.5e+196: tmp = t_2 + (b * (t * i)) elif j <= -3.4e-30: tmp = t_2 + (z * ((x * y) - (b * c))) elif j <= 9.2e-111: tmp = t_1 - (x * ((t * a) - (y * z))) elif j <= 310000.0: tmp = t_2 + t_1 elif j <= 2.2e+217: tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))) 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.5e+196) tmp = Float64(t_2 + Float64(b * Float64(t * i))); elseif (j <= -3.4e-30) tmp = Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (j <= 9.2e-111) tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (j <= 310000.0) tmp = Float64(t_2 + t_1); elseif (j <= 2.2e+217) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -4.5e+196) tmp = t_2 + (b * (t * i)); elseif (j <= -3.4e-30) tmp = t_2 + (z * ((x * y) - (b * c))); elseif (j <= 9.2e-111) tmp = t_1 - (x * ((t * a) - (y * z))); elseif (j <= 310000.0) tmp = t_2 + t_1; elseif (j <= 2.2e+217) tmp = (x * ((y * z) - (t * a))) - (j * ((y * i) - (a * c))); 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.5e+196], N[(t$95$2 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.4e-30], N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.2e-111], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 310000.0], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[j, 2.2e+217], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.5 \cdot 10^{+196}:\\
\;\;\;\;t_2 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{-30}:\\
\;\;\;\;t_2 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 9.2 \cdot 10^{-111}:\\
\;\;\;\;t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;j \leq 310000:\\
\;\;\;\;t_2 + t_1\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+217}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -4.49999999999999978e196Initial program 80.8%
+-commutative80.8%
fma-def80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in x around 0 81.1%
Taylor expanded in c around 0 86.0%
neg-mul-186.0%
distribute-rgt-neg-in86.0%
Simplified86.0%
if -4.49999999999999978e196 < j < -3.4000000000000003e-30Initial program 73.4%
associate-+l-73.4%
*-commutative73.4%
sub-neg73.4%
sub-neg73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in t around 0 66.8%
+-commutative66.8%
*-commutative66.8%
*-commutative66.8%
associate--l+66.8%
sub-neg66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
*-commutative66.8%
associate-*r*68.9%
associate-*r*71.2%
distribute-lft-neg-in71.2%
mul-1-neg71.2%
distribute-rgt-in71.2%
Simplified71.2%
if -3.4000000000000003e-30 < j < 9.2e-111Initial program 81.9%
associate-+l-81.9%
*-commutative81.9%
sub-neg81.9%
sub-neg81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in j around 0 83.3%
if 9.2e-111 < j < 3.1e5Initial program 84.2%
+-commutative84.2%
fma-def84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in x around 0 84.7%
if 3.1e5 < j < 2.2e217Initial program 83.1%
+-commutative83.1%
fma-def85.2%
*-commutative85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in b around 0 77.0%
if 2.2e217 < j Initial program 50.0%
associate-+l-50.0%
*-commutative50.0%
sub-neg50.0%
sub-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in j around -inf 90.0%
Final simplification80.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -2.35e+184)
t_1
(if (<= y -2.15e+117)
(* j (- (* a c) (* y i)))
(if (or (<= y -2e+93)
(not
(or (<= y 1.9e-111) (and (not (<= y 650.0)) (<= y 1.25e+25)))))
t_1
(- (* b (- (* t i) (* z c))) (* a (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.35e+184) {
tmp = t_1;
} else if (y <= -2.15e+117) {
tmp = j * ((a * c) - (y * i));
} else if ((y <= -2e+93) || !((y <= 1.9e-111) || (!(y <= 650.0) && (y <= 1.25e+25)))) {
tmp = t_1;
} else {
tmp = (b * ((t * i) - (z * c))) - (a * (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 = y * ((x * z) - (i * j))
if (y <= (-2.35d+184)) then
tmp = t_1
else if (y <= (-2.15d+117)) then
tmp = j * ((a * c) - (y * i))
else if ((y <= (-2d+93)) .or. (.not. (y <= 1.9d-111) .or. (.not. (y <= 650.0d0)) .and. (y <= 1.25d+25))) then
tmp = t_1
else
tmp = (b * ((t * i) - (z * c))) - (a * (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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.35e+184) {
tmp = t_1;
} else if (y <= -2.15e+117) {
tmp = j * ((a * c) - (y * i));
} else if ((y <= -2e+93) || !((y <= 1.9e-111) || (!(y <= 650.0) && (y <= 1.25e+25)))) {
tmp = t_1;
} else {
tmp = (b * ((t * i) - (z * c))) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.35e+184: tmp = t_1 elif y <= -2.15e+117: tmp = j * ((a * c) - (y * i)) elif (y <= -2e+93) or not ((y <= 1.9e-111) or (not (y <= 650.0) and (y <= 1.25e+25))): tmp = t_1 else: tmp = (b * ((t * i) - (z * c))) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.35e+184) tmp = t_1; elseif (y <= -2.15e+117) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif ((y <= -2e+93) || !((y <= 1.9e-111) || (!(y <= 650.0) && (y <= 1.25e+25)))) tmp = t_1; else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.35e+184) tmp = t_1; elseif (y <= -2.15e+117) tmp = j * ((a * c) - (y * i)); elseif ((y <= -2e+93) || ~(((y <= 1.9e-111) || (~((y <= 650.0)) && (y <= 1.25e+25))))) tmp = t_1; else tmp = (b * ((t * i) - (z * c))) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.35e+184], t$95$1, If[LessEqual[y, -2.15e+117], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2e+93], N[Not[Or[LessEqual[y, 1.9e-111], And[N[Not[LessEqual[y, 650.0]], $MachinePrecision], LessEqual[y, 1.25e+25]]]], $MachinePrecision]], t$95$1, N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.35 \cdot 10^{+184}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{+117}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq -2 \cdot 10^{+93} \lor \neg \left(y \leq 1.9 \cdot 10^{-111} \lor \neg \left(y \leq 650\right) \land y \leq 1.25 \cdot 10^{+25}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if y < -2.3500000000000002e184 or -2.14999999999999999e117 < y < -2.00000000000000009e93 or 1.90000000000000011e-111 < y < 650 or 1.25000000000000006e25 < y Initial program 72.8%
associate-+l-72.8%
*-commutative72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around inf 72.2%
*-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -2.3500000000000002e184 < y < -2.14999999999999999e117Initial program 70.8%
associate-+l-70.8%
*-commutative70.8%
sub-neg70.8%
sub-neg70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in j around -inf 66.1%
if -2.00000000000000009e93 < y < 1.90000000000000011e-111 or 650 < y < 1.25000000000000006e25Initial program 84.2%
associate-+l-84.2%
*-commutative84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in j around 0 75.3%
Taylor expanded in y around 0 67.1%
sub-neg67.1%
cancel-sign-sub-inv67.1%
*-commutative67.1%
fma-udef67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
Simplified67.1%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.25e+185)
t_1
(if (<= y -1.1e+117)
(- (* j (- (* a c) (* y i))) (* c (* z b)))
(if (or (<= y -4.6e+91)
(and (not (<= y 4.1e-112))
(or (<= y 800.0) (not (<= y 1.2e+26)))))
t_1
(- (* b (- (* t i) (* z c))) (* a (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+185) {
tmp = t_1;
} else if (y <= -1.1e+117) {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
} else if ((y <= -4.6e+91) || (!(y <= 4.1e-112) && ((y <= 800.0) || !(y <= 1.2e+26)))) {
tmp = t_1;
} else {
tmp = (b * ((t * i) - (z * c))) - (a * (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 = y * ((x * z) - (i * j))
if (y <= (-1.25d+185)) then
tmp = t_1
else if (y <= (-1.1d+117)) then
tmp = (j * ((a * c) - (y * i))) - (c * (z * b))
else if ((y <= (-4.6d+91)) .or. (.not. (y <= 4.1d-112)) .and. (y <= 800.0d0) .or. (.not. (y <= 1.2d+26))) then
tmp = t_1
else
tmp = (b * ((t * i) - (z * c))) - (a * (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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+185) {
tmp = t_1;
} else if (y <= -1.1e+117) {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
} else if ((y <= -4.6e+91) || (!(y <= 4.1e-112) && ((y <= 800.0) || !(y <= 1.2e+26)))) {
tmp = t_1;
} else {
tmp = (b * ((t * i) - (z * c))) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.25e+185: tmp = t_1 elif y <= -1.1e+117: tmp = (j * ((a * c) - (y * i))) - (c * (z * b)) elif (y <= -4.6e+91) or (not (y <= 4.1e-112) and ((y <= 800.0) or not (y <= 1.2e+26))): tmp = t_1 else: tmp = (b * ((t * i) - (z * c))) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.25e+185) tmp = t_1; elseif (y <= -1.1e+117) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))); elseif ((y <= -4.6e+91) || (!(y <= 4.1e-112) && ((y <= 800.0) || !(y <= 1.2e+26)))) tmp = t_1; else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.25e+185) tmp = t_1; elseif (y <= -1.1e+117) tmp = (j * ((a * c) - (y * i))) - (c * (z * b)); elseif ((y <= -4.6e+91) || (~((y <= 4.1e-112)) && ((y <= 800.0) || ~((y <= 1.2e+26))))) tmp = t_1; else tmp = (b * ((t * i) - (z * c))) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+185], t$95$1, If[LessEqual[y, -1.1e+117], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -4.6e+91], And[N[Not[LessEqual[y, 4.1e-112]], $MachinePrecision], Or[LessEqual[y, 800.0], N[Not[LessEqual[y, 1.2e+26]], $MachinePrecision]]]], t$95$1, N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+185}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{+117}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;y \leq -4.6 \cdot 10^{+91} \lor \neg \left(y \leq 4.1 \cdot 10^{-112}\right) \land \left(y \leq 800 \lor \neg \left(y \leq 1.2 \cdot 10^{+26}\right)\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if y < -1.24999999999999997e185 or -1.10000000000000007e117 < y < -4.59999999999999982e91 or 4.09999999999999996e-112 < y < 800 or 1.20000000000000002e26 < y Initial program 72.8%
associate-+l-72.8%
*-commutative72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around inf 72.2%
*-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified72.2%
if -1.24999999999999997e185 < y < -1.10000000000000007e117Initial program 70.8%
+-commutative70.8%
fma-def75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in x around 0 75.8%
Taylor expanded in c around inf 70.8%
if -4.59999999999999982e91 < y < 4.09999999999999996e-112 or 800 < y < 1.20000000000000002e26Initial program 84.2%
associate-+l-84.2%
*-commutative84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in j around 0 75.3%
Taylor expanded in y around 0 67.1%
sub-neg67.1%
cancel-sign-sub-inv67.1%
*-commutative67.1%
fma-udef67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
Simplified67.1%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* j (* y i))))
(t_2 (* j (- (* a c) (* y i)))))
(if (<= c -6e+99)
(* c (- (* a j) (* z b)))
(if (<= c -3.8e-177)
(+ t_2 (* b (* t i)))
(if (<= c 5.8e-168)
t_1
(if (<= c 4.8e-130)
(* i (- (* t b) (* y j)))
(if (<= c 3.5e+114) t_1 (- t_2 (* c (* z b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (j * (y * i));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (c <= -6e+99) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -3.8e-177) {
tmp = t_2 + (b * (t * i));
} else if (c <= 5.8e-168) {
tmp = t_1;
} else if (c <= 4.8e-130) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.5e+114) {
tmp = t_1;
} else {
tmp = t_2 - (c * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (j * (y * i))
t_2 = j * ((a * c) - (y * i))
if (c <= (-6d+99)) then
tmp = c * ((a * j) - (z * b))
else if (c <= (-3.8d-177)) then
tmp = t_2 + (b * (t * i))
else if (c <= 5.8d-168) then
tmp = t_1
else if (c <= 4.8d-130) then
tmp = i * ((t * b) - (y * j))
else if (c <= 3.5d+114) then
tmp = t_1
else
tmp = t_2 - (c * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (j * (y * i));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (c <= -6e+99) {
tmp = c * ((a * j) - (z * b));
} else if (c <= -3.8e-177) {
tmp = t_2 + (b * (t * i));
} else if (c <= 5.8e-168) {
tmp = t_1;
} else if (c <= 4.8e-130) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.5e+114) {
tmp = t_1;
} else {
tmp = t_2 - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (j * (y * i)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if c <= -6e+99: tmp = c * ((a * j) - (z * b)) elif c <= -3.8e-177: tmp = t_2 + (b * (t * i)) elif c <= 5.8e-168: tmp = t_1 elif c <= 4.8e-130: tmp = i * ((t * b) - (y * j)) elif c <= 3.5e+114: tmp = t_1 else: tmp = t_2 - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (c <= -6e+99) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (c <= -3.8e-177) tmp = Float64(t_2 + Float64(b * Float64(t * i))); elseif (c <= 5.8e-168) tmp = t_1; elseif (c <= 4.8e-130) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 3.5e+114) tmp = t_1; else tmp = Float64(t_2 - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (j * (y * i)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (c <= -6e+99) tmp = c * ((a * j) - (z * b)); elseif (c <= -3.8e-177) tmp = t_2 + (b * (t * i)); elseif (c <= 5.8e-168) tmp = t_1; elseif (c <= 4.8e-130) tmp = i * ((t * b) - (y * j)); elseif (c <= 3.5e+114) tmp = t_1; else tmp = t_2 - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.8e-177], N[(t$95$2 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e-168], t$95$1, If[LessEqual[c, 4.8e-130], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.5e+114], t$95$1, N[(t$95$2 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;c \leq -3.8 \cdot 10^{-177}:\\
\;\;\;\;t_2 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-168}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{-130}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2 - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if c < -6.00000000000000029e99Initial program 69.9%
associate-+l-69.9%
*-commutative69.9%
sub-neg69.9%
sub-neg69.9%
*-commutative69.9%
Simplified69.9%
Taylor expanded in c around inf 72.0%
if -6.00000000000000029e99 < c < -3.80000000000000004e-177Initial program 76.3%
+-commutative76.3%
fma-def81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in x around 0 67.0%
Taylor expanded in c around 0 66.8%
neg-mul-166.8%
distribute-rgt-neg-in66.8%
Simplified66.8%
if -3.80000000000000004e-177 < c < 5.7999999999999997e-168 or 4.79999999999999993e-130 < c < 3.5000000000000001e114Initial program 87.6%
+-commutative87.6%
fma-def87.6%
*-commutative87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in b around 0 75.7%
Taylor expanded in c around 0 75.8%
mul-1-neg75.8%
distribute-rgt-neg-out75.8%
Simplified75.8%
if 5.7999999999999997e-168 < c < 4.79999999999999993e-130Initial program 67.7%
associate-+l-67.7%
*-commutative67.7%
sub-neg67.7%
sub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in i around inf 83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
*-lft-identity83.4%
+-commutative83.4%
mul-1-neg83.4%
unsub-neg83.4%
Simplified83.4%
if 3.5000000000000001e114 < c Initial program 71.8%
+-commutative71.8%
fma-def71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around 0 75.0%
Taylor expanded in c around inf 81.3%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -1.35e+138)
t_3
(if (<= c -6e+23)
(* b (- (* t i) (* z c)))
(if (<= c -1.76e-25)
t_1
(if (<= c 3.4e-275)
t_2
(if (<= c 2.1e-196)
(* t (- (* b i) (* x a)))
(if (<= c 5e-130) t_2 (if (<= c 6.5e+119) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e+138) {
tmp = t_3;
} else if (c <= -6e+23) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.76e-25) {
tmp = t_1;
} else if (c <= 3.4e-275) {
tmp = t_2;
} else if (c <= 2.1e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 5e-130) {
tmp = t_2;
} else if (c <= 6.5e+119) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-1.35d+138)) then
tmp = t_3
else if (c <= (-6d+23)) then
tmp = b * ((t * i) - (z * c))
else if (c <= (-1.76d-25)) then
tmp = t_1
else if (c <= 3.4d-275) then
tmp = t_2
else if (c <= 2.1d-196) then
tmp = t * ((b * i) - (x * a))
else if (c <= 5d-130) then
tmp = t_2
else if (c <= 6.5d+119) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e+138) {
tmp = t_3;
} else if (c <= -6e+23) {
tmp = b * ((t * i) - (z * c));
} else if (c <= -1.76e-25) {
tmp = t_1;
} else if (c <= 3.4e-275) {
tmp = t_2;
} else if (c <= 2.1e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 5e-130) {
tmp = t_2;
} else if (c <= 6.5e+119) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.35e+138: tmp = t_3 elif c <= -6e+23: tmp = b * ((t * i) - (z * c)) elif c <= -1.76e-25: tmp = t_1 elif c <= 3.4e-275: tmp = t_2 elif c <= 2.1e-196: tmp = t * ((b * i) - (x * a)) elif c <= 5e-130: tmp = t_2 elif c <= 6.5e+119: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.35e+138) tmp = t_3; elseif (c <= -6e+23) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (c <= -1.76e-25) tmp = t_1; elseif (c <= 3.4e-275) tmp = t_2; elseif (c <= 2.1e-196) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 5e-130) tmp = t_2; elseif (c <= 6.5e+119) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.35e+138) tmp = t_3; elseif (c <= -6e+23) tmp = b * ((t * i) - (z * c)); elseif (c <= -1.76e-25) tmp = t_1; elseif (c <= 3.4e-275) tmp = t_2; elseif (c <= 2.1e-196) tmp = t * ((b * i) - (x * a)); elseif (c <= 5e-130) tmp = t_2; elseif (c <= 6.5e+119) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e+138], t$95$3, If[LessEqual[c, -6e+23], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.76e-25], t$95$1, If[LessEqual[c, 3.4e-275], t$95$2, If[LessEqual[c, 2.1e-196], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e-130], t$95$2, If[LessEqual[c, 6.5e+119], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{+138}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -6 \cdot 10^{+23}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -1.76 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{-275}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -1.35000000000000004e138 or 6.4999999999999997e119 < c Initial program 70.6%
associate-+l-70.6%
*-commutative70.6%
sub-neg70.6%
sub-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in c around inf 75.8%
if -1.35000000000000004e138 < c < -6.0000000000000002e23Initial program 66.9%
associate-+l-66.9%
*-commutative66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in b around inf 62.2%
if -6.0000000000000002e23 < c < -1.7600000000000001e-25 or 4.9999999999999996e-130 < c < 6.4999999999999997e119Initial program 82.5%
associate-+l-82.5%
*-commutative82.5%
sub-neg82.5%
sub-neg82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in y around inf 58.7%
*-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
if -1.7600000000000001e-25 < c < 3.39999999999999968e-275 or 2.09999999999999988e-196 < c < 4.9999999999999996e-130Initial program 81.5%
associate-+l-81.5%
*-commutative81.5%
sub-neg81.5%
sub-neg81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in i around inf 63.6%
cancel-sign-sub-inv63.6%
metadata-eval63.6%
*-lft-identity63.6%
+-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
Simplified63.6%
if 3.39999999999999968e-275 < c < 2.09999999999999988e-196Initial program 99.9%
associate-+l-99.9%
*-commutative99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around inf 72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
metadata-eval72.4%
*-lft-identity72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
Simplified72.4%
Final simplification66.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -6e+99)
t_3
(if (<= c -2.35e+16)
t_2
(if (<= c -2.6e-19)
t_1
(if (<= c 3.3e-289)
t_2
(if (<= c 5.1e-158)
t_1
(if (<= c 1.85e-129) t_2 (if (<= c 4.5e+113) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_3;
} else if (c <= -2.35e+16) {
tmp = t_2;
} else if (c <= -2.6e-19) {
tmp = t_1;
} else if (c <= 3.3e-289) {
tmp = t_2;
} else if (c <= 5.1e-158) {
tmp = t_1;
} else if (c <= 1.85e-129) {
tmp = t_2;
} else if (c <= 4.5e+113) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-6d+99)) then
tmp = t_3
else if (c <= (-2.35d+16)) then
tmp = t_2
else if (c <= (-2.6d-19)) then
tmp = t_1
else if (c <= 3.3d-289) then
tmp = t_2
else if (c <= 5.1d-158) then
tmp = t_1
else if (c <= 1.85d-129) then
tmp = t_2
else if (c <= 4.5d+113) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_3;
} else if (c <= -2.35e+16) {
tmp = t_2;
} else if (c <= -2.6e-19) {
tmp = t_1;
} else if (c <= 3.3e-289) {
tmp = t_2;
} else if (c <= 5.1e-158) {
tmp = t_1;
} else if (c <= 1.85e-129) {
tmp = t_2;
} else if (c <= 4.5e+113) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -6e+99: tmp = t_3 elif c <= -2.35e+16: tmp = t_2 elif c <= -2.6e-19: tmp = t_1 elif c <= 3.3e-289: tmp = t_2 elif c <= 5.1e-158: tmp = t_1 elif c <= 1.85e-129: tmp = t_2 elif c <= 4.5e+113: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -6e+99) tmp = t_3; elseif (c <= -2.35e+16) tmp = t_2; elseif (c <= -2.6e-19) tmp = t_1; elseif (c <= 3.3e-289) tmp = t_2; elseif (c <= 5.1e-158) tmp = t_1; elseif (c <= 1.85e-129) tmp = t_2; elseif (c <= 4.5e+113) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -6e+99) tmp = t_3; elseif (c <= -2.35e+16) tmp = t_2; elseif (c <= -2.6e-19) tmp = t_1; elseif (c <= 3.3e-289) tmp = t_2; elseif (c <= 5.1e-158) tmp = t_1; elseif (c <= 1.85e-129) tmp = t_2; elseif (c <= 4.5e+113) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], t$95$3, If[LessEqual[c, -2.35e+16], t$95$2, If[LessEqual[c, -2.6e-19], t$95$1, If[LessEqual[c, 3.3e-289], t$95$2, If[LessEqual[c, 5.1e-158], t$95$1, If[LessEqual[c, 1.85e-129], t$95$2, If[LessEqual[c, 4.5e+113], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -2.35 \cdot 10^{+16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{-289}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{-158}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.85 \cdot 10^{-129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -6.00000000000000029e99 or 4.5000000000000001e113 < c Initial program 70.6%
associate-+l-70.6%
*-commutative70.6%
sub-neg70.6%
sub-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in c around inf 72.1%
if -6.00000000000000029e99 < c < -2.35e16 or -2.60000000000000013e-19 < c < 3.29999999999999997e-289 or 5.1000000000000003e-158 < c < 1.8500000000000001e-129Initial program 81.0%
associate-+l-81.0%
*-commutative81.0%
sub-neg81.0%
sub-neg81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in i around inf 66.9%
cancel-sign-sub-inv66.9%
metadata-eval66.9%
*-lft-identity66.9%
+-commutative66.9%
mul-1-neg66.9%
unsub-neg66.9%
Simplified66.9%
if -2.35e16 < c < -2.60000000000000013e-19 or 3.29999999999999997e-289 < c < 5.1000000000000003e-158 or 1.8500000000000001e-129 < c < 4.5000000000000001e113Initial program 83.7%
associate-+l-83.7%
*-commutative83.7%
sub-neg83.7%
sub-neg83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in j around 0 74.0%
Taylor expanded in x around inf 65.0%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -6e+99)
t_3
(if (<= c -4.3e+16)
t_2
(if (<= c -7.5e-20)
t_1
(if (<= c 1.3e-288)
(- (* i (* t b)) (* i (* y j)))
(if (<= c 1.14e-156)
t_1
(if (<= c 1.1e-129) t_2 (if (<= c 1e+114) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_3;
} else if (c <= -4.3e+16) {
tmp = t_2;
} else if (c <= -7.5e-20) {
tmp = t_1;
} else if (c <= 1.3e-288) {
tmp = (i * (t * b)) - (i * (y * j));
} else if (c <= 1.14e-156) {
tmp = t_1;
} else if (c <= 1.1e-129) {
tmp = t_2;
} else if (c <= 1e+114) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-6d+99)) then
tmp = t_3
else if (c <= (-4.3d+16)) then
tmp = t_2
else if (c <= (-7.5d-20)) then
tmp = t_1
else if (c <= 1.3d-288) then
tmp = (i * (t * b)) - (i * (y * j))
else if (c <= 1.14d-156) then
tmp = t_1
else if (c <= 1.1d-129) then
tmp = t_2
else if (c <= 1d+114) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_3;
} else if (c <= -4.3e+16) {
tmp = t_2;
} else if (c <= -7.5e-20) {
tmp = t_1;
} else if (c <= 1.3e-288) {
tmp = (i * (t * b)) - (i * (y * j));
} else if (c <= 1.14e-156) {
tmp = t_1;
} else if (c <= 1.1e-129) {
tmp = t_2;
} else if (c <= 1e+114) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -6e+99: tmp = t_3 elif c <= -4.3e+16: tmp = t_2 elif c <= -7.5e-20: tmp = t_1 elif c <= 1.3e-288: tmp = (i * (t * b)) - (i * (y * j)) elif c <= 1.14e-156: tmp = t_1 elif c <= 1.1e-129: tmp = t_2 elif c <= 1e+114: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -6e+99) tmp = t_3; elseif (c <= -4.3e+16) tmp = t_2; elseif (c <= -7.5e-20) tmp = t_1; elseif (c <= 1.3e-288) tmp = Float64(Float64(i * Float64(t * b)) - Float64(i * Float64(y * j))); elseif (c <= 1.14e-156) tmp = t_1; elseif (c <= 1.1e-129) tmp = t_2; elseif (c <= 1e+114) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -6e+99) tmp = t_3; elseif (c <= -4.3e+16) tmp = t_2; elseif (c <= -7.5e-20) tmp = t_1; elseif (c <= 1.3e-288) tmp = (i * (t * b)) - (i * (y * j)); elseif (c <= 1.14e-156) tmp = t_1; elseif (c <= 1.1e-129) tmp = t_2; elseif (c <= 1e+114) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], t$95$3, If[LessEqual[c, -4.3e+16], t$95$2, If[LessEqual[c, -7.5e-20], t$95$1, If[LessEqual[c, 1.3e-288], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.14e-156], t$95$1, If[LessEqual[c, 1.1e-129], t$95$2, If[LessEqual[c, 1e+114], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -4.3 \cdot 10^{+16}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-288}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.14 \cdot 10^{-156}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-129}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -6.00000000000000029e99 or 1e114 < c Initial program 70.6%
associate-+l-70.6%
*-commutative70.6%
sub-neg70.6%
sub-neg70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in c around inf 72.1%
if -6.00000000000000029e99 < c < -4.3e16 or 1.14e-156 < c < 1.10000000000000001e-129Initial program 70.1%
associate-+l-70.1%
*-commutative70.1%
sub-neg70.1%
sub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in i around inf 79.2%
cancel-sign-sub-inv79.2%
metadata-eval79.2%
*-lft-identity79.2%
+-commutative79.2%
mul-1-neg79.2%
unsub-neg79.2%
Simplified79.2%
if -4.3e16 < c < -7.49999999999999981e-20 or 1.29999999999999995e-288 < c < 1.14e-156 or 1.10000000000000001e-129 < c < 1e114Initial program 83.7%
associate-+l-83.7%
*-commutative83.7%
sub-neg83.7%
sub-neg83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in j around 0 74.0%
Taylor expanded in x around inf 65.0%
if -7.49999999999999981e-20 < c < 1.29999999999999995e-288Initial program 84.7%
+-commutative84.7%
fma-def86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in x around 0 69.6%
Taylor expanded in c around 0 62.7%
distribute-lft-out--62.7%
Simplified62.7%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.2e+64)
(* t (- (* b i) (* x a)))
(if (<= t 2.1e+65)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.2e+64) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 2.1e+65) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-2.2d+64)) then
tmp = t * ((b * i) - (x * a))
else if (t <= 2.1d+65) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.2e+64) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 2.1e+65) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.2e+64: tmp = t * ((b * i) - (x * a)) elif t <= 2.1e+65: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.2e+64) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= 2.1e+65) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.2e+64) tmp = t * ((b * i) - (x * a)); elseif (t <= 2.1e+65) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.2e+64], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+65], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+65}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -2.20000000000000002e64Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
sub-neg79.1%
sub-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in t around inf 79.7%
*-commutative79.7%
cancel-sign-sub-inv79.7%
metadata-eval79.7%
*-lft-identity79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
Simplified79.7%
if -2.20000000000000002e64 < t < 2.09999999999999991e65Initial program 78.4%
associate-+l-78.4%
*-commutative78.4%
sub-neg78.4%
sub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in t around 0 72.8%
+-commutative72.8%
*-commutative72.8%
*-commutative72.8%
associate--l+72.8%
sub-neg72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
*-commutative72.8%
associate-*r*71.5%
associate-*r*72.9%
distribute-lft-neg-in72.9%
mul-1-neg72.9%
distribute-rgt-in73.5%
Simplified73.5%
if 2.09999999999999991e65 < t Initial program 77.0%
associate-+l-77.0%
*-commutative77.0%
sub-neg77.0%
sub-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in y around 0 66.9%
sub-neg66.9%
mul-1-neg66.9%
associate-*r*66.9%
*-commutative66.9%
*-commutative66.9%
neg-mul-166.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
*-rgt-identity66.9%
cancel-sign-sub-inv66.9%
Simplified67.1%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= x -1.62e-18)
(+ (- (* x (- (* y z) (* t a))) (* y (* i j))) (* i (* t b)))
(if (<= x 3.6e+28)
(+ (* j (- (* a c) (* y i))) t_1)
(- t_1 (* x (- (* t a) (* y z))))))))
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 (x <= -1.62e-18) {
tmp = ((x * ((y * z) - (t * a))) - (y * (i * j))) + (i * (t * b));
} else if (x <= 3.6e+28) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else {
tmp = t_1 - (x * ((t * a) - (y * 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 = b * ((t * i) - (z * c))
if (x <= (-1.62d-18)) then
tmp = ((x * ((y * z) - (t * a))) - (y * (i * j))) + (i * (t * b))
else if (x <= 3.6d+28) then
tmp = (j * ((a * c) - (y * i))) + t_1
else
tmp = t_1 - (x * ((t * a) - (y * 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 = b * ((t * i) - (z * c));
double tmp;
if (x <= -1.62e-18) {
tmp = ((x * ((y * z) - (t * a))) - (y * (i * j))) + (i * (t * b));
} else if (x <= 3.6e+28) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} else {
tmp = t_1 - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if x <= -1.62e-18: tmp = ((x * ((y * z) - (t * a))) - (y * (i * j))) + (i * (t * b)) elif x <= 3.6e+28: tmp = (j * ((a * c) - (y * i))) + t_1 else: tmp = t_1 - (x * ((t * a) - (y * z))) 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 (x <= -1.62e-18) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(y * Float64(i * j))) + Float64(i * Float64(t * b))); elseif (x <= 3.6e+28) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); else tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); 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 (x <= -1.62e-18) tmp = ((x * ((y * z) - (t * a))) - (y * (i * j))) + (i * (t * b)); elseif (x <= 3.6e+28) tmp = (j * ((a * c) - (y * i))) + t_1; else tmp = t_1 - (x * ((t * a) - (y * z))); 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[x, -1.62e-18], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e+28], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -1.62 \cdot 10^{-18}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+28}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t_1\\
\mathbf{else}:\\
\;\;\;\;t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if x < -1.62000000000000005e-18Initial program 76.0%
associate-+l-76.0%
*-commutative76.0%
sub-neg76.0%
sub-neg76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in c around 0 75.9%
if -1.62000000000000005e-18 < x < 3.5999999999999999e28Initial program 78.3%
+-commutative78.3%
fma-def78.3%
*-commutative78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in x around 0 77.9%
if 3.5999999999999999e28 < x Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in j around 0 74.8%
Final simplification76.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))) (t_2 (* i (- (* y j)))))
(if (<= i -2.25e+89)
t_2
(if (<= i -1.9e-215)
t_1
(if (<= i 7.8e-300)
(* a (- (* c j) (* x t)))
(if (<= i 9e-16)
t_1
(if (<= i 2.4e+28)
t_2
(if (<= i 1.24e+113)
t_1
(if (<= i 1.16e+247) (* y (* j (- i))) (* 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 = c * ((a * j) - (z * b));
double t_2 = i * -(y * j);
double tmp;
if (i <= -2.25e+89) {
tmp = t_2;
} else if (i <= -1.9e-215) {
tmp = t_1;
} else if (i <= 7.8e-300) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 9e-16) {
tmp = t_1;
} else if (i <= 2.4e+28) {
tmp = t_2;
} else if (i <= 1.24e+113) {
tmp = t_1;
} else if (i <= 1.16e+247) {
tmp = y * (j * -i);
} 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 = c * ((a * j) - (z * b))
t_2 = i * -(y * j)
if (i <= (-2.25d+89)) then
tmp = t_2
else if (i <= (-1.9d-215)) then
tmp = t_1
else if (i <= 7.8d-300) then
tmp = a * ((c * j) - (x * t))
else if (i <= 9d-16) then
tmp = t_1
else if (i <= 2.4d+28) then
tmp = t_2
else if (i <= 1.24d+113) then
tmp = t_1
else if (i <= 1.16d+247) then
tmp = y * (j * -i)
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 = c * ((a * j) - (z * b));
double t_2 = i * -(y * j);
double tmp;
if (i <= -2.25e+89) {
tmp = t_2;
} else if (i <= -1.9e-215) {
tmp = t_1;
} else if (i <= 7.8e-300) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 9e-16) {
tmp = t_1;
} else if (i <= 2.4e+28) {
tmp = t_2;
} else if (i <= 1.24e+113) {
tmp = t_1;
} else if (i <= 1.16e+247) {
tmp = y * (j * -i);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = i * -(y * j) tmp = 0 if i <= -2.25e+89: tmp = t_2 elif i <= -1.9e-215: tmp = t_1 elif i <= 7.8e-300: tmp = a * ((c * j) - (x * t)) elif i <= 9e-16: tmp = t_1 elif i <= 2.4e+28: tmp = t_2 elif i <= 1.24e+113: tmp = t_1 elif i <= 1.16e+247: tmp = y * (j * -i) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(i * Float64(-Float64(y * j))) tmp = 0.0 if (i <= -2.25e+89) tmp = t_2; elseif (i <= -1.9e-215) tmp = t_1; elseif (i <= 7.8e-300) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 9e-16) tmp = t_1; elseif (i <= 2.4e+28) tmp = t_2; elseif (i <= 1.24e+113) tmp = t_1; elseif (i <= 1.16e+247) tmp = Float64(y * Float64(j * Float64(-i))); 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 = c * ((a * j) - (z * b)); t_2 = i * -(y * j); tmp = 0.0; if (i <= -2.25e+89) tmp = t_2; elseif (i <= -1.9e-215) tmp = t_1; elseif (i <= 7.8e-300) tmp = a * ((c * j) - (x * t)); elseif (i <= 9e-16) tmp = t_1; elseif (i <= 2.4e+28) tmp = t_2; elseif (i <= 1.24e+113) tmp = t_1; elseif (i <= 1.16e+247) tmp = y * (j * -i); 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[i, -2.25e+89], t$95$2, If[LessEqual[i, -1.9e-215], t$95$1, If[LessEqual[i, 7.8e-300], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-16], t$95$1, If[LessEqual[i, 2.4e+28], t$95$2, If[LessEqual[i, 1.24e+113], t$95$1, If[LessEqual[i, 1.16e+247], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(-y \cdot j\right)\\
\mathbf{if}\;i \leq -2.25 \cdot 10^{+89}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.9 \cdot 10^{-215}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{-300}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+28}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.24 \cdot 10^{+113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.16 \cdot 10^{+247}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -2.25e89 or 9.0000000000000003e-16 < i < 2.39999999999999981e28Initial program 62.9%
associate-+l-62.9%
*-commutative62.9%
sub-neg62.9%
sub-neg62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in i around inf 72.1%
cancel-sign-sub-inv72.1%
metadata-eval72.1%
*-lft-identity72.1%
+-commutative72.1%
mul-1-neg72.1%
unsub-neg72.1%
Simplified72.1%
Taylor expanded in t around 0 46.4%
neg-mul-146.4%
distribute-rgt-neg-in46.4%
Simplified46.4%
if -2.25e89 < i < -1.89999999999999989e-215 or 7.8000000000000002e-300 < i < 9.0000000000000003e-16 or 2.39999999999999981e28 < i < 1.23999999999999993e113Initial program 88.2%
associate-+l-88.2%
*-commutative88.2%
sub-neg88.2%
sub-neg88.2%
*-commutative88.2%
Simplified88.2%
Taylor expanded in c around inf 50.3%
if -1.89999999999999989e-215 < i < 7.8000000000000002e-300Initial program 94.1%
associate-+l-94.1%
*-commutative94.1%
sub-neg94.1%
sub-neg94.1%
*-commutative94.1%
Simplified94.1%
Taylor expanded in a around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
Simplified64.1%
if 1.23999999999999993e113 < i < 1.16000000000000006e247Initial program 61.4%
associate-+l-61.4%
*-commutative61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in i around inf 70.8%
cancel-sign-sub-inv70.8%
metadata-eval70.8%
*-lft-identity70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
Taylor expanded in t around 0 58.9%
associate-*r*58.9%
neg-mul-158.9%
Simplified58.9%
if 1.16000000000000006e247 < i Initial program 64.4%
associate-+l-64.4%
*-commutative64.4%
sub-neg64.4%
sub-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in i around inf 65.7%
Final simplification52.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -6e+99)
t_2
(if (<= c 6e-284)
t_1
(if (<= c 2e-195)
(* t (- (* b i) (* x a)))
(if (<= c 1.9e-129)
t_1
(if (<= c 2.7e+51) (* x (* y z)) (if (<= c 3.1e+119) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 6e-284) {
tmp = t_1;
} else if (c <= 2e-195) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.9e-129) {
tmp = t_1;
} else if (c <= 2.7e+51) {
tmp = x * (y * z);
} else if (c <= 3.1e+119) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-6d+99)) then
tmp = t_2
else if (c <= 6d-284) then
tmp = t_1
else if (c <= 2d-195) then
tmp = t * ((b * i) - (x * a))
else if (c <= 1.9d-129) then
tmp = t_1
else if (c <= 2.7d+51) then
tmp = x * (y * z)
else if (c <= 3.1d+119) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 6e-284) {
tmp = t_1;
} else if (c <= 2e-195) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 1.9e-129) {
tmp = t_1;
} else if (c <= 2.7e+51) {
tmp = x * (y * z);
} else if (c <= 3.1e+119) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -6e+99: tmp = t_2 elif c <= 6e-284: tmp = t_1 elif c <= 2e-195: tmp = t * ((b * i) - (x * a)) elif c <= 1.9e-129: tmp = t_1 elif c <= 2.7e+51: tmp = x * (y * z) elif c <= 3.1e+119: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -6e+99) tmp = t_2; elseif (c <= 6e-284) tmp = t_1; elseif (c <= 2e-195) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 1.9e-129) tmp = t_1; elseif (c <= 2.7e+51) tmp = Float64(x * Float64(y * z)); elseif (c <= 3.1e+119) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -6e+99) tmp = t_2; elseif (c <= 6e-284) tmp = t_1; elseif (c <= 2e-195) tmp = t * ((b * i) - (x * a)); elseif (c <= 1.9e-129) tmp = t_1; elseif (c <= 2.7e+51) tmp = x * (y * z); elseif (c <= 3.1e+119) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], t$95$2, If[LessEqual[c, 6e-284], t$95$1, If[LessEqual[c, 2e-195], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e-129], t$95$1, If[LessEqual[c, 2.7e+51], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e+119], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-284}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-195}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{+51}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -6.00000000000000029e99 or 3.09999999999999995e119 < c Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in c around inf 72.8%
if -6.00000000000000029e99 < c < 5.9999999999999999e-284 or 2.0000000000000002e-195 < c < 1.89999999999999992e-129 or 2.69999999999999992e51 < c < 3.09999999999999995e119Initial program 79.5%
associate-+l-79.5%
*-commutative79.5%
sub-neg79.5%
sub-neg79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around inf 58.5%
cancel-sign-sub-inv58.5%
metadata-eval58.5%
*-lft-identity58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
if 5.9999999999999999e-284 < c < 2.0000000000000002e-195Initial program 99.9%
associate-+l-99.9%
*-commutative99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around inf 72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
metadata-eval72.4%
*-lft-identity72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
Simplified72.4%
if 1.89999999999999992e-129 < c < 2.69999999999999992e51Initial program 85.4%
associate-+l-85.4%
*-commutative85.4%
sub-neg85.4%
sub-neg85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in j around 0 71.3%
Taylor expanded in x around inf 66.1%
Taylor expanded in y around inf 45.8%
*-commutative45.8%
Simplified45.8%
Final simplification62.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.4e-69)
(* i (- (* y j)))
(if (<= j 7.5e-301)
(* t (* b i))
(if (<= j 3.85e-87)
(* z (* b (- c)))
(if (<= j 1.85e-24)
(* i (* t b))
(if (<= j 3e+44)
(* a (* c j))
(if (or (<= j 3.75e+92) (not (<= j 6.4e+117)))
(* y (* j (- i)))
(* t (* a (- x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.4e-69) {
tmp = i * -(y * j);
} else if (j <= 7.5e-301) {
tmp = t * (b * i);
} else if (j <= 3.85e-87) {
tmp = z * (b * -c);
} else if (j <= 1.85e-24) {
tmp = i * (t * b);
} else if (j <= 3e+44) {
tmp = a * (c * j);
} else if ((j <= 3.75e+92) || !(j <= 6.4e+117)) {
tmp = y * (j * -i);
} else {
tmp = t * (a * -x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-4.4d-69)) then
tmp = i * -(y * j)
else if (j <= 7.5d-301) then
tmp = t * (b * i)
else if (j <= 3.85d-87) then
tmp = z * (b * -c)
else if (j <= 1.85d-24) then
tmp = i * (t * b)
else if (j <= 3d+44) then
tmp = a * (c * j)
else if ((j <= 3.75d+92) .or. (.not. (j <= 6.4d+117))) then
tmp = y * (j * -i)
else
tmp = t * (a * -x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.4e-69) {
tmp = i * -(y * j);
} else if (j <= 7.5e-301) {
tmp = t * (b * i);
} else if (j <= 3.85e-87) {
tmp = z * (b * -c);
} else if (j <= 1.85e-24) {
tmp = i * (t * b);
} else if (j <= 3e+44) {
tmp = a * (c * j);
} else if ((j <= 3.75e+92) || !(j <= 6.4e+117)) {
tmp = y * (j * -i);
} else {
tmp = t * (a * -x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.4e-69: tmp = i * -(y * j) elif j <= 7.5e-301: tmp = t * (b * i) elif j <= 3.85e-87: tmp = z * (b * -c) elif j <= 1.85e-24: tmp = i * (t * b) elif j <= 3e+44: tmp = a * (c * j) elif (j <= 3.75e+92) or not (j <= 6.4e+117): tmp = y * (j * -i) else: tmp = t * (a * -x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.4e-69) tmp = Float64(i * Float64(-Float64(y * j))); elseif (j <= 7.5e-301) tmp = Float64(t * Float64(b * i)); elseif (j <= 3.85e-87) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 1.85e-24) tmp = Float64(i * Float64(t * b)); elseif (j <= 3e+44) tmp = Float64(a * Float64(c * j)); elseif ((j <= 3.75e+92) || !(j <= 6.4e+117)) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = Float64(t * Float64(a * Float64(-x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -4.4e-69) tmp = i * -(y * j); elseif (j <= 7.5e-301) tmp = t * (b * i); elseif (j <= 3.85e-87) tmp = z * (b * -c); elseif (j <= 1.85e-24) tmp = i * (t * b); elseif (j <= 3e+44) tmp = a * (c * j); elseif ((j <= 3.75e+92) || ~((j <= 6.4e+117))) tmp = y * (j * -i); else tmp = t * (a * -x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.4e-69], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 7.5e-301], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.85e-87], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.85e-24], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e+44], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 3.75e+92], N[Not[LessEqual[j, 6.4e+117]], $MachinePrecision]], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.4 \cdot 10^{-69}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{-301}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 3.85 \cdot 10^{-87}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{-24}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{+44}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 3.75 \cdot 10^{+92} \lor \neg \left(j \leq 6.4 \cdot 10^{+117}\right):\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\end{array}
\end{array}
if j < -4.4e-69Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in i around inf 50.9%
cancel-sign-sub-inv50.9%
metadata-eval50.9%
*-lft-identity50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
Simplified50.9%
Taylor expanded in t around 0 37.3%
neg-mul-137.3%
distribute-rgt-neg-in37.3%
Simplified37.3%
if -4.4e-69 < j < 7.5000000000000006e-301Initial program 81.6%
associate-+l-81.6%
*-commutative81.6%
sub-neg81.6%
sub-neg81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in t around inf 54.3%
*-commutative54.3%
cancel-sign-sub-inv54.3%
metadata-eval54.3%
*-lft-identity54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
Taylor expanded in i around inf 41.0%
if 7.5000000000000006e-301 < j < 3.8499999999999999e-87Initial program 78.0%
associate-+l-78.0%
*-commutative78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in j around 0 79.9%
Taylor expanded in c around inf 40.1%
mul-1-neg40.1%
*-commutative40.1%
associate-*r*38.2%
distribute-rgt-neg-in38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in z around 0 40.1%
mul-1-neg40.1%
associate-*r*36.4%
*-commutative36.4%
distribute-lft-neg-in36.4%
Simplified36.4%
if 3.8499999999999999e-87 < j < 1.8499999999999999e-24Initial program 91.5%
+-commutative91.5%
fma-def91.5%
*-commutative91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in x around 0 76.0%
Taylor expanded in t around inf 59.1%
if 1.8499999999999999e-24 < j < 2.99999999999999987e44Initial program 99.0%
associate-+l-99.0%
*-commutative99.0%
sub-neg99.0%
sub-neg99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in a around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
Taylor expanded in c around inf 51.7%
if 2.99999999999999987e44 < j < 3.74999999999999973e92 or 6.4000000000000001e117 < j Initial program 69.5%
associate-+l-69.5%
*-commutative69.5%
sub-neg69.5%
sub-neg69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in i around inf 55.6%
cancel-sign-sub-inv55.6%
metadata-eval55.6%
*-lft-identity55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in t around 0 61.2%
associate-*r*61.2%
neg-mul-161.2%
Simplified61.2%
if 3.74999999999999973e92 < j < 6.4000000000000001e117Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around inf 70.4%
*-commutative70.4%
cancel-sign-sub-inv70.4%
metadata-eval70.4%
*-lft-identity70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Taylor expanded in i around 0 60.6%
neg-mul-160.6%
distribute-rgt-neg-in60.6%
Simplified60.6%
Final simplification45.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -8.5e-70)
(* i (- (* y j)))
(if (<= j 6e-303)
(* t (* b i))
(if (<= j 2.8e-81)
(* c (* z (- b)))
(if (<= j 5.8e-25)
(* i (* t b))
(if (<= j 4e+38)
(* a (* c j))
(if (or (<= j 5.5e+93) (not (<= j 4.3e+117)))
(* y (* j (- i)))
(* t (* a (- x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.5e-70) {
tmp = i * -(y * j);
} else if (j <= 6e-303) {
tmp = t * (b * i);
} else if (j <= 2.8e-81) {
tmp = c * (z * -b);
} else if (j <= 5.8e-25) {
tmp = i * (t * b);
} else if (j <= 4e+38) {
tmp = a * (c * j);
} else if ((j <= 5.5e+93) || !(j <= 4.3e+117)) {
tmp = y * (j * -i);
} else {
tmp = t * (a * -x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-8.5d-70)) then
tmp = i * -(y * j)
else if (j <= 6d-303) then
tmp = t * (b * i)
else if (j <= 2.8d-81) then
tmp = c * (z * -b)
else if (j <= 5.8d-25) then
tmp = i * (t * b)
else if (j <= 4d+38) then
tmp = a * (c * j)
else if ((j <= 5.5d+93) .or. (.not. (j <= 4.3d+117))) then
tmp = y * (j * -i)
else
tmp = t * (a * -x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.5e-70) {
tmp = i * -(y * j);
} else if (j <= 6e-303) {
tmp = t * (b * i);
} else if (j <= 2.8e-81) {
tmp = c * (z * -b);
} else if (j <= 5.8e-25) {
tmp = i * (t * b);
} else if (j <= 4e+38) {
tmp = a * (c * j);
} else if ((j <= 5.5e+93) || !(j <= 4.3e+117)) {
tmp = y * (j * -i);
} else {
tmp = t * (a * -x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -8.5e-70: tmp = i * -(y * j) elif j <= 6e-303: tmp = t * (b * i) elif j <= 2.8e-81: tmp = c * (z * -b) elif j <= 5.8e-25: tmp = i * (t * b) elif j <= 4e+38: tmp = a * (c * j) elif (j <= 5.5e+93) or not (j <= 4.3e+117): tmp = y * (j * -i) else: tmp = t * (a * -x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -8.5e-70) tmp = Float64(i * Float64(-Float64(y * j))); elseif (j <= 6e-303) tmp = Float64(t * Float64(b * i)); elseif (j <= 2.8e-81) tmp = Float64(c * Float64(z * Float64(-b))); elseif (j <= 5.8e-25) tmp = Float64(i * Float64(t * b)); elseif (j <= 4e+38) tmp = Float64(a * Float64(c * j)); elseif ((j <= 5.5e+93) || !(j <= 4.3e+117)) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = Float64(t * Float64(a * Float64(-x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -8.5e-70) tmp = i * -(y * j); elseif (j <= 6e-303) tmp = t * (b * i); elseif (j <= 2.8e-81) tmp = c * (z * -b); elseif (j <= 5.8e-25) tmp = i * (t * b); elseif (j <= 4e+38) tmp = a * (c * j); elseif ((j <= 5.5e+93) || ~((j <= 4.3e+117))) tmp = y * (j * -i); else tmp = t * (a * -x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -8.5e-70], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 6e-303], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-81], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-25], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e+38], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 5.5e+93], N[Not[LessEqual[j, 4.3e+117]], $MachinePrecision]], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.5 \cdot 10^{-70}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{-303}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-81}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-25}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+38}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+93} \lor \neg \left(j \leq 4.3 \cdot 10^{+117}\right):\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\end{array}
\end{array}
if j < -8.5000000000000002e-70Initial program 76.6%
associate-+l-76.6%
*-commutative76.6%
sub-neg76.6%
sub-neg76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in i around inf 50.9%
cancel-sign-sub-inv50.9%
metadata-eval50.9%
*-lft-identity50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
Simplified50.9%
Taylor expanded in t around 0 37.3%
neg-mul-137.3%
distribute-rgt-neg-in37.3%
Simplified37.3%
if -8.5000000000000002e-70 < j < 6.00000000000000055e-303Initial program 81.6%
associate-+l-81.6%
*-commutative81.6%
sub-neg81.6%
sub-neg81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in t around inf 54.3%
*-commutative54.3%
cancel-sign-sub-inv54.3%
metadata-eval54.3%
*-lft-identity54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
Taylor expanded in i around inf 41.0%
if 6.00000000000000055e-303 < j < 2.7999999999999999e-81Initial program 78.0%
+-commutative78.0%
fma-def78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in x around 0 52.3%
Taylor expanded in z around inf 40.1%
mul-1-neg40.1%
*-commutative40.1%
*-commutative40.1%
distribute-rgt-neg-in40.1%
*-commutative40.1%
Simplified40.1%
if 2.7999999999999999e-81 < j < 5.8000000000000001e-25Initial program 91.5%
+-commutative91.5%
fma-def91.5%
*-commutative91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in x around 0 76.0%
Taylor expanded in t around inf 59.1%
if 5.8000000000000001e-25 < j < 3.99999999999999991e38Initial program 99.0%
associate-+l-99.0%
*-commutative99.0%
sub-neg99.0%
sub-neg99.0%
*-commutative99.0%
Simplified99.0%
Taylor expanded in a around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
Taylor expanded in c around inf 51.7%
if 3.99999999999999991e38 < j < 5.5000000000000003e93 or 4.29999999999999998e117 < j Initial program 69.5%
associate-+l-69.5%
*-commutative69.5%
sub-neg69.5%
sub-neg69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in i around inf 55.6%
cancel-sign-sub-inv55.6%
metadata-eval55.6%
*-lft-identity55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in t around 0 61.2%
associate-*r*61.2%
neg-mul-161.2%
Simplified61.2%
if 5.5000000000000003e93 < j < 4.29999999999999998e117Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around inf 70.4%
*-commutative70.4%
cancel-sign-sub-inv70.4%
metadata-eval70.4%
*-lft-identity70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Taylor expanded in i around 0 60.6%
neg-mul-160.6%
distribute-rgt-neg-in60.6%
Simplified60.6%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* y j)))))
(if (<= t -5.5e+277)
(* t (* b i))
(if (<= t -1.1e+224)
(* t (* a (- x)))
(if (<= t -1e+86)
(* i (* t b))
(if (<= t -3.1e-263)
t_1
(if (<= t 4.5e-291)
(* a (* c j))
(if (<= t 9.6e-111)
t_1
(if (<= t 65000.0) (* x (* y z)) (* b (* t i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * -(y * j);
double tmp;
if (t <= -5.5e+277) {
tmp = t * (b * i);
} else if (t <= -1.1e+224) {
tmp = t * (a * -x);
} else if (t <= -1e+86) {
tmp = i * (t * b);
} else if (t <= -3.1e-263) {
tmp = t_1;
} else if (t <= 4.5e-291) {
tmp = a * (c * j);
} else if (t <= 9.6e-111) {
tmp = t_1;
} else if (t <= 65000.0) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * -(y * j)
if (t <= (-5.5d+277)) then
tmp = t * (b * i)
else if (t <= (-1.1d+224)) then
tmp = t * (a * -x)
else if (t <= (-1d+86)) then
tmp = i * (t * b)
else if (t <= (-3.1d-263)) then
tmp = t_1
else if (t <= 4.5d-291) then
tmp = a * (c * j)
else if (t <= 9.6d-111) then
tmp = t_1
else if (t <= 65000.0d0) then
tmp = x * (y * z)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * -(y * j);
double tmp;
if (t <= -5.5e+277) {
tmp = t * (b * i);
} else if (t <= -1.1e+224) {
tmp = t * (a * -x);
} else if (t <= -1e+86) {
tmp = i * (t * b);
} else if (t <= -3.1e-263) {
tmp = t_1;
} else if (t <= 4.5e-291) {
tmp = a * (c * j);
} else if (t <= 9.6e-111) {
tmp = t_1;
} else if (t <= 65000.0) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * -(y * j) tmp = 0 if t <= -5.5e+277: tmp = t * (b * i) elif t <= -1.1e+224: tmp = t * (a * -x) elif t <= -1e+86: tmp = i * (t * b) elif t <= -3.1e-263: tmp = t_1 elif t <= 4.5e-291: tmp = a * (c * j) elif t <= 9.6e-111: tmp = t_1 elif t <= 65000.0: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(-Float64(y * j))) tmp = 0.0 if (t <= -5.5e+277) tmp = Float64(t * Float64(b * i)); elseif (t <= -1.1e+224) tmp = Float64(t * Float64(a * Float64(-x))); elseif (t <= -1e+86) tmp = Float64(i * Float64(t * b)); elseif (t <= -3.1e-263) tmp = t_1; elseif (t <= 4.5e-291) tmp = Float64(a * Float64(c * j)); elseif (t <= 9.6e-111) tmp = t_1; elseif (t <= 65000.0) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * -(y * j); tmp = 0.0; if (t <= -5.5e+277) tmp = t * (b * i); elseif (t <= -1.1e+224) tmp = t * (a * -x); elseif (t <= -1e+86) tmp = i * (t * b); elseif (t <= -3.1e-263) tmp = t_1; elseif (t <= 4.5e-291) tmp = a * (c * j); elseif (t <= 9.6e-111) tmp = t_1; elseif (t <= 65000.0) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[t, -5.5e+277], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e+224], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1e+86], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.1e-263], t$95$1, If[LessEqual[t, 4.5e-291], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e-111], t$95$1, If[LessEqual[t, 65000.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(-y \cdot j\right)\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+277}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{+224}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{+86}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-291}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 65000:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -5.49999999999999972e277Initial program 79.7%
associate-+l-79.7%
*-commutative79.7%
sub-neg79.7%
sub-neg79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in t around inf 100.0%
*-commutative100.0%
cancel-sign-sub-inv100.0%
metadata-eval100.0%
*-lft-identity100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in i around inf 100.0%
if -5.49999999999999972e277 < t < -1.1e224Initial program 63.5%
associate-+l-63.5%
*-commutative63.5%
sub-neg63.5%
sub-neg63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in t around inf 82.4%
*-commutative82.4%
cancel-sign-sub-inv82.4%
metadata-eval82.4%
*-lft-identity82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
Simplified82.4%
Taylor expanded in i around 0 73.3%
neg-mul-173.3%
distribute-rgt-neg-in73.3%
Simplified73.3%
if -1.1e224 < t < -1e86Initial program 80.9%
+-commutative80.9%
fma-def80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in x around 0 55.4%
Taylor expanded in t around inf 47.5%
if -1e86 < t < -3.10000000000000004e-263 or 4.49999999999999974e-291 < t < 9.6000000000000003e-111Initial program 80.0%
associate-+l-80.0%
*-commutative80.0%
sub-neg80.0%
sub-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in i around inf 44.6%
cancel-sign-sub-inv44.6%
metadata-eval44.6%
*-lft-identity44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
Simplified44.6%
Taylor expanded in t around 0 38.5%
neg-mul-138.5%
distribute-rgt-neg-in38.5%
Simplified38.5%
if -3.10000000000000004e-263 < t < 4.49999999999999974e-291Initial program 78.9%
associate-+l-78.9%
*-commutative78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in a around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
Simplified51.2%
Taylor expanded in c around inf 51.3%
if 9.6000000000000003e-111 < t < 65000Initial program 72.7%
associate-+l-72.7%
*-commutative72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 59.4%
Taylor expanded in x around inf 49.8%
Taylor expanded in y around inf 49.4%
*-commutative49.4%
Simplified49.4%
if 65000 < t Initial program 79.2%
associate-+l-79.2%
*-commutative79.2%
sub-neg79.2%
sub-neg79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in b around inf 47.2%
Taylor expanded in i around inf 40.9%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -6e+99)
t_2
(if (<= c 2.7e-279)
t_1
(if (<= c 1.5e-196)
(* t (- (* b i) (* x a)))
(if (<= c 5.8e-130)
t_1
(if (<= c 2.2e+119) (* y (- (* x z) (* i j))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 2.7e-279) {
tmp = t_1;
} else if (c <= 1.5e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 5.8e-130) {
tmp = t_1;
} else if (c <= 2.2e+119) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-6d+99)) then
tmp = t_2
else if (c <= 2.7d-279) then
tmp = t_1
else if (c <= 1.5d-196) then
tmp = t * ((b * i) - (x * a))
else if (c <= 5.8d-130) then
tmp = t_1
else if (c <= 2.2d+119) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 2.7e-279) {
tmp = t_1;
} else if (c <= 1.5e-196) {
tmp = t * ((b * i) - (x * a));
} else if (c <= 5.8e-130) {
tmp = t_1;
} else if (c <= 2.2e+119) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -6e+99: tmp = t_2 elif c <= 2.7e-279: tmp = t_1 elif c <= 1.5e-196: tmp = t * ((b * i) - (x * a)) elif c <= 5.8e-130: tmp = t_1 elif c <= 2.2e+119: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -6e+99) tmp = t_2; elseif (c <= 2.7e-279) tmp = t_1; elseif (c <= 1.5e-196) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (c <= 5.8e-130) tmp = t_1; elseif (c <= 2.2e+119) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -6e+99) tmp = t_2; elseif (c <= 2.7e-279) tmp = t_1; elseif (c <= 1.5e-196) tmp = t * ((b * i) - (x * a)); elseif (c <= 5.8e-130) tmp = t_1; elseif (c <= 2.2e+119) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], t$95$2, If[LessEqual[c, 2.7e-279], t$95$1, If[LessEqual[c, 1.5e-196], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e-130], t$95$1, If[LessEqual[c, 2.2e+119], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{-279}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-196}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-130}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{+119}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -6.00000000000000029e99 or 2.2000000000000001e119 < c Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in c around inf 72.8%
if -6.00000000000000029e99 < c < 2.7000000000000001e-279 or 1.5e-196 < c < 5.8e-130Initial program 80.0%
associate-+l-80.0%
*-commutative80.0%
sub-neg80.0%
sub-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in i around inf 59.1%
cancel-sign-sub-inv59.1%
metadata-eval59.1%
*-lft-identity59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
if 2.7000000000000001e-279 < c < 1.5e-196Initial program 99.9%
associate-+l-99.9%
*-commutative99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around inf 72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
metadata-eval72.4%
*-lft-identity72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
Simplified72.4%
if 5.8e-130 < c < 2.2000000000000001e119Initial program 82.7%
associate-+l-82.7%
*-commutative82.7%
sub-neg82.7%
sub-neg82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in y around inf 60.5%
*-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= i -9e+33)
(* i (- (* y j)))
(if (<= i 1.1e-272)
t_1
(if (<= i 3.4e-179)
(* y (* x z))
(if (<= i 2.5e-116)
t_1
(if (<= i 1.05e-13)
(* t (* a (- x)))
(if (<= i 1.02e+247) (* y (* j (- i))) (* b (* t i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (i <= -9e+33) {
tmp = i * -(y * j);
} else if (i <= 1.1e-272) {
tmp = t_1;
} else if (i <= 3.4e-179) {
tmp = y * (x * z);
} else if (i <= 2.5e-116) {
tmp = t_1;
} else if (i <= 1.05e-13) {
tmp = t * (a * -x);
} else if (i <= 1.02e+247) {
tmp = y * (j * -i);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (i <= (-9d+33)) then
tmp = i * -(y * j)
else if (i <= 1.1d-272) then
tmp = t_1
else if (i <= 3.4d-179) then
tmp = y * (x * z)
else if (i <= 2.5d-116) then
tmp = t_1
else if (i <= 1.05d-13) then
tmp = t * (a * -x)
else if (i <= 1.02d+247) then
tmp = y * (j * -i)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (i <= -9e+33) {
tmp = i * -(y * j);
} else if (i <= 1.1e-272) {
tmp = t_1;
} else if (i <= 3.4e-179) {
tmp = y * (x * z);
} else if (i <= 2.5e-116) {
tmp = t_1;
} else if (i <= 1.05e-13) {
tmp = t * (a * -x);
} else if (i <= 1.02e+247) {
tmp = y * (j * -i);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if i <= -9e+33: tmp = i * -(y * j) elif i <= 1.1e-272: tmp = t_1 elif i <= 3.4e-179: tmp = y * (x * z) elif i <= 2.5e-116: tmp = t_1 elif i <= 1.05e-13: tmp = t * (a * -x) elif i <= 1.02e+247: tmp = y * (j * -i) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (i <= -9e+33) tmp = Float64(i * Float64(-Float64(y * j))); elseif (i <= 1.1e-272) tmp = t_1; elseif (i <= 3.4e-179) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.5e-116) tmp = t_1; elseif (i <= 1.05e-13) tmp = Float64(t * Float64(a * Float64(-x))); elseif (i <= 1.02e+247) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (i <= -9e+33) tmp = i * -(y * j); elseif (i <= 1.1e-272) tmp = t_1; elseif (i <= 3.4e-179) tmp = y * (x * z); elseif (i <= 2.5e-116) tmp = t_1; elseif (i <= 1.05e-13) tmp = t * (a * -x); elseif (i <= 1.02e+247) tmp = y * (j * -i); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9e+33], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 1.1e-272], t$95$1, If[LessEqual[i, 3.4e-179], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.5e-116], t$95$1, If[LessEqual[i, 1.05e-13], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.02e+247], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;i \leq -9 \cdot 10^{+33}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-272}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-179}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-13}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{+247}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -9.0000000000000001e33Initial program 65.2%
associate-+l-65.2%
*-commutative65.2%
sub-neg65.2%
sub-neg65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in i around inf 69.9%
cancel-sign-sub-inv69.9%
metadata-eval69.9%
*-lft-identity69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
Simplified69.9%
Taylor expanded in t around 0 44.9%
neg-mul-144.9%
distribute-rgt-neg-in44.9%
Simplified44.9%
if -9.0000000000000001e33 < i < 1.09999999999999994e-272 or 3.3999999999999997e-179 < i < 2.5000000000000001e-116Initial program 86.8%
associate-+l-86.8%
*-commutative86.8%
sub-neg86.8%
sub-neg86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in a around inf 44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
Simplified44.6%
Taylor expanded in c around inf 32.1%
if 1.09999999999999994e-272 < i < 3.3999999999999997e-179Initial program 85.0%
+-commutative85.0%
fma-def85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in b around 0 56.7%
Taylor expanded in z around inf 44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
if 2.5000000000000001e-116 < i < 1.04999999999999994e-13Initial program 93.4%
associate-+l-93.4%
*-commutative93.4%
sub-neg93.4%
sub-neg93.4%
*-commutative93.4%
Simplified93.4%
Taylor expanded in t around inf 65.1%
*-commutative65.1%
cancel-sign-sub-inv65.1%
metadata-eval65.1%
*-lft-identity65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
Simplified65.1%
Taylor expanded in i around 0 43.2%
neg-mul-143.2%
distribute-rgt-neg-in43.2%
Simplified43.2%
if 1.04999999999999994e-13 < i < 1.02e247Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in i around inf 65.8%
cancel-sign-sub-inv65.8%
metadata-eval65.8%
*-lft-identity65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
Taylor expanded in t around 0 50.3%
associate-*r*50.3%
neg-mul-150.3%
Simplified50.3%
if 1.02e247 < i Initial program 64.4%
associate-+l-64.4%
*-commutative64.4%
sub-neg64.4%
sub-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in i around inf 65.7%
Final simplification42.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= i -1.7e+35)
(* i (- (* y j)))
(if (<= i 4.6e-280)
t_1
(if (<= i 7.2e-181)
(* z (* b (- c)))
(if (<= i 3.6e-12)
t_1
(if (<= i 9.2e+246) (* y (* j (- i))) (* b (* t i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (i <= -1.7e+35) {
tmp = i * -(y * j);
} else if (i <= 4.6e-280) {
tmp = t_1;
} else if (i <= 7.2e-181) {
tmp = z * (b * -c);
} else if (i <= 3.6e-12) {
tmp = t_1;
} else if (i <= 9.2e+246) {
tmp = y * (j * -i);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (i <= (-1.7d+35)) then
tmp = i * -(y * j)
else if (i <= 4.6d-280) then
tmp = t_1
else if (i <= 7.2d-181) then
tmp = z * (b * -c)
else if (i <= 3.6d-12) then
tmp = t_1
else if (i <= 9.2d+246) then
tmp = y * (j * -i)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (i <= -1.7e+35) {
tmp = i * -(y * j);
} else if (i <= 4.6e-280) {
tmp = t_1;
} else if (i <= 7.2e-181) {
tmp = z * (b * -c);
} else if (i <= 3.6e-12) {
tmp = t_1;
} else if (i <= 9.2e+246) {
tmp = y * (j * -i);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if i <= -1.7e+35: tmp = i * -(y * j) elif i <= 4.6e-280: tmp = t_1 elif i <= 7.2e-181: tmp = z * (b * -c) elif i <= 3.6e-12: tmp = t_1 elif i <= 9.2e+246: tmp = y * (j * -i) else: tmp = b * (t * i) 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 (i <= -1.7e+35) tmp = Float64(i * Float64(-Float64(y * j))); elseif (i <= 4.6e-280) tmp = t_1; elseif (i <= 7.2e-181) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= 3.6e-12) tmp = t_1; elseif (i <= 9.2e+246) tmp = Float64(y * Float64(j * Float64(-i))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (i <= -1.7e+35) tmp = i * -(y * j); elseif (i <= 4.6e-280) tmp = t_1; elseif (i <= 7.2e-181) tmp = z * (b * -c); elseif (i <= 3.6e-12) tmp = t_1; elseif (i <= 9.2e+246) tmp = y * (j * -i); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.7e+35], N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 4.6e-280], t$95$1, If[LessEqual[i, 7.2e-181], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e-12], t$95$1, If[LessEqual[i, 9.2e+246], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;i \leq -1.7 \cdot 10^{+35}:\\
\;\;\;\;i \cdot \left(-y \cdot j\right)\\
\mathbf{elif}\;i \leq 4.6 \cdot 10^{-280}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{-181}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 9.2 \cdot 10^{+246}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -1.7000000000000001e35Initial program 65.2%
associate-+l-65.2%
*-commutative65.2%
sub-neg65.2%
sub-neg65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in i around inf 69.9%
cancel-sign-sub-inv69.9%
metadata-eval69.9%
*-lft-identity69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
Simplified69.9%
Taylor expanded in t around 0 44.9%
neg-mul-144.9%
distribute-rgt-neg-in44.9%
Simplified44.9%
if -1.7000000000000001e35 < i < 4.5999999999999999e-280 or 7.1999999999999998e-181 < i < 3.6e-12Initial program 87.5%
associate-+l-87.5%
*-commutative87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in a around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
Simplified45.9%
if 4.5999999999999999e-280 < i < 7.1999999999999998e-181Initial program 90.7%
associate-+l-90.7%
*-commutative90.7%
sub-neg90.7%
sub-neg90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in j around 0 86.6%
Taylor expanded in c around inf 41.1%
mul-1-neg41.1%
*-commutative41.1%
associate-*r*40.4%
distribute-rgt-neg-in40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in z around 0 41.1%
mul-1-neg41.1%
associate-*r*41.2%
*-commutative41.2%
distribute-lft-neg-in41.2%
Simplified41.2%
if 3.6e-12 < i < 9.20000000000000055e246Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in i around inf 65.8%
cancel-sign-sub-inv65.8%
metadata-eval65.8%
*-lft-identity65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
Simplified65.8%
Taylor expanded in t around 0 50.3%
associate-*r*50.3%
neg-mul-150.3%
Simplified50.3%
if 9.20000000000000055e246 < i Initial program 64.4%
associate-+l-64.4%
*-commutative64.4%
sub-neg64.4%
sub-neg64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in b around inf 58.6%
Taylor expanded in i around inf 65.7%
Final simplification47.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -6e+99)
t_2
(if (<= c 2e-129)
t_1
(if (<= c 1.1e+50) (* x (* y z)) (if (<= c 4.7e+120) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 2e-129) {
tmp = t_1;
} else if (c <= 1.1e+50) {
tmp = x * (y * z);
} else if (c <= 4.7e+120) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-6d+99)) then
tmp = t_2
else if (c <= 2d-129) then
tmp = t_1
else if (c <= 1.1d+50) then
tmp = x * (y * z)
else if (c <= 4.7d+120) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -6e+99) {
tmp = t_2;
} else if (c <= 2e-129) {
tmp = t_1;
} else if (c <= 1.1e+50) {
tmp = x * (y * z);
} else if (c <= 4.7e+120) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -6e+99: tmp = t_2 elif c <= 2e-129: tmp = t_1 elif c <= 1.1e+50: tmp = x * (y * z) elif c <= 4.7e+120: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -6e+99) tmp = t_2; elseif (c <= 2e-129) tmp = t_1; elseif (c <= 1.1e+50) tmp = Float64(x * Float64(y * z)); elseif (c <= 4.7e+120) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -6e+99) tmp = t_2; elseif (c <= 2e-129) tmp = t_1; elseif (c <= 1.1e+50) tmp = x * (y * z); elseif (c <= 4.7e+120) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+99], t$95$2, If[LessEqual[c, 2e-129], t$95$1, If[LessEqual[c, 1.1e+50], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.7e+120], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-129}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+50}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{+120}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -6.00000000000000029e99 or 4.69999999999999993e120 < c Initial program 70.3%
associate-+l-70.3%
*-commutative70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in c around inf 72.8%
if -6.00000000000000029e99 < c < 1.9999999999999999e-129 or 1.10000000000000008e50 < c < 4.69999999999999993e120Initial program 81.6%
associate-+l-81.6%
*-commutative81.6%
sub-neg81.6%
sub-neg81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in i around inf 56.3%
cancel-sign-sub-inv56.3%
metadata-eval56.3%
*-lft-identity56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
if 1.9999999999999999e-129 < c < 1.10000000000000008e50Initial program 85.4%
associate-+l-85.4%
*-commutative85.4%
sub-neg85.4%
sub-neg85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in j around 0 71.3%
Taylor expanded in x around inf 66.1%
Taylor expanded in y around inf 45.8%
*-commutative45.8%
Simplified45.8%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* y j)))))
(if (<= t -1.9e+86)
(* i (* t b))
(if (<= t -1.55e-263)
t_1
(if (<= t 2.8e-289)
(* a (* c j))
(if (<= t 8.5e-111)
t_1
(if (<= t 380.0) (* x (* y z)) (* b (* t i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * -(y * j);
double tmp;
if (t <= -1.9e+86) {
tmp = i * (t * b);
} else if (t <= -1.55e-263) {
tmp = t_1;
} else if (t <= 2.8e-289) {
tmp = a * (c * j);
} else if (t <= 8.5e-111) {
tmp = t_1;
} else if (t <= 380.0) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * -(y * j)
if (t <= (-1.9d+86)) then
tmp = i * (t * b)
else if (t <= (-1.55d-263)) then
tmp = t_1
else if (t <= 2.8d-289) then
tmp = a * (c * j)
else if (t <= 8.5d-111) then
tmp = t_1
else if (t <= 380.0d0) then
tmp = x * (y * z)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * -(y * j);
double tmp;
if (t <= -1.9e+86) {
tmp = i * (t * b);
} else if (t <= -1.55e-263) {
tmp = t_1;
} else if (t <= 2.8e-289) {
tmp = a * (c * j);
} else if (t <= 8.5e-111) {
tmp = t_1;
} else if (t <= 380.0) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * -(y * j) tmp = 0 if t <= -1.9e+86: tmp = i * (t * b) elif t <= -1.55e-263: tmp = t_1 elif t <= 2.8e-289: tmp = a * (c * j) elif t <= 8.5e-111: tmp = t_1 elif t <= 380.0: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(-Float64(y * j))) tmp = 0.0 if (t <= -1.9e+86) tmp = Float64(i * Float64(t * b)); elseif (t <= -1.55e-263) tmp = t_1; elseif (t <= 2.8e-289) tmp = Float64(a * Float64(c * j)); elseif (t <= 8.5e-111) tmp = t_1; elseif (t <= 380.0) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * -(y * j); tmp = 0.0; if (t <= -1.9e+86) tmp = i * (t * b); elseif (t <= -1.55e-263) tmp = t_1; elseif (t <= 2.8e-289) tmp = a * (c * j); elseif (t <= 8.5e-111) tmp = t_1; elseif (t <= 380.0) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * (-N[(y * j), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[t, -1.9e+86], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.55e-263], t$95$1, If[LessEqual[t, 2.8e-289], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-111], t$95$1, If[LessEqual[t, 380.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(-y \cdot j\right)\\
\mathbf{if}\;t \leq -1.9 \cdot 10^{+86}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-263}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-289}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 380:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.89999999999999989e86Initial program 76.2%
+-commutative76.2%
fma-def76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in x around 0 53.6%
Taylor expanded in t around inf 48.8%
if -1.89999999999999989e86 < t < -1.55000000000000002e-263 or 2.79999999999999985e-289 < t < 8.5000000000000003e-111Initial program 80.0%
associate-+l-80.0%
*-commutative80.0%
sub-neg80.0%
sub-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in i around inf 44.6%
cancel-sign-sub-inv44.6%
metadata-eval44.6%
*-lft-identity44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
Simplified44.6%
Taylor expanded in t around 0 38.5%
neg-mul-138.5%
distribute-rgt-neg-in38.5%
Simplified38.5%
if -1.55000000000000002e-263 < t < 2.79999999999999985e-289Initial program 78.9%
associate-+l-78.9%
*-commutative78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in a around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
Simplified51.2%
Taylor expanded in c around inf 51.3%
if 8.5000000000000003e-111 < t < 380Initial program 72.7%
associate-+l-72.7%
*-commutative72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 59.4%
Taylor expanded in x around inf 49.8%
Taylor expanded in y around inf 49.4%
*-commutative49.4%
Simplified49.4%
if 380 < t Initial program 79.2%
associate-+l-79.2%
*-commutative79.2%
sub-neg79.2%
sub-neg79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in b around inf 47.2%
Taylor expanded in i around inf 40.9%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= t -1.4e-63)
(* i (* t b))
(if (<= t -1.92e-292)
t_1
(if (<= t 6.2e-111)
(* a (* c j))
(if (<= t 29500.0) t_1 (* 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 = y * (x * z);
double tmp;
if (t <= -1.4e-63) {
tmp = i * (t * b);
} else if (t <= -1.92e-292) {
tmp = t_1;
} else if (t <= 6.2e-111) {
tmp = a * (c * j);
} else if (t <= 29500.0) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (t <= (-1.4d-63)) then
tmp = i * (t * b)
else if (t <= (-1.92d-292)) then
tmp = t_1
else if (t <= 6.2d-111) then
tmp = a * (c * j)
else if (t <= 29500.0d0) then
tmp = t_1
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 = y * (x * z);
double tmp;
if (t <= -1.4e-63) {
tmp = i * (t * b);
} else if (t <= -1.92e-292) {
tmp = t_1;
} else if (t <= 6.2e-111) {
tmp = a * (c * j);
} else if (t <= 29500.0) {
tmp = t_1;
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if t <= -1.4e-63: tmp = i * (t * b) elif t <= -1.92e-292: tmp = t_1 elif t <= 6.2e-111: tmp = a * (c * j) elif t <= 29500.0: tmp = t_1 else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (t <= -1.4e-63) tmp = Float64(i * Float64(t * b)); elseif (t <= -1.92e-292) tmp = t_1; elseif (t <= 6.2e-111) tmp = Float64(a * Float64(c * j)); elseif (t <= 29500.0) tmp = t_1; 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 = y * (x * z); tmp = 0.0; if (t <= -1.4e-63) tmp = i * (t * b); elseif (t <= -1.92e-292) tmp = t_1; elseif (t <= 6.2e-111) tmp = a * (c * j); elseif (t <= 29500.0) tmp = t_1; 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e-63], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.92e-292], t$95$1, If[LessEqual[t, 6.2e-111], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 29500.0], t$95$1, N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{-63}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq -1.92 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-111}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq 29500:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.4000000000000001e-63Initial program 80.3%
+-commutative80.3%
fma-def81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in x around 0 60.1%
Taylor expanded in t around inf 36.5%
if -1.4000000000000001e-63 < t < -1.9199999999999999e-292 or 6.20000000000000029e-111 < t < 29500Initial program 78.1%
+-commutative78.1%
fma-def80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in b around 0 60.5%
Taylor expanded in z around inf 34.3%
*-commutative34.3%
*-commutative34.3%
Simplified34.3%
if -1.9199999999999999e-292 < t < 6.20000000000000029e-111Initial program 74.2%
associate-+l-74.2%
*-commutative74.2%
sub-neg74.2%
sub-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in a around inf 36.4%
+-commutative36.4%
mul-1-neg36.4%
unsub-neg36.4%
Simplified36.4%
Taylor expanded in c around inf 36.3%
if 29500 < t Initial program 79.2%
associate-+l-79.2%
*-commutative79.2%
sub-neg79.2%
sub-neg79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in b around inf 47.2%
Taylor expanded in i around inf 40.9%
Final simplification36.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -1.35e+25)
t_1
(if (<= z -2.3e-152)
(* c (* a j))
(if (<= z 2.5e+32) (* b (* t 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 = x * (y * z);
double tmp;
if (z <= -1.35e+25) {
tmp = t_1;
} else if (z <= -2.3e-152) {
tmp = c * (a * j);
} else if (z <= 2.5e+32) {
tmp = b * (t * 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 = x * (y * z)
if (z <= (-1.35d+25)) then
tmp = t_1
else if (z <= (-2.3d-152)) then
tmp = c * (a * j)
else if (z <= 2.5d+32) then
tmp = b * (t * 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 = x * (y * z);
double tmp;
if (z <= -1.35e+25) {
tmp = t_1;
} else if (z <= -2.3e-152) {
tmp = c * (a * j);
} else if (z <= 2.5e+32) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -1.35e+25: tmp = t_1 elif z <= -2.3e-152: tmp = c * (a * j) elif z <= 2.5e+32: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -1.35e+25) tmp = t_1; elseif (z <= -2.3e-152) tmp = Float64(c * Float64(a * j)); elseif (z <= 2.5e+32) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -1.35e+25) tmp = t_1; elseif (z <= -2.3e-152) tmp = c * (a * j); elseif (z <= 2.5e+32) tmp = b * (t * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+25], t$95$1, If[LessEqual[z, -2.3e-152], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e+32], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-152}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.35e25 or 2.4999999999999999e32 < z Initial program 67.2%
associate-+l-67.2%
*-commutative67.2%
sub-neg67.2%
sub-neg67.2%
*-commutative67.2%
Simplified67.2%
Taylor expanded in j around 0 67.1%
Taylor expanded in x around inf 49.4%
Taylor expanded in y around inf 38.3%
*-commutative38.3%
Simplified38.3%
if -1.35e25 < z < -2.3000000000000001e-152Initial program 81.3%
associate-+l-81.3%
*-commutative81.3%
sub-neg81.3%
sub-neg81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in a around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
Simplified45.9%
Taylor expanded in c around inf 37.0%
Taylor expanded in a around 0 38.9%
if -2.3000000000000001e-152 < z < 2.4999999999999999e32Initial program 88.5%
associate-+l-88.5%
*-commutative88.5%
sub-neg88.5%
sub-neg88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in b around inf 40.1%
Taylor expanded in i around inf 33.5%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -2.05e+76) (not (<= i 1.5e-112))) (* i (* t b)) (* 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 ((i <= -2.05e+76) || !(i <= 1.5e-112)) {
tmp = i * (t * b);
} 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 ((i <= (-2.05d+76)) .or. (.not. (i <= 1.5d-112))) then
tmp = i * (t * b)
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 ((i <= -2.05e+76) || !(i <= 1.5e-112)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -2.05e+76) or not (i <= 1.5e-112): tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -2.05e+76) || !(i <= 1.5e-112)) tmp = Float64(i * Float64(t * b)); 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 ((i <= -2.05e+76) || ~((i <= 1.5e-112))) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -2.05e+76], N[Not[LessEqual[i, 1.5e-112]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.05 \cdot 10^{+76} \lor \neg \left(i \leq 1.5 \cdot 10^{-112}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -2.0499999999999999e76 or 1.5e-112 < i Initial program 72.2%
+-commutative72.2%
fma-def74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 63.9%
Taylor expanded in t around inf 34.1%
if -2.0499999999999999e76 < i < 1.5e-112Initial program 86.4%
associate-+l-86.4%
*-commutative86.4%
sub-neg86.4%
sub-neg86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in a around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
Simplified40.8%
Taylor expanded in c around inf 28.2%
Final simplification31.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -2.5e+76) (not (<= i 6.5e-115))) (* b (* t i)) (* 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 ((i <= -2.5e+76) || !(i <= 6.5e-115)) {
tmp = b * (t * i);
} 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 ((i <= (-2.5d+76)) .or. (.not. (i <= 6.5d-115))) then
tmp = b * (t * i)
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 ((i <= -2.5e+76) || !(i <= 6.5e-115)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -2.5e+76) or not (i <= 6.5e-115): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -2.5e+76) || !(i <= 6.5e-115)) tmp = Float64(b * Float64(t * i)); 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 ((i <= -2.5e+76) || ~((i <= 6.5e-115))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -2.5e+76], N[Not[LessEqual[i, 6.5e-115]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.5 \cdot 10^{+76} \lor \neg \left(i \leq 6.5 \cdot 10^{-115}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -2.49999999999999996e76 or 6.50000000000000033e-115 < i Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in b around inf 43.0%
Taylor expanded in i around inf 36.1%
if -2.49999999999999996e76 < i < 6.50000000000000033e-115Initial program 86.4%
associate-+l-86.4%
*-commutative86.4%
sub-neg86.4%
sub-neg86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in a around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
Simplified40.8%
Taylor expanded in c around inf 28.2%
Final simplification32.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1e+77) (* i (* t b)) (if (<= i 9e-114) (* a (* c j)) (* t (* b 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 <= -1e+77) {
tmp = i * (t * b);
} else if (i <= 9e-114) {
tmp = a * (c * j);
} else {
tmp = t * (b * 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 <= (-1d+77)) then
tmp = i * (t * b)
else if (i <= 9d-114) then
tmp = a * (c * j)
else
tmp = t * (b * 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 <= -1e+77) {
tmp = i * (t * b);
} else if (i <= 9e-114) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1e+77: tmp = i * (t * b) elif i <= 9e-114: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1e+77) tmp = Float64(i * Float64(t * b)); elseif (i <= 9e-114) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1e+77) tmp = i * (t * b); elseif (i <= 9e-114) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1e+77], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-114], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1 \cdot 10^{+77}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-114}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -9.99999999999999983e76Initial program 62.4%
+-commutative62.4%
fma-def68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in x around 0 66.5%
Taylor expanded in t around inf 34.7%
if -9.99999999999999983e76 < i < 8.99999999999999937e-114Initial program 86.4%
associate-+l-86.4%
*-commutative86.4%
sub-neg86.4%
sub-neg86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in a around inf 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
Simplified40.8%
Taylor expanded in c around inf 28.2%
if 8.99999999999999937e-114 < i Initial program 77.3%
associate-+l-77.3%
*-commutative77.3%
sub-neg77.3%
sub-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in t around inf 52.9%
*-commutative52.9%
cancel-sign-sub-inv52.9%
metadata-eval52.9%
*-lft-identity52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in i around inf 36.7%
Final simplification32.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -6.2e+182) (* c (* z b)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.2e+182) {
tmp = c * (z * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.2d+182)) then
tmp = c * (z * b)
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.2e+182) {
tmp = c * (z * b);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.2e+182: tmp = c * (z * b) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.2e+182) tmp = Float64(c * Float64(z * b)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.2e+182) tmp = c * (z * b); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.2e+182], N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+182}:\\
\;\;\;\;c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if z < -6.19999999999999993e182Initial program 43.4%
associate-+l-43.4%
*-commutative43.4%
sub-neg43.4%
sub-neg43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in j around 0 52.1%
Taylor expanded in c around inf 32.1%
mul-1-neg32.1%
*-commutative32.1%
associate-*r*40.0%
distribute-rgt-neg-in40.0%
*-commutative40.0%
Simplified40.0%
expm1-log1p-u13.7%
expm1-udef13.7%
associate-*l*5.6%
add-sqr-sqrt5.5%
sqrt-unprod18.2%
sqr-neg18.2%
sqrt-unprod9.1%
add-sqr-sqrt9.8%
Applied egg-rr9.8%
expm1-def9.8%
expm1-log1p14.6%
*-commutative14.6%
associate-*r*31.0%
*-commutative31.0%
Simplified31.0%
if -6.19999999999999993e182 < z Initial program 81.7%
associate-+l-81.7%
*-commutative81.7%
sub-neg81.7%
sub-neg81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in a around inf 32.1%
+-commutative32.1%
mul-1-neg32.1%
unsub-neg32.1%
Simplified32.1%
Taylor expanded in c around inf 18.6%
Taylor expanded in a around 0 19.3%
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 78.3%
associate-+l-78.3%
*-commutative78.3%
sub-neg78.3%
sub-neg78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 30.9%
+-commutative30.9%
mul-1-neg30.9%
unsub-neg30.9%
Simplified30.9%
Taylor expanded in c around inf 17.8%
Final simplification17.8%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (a * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 78.3%
associate-+l-78.3%
*-commutative78.3%
sub-neg78.3%
sub-neg78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 30.9%
+-commutative30.9%
mul-1-neg30.9%
unsub-neg30.9%
Simplified30.9%
Taylor expanded in c around inf 17.8%
Taylor expanded in a around 0 18.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 2023274
(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)))))