
(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 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* c (- (* t j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((t * j) - (z * b)) 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(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around inf 48.5%
Final simplification80.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -1.4e+148)
t_1
(if (<= t -1.42e-62)
(* t (* x (- (* y (/ z t)) a)))
(if (<= t 6.6e-275)
(* b (- (* a i) (* z c)))
(if (<= t 2.9e+107) (* i (- (* a b) (* y 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.4e+148) {
tmp = t_1;
} else if (t <= -1.42e-62) {
tmp = t * (x * ((y * (z / t)) - a));
} else if (t <= 6.6e-275) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a))
if (t <= (-1.4d+148)) then
tmp = t_1
else if (t <= (-1.42d-62)) then
tmp = t * (x * ((y * (z / t)) - a))
else if (t <= 6.6d-275) then
tmp = b * ((a * i) - (z * c))
else if (t <= 2.9d+107) then
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.4e+148) {
tmp = t_1;
} else if (t <= -1.42e-62) {
tmp = t * (x * ((y * (z / t)) - a));
} else if (t <= 6.6e-275) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.4e+148: tmp = t_1 elif t <= -1.42e-62: tmp = t * (x * ((y * (z / t)) - a)) elif t <= 6.6e-275: tmp = b * ((a * i) - (z * c)) elif t <= 2.9e+107: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.4e+148) tmp = t_1; elseif (t <= -1.42e-62) tmp = Float64(t * Float64(x * Float64(Float64(y * Float64(z / t)) - a))); elseif (t <= 6.6e-275) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (t <= 2.9e+107) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.4e+148) tmp = t_1; elseif (t <= -1.42e-62) tmp = t * (x * ((y * (z / t)) - a)); elseif (t <= 6.6e-275) tmp = b * ((a * i) - (z * c)); elseif (t <= 2.9e+107) tmp = i * ((a * b) - (y * 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+148], t$95$1, If[LessEqual[t, -1.42e-62], N[(t * N[(x * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e-275], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+107], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.42 \cdot 10^{-62}:\\
\;\;\;\;t \cdot \left(x \cdot \left(y \cdot \frac{z}{t} - a\right)\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-275}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+107}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3999999999999999e148 or 2.89999999999999988e107 < t Initial program 54.2%
Taylor expanded in t around inf 71.5%
+-commutative71.5%
mul-1-neg71.5%
unsub-neg71.5%
*-commutative71.5%
Simplified71.5%
if -1.3999999999999999e148 < t < -1.42e-62Initial program 73.7%
Taylor expanded in t around inf 73.7%
associate-/l*71.5%
Simplified71.5%
Taylor expanded in x around inf 54.5%
associate-*r/54.4%
Simplified54.4%
if -1.42e-62 < t < 6.600000000000001e-275Initial program 78.7%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
Simplified67.7%
if 6.600000000000001e-275 < t < 2.89999999999999988e107Initial program 75.0%
Taylor expanded in i around inf 53.5%
distribute-lft-out--53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in i around 0 53.5%
mul-1-neg53.5%
distribute-rgt-neg-in53.5%
neg-sub053.5%
*-commutative53.5%
associate-+l-53.5%
neg-sub053.5%
neg-mul-153.5%
+-commutative53.5%
neg-mul-153.5%
unsub-neg53.5%
*-commutative53.5%
Simplified53.5%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -1.4e+148)
t_1
(if (<= t -1.76e-65)
(* x (- (* y z) (* t a)))
(if (<= t 1e-274)
(* b (- (* a i) (* z c)))
(if (<= t 2.9e+107) (* i (- (* a b) (* y 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.4e+148) {
tmp = t_1;
} else if (t <= -1.76e-65) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1e-274) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a))
if (t <= (-1.4d+148)) then
tmp = t_1
else if (t <= (-1.76d-65)) then
tmp = x * ((y * z) - (t * a))
else if (t <= 1d-274) then
tmp = b * ((a * i) - (z * c))
else if (t <= 2.9d+107) then
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -1.4e+148) {
tmp = t_1;
} else if (t <= -1.76e-65) {
tmp = x * ((y * z) - (t * a));
} else if (t <= 1e-274) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -1.4e+148: tmp = t_1 elif t <= -1.76e-65: tmp = x * ((y * z) - (t * a)) elif t <= 1e-274: tmp = b * ((a * i) - (z * c)) elif t <= 2.9e+107: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -1.4e+148) tmp = t_1; elseif (t <= -1.76e-65) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (t <= 1e-274) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (t <= 2.9e+107) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -1.4e+148) tmp = t_1; elseif (t <= -1.76e-65) tmp = x * ((y * z) - (t * a)); elseif (t <= 1e-274) tmp = b * ((a * i) - (z * c)); elseif (t <= 2.9e+107) tmp = i * ((a * b) - (y * 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+148], t$95$1, If[LessEqual[t, -1.76e-65], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-274], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+107], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.76 \cdot 10^{-65}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 10^{-274}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+107}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3999999999999999e148 or 2.89999999999999988e107 < t Initial program 54.2%
Taylor expanded in t around inf 71.5%
+-commutative71.5%
mul-1-neg71.5%
unsub-neg71.5%
*-commutative71.5%
Simplified71.5%
if -1.3999999999999999e148 < t < -1.7600000000000001e-65Initial program 73.7%
Taylor expanded in x around inf 52.4%
*-commutative52.4%
Simplified52.4%
if -1.7600000000000001e-65 < t < 9.99999999999999966e-275Initial program 78.7%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
Simplified67.7%
if 9.99999999999999966e-275 < t < 2.89999999999999988e107Initial program 75.0%
Taylor expanded in i around inf 53.5%
distribute-lft-out--53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in i around 0 53.5%
mul-1-neg53.5%
distribute-rgt-neg-in53.5%
neg-sub053.5%
*-commutative53.5%
associate-+l-53.5%
neg-sub053.5%
neg-mul-153.5%
+-commutative53.5%
neg-mul-153.5%
unsub-neg53.5%
*-commutative53.5%
Simplified53.5%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -8.5e+35)
t_1
(if (<= t -1.35e-60)
(* y (* x z))
(if (<= t 4.55e-274)
(* b (- (* a i) (* z c)))
(if (<= t 2.9e+107) (* i (- (* a b) (* y 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -8.5e+35) {
tmp = t_1;
} else if (t <= -1.35e-60) {
tmp = y * (x * z);
} else if (t <= 4.55e-274) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a))
if (t <= (-8.5d+35)) then
tmp = t_1
else if (t <= (-1.35d-60)) then
tmp = y * (x * z)
else if (t <= 4.55d-274) then
tmp = b * ((a * i) - (z * c))
else if (t <= 2.9d+107) then
tmp = i * ((a * b) - (y * 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 = t * ((c * j) - (x * a));
double tmp;
if (t <= -8.5e+35) {
tmp = t_1;
} else if (t <= -1.35e-60) {
tmp = y * (x * z);
} else if (t <= 4.55e-274) {
tmp = b * ((a * i) - (z * c));
} else if (t <= 2.9e+107) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -8.5e+35: tmp = t_1 elif t <= -1.35e-60: tmp = y * (x * z) elif t <= 4.55e-274: tmp = b * ((a * i) - (z * c)) elif t <= 2.9e+107: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -8.5e+35) tmp = t_1; elseif (t <= -1.35e-60) tmp = Float64(y * Float64(x * z)); elseif (t <= 4.55e-274) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (t <= 2.9e+107) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -8.5e+35) tmp = t_1; elseif (t <= -1.35e-60) tmp = y * (x * z); elseif (t <= 4.55e-274) tmp = b * ((a * i) - (z * c)); elseif (t <= 2.9e+107) tmp = i * ((a * b) - (y * 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.5e+35], t$95$1, If[LessEqual[t, -1.35e-60], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.55e-274], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e+107], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -8.5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-60}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 4.55 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{+107}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.4999999999999995e35 or 2.89999999999999988e107 < t Initial program 61.1%
Taylor expanded in t around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
*-commutative62.7%
Simplified62.7%
if -8.4999999999999995e35 < t < -1.35e-60Initial program 61.4%
Taylor expanded in b around 0 61.8%
Taylor expanded in c around 0 56.3%
+-commutative56.3%
sub-neg56.3%
*-commutative56.3%
sub-neg56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
Taylor expanded in z around inf 45.8%
*-commutative45.8%
associate-*r*51.1%
*-commutative51.1%
Simplified51.1%
if -1.35e-60 < t < 4.54999999999999992e-274Initial program 78.7%
Taylor expanded in b around inf 67.7%
*-commutative67.7%
Simplified67.7%
if 4.54999999999999992e-274 < t < 2.89999999999999988e107Initial program 75.0%
Taylor expanded in i around inf 53.5%
distribute-lft-out--53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in i around 0 53.5%
mul-1-neg53.5%
distribute-rgt-neg-in53.5%
neg-sub053.5%
*-commutative53.5%
associate-+l-53.5%
neg-sub053.5%
neg-mul-153.5%
+-commutative53.5%
neg-mul-153.5%
unsub-neg53.5%
*-commutative53.5%
Simplified53.5%
Final simplification59.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.6e-111) (not (<= b 3500.0))) (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* a i)))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.6e-111) || !(b <= 3500.0)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-6.6d-111)) .or. (.not. (b <= 3500.0d0))) then
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.6e-111) || !(b <= 3500.0)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -6.6e-111) or not (b <= 3500.0): tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.6e-111) || !(b <= 3500.0)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -6.6e-111) || ~((b <= 3500.0))) tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (a * i))); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.6e-111], N[Not[LessEqual[b, 3500.0]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{-111} \lor \neg \left(b \leq 3500\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -6.6e-111 or 3500 < b Initial program 66.1%
Taylor expanded in t around 0 62.7%
associate-*r*63.3%
associate-*r*63.3%
*-commutative63.3%
associate-*r*65.2%
distribute-rgt-in66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
if -6.6e-111 < b < 3500Initial program 72.6%
Taylor expanded in b around 0 78.0%
Final simplification71.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.4e+83) (not (<= b 2.1e+47))) (* b (- (* a i) (* z c))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.4e+83) || !(b <= 2.1e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-6.4d+83)) .or. (.not. (b <= 2.1d+47))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -6.4e+83) || !(b <= 2.1e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -6.4e+83) or not (b <= 2.1e+47): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -6.4e+83) || !(b <= 2.1e+47)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -6.4e+83) || ~((b <= 2.1e+47))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -6.4e+83], N[Not[LessEqual[b, 2.1e+47]], $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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.4 \cdot 10^{+83} \lor \neg \left(b \leq 2.1 \cdot 10^{+47}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -6.3999999999999998e83 or 2.1e47 < b Initial program 65.3%
Taylor expanded in b around inf 63.0%
*-commutative63.0%
Simplified63.0%
if -6.3999999999999998e83 < b < 2.1e47Initial program 71.0%
Taylor expanded in b around 0 70.3%
Final simplification67.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -5e+83) (not (<= b 1.8e+47))) (* b (- (* a i) (* z c))) (- (* x (- (* y z) (* t a))) (* i (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5e+83) || !(b <= 1.8e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-5d+83)) .or. (.not. (b <= 1.8d+47))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5e+83) || !(b <= 1.8e+47)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -5e+83) or not (b <= 1.8e+47): tmp = b * ((a * i) - (z * c)) else: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -5e+83) || !(b <= 1.8e+47)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -5e+83) || ~((b <= 1.8e+47))) tmp = b * ((a * i) - (z * c)); else tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -5e+83], N[Not[LessEqual[b, 1.8e+47]], $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[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+83} \lor \neg \left(b \leq 1.8 \cdot 10^{+47}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\end{array}
\end{array}
if b < -5.00000000000000029e83 or 1.80000000000000004e47 < b Initial program 65.3%
Taylor expanded in b around inf 63.0%
*-commutative63.0%
Simplified63.0%
if -5.00000000000000029e83 < b < 1.80000000000000004e47Initial program 71.0%
Taylor expanded in b around 0 70.3%
Taylor expanded in c around 0 57.3%
+-commutative57.3%
sub-neg57.3%
*-commutative57.3%
sub-neg57.3%
mul-1-neg57.3%
unsub-neg57.3%
Simplified57.3%
Final simplification59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.8e+149)
(* c (* t j))
(if (<= t -3.3e-60)
(* y (* x z))
(if (<= t 4.9e+91) (* b (- (* a i) (* z c))) (* c (- (* t j) (* z b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.8e+149) {
tmp = c * (t * j);
} else if (t <= -3.3e-60) {
tmp = y * (x * z);
} else if (t <= 4.9e+91) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.8d+149)) then
tmp = c * (t * j)
else if (t <= (-3.3d-60)) then
tmp = y * (x * z)
else if (t <= 4.9d+91) then
tmp = b * ((a * i) - (z * c))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.8e+149) {
tmp = c * (t * j);
} else if (t <= -3.3e-60) {
tmp = y * (x * z);
} else if (t <= 4.9e+91) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.8e+149: tmp = c * (t * j) elif t <= -3.3e-60: tmp = y * (x * z) elif t <= 4.9e+91: tmp = b * ((a * i) - (z * c)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.8e+149) tmp = Float64(c * Float64(t * j)); elseif (t <= -3.3e-60) tmp = Float64(y * Float64(x * z)); elseif (t <= 4.9e+91) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.8e+149) tmp = c * (t * j); elseif (t <= -3.3e-60) tmp = y * (x * z); elseif (t <= 4.9e+91) tmp = b * ((a * i) - (z * c)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.8e+149], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.3e-60], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.9e+91], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+149}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-60}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{+91}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if t < -1.79999999999999997e149Initial program 51.7%
Taylor expanded in t around inf 66.3%
+-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in j around inf 49.5%
if -1.79999999999999997e149 < t < -3.2999999999999998e-60Initial program 72.1%
Taylor expanded in b around 0 62.0%
Taylor expanded in c around 0 55.5%
+-commutative55.5%
sub-neg55.5%
*-commutative55.5%
sub-neg55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
associate-*r*40.6%
*-commutative40.6%
Simplified40.6%
if -3.2999999999999998e-60 < t < 4.9000000000000003e91Initial program 77.0%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
Simplified51.2%
if 4.9000000000000003e91 < t Initial program 56.9%
Taylor expanded in c around inf 60.7%
Final simplification50.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -2.7e+149)
t_1
(if (<= t -9e-62)
(* y (* x z))
(if (<= t 4.55e+92) (* b (- (* a i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -2.7e+149) {
tmp = t_1;
} else if (t <= -9e-62) {
tmp = y * (x * z);
} else if (t <= 4.55e+92) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-2.7d+149)) then
tmp = t_1
else if (t <= (-9d-62)) then
tmp = y * (x * z)
else if (t <= 4.55d+92) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -2.7e+149) {
tmp = t_1;
} else if (t <= -9e-62) {
tmp = y * (x * z);
} else if (t <= 4.55e+92) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -2.7e+149: tmp = t_1 elif t <= -9e-62: tmp = y * (x * z) elif t <= 4.55e+92: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -2.7e+149) tmp = t_1; elseif (t <= -9e-62) tmp = Float64(y * Float64(x * z)); elseif (t <= 4.55e+92) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -2.7e+149) tmp = t_1; elseif (t <= -9e-62) tmp = y * (x * z); elseif (t <= 4.55e+92) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.7e+149], t$95$1, If[LessEqual[t, -9e-62], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.55e+92], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-62}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 4.55 \cdot 10^{+92}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.7000000000000001e149 or 4.55000000000000023e92 < t Initial program 54.8%
Taylor expanded in t around inf 69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in j around inf 50.6%
if -2.7000000000000001e149 < t < -9.00000000000000036e-62Initial program 72.1%
Taylor expanded in b around 0 62.0%
Taylor expanded in c around 0 55.5%
+-commutative55.5%
sub-neg55.5%
*-commutative55.5%
sub-neg55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
associate-*r*40.6%
*-commutative40.6%
Simplified40.6%
if -9.00000000000000036e-62 < t < 4.55000000000000023e92Initial program 77.0%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
Simplified51.2%
Final simplification49.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -2.1e+149)
t_1
(if (<= t -2.2e-64)
(* y (* x z))
(if (<= t 2.35e+87) (* b (* a i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -2.1e+149) {
tmp = t_1;
} else if (t <= -2.2e-64) {
tmp = y * (x * z);
} else if (t <= 2.35e+87) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-2.1d+149)) then
tmp = t_1
else if (t <= (-2.2d-64)) then
tmp = y * (x * z)
else if (t <= 2.35d+87) then
tmp = b * (a * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -2.1e+149) {
tmp = t_1;
} else if (t <= -2.2e-64) {
tmp = y * (x * z);
} else if (t <= 2.35e+87) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -2.1e+149: tmp = t_1 elif t <= -2.2e-64: tmp = y * (x * z) elif t <= 2.35e+87: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -2.1e+149) tmp = t_1; elseif (t <= -2.2e-64) tmp = Float64(y * Float64(x * z)); elseif (t <= 2.35e+87) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -2.1e+149) tmp = t_1; elseif (t <= -2.2e-64) tmp = y * (x * z); elseif (t <= 2.35e+87) tmp = b * (a * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.1e+149], t$95$1, If[LessEqual[t, -2.2e-64], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.35e+87], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-64}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 2.35 \cdot 10^{+87}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.1000000000000002e149 or 2.3500000000000002e87 < t Initial program 54.8%
Taylor expanded in t around inf 69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in j around inf 50.6%
if -2.1000000000000002e149 < t < -2.2e-64Initial program 72.1%
Taylor expanded in b around 0 62.0%
Taylor expanded in c around 0 55.5%
+-commutative55.5%
sub-neg55.5%
*-commutative55.5%
sub-neg55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
associate-*r*40.6%
*-commutative40.6%
Simplified40.6%
if -2.2e-64 < t < 2.3500000000000002e87Initial program 77.0%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in i around inf 35.7%
*-commutative35.7%
Simplified35.7%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.05e+151)
t_1
(if (<= t -1.45e-61)
(* x (* y z))
(if (<= t 2.55e+91) (* b (* a i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.05e+151) {
tmp = t_1;
} else if (t <= -1.45e-61) {
tmp = x * (y * z);
} else if (t <= 2.55e+91) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-1.05d+151)) then
tmp = t_1
else if (t <= (-1.45d-61)) then
tmp = x * (y * z)
else if (t <= 2.55d+91) then
tmp = b * (a * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.05e+151) {
tmp = t_1;
} else if (t <= -1.45e-61) {
tmp = x * (y * z);
} else if (t <= 2.55e+91) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.05e+151: tmp = t_1 elif t <= -1.45e-61: tmp = x * (y * z) elif t <= 2.55e+91: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.05e+151) tmp = t_1; elseif (t <= -1.45e-61) tmp = Float64(x * Float64(y * z)); elseif (t <= 2.55e+91) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -1.05e+151) tmp = t_1; elseif (t <= -1.45e-61) tmp = x * (y * z); elseif (t <= 2.55e+91) tmp = b * (a * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+151], t$95$1, If[LessEqual[t, -1.45e-61], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.55e+91], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{+91}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.05e151 or 2.55000000000000007e91 < t Initial program 54.8%
Taylor expanded in t around inf 69.1%
+-commutative69.1%
mul-1-neg69.1%
unsub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in j around inf 50.6%
if -1.05e151 < t < -1.45e-61Initial program 72.1%
Taylor expanded in b around 0 62.0%
Taylor expanded in c around 0 55.5%
+-commutative55.5%
sub-neg55.5%
*-commutative55.5%
sub-neg55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
Taylor expanded in z around inf 36.6%
if -1.45e-61 < t < 2.55000000000000007e91Initial program 77.0%
Taylor expanded in b around inf 51.2%
*-commutative51.2%
Simplified51.2%
Taylor expanded in i around inf 35.7%
*-commutative35.7%
Simplified35.7%
Final simplification40.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1e+69) (not (<= c 7e+33))) (* c (- (* t j) (* z b))) (* i (- (* a b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1e+69) || !(c <= 7e+33)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1d+69)) .or. (.not. (c <= 7d+33))) then
tmp = c * ((t * j) - (z * b))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1e+69) || !(c <= 7e+33)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1e+69) or not (c <= 7e+33): tmp = c * ((t * j) - (z * b)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1e+69) || !(c <= 7e+33)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1e+69) || ~((c <= 7e+33))) tmp = c * ((t * j) - (z * b)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1e+69], N[Not[LessEqual[c, 7e+33]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+69} \lor \neg \left(c \leq 7 \cdot 10^{+33}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if c < -1.0000000000000001e69 or 7.0000000000000002e33 < c Initial program 60.0%
Taylor expanded in c around inf 63.7%
if -1.0000000000000001e69 < c < 7.0000000000000002e33Initial program 74.7%
Taylor expanded in i around inf 45.8%
distribute-lft-out--45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in i around 0 45.8%
mul-1-neg45.8%
distribute-rgt-neg-in45.8%
neg-sub045.8%
*-commutative45.8%
associate-+l-45.8%
neg-sub045.8%
neg-mul-145.8%
+-commutative45.8%
neg-mul-145.8%
unsub-neg45.8%
*-commutative45.8%
Simplified45.8%
Final simplification53.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.6e+148) (not (<= t 1.75e+86))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.6e+148) || !(t <= 1.75e+86)) {
tmp = c * (t * j);
} else {
tmp = b * (a * 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 ((t <= (-1.6d+148)) .or. (.not. (t <= 1.75d+86))) then
tmp = c * (t * j)
else
tmp = b * (a * 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 ((t <= -1.6e+148) || !(t <= 1.75e+86)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.6e+148) or not (t <= 1.75e+86): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.6e+148) || !(t <= 1.75e+86)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.6e+148) || ~((t <= 1.75e+86))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.6e+148], N[Not[LessEqual[t, 1.75e+86]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+148} \lor \neg \left(t \leq 1.75 \cdot 10^{+86}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if t < -1.6e148 or 1.75000000000000009e86 < t Initial program 54.1%
Taylor expanded in t around inf 69.4%
+-commutative69.4%
mul-1-neg69.4%
unsub-neg69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in j around inf 51.2%
if -1.6e148 < t < 1.75000000000000009e86Initial program 76.1%
Taylor expanded in b around inf 45.1%
*-commutative45.1%
Simplified45.1%
Taylor expanded in i around inf 29.8%
*-commutative29.8%
Simplified29.8%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 2.8e+132) (* b (* a i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 2.8e+132) {
tmp = b * (a * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= 2.8d+132) then
tmp = b * (a * i)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 2.8e+132) {
tmp = b * (a * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 2.8e+132: tmp = b * (a * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 2.8e+132) tmp = Float64(b * Float64(a * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 2.8e+132) tmp = b * (a * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 2.8e+132], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.8 \cdot 10^{+132}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < 2.7999999999999999e132Initial program 71.3%
Taylor expanded in b around inf 40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in i around inf 25.7%
*-commutative25.7%
Simplified25.7%
if 2.7999999999999999e132 < t Initial program 54.5%
Taylor expanded in b around 0 67.3%
Taylor expanded in c around 0 47.3%
+-commutative47.3%
sub-neg47.3%
*-commutative47.3%
sub-neg47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
Taylor expanded in y around 0 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
distribute-rgt-neg-out39.3%
*-commutative39.3%
associate-*l*39.4%
Simplified39.4%
pow139.4%
*-commutative39.4%
*-commutative39.4%
associate-*l*39.3%
add-sqr-sqrt13.4%
sqrt-unprod26.4%
sqr-neg26.4%
sqrt-unprod15.9%
add-sqr-sqrt24.1%
Applied egg-rr24.1%
unpow124.1%
*-commutative24.1%
Simplified24.1%
Final simplification25.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 3e+132) (* a (* b i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 3e+132) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= 3d+132) then
tmp = a * (b * i)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 3e+132) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 3e+132: tmp = a * (b * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 3e+132) tmp = Float64(a * Float64(b * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 3e+132) tmp = a * (b * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 3e+132], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3 \cdot 10^{+132}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < 2.9999999999999998e132Initial program 71.3%
Taylor expanded in b around inf 40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in i around inf 25.6%
*-commutative25.6%
Simplified25.6%
if 2.9999999999999998e132 < t Initial program 54.5%
Taylor expanded in b around 0 67.3%
Taylor expanded in c around 0 47.3%
+-commutative47.3%
sub-neg47.3%
*-commutative47.3%
sub-neg47.3%
mul-1-neg47.3%
unsub-neg47.3%
Simplified47.3%
Taylor expanded in y around 0 39.3%
mul-1-neg39.3%
*-commutative39.3%
*-commutative39.3%
distribute-rgt-neg-out39.3%
*-commutative39.3%
associate-*l*39.4%
Simplified39.4%
pow139.4%
*-commutative39.4%
*-commutative39.4%
associate-*l*39.3%
add-sqr-sqrt13.4%
sqrt-unprod26.4%
sqr-neg26.4%
sqrt-unprod15.9%
add-sqr-sqrt24.1%
Applied egg-rr24.1%
unpow124.1%
*-commutative24.1%
Simplified24.1%
Final simplification25.4%
(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 68.7%
Taylor expanded in b around inf 37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in i around inf 23.2%
*-commutative23.2%
Simplified23.2%
Final simplification23.2%
(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 2024116
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* 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)))))