
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (- (* t c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
double t_2 = (t * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;t_1 + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.0%
+-commutative90.0%
fma-def90.0%
*-commutative90.0%
*-commutative90.0%
*-commutative90.0%
*-commutative90.0%
Simplified90.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 57.2%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 57.2%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* a i)) (* j (- (* t c) (* y i)))))
(t_2 (+ (* x (- (* y z) (* t a))) (* c (- (* t j) (* z b))))))
(if (<= z -1.4e-109)
t_2
(if (<= z -4.8e-201)
t_1
(if (<= z -2.8e-277)
(* a (- (* b i) (* x t)))
(if (<= z 1.15e-151)
t_1
(if (<= z 2.65e-39) t_2 (* z (- (* x y) (* b c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = (x * ((y * z) - (t * a))) + (c * ((t * j) - (z * b)));
double tmp;
if (z <= -1.4e-109) {
tmp = t_2;
} else if (z <= -4.8e-201) {
tmp = t_1;
} else if (z <= -2.8e-277) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.15e-151) {
tmp = t_1;
} else if (z <= 2.65e-39) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * (a * i)) + (j * ((t * c) - (y * i)))
t_2 = (x * ((y * z) - (t * a))) + (c * ((t * j) - (z * b)))
if (z <= (-1.4d-109)) then
tmp = t_2
else if (z <= (-4.8d-201)) then
tmp = t_1
else if (z <= (-2.8d-277)) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.15d-151) then
tmp = t_1
else if (z <= 2.65d-39) then
tmp = t_2
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = (x * ((y * z) - (t * a))) + (c * ((t * j) - (z * b)));
double tmp;
if (z <= -1.4e-109) {
tmp = t_2;
} else if (z <= -4.8e-201) {
tmp = t_1;
} else if (z <= -2.8e-277) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.15e-151) {
tmp = t_1;
} else if (z <= 2.65e-39) {
tmp = t_2;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * (a * i)) + (j * ((t * c) - (y * i))) t_2 = (x * ((y * z) - (t * a))) + (c * ((t * j) - (z * b))) tmp = 0 if z <= -1.4e-109: tmp = t_2 elif z <= -4.8e-201: tmp = t_1 elif z <= -2.8e-277: tmp = a * ((b * i) - (x * t)) elif z <= 1.15e-151: tmp = t_1 elif z <= 2.65e-39: tmp = t_2 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(a * i)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(Float64(t * j) - Float64(z * b)))) tmp = 0.0 if (z <= -1.4e-109) tmp = t_2; elseif (z <= -4.8e-201) tmp = t_1; elseif (z <= -2.8e-277) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.15e-151) tmp = t_1; elseif (z <= 2.65e-39) tmp = t_2; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (b * (a * i)) + (j * ((t * c) - (y * i))); t_2 = (x * ((y * z) - (t * a))) + (c * ((t * j) - (z * b))); tmp = 0.0; if (z <= -1.4e-109) tmp = t_2; elseif (z <= -4.8e-201) tmp = t_1; elseif (z <= -2.8e-277) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.15e-151) tmp = t_1; elseif (z <= 2.65e-39) tmp = t_2; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e-109], t$95$2, If[LessEqual[z, -4.8e-201], t$95$1, If[LessEqual[z, -2.8e-277], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e-151], t$95$1, If[LessEqual[z, 2.65e-39], t$95$2, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{-109}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-277}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{-39}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.39999999999999989e-109 or 1.14999999999999998e-151 < z < 2.65000000000000002e-39Initial program 75.4%
cancel-sign-sub75.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
*-commutative75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in i around 0 72.5%
Taylor expanded in c around inf 74.6%
if -1.39999999999999989e-109 < z < -4.80000000000000018e-201 or -2.79999999999999976e-277 < z < 1.14999999999999998e-151Initial program 89.4%
cancel-sign-sub89.4%
cancel-sign-sub-inv89.4%
*-commutative89.4%
*-commutative89.4%
remove-double-neg89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in i around inf 79.1%
associate-*r*79.2%
*-commutative79.2%
Simplified79.2%
if -4.80000000000000018e-201 < z < -2.79999999999999976e-277Initial program 74.1%
cancel-sign-sub74.1%
cancel-sign-sub-inv74.1%
*-commutative74.1%
*-commutative74.1%
remove-double-neg74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 74.9%
distribute-lft-out--74.9%
mul-1-neg74.9%
distribute-rgt-neg-in74.9%
*-commutative74.9%
Simplified74.9%
if 2.65000000000000002e-39 < z Initial program 61.2%
cancel-sign-sub61.2%
cancel-sign-sub-inv61.2%
*-commutative61.2%
*-commutative61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in z around inf 75.9%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* a i)) (* j (- (* t c) (* y i)))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -8.6e+176)
t_3
(if (<= a -9.6e-113)
t_2
(if (<= a -2.6e-172)
t_1
(if (<= a 3e-130) t_2 (if (<= a 1.1e+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 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.6e+176) {
tmp = t_3;
} else if (a <= -9.6e-113) {
tmp = t_2;
} else if (a <= -2.6e-172) {
tmp = t_1;
} else if (a <= 3e-130) {
tmp = t_2;
} else if (a <= 1.1e+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 = (b * (a * i)) + (j * ((t * c) - (y * i)))
t_2 = z * ((x * y) - (b * c))
t_3 = a * ((b * i) - (x * t))
if (a <= (-8.6d+176)) then
tmp = t_3
else if (a <= (-9.6d-113)) then
tmp = t_2
else if (a <= (-2.6d-172)) then
tmp = t_1
else if (a <= 3d-130) then
tmp = t_2
else if (a <= 1.1d+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 = (b * (a * i)) + (j * ((t * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -8.6e+176) {
tmp = t_3;
} else if (a <= -9.6e-113) {
tmp = t_2;
} else if (a <= -2.6e-172) {
tmp = t_1;
} else if (a <= 3e-130) {
tmp = t_2;
} else if (a <= 1.1e+119) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * (a * i)) + (j * ((t * c) - (y * i))) t_2 = z * ((x * y) - (b * c)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -8.6e+176: tmp = t_3 elif a <= -9.6e-113: tmp = t_2 elif a <= -2.6e-172: tmp = t_1 elif a <= 3e-130: tmp = t_2 elif a <= 1.1e+119: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(a * i)) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -8.6e+176) tmp = t_3; elseif (a <= -9.6e-113) tmp = t_2; elseif (a <= -2.6e-172) tmp = t_1; elseif (a <= 3e-130) tmp = t_2; elseif (a <= 1.1e+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 = (b * (a * i)) + (j * ((t * c) - (y * i))); t_2 = z * ((x * y) - (b * c)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -8.6e+176) tmp = t_3; elseif (a <= -9.6e-113) tmp = t_2; elseif (a <= -2.6e-172) tmp = t_1; elseif (a <= 3e-130) tmp = t_2; elseif (a <= 1.1e+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[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.6e+176], t$95$3, If[LessEqual[a, -9.6e-113], t$95$2, If[LessEqual[a, -2.6e-172], t$95$1, If[LessEqual[a, 3e-130], t$95$2, If[LessEqual[a, 1.1e+119], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.6 \cdot 10^{+176}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -9.6 \cdot 10^{-113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-172}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-130}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+119}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -8.60000000000000051e176 or 1.1000000000000001e119 < a Initial program 62.8%
cancel-sign-sub62.8%
cancel-sign-sub-inv62.8%
*-commutative62.8%
*-commutative62.8%
remove-double-neg62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in a around inf 84.3%
distribute-lft-out--84.3%
mul-1-neg84.3%
distribute-rgt-neg-in84.3%
*-commutative84.3%
Simplified84.3%
if -8.60000000000000051e176 < a < -9.60000000000000049e-113 or -2.5999999999999998e-172 < a < 2.99999999999999986e-130Initial program 74.9%
cancel-sign-sub74.9%
cancel-sign-sub-inv74.9%
*-commutative74.9%
*-commutative74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in z around inf 63.6%
if -9.60000000000000049e-113 < a < -2.5999999999999998e-172 or 2.99999999999999986e-130 < a < 1.1000000000000001e119Initial program 81.3%
cancel-sign-sub81.3%
cancel-sign-sub-inv81.3%
*-commutative81.3%
*-commutative81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in i around inf 72.1%
associate-*r*73.4%
*-commutative73.4%
Simplified73.4%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -4.2e+38)
t_2
(if (<= y -3.1e-186)
t_1
(if (<= y -1.65e-275)
(* t (- (* c j) (* x a)))
(if (<= y 1.46e-8)
t_1
(if (or (<= y 3.8e+51) (not (<= y 2.2e+104)))
t_2
(* c (- (* t j) (* z b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.2e+38) {
tmp = t_2;
} else if (y <= -3.1e-186) {
tmp = t_1;
} else if (y <= -1.65e-275) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.46e-8) {
tmp = t_1;
} else if ((y <= 3.8e+51) || !(y <= 2.2e+104)) {
tmp = t_2;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-4.2d+38)) then
tmp = t_2
else if (y <= (-3.1d-186)) then
tmp = t_1
else if (y <= (-1.65d-275)) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.46d-8) then
tmp = t_1
else if ((y <= 3.8d+51) .or. (.not. (y <= 2.2d+104))) then
tmp = t_2
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.2e+38) {
tmp = t_2;
} else if (y <= -3.1e-186) {
tmp = t_1;
} else if (y <= -1.65e-275) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.46e-8) {
tmp = t_1;
} else if ((y <= 3.8e+51) || !(y <= 2.2e+104)) {
tmp = t_2;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.2e+38: tmp = t_2 elif y <= -3.1e-186: tmp = t_1 elif y <= -1.65e-275: tmp = t * ((c * j) - (x * a)) elif y <= 1.46e-8: tmp = t_1 elif (y <= 3.8e+51) or not (y <= 2.2e+104): tmp = t_2 else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.2e+38) tmp = t_2; elseif (y <= -3.1e-186) tmp = t_1; elseif (y <= -1.65e-275) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.46e-8) tmp = t_1; elseif ((y <= 3.8e+51) || !(y <= 2.2e+104)) tmp = t_2; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.2e+38) tmp = t_2; elseif (y <= -3.1e-186) tmp = t_1; elseif (y <= -1.65e-275) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.46e-8) tmp = t_1; elseif ((y <= 3.8e+51) || ~((y <= 2.2e+104))) tmp = t_2; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.2e+38], t$95$2, If[LessEqual[y, -3.1e-186], t$95$1, If[LessEqual[y, -1.65e-275], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.46e-8], t$95$1, If[Or[LessEqual[y, 3.8e+51], N[Not[LessEqual[y, 2.2e+104]], $MachinePrecision]], t$95$2, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{+38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{-186}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-275}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.46 \cdot 10^{-8}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+51} \lor \neg \left(y \leq 2.2 \cdot 10^{+104}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if y < -4.2e38 or 1.46e-8 < y < 3.7999999999999997e51 or 2.2e104 < y Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
Simplified66.1%
if -4.2e38 < y < -3.10000000000000009e-186 or -1.65e-275 < y < 1.46e-8Initial program 74.4%
cancel-sign-sub74.4%
cancel-sign-sub-inv74.4%
*-commutative74.4%
*-commutative74.4%
remove-double-neg74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in b around inf 58.9%
if -3.10000000000000009e-186 < y < -1.65e-275Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in i around 0 61.2%
Taylor expanded in c around inf 61.2%
Taylor expanded in t around inf 62.8%
*-commutative62.8%
mul-1-neg62.8%
unsub-neg62.8%
Simplified62.8%
if 3.7999999999999997e51 < y < 2.2e104Initial program 89.8%
cancel-sign-sub89.8%
cancel-sign-sub-inv89.8%
*-commutative89.8%
*-commutative89.8%
remove-double-neg89.8%
*-commutative89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in c around inf 90.2%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -4.6e+103)
t_3
(if (<= z -3.7e+66)
t_2
(if (<= z -8e-71)
t_1
(if (<= z -5.5e-188)
(* i (- (* a b) (* y j)))
(if (<= z 1.42e-143) t_2 (if (<= z 4.6e-77) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.6e+103) {
tmp = t_3;
} else if (z <= -3.7e+66) {
tmp = t_2;
} else if (z <= -8e-71) {
tmp = t_1;
} else if (z <= -5.5e-188) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.42e-143) {
tmp = t_2;
} else if (z <= 4.6e-77) {
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 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
t_3 = z * ((x * y) - (b * c))
if (z <= (-4.6d+103)) then
tmp = t_3
else if (z <= (-3.7d+66)) then
tmp = t_2
else if (z <= (-8d-71)) then
tmp = t_1
else if (z <= (-5.5d-188)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 1.42d-143) then
tmp = t_2
else if (z <= 4.6d-77) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.6e+103) {
tmp = t_3;
} else if (z <= -3.7e+66) {
tmp = t_2;
} else if (z <= -8e-71) {
tmp = t_1;
} else if (z <= -5.5e-188) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.42e-143) {
tmp = t_2;
} else if (z <= 4.6e-77) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -4.6e+103: tmp = t_3 elif z <= -3.7e+66: tmp = t_2 elif z <= -8e-71: tmp = t_1 elif z <= -5.5e-188: tmp = i * ((a * b) - (y * j)) elif z <= 1.42e-143: tmp = t_2 elif z <= 4.6e-77: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -4.6e+103) tmp = t_3; elseif (z <= -3.7e+66) tmp = t_2; elseif (z <= -8e-71) tmp = t_1; elseif (z <= -5.5e-188) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 1.42e-143) tmp = t_2; elseif (z <= 4.6e-77) 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 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -4.6e+103) tmp = t_3; elseif (z <= -3.7e+66) tmp = t_2; elseif (z <= -8e-71) tmp = t_1; elseif (z <= -5.5e-188) tmp = i * ((a * b) - (y * j)); elseif (z <= 1.42e-143) tmp = t_2; elseif (z <= 4.6e-77) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.6e+103], t$95$3, If[LessEqual[z, -3.7e+66], t$95$2, If[LessEqual[z, -8e-71], t$95$1, If[LessEqual[z, -5.5e-188], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.42e-143], t$95$2, If[LessEqual[z, 4.6e-77], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+103}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{+66}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-188}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-143}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -4.60000000000000017e103 or 4.59999999999999997e-77 < z Initial program 64.8%
cancel-sign-sub64.8%
cancel-sign-sub-inv64.8%
*-commutative64.8%
*-commutative64.8%
remove-double-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in z around inf 76.4%
if -4.60000000000000017e103 < z < -3.7e66 or -5.5000000000000002e-188 < z < 1.42e-143Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in a around inf 62.9%
distribute-lft-out--62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
*-commutative62.9%
Simplified62.9%
if -3.7e66 < z < -7.9999999999999993e-71 or 1.42e-143 < z < 4.59999999999999997e-77Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in c around inf 62.4%
if -7.9999999999999993e-71 < z < -5.5000000000000002e-188Initial program 92.6%
cancel-sign-sub92.6%
cancel-sign-sub-inv92.6%
*-commutative92.6%
*-commutative92.6%
remove-double-neg92.6%
*-commutative92.6%
*-commutative92.6%
Simplified92.6%
Taylor expanded in i around inf 59.4%
*-commutative59.4%
sub-neg59.4%
mul-1-neg59.4%
remove-double-neg59.4%
+-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
*-commutative59.4%
Simplified59.4%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -4.5e+103)
t_3
(if (<= z -1.25e+67)
t_2
(if (<= z -7.5e-68)
t_1
(if (<= z -3.1e-190)
(- (* i (* a b)) (* i (* y j)))
(if (<= z 3.5e-142) t_2 (if (<= z 7.5e-77) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.5e+103) {
tmp = t_3;
} else if (z <= -1.25e+67) {
tmp = t_2;
} else if (z <= -7.5e-68) {
tmp = t_1;
} else if (z <= -3.1e-190) {
tmp = (i * (a * b)) - (i * (y * j));
} else if (z <= 3.5e-142) {
tmp = t_2;
} else if (z <= 7.5e-77) {
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 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
t_3 = z * ((x * y) - (b * c))
if (z <= (-4.5d+103)) then
tmp = t_3
else if (z <= (-1.25d+67)) then
tmp = t_2
else if (z <= (-7.5d-68)) then
tmp = t_1
else if (z <= (-3.1d-190)) then
tmp = (i * (a * b)) - (i * (y * j))
else if (z <= 3.5d-142) then
tmp = t_2
else if (z <= 7.5d-77) 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 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.5e+103) {
tmp = t_3;
} else if (z <= -1.25e+67) {
tmp = t_2;
} else if (z <= -7.5e-68) {
tmp = t_1;
} else if (z <= -3.1e-190) {
tmp = (i * (a * b)) - (i * (y * j));
} else if (z <= 3.5e-142) {
tmp = t_2;
} else if (z <= 7.5e-77) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -4.5e+103: tmp = t_3 elif z <= -1.25e+67: tmp = t_2 elif z <= -7.5e-68: tmp = t_1 elif z <= -3.1e-190: tmp = (i * (a * b)) - (i * (y * j)) elif z <= 3.5e-142: tmp = t_2 elif z <= 7.5e-77: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -4.5e+103) tmp = t_3; elseif (z <= -1.25e+67) tmp = t_2; elseif (z <= -7.5e-68) tmp = t_1; elseif (z <= -3.1e-190) tmp = Float64(Float64(i * Float64(a * b)) - Float64(i * Float64(y * j))); elseif (z <= 3.5e-142) tmp = t_2; elseif (z <= 7.5e-77) 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 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -4.5e+103) tmp = t_3; elseif (z <= -1.25e+67) tmp = t_2; elseif (z <= -7.5e-68) tmp = t_1; elseif (z <= -3.1e-190) tmp = (i * (a * b)) - (i * (y * j)); elseif (z <= 3.5e-142) tmp = t_2; elseif (z <= 7.5e-77) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+103], t$95$3, If[LessEqual[z, -1.25e+67], t$95$2, If[LessEqual[z, -7.5e-68], t$95$1, If[LessEqual[z, -3.1e-190], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e-142], t$95$2, If[LessEqual[z, 7.5e-77], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+103}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{+67}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-190}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-142}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -4.50000000000000001e103 or 7.5000000000000006e-77 < z Initial program 64.8%
cancel-sign-sub64.8%
cancel-sign-sub-inv64.8%
*-commutative64.8%
*-commutative64.8%
remove-double-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in z around inf 76.4%
if -4.50000000000000001e103 < z < -1.24999999999999994e67 or -3.09999999999999993e-190 < z < 3.50000000000000015e-142Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in a around inf 62.9%
distribute-lft-out--62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
*-commutative62.9%
Simplified62.9%
if -1.24999999999999994e67 < z < -7.50000000000000081e-68 or 3.50000000000000015e-142 < z < 7.5000000000000006e-77Initial program 82.6%
cancel-sign-sub82.6%
cancel-sign-sub-inv82.6%
*-commutative82.6%
*-commutative82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in c around inf 62.4%
if -7.50000000000000081e-68 < z < -3.09999999999999993e-190Initial program 92.6%
cancel-sign-sub92.6%
cancel-sign-sub-inv92.6%
*-commutative92.6%
*-commutative92.6%
remove-double-neg92.6%
*-commutative92.6%
*-commutative92.6%
Simplified92.6%
Taylor expanded in i around inf 59.4%
*-commutative59.4%
sub-neg59.4%
mul-1-neg59.4%
remove-double-neg59.4%
+-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
*-commutative59.4%
Simplified59.4%
sub-neg59.4%
distribute-rgt-in59.5%
distribute-rgt-neg-in59.5%
Applied egg-rr59.5%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= a -1.32e+187)
(* a (* b i))
(if (<= a -4.3e-38)
t_1
(if (<= a -1e-68)
(* z (* x y))
(if (<= a 1.2e+174) t_1 (* 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 = c * ((t * j) - (z * b));
double tmp;
if (a <= -1.32e+187) {
tmp = a * (b * i);
} else if (a <= -4.3e-38) {
tmp = t_1;
} else if (a <= -1e-68) {
tmp = z * (x * y);
} else if (a <= 1.2e+174) {
tmp = t_1;
} else {
tmp = 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 = c * ((t * j) - (z * b))
if (a <= (-1.32d+187)) then
tmp = a * (b * i)
else if (a <= (-4.3d-38)) then
tmp = t_1
else if (a <= (-1d-68)) then
tmp = z * (x * y)
else if (a <= 1.2d+174) then
tmp = t_1
else
tmp = 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 = c * ((t * j) - (z * b));
double tmp;
if (a <= -1.32e+187) {
tmp = a * (b * i);
} else if (a <= -4.3e-38) {
tmp = t_1;
} else if (a <= -1e-68) {
tmp = z * (x * y);
} else if (a <= 1.2e+174) {
tmp = t_1;
} else {
tmp = a * (x * -t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if a <= -1.32e+187: tmp = a * (b * i) elif a <= -4.3e-38: tmp = t_1 elif a <= -1e-68: tmp = z * (x * y) elif a <= 1.2e+174: tmp = t_1 else: tmp = a * (x * -t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (a <= -1.32e+187) tmp = Float64(a * Float64(b * i)); elseif (a <= -4.3e-38) tmp = t_1; elseif (a <= -1e-68) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.2e+174) tmp = t_1; else tmp = Float64(a * Float64(x * Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (a <= -1.32e+187) tmp = a * (b * i); elseif (a <= -4.3e-38) tmp = t_1; elseif (a <= -1e-68) tmp = z * (x * y); elseif (a <= 1.2e+174) tmp = t_1; else tmp = a * (x * -t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.32e+187], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.3e-38], t$95$1, If[LessEqual[a, -1e-68], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e+174], t$95$1, N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;a \leq -1.32 \cdot 10^{+187}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq -4.3 \cdot 10^{-38}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-68}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+174}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\end{array}
\end{array}
if a < -1.32000000000000009e187Initial program 40.3%
cancel-sign-sub40.3%
cancel-sign-sub-inv40.3%
*-commutative40.3%
*-commutative40.3%
remove-double-neg40.3%
*-commutative40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in i around inf 57.5%
*-commutative57.5%
sub-neg57.5%
mul-1-neg57.5%
remove-double-neg57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in y around 0 65.6%
if -1.32000000000000009e187 < a < -4.3000000000000002e-38 or -1.00000000000000007e-68 < a < 1.1999999999999999e174Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 48.4%
if -4.3000000000000002e-38 < a < -1.00000000000000007e-68Initial program 83.1%
cancel-sign-sub83.1%
cancel-sign-sub-inv83.1%
*-commutative83.1%
*-commutative83.1%
remove-double-neg83.1%
*-commutative83.1%
*-commutative83.1%
Simplified83.1%
Taylor expanded in z around inf 83.7%
Taylor expanded in y around inf 83.7%
if 1.1999999999999999e174 < a Initial program 73.2%
cancel-sign-sub73.2%
cancel-sign-sub-inv73.2%
*-commutative73.2%
*-commutative73.2%
remove-double-neg73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in a around inf 85.3%
distribute-lft-out--85.3%
mul-1-neg85.3%
distribute-rgt-neg-in85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in t around inf 69.6%
Final simplification52.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* t (- (* c j) (* x a)))))
(if (<= t -3.1e+83)
t_2
(if (<= t -1.25e-141)
t_1
(if (<= t 0.00066)
(* i (- (* a b) (* y j)))
(if (<= t 1.3e+112) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.1e+83) {
tmp = t_2;
} else if (t <= -1.25e-141) {
tmp = t_1;
} else if (t <= 0.00066) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 1.3e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = t * ((c * j) - (x * a))
if (t <= (-3.1d+83)) then
tmp = t_2
else if (t <= (-1.25d-141)) then
tmp = t_1
else if (t <= 0.00066d0) then
tmp = i * ((a * b) - (y * j))
else if (t <= 1.3d+112) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double tmp;
if (t <= -3.1e+83) {
tmp = t_2;
} else if (t <= -1.25e-141) {
tmp = t_1;
} else if (t <= 0.00066) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 1.3e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = t * ((c * j) - (x * a)) tmp = 0 if t <= -3.1e+83: tmp = t_2 elif t <= -1.25e-141: tmp = t_1 elif t <= 0.00066: tmp = i * ((a * b) - (y * j)) elif t <= 1.3e+112: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -3.1e+83) tmp = t_2; elseif (t <= -1.25e-141) tmp = t_1; elseif (t <= 0.00066) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 1.3e+112) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -3.1e+83) tmp = t_2; elseif (t <= -1.25e-141) tmp = t_1; elseif (t <= 0.00066) tmp = i * ((a * b) - (y * j)); elseif (t <= 1.3e+112) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e+83], t$95$2, If[LessEqual[t, -1.25e-141], t$95$1, If[LessEqual[t, 0.00066], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+112], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{+83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.00066:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+112}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -3.09999999999999992e83 or 1.3e112 < t Initial program 59.0%
cancel-sign-sub59.0%
cancel-sign-sub-inv59.0%
*-commutative59.0%
*-commutative59.0%
remove-double-neg59.0%
*-commutative59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in i around 0 54.4%
Taylor expanded in c around inf 56.6%
Taylor expanded in t around inf 64.3%
*-commutative64.3%
mul-1-neg64.3%
unsub-neg64.3%
Simplified64.3%
if -3.09999999999999992e83 < t < -1.25e-141 or 6.6e-4 < t < 1.3e112Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around inf 60.7%
if -1.25e-141 < t < 6.6e-4Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in i around inf 55.4%
*-commutative55.4%
sub-neg55.4%
mul-1-neg55.4%
remove-double-neg55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
*-commutative55.4%
Simplified55.4%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* z (* x y))))
(if (<= y -7.5e+40)
t_2
(if (<= y 3.3e-271)
t_1
(if (<= y 3.2e-66)
(* a (* b i))
(if (<= y 3.95e+54) t_1 (if (<= y 3.6e+83) (* c (* t 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (y <= -7.5e+40) {
tmp = t_2;
} else if (y <= 3.3e-271) {
tmp = t_1;
} else if (y <= 3.2e-66) {
tmp = a * (b * i);
} else if (y <= 3.95e+54) {
tmp = t_1;
} else if (y <= 3.6e+83) {
tmp = c * (t * 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 = (z * b) * -c
t_2 = z * (x * y)
if (y <= (-7.5d+40)) then
tmp = t_2
else if (y <= 3.3d-271) then
tmp = t_1
else if (y <= 3.2d-66) then
tmp = a * (b * i)
else if (y <= 3.95d+54) then
tmp = t_1
else if (y <= 3.6d+83) then
tmp = c * (t * 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (y <= -7.5e+40) {
tmp = t_2;
} else if (y <= 3.3e-271) {
tmp = t_1;
} else if (y <= 3.2e-66) {
tmp = a * (b * i);
} else if (y <= 3.95e+54) {
tmp = t_1;
} else if (y <= 3.6e+83) {
tmp = c * (t * j);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = z * (x * y) tmp = 0 if y <= -7.5e+40: tmp = t_2 elif y <= 3.3e-271: tmp = t_1 elif y <= 3.2e-66: tmp = a * (b * i) elif y <= 3.95e+54: tmp = t_1 elif y <= 3.6e+83: tmp = c * (t * j) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -7.5e+40) tmp = t_2; elseif (y <= 3.3e-271) tmp = t_1; elseif (y <= 3.2e-66) tmp = Float64(a * Float64(b * i)); elseif (y <= 3.95e+54) tmp = t_1; elseif (y <= 3.6e+83) tmp = Float64(c * Float64(t * j)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * b) * -c; t_2 = z * (x * y); tmp = 0.0; if (y <= -7.5e+40) tmp = t_2; elseif (y <= 3.3e-271) tmp = t_1; elseif (y <= 3.2e-66) tmp = a * (b * i); elseif (y <= 3.95e+54) tmp = t_1; elseif (y <= 3.6e+83) tmp = c * (t * 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[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+40], t$95$2, If[LessEqual[y, 3.3e-271], t$95$1, If[LessEqual[y, 3.2e-66], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.95e+54], t$95$1, If[LessEqual[y, 3.6e+83], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 3.95 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -7.4999999999999996e40 or 3.5999999999999997e83 < y Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 58.2%
Taylor expanded in y around inf 47.0%
if -7.4999999999999996e40 < y < 3.3000000000000002e-271 or 3.19999999999999982e-66 < y < 3.95000000000000029e54Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around 0 65.9%
Taylor expanded in b around inf 40.9%
*-commutative40.9%
neg-mul-140.9%
distribute-rgt-neg-in40.9%
distribute-rgt-neg-in40.9%
*-commutative40.9%
distribute-lft-neg-out40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if 3.3000000000000002e-271 < y < 3.19999999999999982e-66Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in i around inf 50.1%
*-commutative50.1%
sub-neg50.1%
mul-1-neg50.1%
remove-double-neg50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in y around 0 45.4%
if 3.95000000000000029e54 < y < 3.5999999999999997e83Initial program 83.3%
cancel-sign-sub83.3%
cancel-sign-sub-inv83.3%
*-commutative83.3%
*-commutative83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in i around 0 67.0%
Taylor expanded in j around inf 83.7%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= y -4.3e+40)
t_1
(if (<= y 3.1e-272)
(* z (* b (- c)))
(if (<= y 1.12e-64)
(* a (* b i))
(if (<= y 3.95e+54)
(* (* z b) (- c))
(if (<= y 1.02e+85) (* c (* t j)) 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 = z * (x * y);
double tmp;
if (y <= -4.3e+40) {
tmp = t_1;
} else if (y <= 3.1e-272) {
tmp = z * (b * -c);
} else if (y <= 1.12e-64) {
tmp = a * (b * i);
} else if (y <= 3.95e+54) {
tmp = (z * b) * -c;
} else if (y <= 1.02e+85) {
tmp = c * (t * j);
} 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 = z * (x * y)
if (y <= (-4.3d+40)) then
tmp = t_1
else if (y <= 3.1d-272) then
tmp = z * (b * -c)
else if (y <= 1.12d-64) then
tmp = a * (b * i)
else if (y <= 3.95d+54) then
tmp = (z * b) * -c
else if (y <= 1.02d+85) then
tmp = c * (t * j)
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 = z * (x * y);
double tmp;
if (y <= -4.3e+40) {
tmp = t_1;
} else if (y <= 3.1e-272) {
tmp = z * (b * -c);
} else if (y <= 1.12e-64) {
tmp = a * (b * i);
} else if (y <= 3.95e+54) {
tmp = (z * b) * -c;
} else if (y <= 1.02e+85) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if y <= -4.3e+40: tmp = t_1 elif y <= 3.1e-272: tmp = z * (b * -c) elif y <= 1.12e-64: tmp = a * (b * i) elif y <= 3.95e+54: tmp = (z * b) * -c elif y <= 1.02e+85: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -4.3e+40) tmp = t_1; elseif (y <= 3.1e-272) tmp = Float64(z * Float64(b * Float64(-c))); elseif (y <= 1.12e-64) tmp = Float64(a * Float64(b * i)); elseif (y <= 3.95e+54) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (y <= 1.02e+85) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (y <= -4.3e+40) tmp = t_1; elseif (y <= 3.1e-272) tmp = z * (b * -c); elseif (y <= 1.12e-64) tmp = a * (b * i); elseif (y <= 3.95e+54) tmp = (z * b) * -c; elseif (y <= 1.02e+85) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.3e+40], t$95$1, If[LessEqual[y, 3.1e-272], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e-64], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.95e+54], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[y, 1.02e+85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -4.3 \cdot 10^{+40}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-272}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-64}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 3.95 \cdot 10^{+54}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{+85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -4.3000000000000002e40 or 1.02e85 < y Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 58.2%
Taylor expanded in y around inf 47.0%
if -4.3000000000000002e40 < y < 3.10000000000000029e-272Initial program 76.5%
cancel-sign-sub76.5%
cancel-sign-sub-inv76.5%
*-commutative76.5%
*-commutative76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in z around inf 49.0%
Taylor expanded in y around 0 41.9%
neg-mul-141.9%
distribute-rgt-neg-in41.9%
Simplified41.9%
if 3.10000000000000029e-272 < y < 1.12e-64Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in i around inf 48.9%
*-commutative48.9%
sub-neg48.9%
mul-1-neg48.9%
remove-double-neg48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in y around 0 44.3%
if 1.12e-64 < y < 3.95000000000000029e54Initial program 68.3%
cancel-sign-sub68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
*-commutative68.3%
remove-double-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in i around 0 63.8%
Taylor expanded in b around inf 42.0%
*-commutative42.0%
neg-mul-142.0%
distribute-rgt-neg-in42.0%
distribute-rgt-neg-in42.0%
*-commutative42.0%
distribute-lft-neg-out42.0%
distribute-rgt-neg-in42.0%
Simplified42.0%
if 3.95000000000000029e54 < y < 1.02e85Initial program 83.3%
cancel-sign-sub83.3%
cancel-sign-sub-inv83.3%
*-commutative83.3%
*-commutative83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in i around 0 67.0%
Taylor expanded in j around inf 83.7%
Final simplification45.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -1.6e-73)
t_1
(if (<= z 4.1e-148)
(* i (- (* a b) (* y j)))
(if (<= z 1.65e-76) (* c (- (* t j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.6e-73) {
tmp = t_1;
} else if (z <= 4.1e-148) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.65e-76) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-1.6d-73)) then
tmp = t_1
else if (z <= 4.1d-148) then
tmp = i * ((a * b) - (y * j))
else if (z <= 1.65d-76) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.6e-73) {
tmp = t_1;
} else if (z <= 4.1e-148) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 1.65e-76) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.6e-73: tmp = t_1 elif z <= 4.1e-148: tmp = i * ((a * b) - (y * j)) elif z <= 1.65e-76: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.6e-73) tmp = t_1; elseif (z <= 4.1e-148) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 1.65e-76) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.6e-73) tmp = t_1; elseif (z <= 4.1e-148) tmp = i * ((a * b) - (y * j)); elseif (z <= 1.65e-76) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e-73], t$95$1, If[LessEqual[z, 4.1e-148], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-76], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{-148}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-76}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.59999999999999993e-73 or 1.64999999999999992e-76 < z Initial program 68.5%
cancel-sign-sub68.5%
cancel-sign-sub-inv68.5%
*-commutative68.5%
*-commutative68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in z around inf 70.3%
if -1.59999999999999993e-73 < z < 4.1000000000000002e-148Initial program 83.5%
cancel-sign-sub83.5%
cancel-sign-sub-inv83.5%
*-commutative83.5%
*-commutative83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in i around inf 51.6%
*-commutative51.6%
sub-neg51.6%
mul-1-neg51.6%
remove-double-neg51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
if 4.1000000000000002e-148 < z < 1.64999999999999992e-76Initial program 69.5%
cancel-sign-sub69.5%
cancel-sign-sub-inv69.5%
*-commutative69.5%
*-commutative69.5%
remove-double-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in c around inf 63.3%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -6.5e-68)
t_1
(if (<= x -1.45e-275)
(* a (* b i))
(if (<= x 1.65e-117)
(* c (* t j))
(if (<= x 1.3e+43) (* b (* a 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 = y * (x * z);
double tmp;
if (x <= -6.5e-68) {
tmp = t_1;
} else if (x <= -1.45e-275) {
tmp = a * (b * i);
} else if (x <= 1.65e-117) {
tmp = c * (t * j);
} else if (x <= 1.3e+43) {
tmp = b * (a * 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 = y * (x * z)
if (x <= (-6.5d-68)) then
tmp = t_1
else if (x <= (-1.45d-275)) then
tmp = a * (b * i)
else if (x <= 1.65d-117) then
tmp = c * (t * j)
else if (x <= 1.3d+43) then
tmp = b * (a * 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 = y * (x * z);
double tmp;
if (x <= -6.5e-68) {
tmp = t_1;
} else if (x <= -1.45e-275) {
tmp = a * (b * i);
} else if (x <= 1.65e-117) {
tmp = c * (t * j);
} else if (x <= 1.3e+43) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -6.5e-68: tmp = t_1 elif x <= -1.45e-275: tmp = a * (b * i) elif x <= 1.65e-117: tmp = c * (t * j) elif x <= 1.3e+43: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -6.5e-68) tmp = t_1; elseif (x <= -1.45e-275) tmp = Float64(a * Float64(b * i)); elseif (x <= 1.65e-117) tmp = Float64(c * Float64(t * j)); elseif (x <= 1.3e+43) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (x <= -6.5e-68) tmp = t_1; elseif (x <= -1.45e-275) tmp = a * (b * i); elseif (x <= 1.65e-117) tmp = c * (t * j); elseif (x <= 1.3e+43) tmp = b * (a * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e-68], t$95$1, If[LessEqual[x, -1.45e-275], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e-117], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e+43], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-275}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-117}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -6.4999999999999997e-68 or 1.3000000000000001e43 < x Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in y around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in z around inf 42.6%
if -6.4999999999999997e-68 < x < -1.45e-275Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in i around inf 51.1%
*-commutative51.1%
sub-neg51.1%
mul-1-neg51.1%
remove-double-neg51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around 0 46.1%
if -1.45e-275 < x < 1.65000000000000008e-117Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in i around 0 51.5%
Taylor expanded in j around inf 32.5%
if 1.65000000000000008e-117 < x < 1.3000000000000001e43Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 50.7%
*-commutative50.7%
sub-neg50.7%
mul-1-neg50.7%
remove-double-neg50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in b around inf 35.6%
*-commutative35.6%
*-commutative35.6%
associate-*l*38.0%
Simplified38.0%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -6e-68)
t_1
(if (<= x -3.5e-277)
(* a (* b i))
(if (<= x 8.5e-116)
(* c (* t j))
(if (<= x 1e+40) (* b (* a 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 = z * (x * y);
double tmp;
if (x <= -6e-68) {
tmp = t_1;
} else if (x <= -3.5e-277) {
tmp = a * (b * i);
} else if (x <= 8.5e-116) {
tmp = c * (t * j);
} else if (x <= 1e+40) {
tmp = b * (a * 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 = z * (x * y)
if (x <= (-6d-68)) then
tmp = t_1
else if (x <= (-3.5d-277)) then
tmp = a * (b * i)
else if (x <= 8.5d-116) then
tmp = c * (t * j)
else if (x <= 1d+40) then
tmp = b * (a * 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 = z * (x * y);
double tmp;
if (x <= -6e-68) {
tmp = t_1;
} else if (x <= -3.5e-277) {
tmp = a * (b * i);
} else if (x <= 8.5e-116) {
tmp = c * (t * j);
} else if (x <= 1e+40) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -6e-68: tmp = t_1 elif x <= -3.5e-277: tmp = a * (b * i) elif x <= 8.5e-116: tmp = c * (t * j) elif x <= 1e+40: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -6e-68) tmp = t_1; elseif (x <= -3.5e-277) tmp = Float64(a * Float64(b * i)); elseif (x <= 8.5e-116) tmp = Float64(c * Float64(t * j)); elseif (x <= 1e+40) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -6e-68) tmp = t_1; elseif (x <= -3.5e-277) tmp = a * (b * i); elseif (x <= 8.5e-116) tmp = c * (t * j); elseif (x <= 1e+40) tmp = b * (a * 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6e-68], t$95$1, If[LessEqual[x, -3.5e-277], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e-116], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+40], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -6 \cdot 10^{-68}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-277}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-116}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 10^{+40}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -6e-68 or 1.00000000000000003e40 < x Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in z around inf 59.5%
Taylor expanded in y around inf 45.6%
if -6e-68 < x < -3.49999999999999983e-277Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in i around inf 51.1%
*-commutative51.1%
sub-neg51.1%
mul-1-neg51.1%
remove-double-neg51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in y around 0 46.1%
if -3.49999999999999983e-277 < x < 8.4999999999999995e-116Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in i around 0 51.5%
Taylor expanded in j around inf 32.5%
if 8.4999999999999995e-116 < x < 1.00000000000000003e40Initial program 75.0%
cancel-sign-sub75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in i around inf 50.7%
*-commutative50.7%
sub-neg50.7%
mul-1-neg50.7%
remove-double-neg50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in b around inf 35.6%
*-commutative35.6%
*-commutative35.6%
associate-*l*38.0%
Simplified38.0%
Final simplification41.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4.8e+47) (not (<= c 8e+53))) (* c (- (* t j) (* z b))) (* i (- (* a b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.8e+47) || !(c <= 8e+53)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-4.8d+47)) .or. (.not. (c <= 8d+53))) then
tmp = c * ((t * j) - (z * b))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.8e+47) || !(c <= 8e+53)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4.8e+47) or not (c <= 8e+53): tmp = c * ((t * j) - (z * b)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4.8e+47) || !(c <= 8e+53)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4.8e+47) || ~((c <= 8e+53))) tmp = c * ((t * j) - (z * b)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4.8e+47], N[Not[LessEqual[c, 8e+53]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.8 \cdot 10^{+47} \lor \neg \left(c \leq 8 \cdot 10^{+53}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if c < -4.80000000000000037e47 or 7.9999999999999999e53 < c Initial program 66.3%
cancel-sign-sub66.3%
cancel-sign-sub-inv66.3%
*-commutative66.3%
*-commutative66.3%
remove-double-neg66.3%
*-commutative66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in c around inf 68.0%
if -4.80000000000000037e47 < c < 7.9999999999999999e53Initial program 80.2%
cancel-sign-sub80.2%
cancel-sign-sub-inv80.2%
*-commutative80.2%
*-commutative80.2%
remove-double-neg80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in i around inf 46.9%
*-commutative46.9%
sub-neg46.9%
mul-1-neg46.9%
remove-double-neg46.9%
+-commutative46.9%
mul-1-neg46.9%
unsub-neg46.9%
*-commutative46.9%
Simplified46.9%
Final simplification56.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -4.3e-55) (not (<= i 1.02e+77))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4.3e-55) || !(i <= 1.02e+77)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-4.3d-55)) .or. (.not. (i <= 1.02d+77))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4.3e-55) || !(i <= 1.02e+77)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -4.3e-55) or not (i <= 1.02e+77): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -4.3e-55) || !(i <= 1.02e+77)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -4.3e-55) || ~((i <= 1.02e+77))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -4.3e-55], N[Not[LessEqual[i, 1.02e+77]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.3 \cdot 10^{-55} \lor \neg \left(i \leq 1.02 \cdot 10^{+77}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -4.3000000000000001e-55 or 1.02e77 < i Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in i around inf 62.7%
*-commutative62.7%
sub-neg62.7%
mul-1-neg62.7%
remove-double-neg62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y around 0 40.7%
if -4.3000000000000001e-55 < i < 1.02e77Initial program 74.6%
cancel-sign-sub74.6%
cancel-sign-sub-inv74.6%
*-commutative74.6%
*-commutative74.6%
remove-double-neg74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in i around 0 70.4%
Taylor expanded in j around inf 27.9%
Final simplification34.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -2.15e-55) (not (<= i 1.02e+77))) (* a (* b i)) (* t (* 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.15e-55) || !(i <= 1.02e+77)) {
tmp = a * (b * i);
} else {
tmp = t * (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.15d-55)) .or. (.not. (i <= 1.02d+77))) then
tmp = a * (b * i)
else
tmp = t * (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.15e-55) || !(i <= 1.02e+77)) {
tmp = a * (b * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -2.15e-55) or not (i <= 1.02e+77): tmp = a * (b * i) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -2.15e-55) || !(i <= 1.02e+77)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(t * 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.15e-55) || ~((i <= 1.02e+77))) tmp = a * (b * i); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -2.15e-55], N[Not[LessEqual[i, 1.02e+77]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.15 \cdot 10^{-55} \lor \neg \left(i \leq 1.02 \cdot 10^{+77}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -2.15000000000000005e-55 or 1.02e77 < i Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in i around inf 62.7%
*-commutative62.7%
sub-neg62.7%
mul-1-neg62.7%
remove-double-neg62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in y around 0 40.7%
if -2.15000000000000005e-55 < i < 1.02e77Initial program 74.6%
cancel-sign-sub74.6%
cancel-sign-sub-inv74.6%
*-commutative74.6%
*-commutative74.6%
remove-double-neg74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in i around 0 70.4%
Taylor expanded in c around inf 71.2%
Taylor expanded in j around inf 27.9%
*-commutative27.9%
associate-*l*29.9%
*-commutative29.9%
Simplified29.9%
Final simplification35.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 6e+124) (* a (* b i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 6e+124) {
tmp = a * (b * i);
} else {
tmp = 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) :: tmp
if (t <= 6d+124) then
tmp = a * (b * i)
else
tmp = 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 tmp;
if (t <= 6e+124) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 6e+124: tmp = a * (b * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 6e+124) tmp = Float64(a * Float64(b * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 6e+124) tmp = a * (b * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 6e+124], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6 \cdot 10^{+124}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < 5.9999999999999999e124Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in i around inf 42.1%
*-commutative42.1%
sub-neg42.1%
mul-1-neg42.1%
remove-double-neg42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in y around 0 28.6%
if 5.9999999999999999e124 < t Initial program 58.0%
cancel-sign-sub58.0%
cancel-sign-sub-inv58.0%
*-commutative58.0%
*-commutative58.0%
remove-double-neg58.0%
*-commutative58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in i around 0 58.2%
Taylor expanded in t around -inf 71.7%
mul-1-neg71.7%
distribute-rgt-neg-in71.7%
mul-1-neg71.7%
unsub-neg71.7%
Simplified71.7%
Taylor expanded in a around inf 37.0%
expm1-log1p-u16.5%
expm1-udef16.6%
associate-*l*18.6%
add-sqr-sqrt0.0%
sqrt-unprod12.0%
sqr-neg12.0%
sqrt-unprod5.5%
add-sqr-sqrt5.5%
Applied egg-rr5.5%
expm1-def5.7%
expm1-log1p17.0%
*-commutative17.0%
Simplified17.0%
Final simplification26.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in i around inf 37.3%
*-commutative37.3%
sub-neg37.3%
mul-1-neg37.3%
remove-double-neg37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in y around 0 24.3%
Final simplification24.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023176
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))