
(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 20 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
(-
(* j (- (* t c) (* y i)))
(- (* x (- (* t a) (* y z))) (* b (- (* a i) (* z c)))))))
(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 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c))));
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 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c))));
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 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c)))) 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(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(b * Float64(Float64(a * i) - Float64(z * c))))) 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 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c)))); 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $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 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - b \cdot \left(a \cdot i - z \cdot c\right)\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 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
Final simplification85.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* b (- (* a i) (* z c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= b -1.1e+71)
(+ t_3 t_2)
(if (<= b -1.7e-100)
(+ t_1 t_3)
(if (<= b -3e-117)
t_2
(if (<= b 1.3e+51)
(- t_1 (+ (* z (* b c)) (* x (- (* t a) (* y z)))))
(+ t_2 (* z (* x y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (b <= -1.1e+71) {
tmp = t_3 + t_2;
} else if (b <= -1.7e-100) {
tmp = t_1 + t_3;
} else if (b <= -3e-117) {
tmp = t_2;
} else if (b <= 1.3e+51) {
tmp = t_1 - ((z * (b * c)) + (x * ((t * a) - (y * z))));
} else {
tmp = t_2 + (z * (x * y));
}
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 = j * ((t * c) - (y * i))
t_2 = b * ((a * i) - (z * c))
t_3 = x * ((y * z) - (t * a))
if (b <= (-1.1d+71)) then
tmp = t_3 + t_2
else if (b <= (-1.7d-100)) then
tmp = t_1 + t_3
else if (b <= (-3d-117)) then
tmp = t_2
else if (b <= 1.3d+51) then
tmp = t_1 - ((z * (b * c)) + (x * ((t * a) - (y * z))))
else
tmp = t_2 + (z * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = b * ((a * i) - (z * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (b <= -1.1e+71) {
tmp = t_3 + t_2;
} else if (b <= -1.7e-100) {
tmp = t_1 + t_3;
} else if (b <= -3e-117) {
tmp = t_2;
} else if (b <= 1.3e+51) {
tmp = t_1 - ((z * (b * c)) + (x * ((t * a) - (y * z))));
} else {
tmp = t_2 + (z * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = b * ((a * i) - (z * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if b <= -1.1e+71: tmp = t_3 + t_2 elif b <= -1.7e-100: tmp = t_1 + t_3 elif b <= -3e-117: tmp = t_2 elif b <= 1.3e+51: tmp = t_1 - ((z * (b * c)) + (x * ((t * a) - (y * z)))) else: tmp = t_2 + (z * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (b <= -1.1e+71) tmp = Float64(t_3 + t_2); elseif (b <= -1.7e-100) tmp = Float64(t_1 + t_3); elseif (b <= -3e-117) tmp = t_2; elseif (b <= 1.3e+51) tmp = Float64(t_1 - Float64(Float64(z * Float64(b * c)) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))); else tmp = Float64(t_2 + Float64(z * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = b * ((a * i) - (z * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (b <= -1.1e+71) tmp = t_3 + t_2; elseif (b <= -1.7e-100) tmp = t_1 + t_3; elseif (b <= -3e-117) tmp = t_2; elseif (b <= 1.3e+51) tmp = t_1 - ((z * (b * c)) + (x * ((t * a) - (y * z)))); else tmp = t_2 + (z * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.1e+71], N[(t$95$3 + t$95$2), $MachinePrecision], If[LessEqual[b, -1.7e-100], N[(t$95$1 + t$95$3), $MachinePrecision], If[LessEqual[b, -3e-117], t$95$2, If[LessEqual[b, 1.3e+51], N[(t$95$1 - N[(N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -1.1 \cdot 10^{+71}:\\
\;\;\;\;t_3 + t_2\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-100}:\\
\;\;\;\;t_1 + t_3\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-117}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.3 \cdot 10^{+51}:\\
\;\;\;\;t_1 - \left(z \cdot \left(b \cdot c\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if b < -1.09999999999999997e71Initial program 81.2%
Taylor expanded in j around 0 86.1%
cancel-sign-sub-inv86.1%
*-commutative86.1%
cancel-sign-sub-inv86.1%
*-commutative86.1%
Simplified86.1%
if -1.09999999999999997e71 < b < -1.69999999999999988e-100Initial program 71.4%
Taylor expanded in b around 0 77.3%
if -1.69999999999999988e-100 < b < -2.99999999999999991e-117Initial program 59.7%
Taylor expanded in b around inf 80.4%
*-commutative80.4%
Simplified80.4%
if -2.99999999999999991e-117 < b < 1.3000000000000001e51Initial program 79.3%
Taylor expanded in c around inf 75.1%
*-commutative75.1%
*-commutative75.1%
associate-*l*77.7%
Simplified77.7%
if 1.3000000000000001e51 < b Initial program 70.8%
Taylor expanded in j around 0 77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in y around inf 77.4%
associate-*r*80.6%
*-commutative80.6%
Simplified80.6%
Final simplification79.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ t_1 (* z (* x y))))
(t_3 (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))))
(if (<= b -3.8e+85)
t_2
(if (<= b -1.7e-100)
t_3
(if (<= b -3e-117) t_1 (if (<= b 4.8e+51) t_3 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t_1 + (z * (x * y));
double t_3 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double tmp;
if (b <= -3.8e+85) {
tmp = t_2;
} else if (b <= -1.7e-100) {
tmp = t_3;
} else if (b <= -3e-117) {
tmp = t_1;
} else if (b <= 4.8e+51) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t_1 + (z * (x * y))
t_3 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
if (b <= (-3.8d+85)) then
tmp = t_2
else if (b <= (-1.7d-100)) then
tmp = t_3
else if (b <= (-3d-117)) then
tmp = t_1
else if (b <= 4.8d+51) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t_1 + (z * (x * y));
double t_3 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
double tmp;
if (b <= -3.8e+85) {
tmp = t_2;
} else if (b <= -1.7e-100) {
tmp = t_3;
} else if (b <= -3e-117) {
tmp = t_1;
} else if (b <= 4.8e+51) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t_1 + (z * (x * y)) t_3 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) tmp = 0 if b <= -3.8e+85: tmp = t_2 elif b <= -1.7e-100: tmp = t_3 elif b <= -3e-117: tmp = t_1 elif b <= 4.8e+51: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t_1 + Float64(z * Float64(x * y))) t_3 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (b <= -3.8e+85) tmp = t_2; elseif (b <= -1.7e-100) tmp = t_3; elseif (b <= -3e-117) tmp = t_1; elseif (b <= 4.8e+51) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t_1 + (z * (x * y)); t_3 = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); tmp = 0.0; if (b <= -3.8e+85) tmp = t_2; elseif (b <= -1.7e-100) tmp = t_3; elseif (b <= -3e-117) tmp = t_1; elseif (b <= 4.8e+51) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e+85], t$95$2, If[LessEqual[b, -1.7e-100], t$95$3, If[LessEqual[b, -3e-117], t$95$1, If[LessEqual[b, 4.8e+51], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t_1 + z \cdot \left(x \cdot y\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{+85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-100}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-117}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{+51}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -3.79999999999999992e85 or 4.7999999999999997e51 < b Initial program 74.6%
Taylor expanded in j around 0 80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around inf 76.8%
associate-*r*79.7%
*-commutative79.7%
Simplified79.7%
if -3.79999999999999992e85 < b < -1.69999999999999988e-100 or -2.99999999999999991e-117 < b < 4.7999999999999997e51Initial program 77.7%
Taylor expanded in b around 0 75.5%
if -1.69999999999999988e-100 < b < -2.99999999999999991e-117Initial program 59.7%
Taylor expanded in b around inf 80.4%
*-commutative80.4%
Simplified80.4%
Final simplification77.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (+ (* j (- (* t c) (* y i))) t_2))
(t_4 (+ t_2 t_1)))
(if (<= b -2.5e+71)
t_4
(if (<= b -2.7e-70)
t_3
(if (<= b -2.4e-153)
t_4
(if (<= b 4e+49) t_3 (+ t_1 (* z (* x y)))))))))
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 = x * ((y * z) - (t * a));
double t_3 = (j * ((t * c) - (y * i))) + t_2;
double t_4 = t_2 + t_1;
double tmp;
if (b <= -2.5e+71) {
tmp = t_4;
} else if (b <= -2.7e-70) {
tmp = t_3;
} else if (b <= -2.4e-153) {
tmp = t_4;
} else if (b <= 4e+49) {
tmp = t_3;
} else {
tmp = t_1 + (z * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = (j * ((t * c) - (y * i))) + t_2
t_4 = t_2 + t_1
if (b <= (-2.5d+71)) then
tmp = t_4
else if (b <= (-2.7d-70)) then
tmp = t_3
else if (b <= (-2.4d-153)) then
tmp = t_4
else if (b <= 4d+49) then
tmp = t_3
else
tmp = t_1 + (z * (x * y))
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 = x * ((y * z) - (t * a));
double t_3 = (j * ((t * c) - (y * i))) + t_2;
double t_4 = t_2 + t_1;
double tmp;
if (b <= -2.5e+71) {
tmp = t_4;
} else if (b <= -2.7e-70) {
tmp = t_3;
} else if (b <= -2.4e-153) {
tmp = t_4;
} else if (b <= 4e+49) {
tmp = t_3;
} else {
tmp = t_1 + (z * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = (j * ((t * c) - (y * i))) + t_2 t_4 = t_2 + t_1 tmp = 0 if b <= -2.5e+71: tmp = t_4 elif b <= -2.7e-70: tmp = t_3 elif b <= -2.4e-153: tmp = t_4 elif b <= 4e+49: tmp = t_3 else: tmp = t_1 + (z * (x * y)) 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(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_2) t_4 = Float64(t_2 + t_1) tmp = 0.0 if (b <= -2.5e+71) tmp = t_4; elseif (b <= -2.7e-70) tmp = t_3; elseif (b <= -2.4e-153) tmp = t_4; elseif (b <= 4e+49) tmp = t_3; else tmp = Float64(t_1 + Float64(z * Float64(x * y))); 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 = x * ((y * z) - (t * a)); t_3 = (j * ((t * c) - (y * i))) + t_2; t_4 = t_2 + t_1; tmp = 0.0; if (b <= -2.5e+71) tmp = t_4; elseif (b <= -2.7e-70) tmp = t_3; elseif (b <= -2.4e-153) tmp = t_4; elseif (b <= 4e+49) tmp = t_3; else tmp = t_1 + (z * (x * y)); 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 + t$95$1), $MachinePrecision]}, If[LessEqual[b, -2.5e+71], t$95$4, If[LessEqual[b, -2.7e-70], t$95$3, If[LessEqual[b, -2.4e-153], t$95$4, If[LessEqual[b, 4e+49], t$95$3, N[(t$95$1 + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right) + t_2\\
t_4 := t_2 + t_1\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+71}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-70}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-153}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+49}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 + z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if b < -2.49999999999999986e71 or -2.7000000000000001e-70 < b < -2.4000000000000002e-153Initial program 80.6%
Taylor expanded in j around 0 84.0%
cancel-sign-sub-inv84.0%
*-commutative84.0%
cancel-sign-sub-inv84.0%
*-commutative84.0%
Simplified84.0%
if -2.49999999999999986e71 < b < -2.7000000000000001e-70 or -2.4000000000000002e-153 < b < 3.99999999999999979e49Initial program 76.5%
Taylor expanded in b around 0 76.2%
if 3.99999999999999979e49 < b Initial program 70.8%
Taylor expanded in j around 0 77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in y around inf 77.4%
associate-*r*80.6%
*-commutative80.6%
Simplified80.6%
Final simplification79.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* x t))) (t_2 (* (* z c) (- b))))
(if (<= x -5.2e+159)
t_1
(if (<= x -4e+45)
(* x (* y z))
(if (<= x -0.047)
t_1
(if (<= x -2.65e-95)
t_2
(if (<= x -6.6e-205)
(* b (* a i))
(if (<= x 2.7e-285)
t_2
(if (<= x 5.2e+62)
(* a (* b i))
(if (<= x 2.7e+220) t_1 (* z (* x y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = (z * c) * -b;
double tmp;
if (x <= -5.2e+159) {
tmp = t_1;
} else if (x <= -4e+45) {
tmp = x * (y * z);
} else if (x <= -0.047) {
tmp = t_1;
} else if (x <= -2.65e-95) {
tmp = t_2;
} else if (x <= -6.6e-205) {
tmp = b * (a * i);
} else if (x <= 2.7e-285) {
tmp = t_2;
} else if (x <= 5.2e+62) {
tmp = a * (b * i);
} else if (x <= 2.7e+220) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
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 = -a * (x * t)
t_2 = (z * c) * -b
if (x <= (-5.2d+159)) then
tmp = t_1
else if (x <= (-4d+45)) then
tmp = x * (y * z)
else if (x <= (-0.047d0)) then
tmp = t_1
else if (x <= (-2.65d-95)) then
tmp = t_2
else if (x <= (-6.6d-205)) then
tmp = b * (a * i)
else if (x <= 2.7d-285) then
tmp = t_2
else if (x <= 5.2d+62) then
tmp = a * (b * i)
else if (x <= 2.7d+220) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = (z * c) * -b;
double tmp;
if (x <= -5.2e+159) {
tmp = t_1;
} else if (x <= -4e+45) {
tmp = x * (y * z);
} else if (x <= -0.047) {
tmp = t_1;
} else if (x <= -2.65e-95) {
tmp = t_2;
} else if (x <= -6.6e-205) {
tmp = b * (a * i);
} else if (x <= 2.7e-285) {
tmp = t_2;
} else if (x <= 5.2e+62) {
tmp = a * (b * i);
} else if (x <= 2.7e+220) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -a * (x * t) t_2 = (z * c) * -b tmp = 0 if x <= -5.2e+159: tmp = t_1 elif x <= -4e+45: tmp = x * (y * z) elif x <= -0.047: tmp = t_1 elif x <= -2.65e-95: tmp = t_2 elif x <= -6.6e-205: tmp = b * (a * i) elif x <= 2.7e-285: tmp = t_2 elif x <= 5.2e+62: tmp = a * (b * i) elif x <= 2.7e+220: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(x * t)) t_2 = Float64(Float64(z * c) * Float64(-b)) tmp = 0.0 if (x <= -5.2e+159) tmp = t_1; elseif (x <= -4e+45) tmp = Float64(x * Float64(y * z)); elseif (x <= -0.047) tmp = t_1; elseif (x <= -2.65e-95) tmp = t_2; elseif (x <= -6.6e-205) tmp = Float64(b * Float64(a * i)); elseif (x <= 2.7e-285) tmp = t_2; elseif (x <= 5.2e+62) tmp = Float64(a * Float64(b * i)); elseif (x <= 2.7e+220) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -a * (x * t); t_2 = (z * c) * -b; tmp = 0.0; if (x <= -5.2e+159) tmp = t_1; elseif (x <= -4e+45) tmp = x * (y * z); elseif (x <= -0.047) tmp = t_1; elseif (x <= -2.65e-95) tmp = t_2; elseif (x <= -6.6e-205) tmp = b * (a * i); elseif (x <= 2.7e-285) tmp = t_2; elseif (x <= 5.2e+62) tmp = a * (b * i); elseif (x <= 2.7e+220) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, If[LessEqual[x, -5.2e+159], t$95$1, If[LessEqual[x, -4e+45], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -0.047], t$95$1, If[LessEqual[x, -2.65e-95], t$95$2, If[LessEqual[x, -6.6e-205], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-285], t$95$2, If[LessEqual[x, 5.2e+62], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+220], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(x \cdot t\right)\\
t_2 := \left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+159}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4 \cdot 10^{+45}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -0.047:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.65 \cdot 10^{-95}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-205}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-285}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{+62}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -5.2000000000000001e159 or -3.9999999999999997e45 < x < -0.047 or 5.19999999999999968e62 < x < 2.6999999999999998e220Initial program 78.1%
Taylor expanded in j around 0 71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in t around inf 52.8%
mul-1-neg52.8%
distribute-rgt-neg-in52.8%
distribute-rgt-neg-in52.8%
Simplified52.8%
if -5.2000000000000001e159 < x < -3.9999999999999997e45Initial program 76.2%
Taylor expanded in j around 0 69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in y around inf 53.2%
*-commutative53.2%
Simplified53.2%
if -0.047 < x < -2.6499999999999999e-95 or -6.5999999999999998e-205 < x < 2.6999999999999998e-285Initial program 71.1%
Taylor expanded in b around inf 57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in i around 0 43.6%
mul-1-neg43.6%
distribute-lft-neg-out43.6%
*-commutative43.6%
Simplified43.6%
if -2.6499999999999999e-95 < x < -6.5999999999999998e-205Initial program 72.3%
Taylor expanded in b around inf 41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in i around inf 36.7%
if 2.6999999999999998e-285 < x < 5.19999999999999968e62Initial program 75.2%
Taylor expanded in j around 0 66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in i around inf 44.0%
if 2.6999999999999998e220 < x Initial program 86.8%
Taylor expanded in j around 0 82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in y around inf 49.3%
associate-*r*53.5%
*-commutative53.5%
Simplified53.5%
Final simplification47.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* x t))) (t_2 (* z (* b (- c)))))
(if (<= x -1.12e+161)
t_1
(if (<= x -5e+50)
(* x (* y z))
(if (<= x -0.15)
t_1
(if (<= x -8.5e-75)
t_2
(if (<= x -5e-177)
(* c (* t j))
(if (<= x 1.5e-275)
t_2
(if (<= x 5e+63)
(* a (* b i))
(if (<= x 2.4e+220) t_1 (* z (* x y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = z * (b * -c);
double tmp;
if (x <= -1.12e+161) {
tmp = t_1;
} else if (x <= -5e+50) {
tmp = x * (y * z);
} else if (x <= -0.15) {
tmp = t_1;
} else if (x <= -8.5e-75) {
tmp = t_2;
} else if (x <= -5e-177) {
tmp = c * (t * j);
} else if (x <= 1.5e-275) {
tmp = t_2;
} else if (x <= 5e+63) {
tmp = a * (b * i);
} else if (x <= 2.4e+220) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
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 = -a * (x * t)
t_2 = z * (b * -c)
if (x <= (-1.12d+161)) then
tmp = t_1
else if (x <= (-5d+50)) then
tmp = x * (y * z)
else if (x <= (-0.15d0)) then
tmp = t_1
else if (x <= (-8.5d-75)) then
tmp = t_2
else if (x <= (-5d-177)) then
tmp = c * (t * j)
else if (x <= 1.5d-275) then
tmp = t_2
else if (x <= 5d+63) then
tmp = a * (b * i)
else if (x <= 2.4d+220) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = z * (b * -c);
double tmp;
if (x <= -1.12e+161) {
tmp = t_1;
} else if (x <= -5e+50) {
tmp = x * (y * z);
} else if (x <= -0.15) {
tmp = t_1;
} else if (x <= -8.5e-75) {
tmp = t_2;
} else if (x <= -5e-177) {
tmp = c * (t * j);
} else if (x <= 1.5e-275) {
tmp = t_2;
} else if (x <= 5e+63) {
tmp = a * (b * i);
} else if (x <= 2.4e+220) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -a * (x * t) t_2 = z * (b * -c) tmp = 0 if x <= -1.12e+161: tmp = t_1 elif x <= -5e+50: tmp = x * (y * z) elif x <= -0.15: tmp = t_1 elif x <= -8.5e-75: tmp = t_2 elif x <= -5e-177: tmp = c * (t * j) elif x <= 1.5e-275: tmp = t_2 elif x <= 5e+63: tmp = a * (b * i) elif x <= 2.4e+220: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(x * t)) t_2 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (x <= -1.12e+161) tmp = t_1; elseif (x <= -5e+50) tmp = Float64(x * Float64(y * z)); elseif (x <= -0.15) tmp = t_1; elseif (x <= -8.5e-75) tmp = t_2; elseif (x <= -5e-177) tmp = Float64(c * Float64(t * j)); elseif (x <= 1.5e-275) tmp = t_2; elseif (x <= 5e+63) tmp = Float64(a * Float64(b * i)); elseif (x <= 2.4e+220) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -a * (x * t); t_2 = z * (b * -c); tmp = 0.0; if (x <= -1.12e+161) tmp = t_1; elseif (x <= -5e+50) tmp = x * (y * z); elseif (x <= -0.15) tmp = t_1; elseif (x <= -8.5e-75) tmp = t_2; elseif (x <= -5e-177) tmp = c * (t * j); elseif (x <= 1.5e-275) tmp = t_2; elseif (x <= 5e+63) tmp = a * (b * i); elseif (x <= 2.4e+220) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.12e+161], t$95$1, If[LessEqual[x, -5e+50], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -0.15], t$95$1, If[LessEqual[x, -8.5e-75], t$95$2, If[LessEqual[x, -5e-177], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-275], t$95$2, If[LessEqual[x, 5e+63], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+220], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(x \cdot t\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;x \leq -1.12 \cdot 10^{+161}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5 \cdot 10^{+50}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -0.15:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-177}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-275}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+63}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.12e161 or -5e50 < x < -0.149999999999999994 or 5.00000000000000011e63 < x < 2.3999999999999998e220Initial program 78.1%
Taylor expanded in j around 0 71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in t around inf 52.8%
mul-1-neg52.8%
distribute-rgt-neg-in52.8%
distribute-rgt-neg-in52.8%
Simplified52.8%
if -1.12e161 < x < -5e50Initial program 76.2%
Taylor expanded in j around 0 69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
cancel-sign-sub-inv69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in y around inf 53.2%
*-commutative53.2%
Simplified53.2%
if -0.149999999999999994 < x < -8.5000000000000001e-75 or -5e-177 < x < 1.5e-275Initial program 69.4%
Taylor expanded in z around inf 57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in y around 0 45.3%
neg-mul-145.3%
distribute-rgt-neg-in45.3%
Simplified45.3%
if -8.5000000000000001e-75 < x < -5e-177Initial program 76.4%
Taylor expanded in t around -inf 42.1%
mul-1-neg42.1%
*-commutative42.1%
distribute-rgt-neg-in42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in x around 0 37.1%
*-commutative37.1%
Simplified37.1%
if 1.5e-275 < x < 5.00000000000000011e63Initial program 75.2%
Taylor expanded in j around 0 66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in i around inf 44.0%
if 2.3999999999999998e220 < x Initial program 86.8%
Taylor expanded in j around 0 82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in y around inf 49.3%
associate-*r*53.5%
*-commutative53.5%
Simplified53.5%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* (- a) (* x t))))
(if (<= x -2.15e+161)
t_2
(if (<= x -1.55e+90)
(* x (* y z))
(if (<= x 1.65e-302)
t_1
(if (<= x 1.45e+64)
(* b (- (* a i) (* z c)))
(if (<= x 2e+170) t_2 (if (<= x 2.25e+234) t_1 (* z (* x y))))))))))
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 * (x * t);
double tmp;
if (x <= -2.15e+161) {
tmp = t_2;
} else if (x <= -1.55e+90) {
tmp = x * (y * z);
} else if (x <= 1.65e-302) {
tmp = t_1;
} else if (x <= 1.45e+64) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2e+170) {
tmp = t_2;
} else if (x <= 2.25e+234) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
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 = -a * (x * t)
if (x <= (-2.15d+161)) then
tmp = t_2
else if (x <= (-1.55d+90)) then
tmp = x * (y * z)
else if (x <= 1.65d-302) then
tmp = t_1
else if (x <= 1.45d+64) then
tmp = b * ((a * i) - (z * c))
else if (x <= 2d+170) then
tmp = t_2
else if (x <= 2.25d+234) then
tmp = t_1
else
tmp = z * (x * y)
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 * (x * t);
double tmp;
if (x <= -2.15e+161) {
tmp = t_2;
} else if (x <= -1.55e+90) {
tmp = x * (y * z);
} else if (x <= 1.65e-302) {
tmp = t_1;
} else if (x <= 1.45e+64) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2e+170) {
tmp = t_2;
} else if (x <= 2.25e+234) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = -a * (x * t) tmp = 0 if x <= -2.15e+161: tmp = t_2 elif x <= -1.55e+90: tmp = x * (y * z) elif x <= 1.65e-302: tmp = t_1 elif x <= 1.45e+64: tmp = b * ((a * i) - (z * c)) elif x <= 2e+170: tmp = t_2 elif x <= 2.25e+234: tmp = t_1 else: tmp = z * (x * y) 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(Float64(-a) * Float64(x * t)) tmp = 0.0 if (x <= -2.15e+161) tmp = t_2; elseif (x <= -1.55e+90) tmp = Float64(x * Float64(y * z)); elseif (x <= 1.65e-302) tmp = t_1; elseif (x <= 1.45e+64) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 2e+170) tmp = t_2; elseif (x <= 2.25e+234) tmp = t_1; else tmp = Float64(z * Float64(x * y)); 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 * (x * t); tmp = 0.0; if (x <= -2.15e+161) tmp = t_2; elseif (x <= -1.55e+90) tmp = x * (y * z); elseif (x <= 1.65e-302) tmp = t_1; elseif (x <= 1.45e+64) tmp = b * ((a * i) - (z * c)); elseif (x <= 2e+170) tmp = t_2; elseif (x <= 2.25e+234) tmp = t_1; else tmp = z * (x * y); 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[(x * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.15e+161], t$95$2, If[LessEqual[x, -1.55e+90], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e-302], t$95$1, If[LessEqual[x, 1.45e+64], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+170], t$95$2, If[LessEqual[x, 2.25e+234], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := \left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+161}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-302}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+64}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+170}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{+234}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.15e161 or 1.44999999999999997e64 < x < 2.00000000000000007e170Initial program 76.9%
Taylor expanded in j around 0 70.6%
cancel-sign-sub-inv70.6%
*-commutative70.6%
cancel-sign-sub-inv70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in t around inf 52.5%
mul-1-neg52.5%
distribute-rgt-neg-in52.5%
distribute-rgt-neg-in52.5%
Simplified52.5%
if -2.15e161 < x < -1.54999999999999994e90Initial program 71.2%
Taylor expanded in j around 0 71.7%
cancel-sign-sub-inv71.7%
*-commutative71.7%
cancel-sign-sub-inv71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in y around inf 64.7%
*-commutative64.7%
Simplified64.7%
if -1.54999999999999994e90 < x < 1.6500000000000001e-302 or 2.00000000000000007e170 < x < 2.24999999999999991e234Initial program 76.1%
Taylor expanded in c around inf 56.4%
*-commutative56.4%
Simplified56.4%
if 1.6500000000000001e-302 < x < 1.44999999999999997e64Initial program 75.6%
Taylor expanded in b around inf 56.6%
*-commutative56.6%
Simplified56.6%
if 2.24999999999999991e234 < x Initial program 81.2%
Taylor expanded in j around 0 81.4%
cancel-sign-sub-inv81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around inf 51.5%
associate-*r*57.5%
*-commutative57.5%
Simplified57.5%
Final simplification56.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- a) (* x t))) (t_2 (* x (* y z))) (t_3 (* t (* c j))))
(if (<= c -2e+91)
t_3
(if (<= c -2.35e-141)
t_1
(if (<= c -1.1e-251)
(* b (* a i))
(if (<= c 1.95e-290)
t_1
(if (<= c 1.1e-195)
t_2
(if (<= c 3.4e-17) (* i (* a b)) (if (<= c 1e+52) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = x * (y * z);
double t_3 = t * (c * j);
double tmp;
if (c <= -2e+91) {
tmp = t_3;
} else if (c <= -2.35e-141) {
tmp = t_1;
} else if (c <= -1.1e-251) {
tmp = b * (a * i);
} else if (c <= 1.95e-290) {
tmp = t_1;
} else if (c <= 1.1e-195) {
tmp = t_2;
} else if (c <= 3.4e-17) {
tmp = i * (a * b);
} else if (c <= 1e+52) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = -a * (x * t)
t_2 = x * (y * z)
t_3 = t * (c * j)
if (c <= (-2d+91)) then
tmp = t_3
else if (c <= (-2.35d-141)) then
tmp = t_1
else if (c <= (-1.1d-251)) then
tmp = b * (a * i)
else if (c <= 1.95d-290) then
tmp = t_1
else if (c <= 1.1d-195) then
tmp = t_2
else if (c <= 3.4d-17) then
tmp = i * (a * b)
else if (c <= 1d+52) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -a * (x * t);
double t_2 = x * (y * z);
double t_3 = t * (c * j);
double tmp;
if (c <= -2e+91) {
tmp = t_3;
} else if (c <= -2.35e-141) {
tmp = t_1;
} else if (c <= -1.1e-251) {
tmp = b * (a * i);
} else if (c <= 1.95e-290) {
tmp = t_1;
} else if (c <= 1.1e-195) {
tmp = t_2;
} else if (c <= 3.4e-17) {
tmp = i * (a * b);
} else if (c <= 1e+52) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -a * (x * t) t_2 = x * (y * z) t_3 = t * (c * j) tmp = 0 if c <= -2e+91: tmp = t_3 elif c <= -2.35e-141: tmp = t_1 elif c <= -1.1e-251: tmp = b * (a * i) elif c <= 1.95e-290: tmp = t_1 elif c <= 1.1e-195: tmp = t_2 elif c <= 3.4e-17: tmp = i * (a * b) elif c <= 1e+52: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-a) * Float64(x * t)) t_2 = Float64(x * Float64(y * z)) t_3 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -2e+91) tmp = t_3; elseif (c <= -2.35e-141) tmp = t_1; elseif (c <= -1.1e-251) tmp = Float64(b * Float64(a * i)); elseif (c <= 1.95e-290) tmp = t_1; elseif (c <= 1.1e-195) tmp = t_2; elseif (c <= 3.4e-17) tmp = Float64(i * Float64(a * b)); elseif (c <= 1e+52) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -a * (x * t); t_2 = x * (y * z); t_3 = t * (c * j); tmp = 0.0; if (c <= -2e+91) tmp = t_3; elseif (c <= -2.35e-141) tmp = t_1; elseif (c <= -1.1e-251) tmp = b * (a * i); elseif (c <= 1.95e-290) tmp = t_1; elseif (c <= 1.1e-195) tmp = t_2; elseif (c <= 3.4e-17) tmp = i * (a * b); elseif (c <= 1e+52) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2e+91], t$95$3, If[LessEqual[c, -2.35e-141], t$95$1, If[LessEqual[c, -1.1e-251], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.95e-290], t$95$1, If[LessEqual[c, 1.1e-195], t$95$2, If[LessEqual[c, 3.4e-17], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e+52], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-a\right) \cdot \left(x \cdot t\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
t_3 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -2 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -2.35 \cdot 10^{-141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-251}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 1.95 \cdot 10^{-290}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-195}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{-17}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 10^{+52}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -2.00000000000000016e91 or 9.9999999999999999e51 < c Initial program 68.0%
Taylor expanded in t around -inf 48.3%
mul-1-neg48.3%
*-commutative48.3%
distribute-rgt-neg-in48.3%
+-commutative48.3%
mul-1-neg48.3%
unsub-neg48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in x around 0 35.3%
associate-*r*41.0%
*-commutative41.0%
Simplified41.0%
if -2.00000000000000016e91 < c < -2.3499999999999999e-141 or -1.1e-251 < c < 1.94999999999999986e-290Initial program 84.8%
Taylor expanded in j around 0 77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in t around inf 39.6%
mul-1-neg39.6%
distribute-rgt-neg-in39.6%
distribute-rgt-neg-in39.6%
Simplified39.6%
if -2.3499999999999999e-141 < c < -1.1e-251Initial program 74.5%
Taylor expanded in b around inf 54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in i around inf 47.9%
if 1.94999999999999986e-290 < c < 1.10000000000000003e-195 or 3.3999999999999998e-17 < c < 9.9999999999999999e51Initial program 86.4%
Taylor expanded in j around 0 79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around inf 45.7%
*-commutative45.7%
Simplified45.7%
if 1.10000000000000003e-195 < c < 3.3999999999999998e-17Initial program 71.2%
Taylor expanded in i around inf 51.4%
distribute-lft-out--51.4%
Simplified51.4%
Taylor expanded in j around 0 51.0%
neg-mul-151.0%
distribute-lft-neg-in51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in i around 0 48.3%
associate-*r*51.0%
Simplified51.0%
Final simplification43.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.55e+40)
t_1
(if (<= b -1.1e-71)
(* x (* y z))
(if (<= b -1.05e-138)
t_1
(if (<= b -5e-292)
(* (- a) (* x t))
(if (<= b 6.6e-60) (* z (* x y)) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.55e+40) {
tmp = t_1;
} else if (b <= -1.1e-71) {
tmp = x * (y * z);
} else if (b <= -1.05e-138) {
tmp = t_1;
} else if (b <= -5e-292) {
tmp = -a * (x * t);
} else if (b <= 6.6e-60) {
tmp = z * (x * y);
} 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 = b * ((a * i) - (z * c))
if (b <= (-2.55d+40)) then
tmp = t_1
else if (b <= (-1.1d-71)) then
tmp = x * (y * z)
else if (b <= (-1.05d-138)) then
tmp = t_1
else if (b <= (-5d-292)) then
tmp = -a * (x * t)
else if (b <= 6.6d-60) then
tmp = z * (x * y)
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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.55e+40) {
tmp = t_1;
} else if (b <= -1.1e-71) {
tmp = x * (y * z);
} else if (b <= -1.05e-138) {
tmp = t_1;
} else if (b <= -5e-292) {
tmp = -a * (x * t);
} else if (b <= 6.6e-60) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.55e+40: tmp = t_1 elif b <= -1.1e-71: tmp = x * (y * z) elif b <= -1.05e-138: tmp = t_1 elif b <= -5e-292: tmp = -a * (x * t) elif b <= 6.6e-60: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.55e+40) tmp = t_1; elseif (b <= -1.1e-71) tmp = Float64(x * Float64(y * z)); elseif (b <= -1.05e-138) tmp = t_1; elseif (b <= -5e-292) tmp = Float64(Float64(-a) * Float64(x * t)); elseif (b <= 6.6e-60) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.55e+40) tmp = t_1; elseif (b <= -1.1e-71) tmp = x * (y * z); elseif (b <= -1.05e-138) tmp = t_1; elseif (b <= -5e-292) tmp = -a * (x * t); elseif (b <= 6.6e-60) tmp = z * (x * y); else tmp = t_1; 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]}, If[LessEqual[b, -2.55e+40], t$95$1, If[LessEqual[b, -1.1e-71], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.05e-138], t$95$1, If[LessEqual[b, -5e-292], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e-60], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.55 \cdot 10^{+40}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-71}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-292}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{-60}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.54999999999999979e40 or -1.09999999999999999e-71 < b < -1.04999999999999993e-138 or 6.5999999999999996e-60 < b Initial program 76.7%
Taylor expanded in b around inf 62.2%
*-commutative62.2%
Simplified62.2%
if -2.54999999999999979e40 < b < -1.09999999999999999e-71Initial program 65.1%
Taylor expanded in j around 0 61.3%
cancel-sign-sub-inv61.3%
*-commutative61.3%
cancel-sign-sub-inv61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in y around inf 38.1%
*-commutative38.1%
Simplified38.1%
if -1.04999999999999993e-138 < b < -4.99999999999999981e-292Initial program 80.4%
Taylor expanded in j around 0 67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
cancel-sign-sub-inv67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in t around inf 46.7%
mul-1-neg46.7%
distribute-rgt-neg-in46.7%
distribute-rgt-neg-in46.7%
Simplified46.7%
if -4.99999999999999981e-292 < b < 6.5999999999999996e-60Initial program 76.8%
Taylor expanded in j around 0 57.9%
cancel-sign-sub-inv57.9%
*-commutative57.9%
cancel-sign-sub-inv57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in y around inf 38.7%
associate-*r*43.0%
*-commutative43.0%
Simplified43.0%
Final simplification54.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1e+84) (not (<= b 1.2e+55))) (* b (- (* a i) (* z c))) (+ (* x (- (* y z) (* t a))) (* 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 ((b <= -1e+84) || !(b <= 1.2e+55)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (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 ((b <= (-1d+84)) .or. (.not. (b <= 1.2d+55))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) + (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 ((b <= -1e+84) || !(b <= 1.2e+55)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (c * (t * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1e+84) or not (b <= 1.2e+55): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) + (c * (t * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1e+84) || !(b <= 1.2e+55)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + 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 ((b <= -1e+84) || ~((b <= 1.2e+55))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) + (c * (t * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1e+84], N[Not[LessEqual[b, 1.2e+55]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+84} \lor \neg \left(b \leq 1.2 \cdot 10^{+55}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -1.00000000000000006e84 or 1.2e55 < b Initial program 74.3%
Taylor expanded in b around inf 72.8%
*-commutative72.8%
Simplified72.8%
if -1.00000000000000006e84 < b < 1.2e55Initial program 77.3%
Taylor expanded in i around 0 68.0%
Taylor expanded in b around 0 67.1%
Final simplification69.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.22e+85) (not (<= b 9e+47))) (+ (* b (- (* a i) (* z c))) (* z (* x y))) (+ (* x (- (* y z) (* t a))) (* 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 ((b <= -1.22e+85) || !(b <= 9e+47)) {
tmp = (b * ((a * i) - (z * c))) + (z * (x * y));
} else {
tmp = (x * ((y * z) - (t * a))) + (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 ((b <= (-1.22d+85)) .or. (.not. (b <= 9d+47))) then
tmp = (b * ((a * i) - (z * c))) + (z * (x * y))
else
tmp = (x * ((y * z) - (t * a))) + (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 ((b <= -1.22e+85) || !(b <= 9e+47)) {
tmp = (b * ((a * i) - (z * c))) + (z * (x * y));
} else {
tmp = (x * ((y * z) - (t * a))) + (c * (t * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.22e+85) or not (b <= 9e+47): tmp = (b * ((a * i) - (z * c))) + (z * (x * y)) else: tmp = (x * ((y * z) - (t * a))) + (c * (t * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.22e+85) || !(b <= 9e+47)) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(z * Float64(x * y))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + 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 ((b <= -1.22e+85) || ~((b <= 9e+47))) tmp = (b * ((a * i) - (z * c))) + (z * (x * y)); else tmp = (x * ((y * z) - (t * a))) + (c * (t * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.22e+85], N[Not[LessEqual[b, 9e+47]], $MachinePrecision]], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.22 \cdot 10^{+85} \lor \neg \left(b \leq 9 \cdot 10^{+47}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -1.22e85 or 8.99999999999999958e47 < b Initial program 74.6%
Taylor expanded in j around 0 80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around inf 76.8%
associate-*r*79.7%
*-commutative79.7%
Simplified79.7%
if -1.22e85 < b < 8.99999999999999958e47Initial program 77.2%
Taylor expanded in i around 0 67.8%
Taylor expanded in b around 0 66.9%
Final simplification72.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.15e+134)
t_2
(if (<= b 2e-300)
t_1
(if (<= b 2.2e-162) (* z (* x y)) (if (<= b 1.85e+52) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e+134) {
tmp = t_2;
} else if (b <= 2e-300) {
tmp = t_1;
} else if (b <= 2.2e-162) {
tmp = z * (x * y);
} else if (b <= 1.85e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.15d+134)) then
tmp = t_2
else if (b <= 2d-300) then
tmp = t_1
else if (b <= 2.2d-162) then
tmp = z * (x * y)
else if (b <= 1.85d+52) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e+134) {
tmp = t_2;
} else if (b <= 2e-300) {
tmp = t_1;
} else if (b <= 2.2e-162) {
tmp = z * (x * y);
} else if (b <= 1.85e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.15e+134: tmp = t_2 elif b <= 2e-300: tmp = t_1 elif b <= 2.2e-162: tmp = z * (x * y) elif b <= 1.85e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.15e+134) tmp = t_2; elseif (b <= 2e-300) tmp = t_1; elseif (b <= 2.2e-162) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.85e+52) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.15e+134) tmp = t_2; elseif (b <= 2e-300) tmp = t_1; elseif (b <= 2.2e-162) tmp = z * (x * y); elseif (b <= 1.85e+52) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e+134], t$95$2, If[LessEqual[b, 2e-300], t$95$1, If[LessEqual[b, 2.2e-162], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-162}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.1499999999999999e134 or 1.85e52 < b Initial program 74.3%
Taylor expanded in b around inf 74.7%
*-commutative74.7%
Simplified74.7%
if -1.1499999999999999e134 < b < 2.00000000000000005e-300 or 2.1999999999999999e-162 < b < 1.85e52Initial program 78.6%
Taylor expanded in c around inf 73.3%
*-commutative73.3%
*-commutative73.3%
associate-*l*75.3%
Simplified75.3%
Taylor expanded in t around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
Simplified50.1%
if 2.00000000000000005e-300 < b < 2.1999999999999999e-162Initial program 67.1%
Taylor expanded in j around 0 62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in y around inf 42.3%
associate-*r*51.3%
*-commutative51.3%
Simplified51.3%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -7.2e+42)
t_1
(if (<= b 6.8e-298)
(* x (- (* y z) (* t a)))
(if (<= b 3.4e-9) (+ (* z (* x y)) (* 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.2e+42) {
tmp = t_1;
} else if (b <= 6.8e-298) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 3.4e-9) {
tmp = (z * (x * y)) + (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 = b * ((a * i) - (z * c))
if (b <= (-7.2d+42)) then
tmp = t_1
else if (b <= 6.8d-298) then
tmp = x * ((y * z) - (t * a))
else if (b <= 3.4d-9) then
tmp = (z * (x * y)) + (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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.2e+42) {
tmp = t_1;
} else if (b <= 6.8e-298) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 3.4e-9) {
tmp = (z * (x * y)) + (c * (t * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.2e+42: tmp = t_1 elif b <= 6.8e-298: tmp = x * ((y * z) - (t * a)) elif b <= 3.4e-9: tmp = (z * (x * y)) + (c * (t * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.2e+42) tmp = t_1; elseif (b <= 6.8e-298) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 3.4e-9) tmp = Float64(Float64(z * Float64(x * y)) + 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 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.2e+42) tmp = t_1; elseif (b <= 6.8e-298) tmp = x * ((y * z) - (t * a)); elseif (b <= 3.4e-9) tmp = (z * (x * y)) + (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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+42], t$95$1, If[LessEqual[b, 6.8e-298], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e-9], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-298}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{-9}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -7.2000000000000002e42 or 3.3999999999999998e-9 < b Initial program 75.8%
Taylor expanded in b around inf 66.1%
*-commutative66.1%
Simplified66.1%
if -7.2000000000000002e42 < b < 6.8e-298Initial program 74.6%
Taylor expanded in j around 0 66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in x around inf 62.5%
*-commutative62.5%
Simplified62.5%
if 6.8e-298 < b < 3.3999999999999998e-9Initial program 79.7%
Taylor expanded in i around 0 65.4%
Taylor expanded in b around 0 65.0%
Taylor expanded in y around inf 56.6%
associate-*r*62.5%
*-commutative62.5%
Simplified62.5%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* t (* c j))))
(if (<= c -2.6e+103)
t_2
(if (<= c 7.2e-293)
(* b (* a i))
(if (<= c 1e-184)
t_1
(if (<= c 1.7e-12) (* a (* b i)) (if (<= c 1.1e+52) 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);
double t_2 = t * (c * j);
double tmp;
if (c <= -2.6e+103) {
tmp = t_2;
} else if (c <= 7.2e-293) {
tmp = b * (a * i);
} else if (c <= 1e-184) {
tmp = t_1;
} else if (c <= 1.7e-12) {
tmp = a * (b * i);
} else if (c <= 1.1e+52) {
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_2 = t * (c * j)
if (c <= (-2.6d+103)) then
tmp = t_2
else if (c <= 7.2d-293) then
tmp = b * (a * i)
else if (c <= 1d-184) then
tmp = t_1
else if (c <= 1.7d-12) then
tmp = a * (b * i)
else if (c <= 1.1d+52) 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);
double t_2 = t * (c * j);
double tmp;
if (c <= -2.6e+103) {
tmp = t_2;
} else if (c <= 7.2e-293) {
tmp = b * (a * i);
} else if (c <= 1e-184) {
tmp = t_1;
} else if (c <= 1.7e-12) {
tmp = a * (b * i);
} else if (c <= 1.1e+52) {
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_2 = t * (c * j) tmp = 0 if c <= -2.6e+103: tmp = t_2 elif c <= 7.2e-293: tmp = b * (a * i) elif c <= 1e-184: tmp = t_1 elif c <= 1.7e-12: tmp = a * (b * i) elif c <= 1.1e+52: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -2.6e+103) tmp = t_2; elseif (c <= 7.2e-293) tmp = Float64(b * Float64(a * i)); elseif (c <= 1e-184) tmp = t_1; elseif (c <= 1.7e-12) tmp = Float64(a * Float64(b * i)); elseif (c <= 1.1e+52) 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_2 = t * (c * j); tmp = 0.0; if (c <= -2.6e+103) tmp = t_2; elseif (c <= 7.2e-293) tmp = b * (a * i); elseif (c <= 1e-184) tmp = t_1; elseif (c <= 1.7e-12) tmp = a * (b * i); elseif (c <= 1.1e+52) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.6e+103], t$95$2, If[LessEqual[c, 7.2e-293], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e-184], t$95$1, If[LessEqual[c, 1.7e-12], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.1e+52], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -2.6 \cdot 10^{+103}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{-293}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 10^{-184}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.6000000000000002e103 or 1.1e52 < c Initial program 67.4%
Taylor expanded in t around -inf 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in x around 0 36.0%
associate-*r*41.7%
*-commutative41.7%
Simplified41.7%
if -2.6000000000000002e103 < c < 7.1999999999999997e-293Initial program 83.3%
Taylor expanded in b around inf 38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in i around inf 31.9%
if 7.1999999999999997e-293 < c < 1.0000000000000001e-184 or 1.7e-12 < c < 1.1e52Initial program 87.0%
Taylor expanded in j around 0 80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in y around inf 45.9%
*-commutative45.9%
Simplified45.9%
if 1.0000000000000001e-184 < c < 1.7e-12Initial program 69.4%
Taylor expanded in j around 0 72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in i around inf 48.1%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* t (* c j))))
(if (<= c -6e+105)
t_2
(if (<= c 5.2e-294)
(* b (* a i))
(if (<= c 4.6e-193)
t_1
(if (<= c 1.65e-8) (* i (* a b)) (if (<= c 7.2e+51) 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);
double t_2 = t * (c * j);
double tmp;
if (c <= -6e+105) {
tmp = t_2;
} else if (c <= 5.2e-294) {
tmp = b * (a * i);
} else if (c <= 4.6e-193) {
tmp = t_1;
} else if (c <= 1.65e-8) {
tmp = i * (a * b);
} else if (c <= 7.2e+51) {
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_2 = t * (c * j)
if (c <= (-6d+105)) then
tmp = t_2
else if (c <= 5.2d-294) then
tmp = b * (a * i)
else if (c <= 4.6d-193) then
tmp = t_1
else if (c <= 1.65d-8) then
tmp = i * (a * b)
else if (c <= 7.2d+51) 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);
double t_2 = t * (c * j);
double tmp;
if (c <= -6e+105) {
tmp = t_2;
} else if (c <= 5.2e-294) {
tmp = b * (a * i);
} else if (c <= 4.6e-193) {
tmp = t_1;
} else if (c <= 1.65e-8) {
tmp = i * (a * b);
} else if (c <= 7.2e+51) {
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_2 = t * (c * j) tmp = 0 if c <= -6e+105: tmp = t_2 elif c <= 5.2e-294: tmp = b * (a * i) elif c <= 4.6e-193: tmp = t_1 elif c <= 1.65e-8: tmp = i * (a * b) elif c <= 7.2e+51: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -6e+105) tmp = t_2; elseif (c <= 5.2e-294) tmp = Float64(b * Float64(a * i)); elseif (c <= 4.6e-193) tmp = t_1; elseif (c <= 1.65e-8) tmp = Float64(i * Float64(a * b)); elseif (c <= 7.2e+51) 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_2 = t * (c * j); tmp = 0.0; if (c <= -6e+105) tmp = t_2; elseif (c <= 5.2e-294) tmp = b * (a * i); elseif (c <= 4.6e-193) tmp = t_1; elseif (c <= 1.65e-8) tmp = i * (a * b); elseif (c <= 7.2e+51) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6e+105], t$95$2, If[LessEqual[c, 5.2e-294], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.6e-193], t$95$1, If[LessEqual[c, 1.65e-8], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+51], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -6 \cdot 10^{+105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 5.2 \cdot 10^{-294}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.65 \cdot 10^{-8}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+51}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -6.0000000000000001e105 or 7.20000000000000022e51 < c Initial program 67.4%
Taylor expanded in t around -inf 49.3%
mul-1-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
+-commutative49.3%
mul-1-neg49.3%
unsub-neg49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in x around 0 36.0%
associate-*r*41.7%
*-commutative41.7%
Simplified41.7%
if -6.0000000000000001e105 < c < 5.1999999999999999e-294Initial program 83.3%
Taylor expanded in b around inf 38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in i around inf 31.9%
if 5.1999999999999999e-294 < c < 4.60000000000000017e-193 or 1.64999999999999989e-8 < c < 7.20000000000000022e51Initial program 86.4%
Taylor expanded in j around 0 79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around inf 45.7%
*-commutative45.7%
Simplified45.7%
if 4.60000000000000017e-193 < c < 1.64999999999999989e-8Initial program 71.2%
Taylor expanded in i around inf 51.4%
distribute-lft-out--51.4%
Simplified51.4%
Taylor expanded in j around 0 51.0%
neg-mul-151.0%
distribute-lft-neg-in51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in i around 0 48.3%
associate-*r*51.0%
Simplified51.0%
Final simplification40.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.1e+43) (not (<= b 4.6e-38))) (* b (- (* a i) (* z c))) (* x (- (* y z) (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.1e+43) || !(b <= 4.6e-38)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.1d+43)) .or. (.not. (b <= 4.6d-38))) then
tmp = b * ((a * i) - (z * c))
else
tmp = x * ((y * z) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.1e+43) || !(b <= 4.6e-38)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.1e+43) or not (b <= 4.6e-38): tmp = b * ((a * i) - (z * c)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.1e+43) || !(b <= 4.6e-38)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.1e+43) || ~((b <= 4.6e-38))) tmp = b * ((a * i) - (z * c)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.1e+43], N[Not[LessEqual[b, 4.6e-38]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{+43} \lor \neg \left(b \leq 4.6 \cdot 10^{-38}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -1.1e43 or 4.60000000000000003e-38 < b Initial program 76.5%
Taylor expanded in b around inf 64.5%
*-commutative64.5%
Simplified64.5%
if -1.1e43 < b < 4.60000000000000003e-38Initial program 75.7%
Taylor expanded in j around 0 63.8%
cancel-sign-sub-inv63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in x around inf 57.2%
*-commutative57.2%
Simplified57.2%
Final simplification61.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -14500000.0) (not (<= c 6e+52))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -14500000.0) || !(c <= 6e+52)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-14500000.0d0)) .or. (.not. (c <= 6d+52))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -14500000.0) || !(c <= 6e+52)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -14500000.0) or not (c <= 6e+52): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -14500000.0) || !(c <= 6e+52)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -14500000.0) || ~((c <= 6e+52))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -14500000.0], N[Not[LessEqual[c, 6e+52]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -14500000 \lor \neg \left(c \leq 6 \cdot 10^{+52}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -1.45e7 or 6e52 < c Initial program 68.3%
Taylor expanded in t around -inf 50.3%
mul-1-neg50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in x around 0 34.1%
*-commutative34.1%
Simplified34.1%
if -1.45e7 < c < 6e52Initial program 82.6%
Taylor expanded in j around 0 75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in i around inf 31.2%
Final simplification32.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -100000000.0) (not (<= c 2.7e+52))) (* t (* c j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -100000000.0) || !(c <= 2.7e+52)) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-100000000.0d0)) .or. (.not. (c <= 2.7d+52))) then
tmp = t * (c * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -100000000.0) || !(c <= 2.7e+52)) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -100000000.0) or not (c <= 2.7e+52): tmp = t * (c * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -100000000.0) || !(c <= 2.7e+52)) tmp = Float64(t * Float64(c * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -100000000.0) || ~((c <= 2.7e+52))) tmp = t * (c * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -100000000.0], N[Not[LessEqual[c, 2.7e+52]], $MachinePrecision]], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -100000000 \lor \neg \left(c \leq 2.7 \cdot 10^{+52}\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -1e8 or 2.7e52 < c Initial program 68.3%
Taylor expanded in t around -inf 50.3%
mul-1-neg50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
+-commutative50.3%
mul-1-neg50.3%
unsub-neg50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in x around 0 34.1%
associate-*r*38.9%
*-commutative38.9%
Simplified38.9%
if -1e8 < c < 2.7e52Initial program 82.6%
Taylor expanded in j around 0 75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
cancel-sign-sub-inv75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in i around inf 31.2%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -5e-178) (* b (* a i)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5e-178) {
tmp = b * (a * i);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-5d-178)) then
tmp = b * (a * i)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -5e-178) {
tmp = b * (a * i);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -5e-178: tmp = b * (a * i) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -5e-178) tmp = Float64(b * Float64(a * i)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -5e-178) tmp = b * (a * i); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -5e-178], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5 \cdot 10^{-178}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < -4.99999999999999976e-178Initial program 76.3%
Taylor expanded in b around inf 35.0%
*-commutative35.0%
Simplified35.0%
Taylor expanded in i around inf 21.1%
if -4.99999999999999976e-178 < x Initial program 76.1%
Taylor expanded in j around 0 65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in i around inf 28.6%
Final simplification25.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 76.1%
Taylor expanded in j around 0 68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in i around inf 23.8%
Final simplification23.8%
(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 2023320
(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)))))