
(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 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* 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 * ((a * i) - (z * c)))) + (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 * ((a * i) - (z * c)))) + (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 * ((a * i) - (z * c)))) + (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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(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 * ((a * i) - (z * c)))) + (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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(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(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;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.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around inf 57.9%
Final simplification84.4%
(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_4 (+ t_3 t_1)))
(if (<= x -1.25e-16)
(+ t_3 t_2)
(if (<= x -2.4e-78)
(* a (- (* b i) (* x t)))
(if (<= x -5.2e-114)
(* y (- (* x z) (* i j)))
(if (<= x 1.05e-179)
t_4
(if (<= x 9.8e-98)
(- t_1 (* a (* x t)))
(if (<= x 1.85e+27) t_4 (- t_2 (* c (* z b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((t * c) - (y * i));
double t_4 = t_3 + t_1;
double tmp;
if (x <= -1.25e-16) {
tmp = t_3 + t_2;
} else if (x <= -2.4e-78) {
tmp = a * ((b * i) - (x * t));
} else if (x <= -5.2e-114) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.05e-179) {
tmp = t_4;
} else if (x <= 9.8e-98) {
tmp = t_1 - (a * (x * t));
} else if (x <= 1.85e+27) {
tmp = t_4;
} else {
tmp = t_2 - (c * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: 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_4 = t_3 + t_1
if (x <= (-1.25d-16)) then
tmp = t_3 + t_2
else if (x <= (-2.4d-78)) then
tmp = a * ((b * i) - (x * t))
else if (x <= (-5.2d-114)) then
tmp = y * ((x * z) - (i * j))
else if (x <= 1.05d-179) then
tmp = t_4
else if (x <= 9.8d-98) then
tmp = t_1 - (a * (x * t))
else if (x <= 1.85d+27) then
tmp = t_4
else
tmp = t_2 - (c * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((t * c) - (y * i));
double t_4 = t_3 + t_1;
double tmp;
if (x <= -1.25e-16) {
tmp = t_3 + t_2;
} else if (x <= -2.4e-78) {
tmp = a * ((b * i) - (x * t));
} else if (x <= -5.2e-114) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.05e-179) {
tmp = t_4;
} else if (x <= 9.8e-98) {
tmp = t_1 - (a * (x * t));
} else if (x <= 1.85e+27) {
tmp = t_4;
} else {
tmp = t_2 - (c * (z * b));
}
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_4 = t_3 + t_1 tmp = 0 if x <= -1.25e-16: tmp = t_3 + t_2 elif x <= -2.4e-78: tmp = a * ((b * i) - (x * t)) elif x <= -5.2e-114: tmp = y * ((x * z) - (i * j)) elif x <= 1.05e-179: tmp = t_4 elif x <= 9.8e-98: tmp = t_1 - (a * (x * t)) elif x <= 1.85e+27: tmp = t_4 else: tmp = t_2 - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_4 = Float64(t_3 + t_1) tmp = 0.0 if (x <= -1.25e-16) tmp = Float64(t_3 + t_2); elseif (x <= -2.4e-78) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= -5.2e-114) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 1.05e-179) tmp = t_4; elseif (x <= 9.8e-98) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (x <= 1.85e+27) tmp = t_4; else tmp = Float64(t_2 - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = j * ((t * c) - (y * i)); t_4 = t_3 + t_1; tmp = 0.0; if (x <= -1.25e-16) tmp = t_3 + t_2; elseif (x <= -2.4e-78) tmp = a * ((b * i) - (x * t)); elseif (x <= -5.2e-114) tmp = y * ((x * z) - (i * j)); elseif (x <= 1.05e-179) tmp = t_4; elseif (x <= 9.8e-98) tmp = t_1 - (a * (x * t)); elseif (x <= 1.85e+27) tmp = t_4; else tmp = t_2 - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + t$95$1), $MachinePrecision]}, If[LessEqual[x, -1.25e-16], N[(t$95$3 + t$95$2), $MachinePrecision], If[LessEqual[x, -2.4e-78], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.2e-114], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e-179], t$95$4, If[LessEqual[x, 9.8e-98], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+27], t$95$4, N[(t$95$2 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_4 := t_3 + t_1\\
\mathbf{if}\;x \leq -1.25 \cdot 10^{-16}:\\
\;\;\;\;t_3 + t_2\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-114}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-179}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{-98}:\\
\;\;\;\;t_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+27}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_2 - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if x < -1.2500000000000001e-16Initial program 80.8%
Taylor expanded in b around 0 78.4%
if -1.2500000000000001e-16 < x < -2.4e-78Initial program 48.4%
Taylor expanded in a around inf 69.5%
distribute-lft-out--69.5%
*-commutative69.5%
Simplified69.5%
if -2.4e-78 < x < -5.20000000000000026e-114Initial program 61.7%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
*-commutative70.3%
Simplified70.3%
if -5.20000000000000026e-114 < x < 1.0499999999999999e-179 or 9.80000000000000028e-98 < x < 1.85000000000000001e27Initial program 77.6%
Taylor expanded in x around 0 76.6%
if 1.0499999999999999e-179 < x < 9.80000000000000028e-98Initial program 58.4%
Taylor expanded in j around 0 69.3%
fma-neg69.3%
*-commutative69.3%
*-commutative69.3%
fma-neg69.3%
Simplified69.3%
Taylor expanded in y around 0 74.4%
associate-*r*74.4%
neg-mul-174.4%
*-commutative74.4%
Simplified74.4%
if 1.85000000000000001e27 < x Initial program 75.5%
Taylor expanded in j around 0 78.7%
fma-neg80.2%
*-commutative80.2%
*-commutative80.2%
fma-neg78.7%
Simplified78.7%
Taylor expanded in c around inf 75.7%
*-commutative74.0%
associate-*l*75.5%
*-commutative75.5%
Simplified77.2%
Final simplification76.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* t c) (* y i))) (- t_1 (* c (* z b))))))
(if (<= j -1.25e-50)
t_2
(if (<= j 1.4e+58)
(+ t_1 (* b (- (* a i) (* z c))))
(if (<= j 2.2e+250) t_2 (* c (- (* t j) (* z b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 - (c * (z * b)));
double tmp;
if (j <= -1.25e-50) {
tmp = t_2;
} else if (j <= 1.4e+58) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (j <= 2.2e+250) {
tmp = t_2;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = (j * ((t * c) - (y * i))) + (t_1 - (c * (z * b)))
if (j <= (-1.25d-50)) then
tmp = t_2
else if (j <= 1.4d+58) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else if (j <= 2.2d+250) then
tmp = t_2
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 - (c * (z * b)));
double tmp;
if (j <= -1.25e-50) {
tmp = t_2;
} else if (j <= 1.4e+58) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (j <= 2.2e+250) {
tmp = t_2;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((t * c) - (y * i))) + (t_1 - (c * (z * b))) tmp = 0 if j <= -1.25e-50: tmp = t_2 elif j <= 1.4e+58: tmp = t_1 + (b * ((a * i) - (z * c))) elif j <= 2.2e+250: tmp = t_2 else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(t_1 - Float64(c * Float64(z * b)))) tmp = 0.0 if (j <= -1.25e-50) tmp = t_2; elseif (j <= 1.4e+58) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 2.2e+250) tmp = t_2; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((t * c) - (y * i))) + (t_1 - (c * (z * b))); tmp = 0.0; if (j <= -1.25e-50) tmp = t_2; elseif (j <= 1.4e+58) tmp = t_1 + (b * ((a * i) - (z * c))); elseif (j <= 2.2e+250) tmp = t_2; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.25e-50], t$95$2, If[LessEqual[j, 1.4e+58], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.2e+250], t$95$2, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(t_1 - c \cdot \left(z \cdot b\right)\right)\\
\mathbf{if}\;j \leq -1.25 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+58}:\\
\;\;\;\;t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+250}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if j < -1.24999999999999992e-50 or 1.3999999999999999e58 < j < 2.20000000000000014e250Initial program 73.1%
Taylor expanded in c around inf 76.9%
*-commutative76.9%
associate-*l*76.0%
*-commutative76.0%
Simplified76.0%
if -1.24999999999999992e-50 < j < 1.3999999999999999e58Initial program 76.9%
Taylor expanded in j around 0 81.4%
fma-neg82.2%
*-commutative82.2%
*-commutative82.2%
fma-neg81.4%
Simplified81.4%
if 2.20000000000000014e250 < j Initial program 55.1%
Taylor expanded in c around inf 93.1%
Final simplification79.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))) (t_2 (* i (* y (- j)))))
(if (<= j -3.4e+134)
t_2
(if (<= j -5e-67)
t_1
(if (<= j -1.05e-304)
(* x (* y z))
(if (<= j 1.45e-213)
(* i (* a b))
(if (<= j 7.5e-146)
(* z (* x y))
(if (<= j 1.95e-50)
t_1
(if (<= j 1e+21)
(* c (- (* z b)))
(if (<= j 6.8e+41)
t_1
(if (<= j 1.16e+114)
(* j (- (* y i)))
(if (<= j 3.6e+198)
(* t (* c j))
(if (<= j 1.05e+243) t_2 (* c (* t j)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double t_2 = i * (y * -j);
double tmp;
if (j <= -3.4e+134) {
tmp = t_2;
} else if (j <= -5e-67) {
tmp = t_1;
} else if (j <= -1.05e-304) {
tmp = x * (y * z);
} else if (j <= 1.45e-213) {
tmp = i * (a * b);
} else if (j <= 7.5e-146) {
tmp = z * (x * y);
} else if (j <= 1.95e-50) {
tmp = t_1;
} else if (j <= 1e+21) {
tmp = c * -(z * b);
} else if (j <= 6.8e+41) {
tmp = t_1;
} else if (j <= 1.16e+114) {
tmp = j * -(y * i);
} else if (j <= 3.6e+198) {
tmp = t * (c * j);
} else if (j <= 1.05e+243) {
tmp = t_2;
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (t * -a)
t_2 = i * (y * -j)
if (j <= (-3.4d+134)) then
tmp = t_2
else if (j <= (-5d-67)) then
tmp = t_1
else if (j <= (-1.05d-304)) then
tmp = x * (y * z)
else if (j <= 1.45d-213) then
tmp = i * (a * b)
else if (j <= 7.5d-146) then
tmp = z * (x * y)
else if (j <= 1.95d-50) then
tmp = t_1
else if (j <= 1d+21) then
tmp = c * -(z * b)
else if (j <= 6.8d+41) then
tmp = t_1
else if (j <= 1.16d+114) then
tmp = j * -(y * i)
else if (j <= 3.6d+198) then
tmp = t * (c * j)
else if (j <= 1.05d+243) then
tmp = t_2
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double t_2 = i * (y * -j);
double tmp;
if (j <= -3.4e+134) {
tmp = t_2;
} else if (j <= -5e-67) {
tmp = t_1;
} else if (j <= -1.05e-304) {
tmp = x * (y * z);
} else if (j <= 1.45e-213) {
tmp = i * (a * b);
} else if (j <= 7.5e-146) {
tmp = z * (x * y);
} else if (j <= 1.95e-50) {
tmp = t_1;
} else if (j <= 1e+21) {
tmp = c * -(z * b);
} else if (j <= 6.8e+41) {
tmp = t_1;
} else if (j <= 1.16e+114) {
tmp = j * -(y * i);
} else if (j <= 3.6e+198) {
tmp = t * (c * j);
} else if (j <= 1.05e+243) {
tmp = t_2;
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) t_2 = i * (y * -j) tmp = 0 if j <= -3.4e+134: tmp = t_2 elif j <= -5e-67: tmp = t_1 elif j <= -1.05e-304: tmp = x * (y * z) elif j <= 1.45e-213: tmp = i * (a * b) elif j <= 7.5e-146: tmp = z * (x * y) elif j <= 1.95e-50: tmp = t_1 elif j <= 1e+21: tmp = c * -(z * b) elif j <= 6.8e+41: tmp = t_1 elif j <= 1.16e+114: tmp = j * -(y * i) elif j <= 3.6e+198: tmp = t * (c * j) elif j <= 1.05e+243: tmp = t_2 else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -3.4e+134) tmp = t_2; elseif (j <= -5e-67) tmp = t_1; elseif (j <= -1.05e-304) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.45e-213) tmp = Float64(i * Float64(a * b)); elseif (j <= 7.5e-146) tmp = Float64(z * Float64(x * y)); elseif (j <= 1.95e-50) tmp = t_1; elseif (j <= 1e+21) tmp = Float64(c * Float64(-Float64(z * b))); elseif (j <= 6.8e+41) tmp = t_1; elseif (j <= 1.16e+114) tmp = Float64(j * Float64(-Float64(y * i))); elseif (j <= 3.6e+198) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.05e+243) tmp = t_2; else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (t * -a); t_2 = i * (y * -j); tmp = 0.0; if (j <= -3.4e+134) tmp = t_2; elseif (j <= -5e-67) tmp = t_1; elseif (j <= -1.05e-304) tmp = x * (y * z); elseif (j <= 1.45e-213) tmp = i * (a * b); elseif (j <= 7.5e-146) tmp = z * (x * y); elseif (j <= 1.95e-50) tmp = t_1; elseif (j <= 1e+21) tmp = c * -(z * b); elseif (j <= 6.8e+41) tmp = t_1; elseif (j <= 1.16e+114) tmp = j * -(y * i); elseif (j <= 3.6e+198) tmp = t * (c * j); elseif (j <= 1.05e+243) tmp = t_2; else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.4e+134], t$95$2, If[LessEqual[j, -5e-67], t$95$1, If[LessEqual[j, -1.05e-304], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e-213], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e-146], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.95e-50], t$95$1, If[LessEqual[j, 1e+21], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 6.8e+41], t$95$1, If[LessEqual[j, 1.16e+114], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 3.6e+198], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e+243], t$95$2, N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -3.4 \cdot 10^{+134}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -5 \cdot 10^{-67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-304}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-213}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{-146}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq 1.95 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 10^{+21}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.16 \cdot 10^{+114}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{+198}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{+243}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if j < -3.40000000000000018e134 or 3.6000000000000002e198 < j < 1.05e243Initial program 66.7%
Taylor expanded in c around inf 74.4%
*-commutative74.4%
associate-*l*72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 65.0%
associate-*r*65.0%
neg-mul-165.0%
Simplified65.0%
if -3.40000000000000018e134 < j < -4.9999999999999999e-67 or 7.49999999999999981e-146 < j < 1.9500000000000001e-50 or 1e21 < j < 6.79999999999999996e41Initial program 78.0%
Taylor expanded in j around 0 72.1%
fma-neg73.7%
*-commutative73.7%
*-commutative73.7%
fma-neg72.1%
Simplified72.1%
*-commutative72.1%
prod-diff67.7%
fma-neg67.7%
cancel-sign-sub-inv67.7%
fma-def67.7%
*-commutative67.7%
Applied egg-rr67.7%
Taylor expanded in t around inf 41.7%
associate-*r*41.7%
*-commutative41.7%
neg-mul-141.7%
*-commutative41.7%
associate-*l*44.5%
Simplified44.5%
if -4.9999999999999999e-67 < j < -1.05000000000000004e-304Initial program 70.3%
Taylor expanded in y around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in z around inf 39.0%
if -1.05000000000000004e-304 < j < 1.45e-213Initial program 82.3%
Taylor expanded in j around 0 86.6%
fma-neg86.6%
*-commutative86.6%
*-commutative86.6%
fma-neg86.6%
Simplified86.6%
*-commutative86.6%
prod-diff75.7%
fma-neg75.6%
cancel-sign-sub-inv75.6%
fma-def75.7%
*-commutative75.7%
Applied egg-rr75.7%
Taylor expanded in i around inf 38.7%
mul-1-neg38.7%
*-commutative38.7%
distribute-rgt-in27.8%
associate-*r*27.8%
+-commutative27.8%
distribute-lft1-in38.7%
metadata-eval38.7%
neg-mul-138.7%
distribute-lft-neg-in38.7%
associate-*r*42.0%
remove-double-neg42.0%
*-commutative42.0%
associate-*l*43.8%
*-commutative43.8%
Simplified43.8%
if 1.45e-213 < j < 7.49999999999999981e-146Initial program 74.0%
Taylor expanded in y around inf 41.9%
+-commutative41.9%
mul-1-neg41.9%
unsub-neg41.9%
*-commutative41.9%
Simplified41.9%
Taylor expanded in z around inf 48.4%
associate-*r*54.7%
*-commutative54.7%
Simplified54.7%
if 1.9500000000000001e-50 < j < 1e21Initial program 86.4%
Taylor expanded in c around inf 48.2%
Taylor expanded in j around 0 42.0%
neg-mul-142.0%
distribute-lft-neg-in42.0%
*-commutative42.0%
Simplified42.0%
if 6.79999999999999996e41 < j < 1.15999999999999994e114Initial program 90.8%
Taylor expanded in c around inf 82.6%
*-commutative82.6%
associate-*l*82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in i around inf 73.4%
associate-*r*73.4%
neg-mul-173.4%
associate-*r*73.4%
*-commutative73.4%
associate-*l*73.4%
*-commutative73.4%
Simplified73.4%
if 1.15999999999999994e114 < j < 3.6000000000000002e198Initial program 64.5%
Taylor expanded in t around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in j around inf 53.8%
if 1.05e243 < j Initial program 61.1%
Taylor expanded in c around inf 87.7%
Taylor expanded in j around inf 81.4%
*-commutative81.4%
Simplified81.4%
Final simplification51.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y)))
(t_2 (* a (* x (- t))))
(t_3 (* c (- (* t j) (* z b)))))
(if (<= c -130000.0)
t_3
(if (<= c -2.65e-79)
t_1
(if (<= c -7.8e-83)
t_3
(if (<= c -1.55e-179)
(* i (* y (- j)))
(if (<= c -2.3e-208)
t_2
(if (<= c -5.7e-223)
(* y (* i (- j)))
(if (<= c -1e-274)
t_1
(if (<= c 2.5e-30)
(* x (* y z))
(if (<= c 210.0) t_2 t_3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = a * (x * -t);
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -130000.0) {
tmp = t_3;
} else if (c <= -2.65e-79) {
tmp = t_1;
} else if (c <= -7.8e-83) {
tmp = t_3;
} else if (c <= -1.55e-179) {
tmp = i * (y * -j);
} else if (c <= -2.3e-208) {
tmp = t_2;
} else if (c <= -5.7e-223) {
tmp = y * (i * -j);
} else if (c <= -1e-274) {
tmp = t_1;
} else if (c <= 2.5e-30) {
tmp = x * (y * z);
} else if (c <= 210.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = z * (x * y)
t_2 = a * (x * -t)
t_3 = c * ((t * j) - (z * b))
if (c <= (-130000.0d0)) then
tmp = t_3
else if (c <= (-2.65d-79)) then
tmp = t_1
else if (c <= (-7.8d-83)) then
tmp = t_3
else if (c <= (-1.55d-179)) then
tmp = i * (y * -j)
else if (c <= (-2.3d-208)) then
tmp = t_2
else if (c <= (-5.7d-223)) then
tmp = y * (i * -j)
else if (c <= (-1d-274)) then
tmp = t_1
else if (c <= 2.5d-30) then
tmp = x * (y * z)
else if (c <= 210.0d0) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = a * (x * -t);
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -130000.0) {
tmp = t_3;
} else if (c <= -2.65e-79) {
tmp = t_1;
} else if (c <= -7.8e-83) {
tmp = t_3;
} else if (c <= -1.55e-179) {
tmp = i * (y * -j);
} else if (c <= -2.3e-208) {
tmp = t_2;
} else if (c <= -5.7e-223) {
tmp = y * (i * -j);
} else if (c <= -1e-274) {
tmp = t_1;
} else if (c <= 2.5e-30) {
tmp = x * (y * z);
} else if (c <= 210.0) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = a * (x * -t) t_3 = c * ((t * j) - (z * b)) tmp = 0 if c <= -130000.0: tmp = t_3 elif c <= -2.65e-79: tmp = t_1 elif c <= -7.8e-83: tmp = t_3 elif c <= -1.55e-179: tmp = i * (y * -j) elif c <= -2.3e-208: tmp = t_2 elif c <= -5.7e-223: tmp = y * (i * -j) elif c <= -1e-274: tmp = t_1 elif c <= 2.5e-30: tmp = x * (y * z) elif c <= 210.0: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(a * Float64(x * Float64(-t))) t_3 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -130000.0) tmp = t_3; elseif (c <= -2.65e-79) tmp = t_1; elseif (c <= -7.8e-83) tmp = t_3; elseif (c <= -1.55e-179) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= -2.3e-208) tmp = t_2; elseif (c <= -5.7e-223) tmp = Float64(y * Float64(i * Float64(-j))); elseif (c <= -1e-274) tmp = t_1; elseif (c <= 2.5e-30) tmp = Float64(x * Float64(y * z)); elseif (c <= 210.0) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = a * (x * -t); t_3 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -130000.0) tmp = t_3; elseif (c <= -2.65e-79) tmp = t_1; elseif (c <= -7.8e-83) tmp = t_3; elseif (c <= -1.55e-179) tmp = i * (y * -j); elseif (c <= -2.3e-208) tmp = t_2; elseif (c <= -5.7e-223) tmp = y * (i * -j); elseif (c <= -1e-274) tmp = t_1; elseif (c <= 2.5e-30) tmp = x * (y * z); elseif (c <= 210.0) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -130000.0], t$95$3, If[LessEqual[c, -2.65e-79], t$95$1, If[LessEqual[c, -7.8e-83], t$95$3, If[LessEqual[c, -1.55e-179], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.3e-208], t$95$2, If[LessEqual[c, -5.7e-223], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1e-274], t$95$1, If[LessEqual[c, 2.5e-30], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 210.0], t$95$2, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := a \cdot \left(x \cdot \left(-t\right)\right)\\
t_3 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -130000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -2.65 \cdot 10^{-79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -7.8 \cdot 10^{-83}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{-179}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-208}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.7 \cdot 10^{-223}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-274}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-30}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 210:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -1.3e5 or -2.6499999999999999e-79 < c < -7.800000000000001e-83 or 210 < c Initial program 65.2%
Taylor expanded in c around inf 66.0%
if -1.3e5 < c < -2.6499999999999999e-79 or -5.6999999999999998e-223 < c < -9.99999999999999966e-275Initial program 86.6%
Taylor expanded in y around inf 45.3%
+-commutative45.3%
mul-1-neg45.3%
unsub-neg45.3%
*-commutative45.3%
Simplified45.3%
Taylor expanded in z around inf 42.0%
associate-*r*51.4%
*-commutative51.4%
Simplified51.4%
if -7.800000000000001e-83 < c < -1.5500000000000001e-179Initial program 80.8%
Taylor expanded in c around inf 76.5%
*-commutative76.5%
associate-*l*62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in i around inf 45.8%
associate-*r*45.8%
neg-mul-145.8%
Simplified45.8%
if -1.5500000000000001e-179 < c < -2.29999999999999997e-208 or 2.49999999999999986e-30 < c < 210Initial program 78.8%
Taylor expanded in c around inf 78.5%
*-commutative78.5%
associate-*l*78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in a around inf 72.0%
associate-*r*72.0%
neg-mul-172.0%
Simplified72.0%
if -2.29999999999999997e-208 < c < -5.6999999999999998e-223Initial program 66.2%
Taylor expanded in y around inf 68.1%
+-commutative68.1%
mul-1-neg68.1%
unsub-neg68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in z around 0 68.1%
mul-1-neg68.1%
distribute-lft-neg-out68.1%
*-commutative68.1%
Simplified68.1%
if -9.99999999999999966e-275 < c < 2.49999999999999986e-30Initial program 85.8%
Taylor expanded in y around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in z around inf 39.3%
Final simplification57.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.15e+19)
t_1
(if (<= x -2.4e-77)
(* a (- (* b i) (* x t)))
(if (<= x 8.5e-197)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (or (<= x 3.6e-87) (not (<= x 5.1e+22)))
(- t_1 (* c (* z b)))
(* b (- (* a i) (* z c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+19) {
tmp = t_1;
} else if (x <= -2.4e-77) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 8.5e-197) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if ((x <= 3.6e-87) || !(x <= 5.1e+22)) {
tmp = t_1 - (c * (z * b));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-1.15d+19)) then
tmp = t_1
else if (x <= (-2.4d-77)) then
tmp = a * ((b * i) - (x * t))
else if (x <= 8.5d-197) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if ((x <= 3.6d-87) .or. (.not. (x <= 5.1d+22))) then
tmp = t_1 - (c * (z * b))
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+19) {
tmp = t_1;
} else if (x <= -2.4e-77) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 8.5e-197) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if ((x <= 3.6e-87) || !(x <= 5.1e+22)) {
tmp = t_1 - (c * (z * b));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.15e+19: tmp = t_1 elif x <= -2.4e-77: tmp = a * ((b * i) - (x * t)) elif x <= 8.5e-197: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif (x <= 3.6e-87) or not (x <= 5.1e+22): tmp = t_1 - (c * (z * b)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.15e+19) tmp = t_1; elseif (x <= -2.4e-77) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= 8.5e-197) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif ((x <= 3.6e-87) || !(x <= 5.1e+22)) tmp = Float64(t_1 - Float64(c * Float64(z * b))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.15e+19) tmp = t_1; elseif (x <= -2.4e-77) tmp = a * ((b * i) - (x * t)); elseif (x <= 8.5e-197) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif ((x <= 3.6e-87) || ~((x <= 5.1e+22))) tmp = t_1 - (c * (z * b)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.15e+19], t$95$1, If[LessEqual[x, -2.4e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e-197], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 3.6e-87], N[Not[LessEqual[x, 5.1e+22]], $MachinePrecision]], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.15 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-197}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-87} \lor \neg \left(x \leq 5.1 \cdot 10^{+22}\right):\\
\;\;\;\;t_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -1.15e19Initial program 80.3%
Taylor expanded in c around inf 82.3%
*-commutative82.3%
associate-*l*82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in x around inf 74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
if -1.15e19 < x < -2.3999999999999999e-77Initial program 61.4%
Taylor expanded in a around inf 60.6%
distribute-lft-out--60.6%
*-commutative60.6%
Simplified60.6%
if -2.3999999999999999e-77 < x < 8.5e-197Initial program 69.8%
Taylor expanded in c around inf 68.7%
*-commutative68.7%
associate-*l*66.0%
*-commutative66.0%
Simplified66.0%
Taylor expanded in x around 0 69.0%
if 8.5e-197 < x < 3.59999999999999993e-87 or 5.1000000000000002e22 < x Initial program 72.7%
Taylor expanded in j around 0 76.2%
fma-neg77.3%
*-commutative77.3%
*-commutative77.3%
fma-neg76.2%
Simplified76.2%
Taylor expanded in c around inf 72.0%
*-commutative69.5%
associate-*l*70.6%
*-commutative70.6%
Simplified73.1%
if 3.59999999999999993e-87 < x < 5.1000000000000002e22Initial program 90.1%
Taylor expanded in b around inf 57.6%
*-commutative57.6%
Simplified57.6%
Final simplification70.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= j -6.6e+195)
(* i (- (* a b) (* y j)))
(if (<= j -1.1e-26)
(+ t_1 t_2)
(if (<= j 9.8e+41)
(+ t_2 (* b (- (* a i) (* z c))))
(if (<= j 3e+252)
(- t_1 (* b (* 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 t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (j <= -6.6e+195) {
tmp = i * ((a * b) - (y * j));
} else if (j <= -1.1e-26) {
tmp = t_1 + t_2;
} else if (j <= 9.8e+41) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else if (j <= 3e+252) {
tmp = t_1 - (b * (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (j <= (-6.6d+195)) then
tmp = i * ((a * b) - (y * j))
else if (j <= (-1.1d-26)) then
tmp = t_1 + t_2
else if (j <= 9.8d+41) then
tmp = t_2 + (b * ((a * i) - (z * c)))
else if (j <= 3d+252) then
tmp = t_1 - (b * (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 t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (j <= -6.6e+195) {
tmp = i * ((a * b) - (y * j));
} else if (j <= -1.1e-26) {
tmp = t_1 + t_2;
} else if (j <= 9.8e+41) {
tmp = t_2 + (b * ((a * i) - (z * c)));
} else if (j <= 3e+252) {
tmp = t_1 - (b * (z * c));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if j <= -6.6e+195: tmp = i * ((a * b) - (y * j)) elif j <= -1.1e-26: tmp = t_1 + t_2 elif j <= 9.8e+41: tmp = t_2 + (b * ((a * i) - (z * c))) elif j <= 3e+252: tmp = t_1 - (b * (z * c)) else: tmp = c * ((t * j) - (z * b)) 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (j <= -6.6e+195) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= -1.1e-26) tmp = Float64(t_1 + t_2); elseif (j <= 9.8e+41) tmp = Float64(t_2 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 3e+252) tmp = Float64(t_1 - Float64(b * 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) t_1 = j * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (j <= -6.6e+195) tmp = i * ((a * b) - (y * j)); elseif (j <= -1.1e-26) tmp = t_1 + t_2; elseif (j <= 9.8e+41) tmp = t_2 + (b * ((a * i) - (z * c))); elseif (j <= 3e+252) tmp = t_1 - (b * (z * c)); 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.6e+195], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.1e-26], N[(t$95$1 + t$95$2), $MachinePrecision], If[LessEqual[j, 9.8e+41], N[(t$95$2 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e+252], N[(t$95$1 - N[(b * 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}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -6.6 \cdot 10^{+195}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq -1.1 \cdot 10^{-26}:\\
\;\;\;\;t_1 + t_2\\
\mathbf{elif}\;j \leq 9.8 \cdot 10^{+41}:\\
\;\;\;\;t_2 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{+252}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if j < -6.5999999999999999e195Initial program 54.7%
Taylor expanded in i around inf 73.9%
distribute-lft-out--73.9%
*-commutative73.9%
Simplified73.9%
if -6.5999999999999999e195 < j < -1.1e-26Initial program 75.5%
Taylor expanded in b around 0 71.9%
if -1.1e-26 < j < 9.7999999999999998e41Initial program 78.3%
Taylor expanded in j around 0 82.0%
fma-neg82.7%
*-commutative82.7%
*-commutative82.7%
fma-neg82.0%
Simplified82.0%
if 9.7999999999999998e41 < j < 2.99999999999999989e252Initial program 75.5%
Taylor expanded in c around inf 81.2%
*-commutative81.2%
associate-*l*81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in x around 0 76.5%
if 2.99999999999999989e252 < j Initial program 55.1%
Taylor expanded in c around inf 93.1%
Final simplification79.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -9e+18)
t_1
(if (<= x -1.3e-76)
(* a (- (* b i) (* x t)))
(if (<= x 1.65e-177)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (<= x 1.85e+27)
(- (* b (- (* a i) (* z c))) (* a (* x t)))
(- t_1 (* c (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_1;
} else if (x <= -1.3e-76) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 1.65e-177) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 1.85e+27) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else {
tmp = t_1 - (c * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-9d+18)) then
tmp = t_1
else if (x <= (-1.3d-76)) then
tmp = a * ((b * i) - (x * t))
else if (x <= 1.65d-177) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if (x <= 1.85d+27) then
tmp = (b * ((a * i) - (z * c))) - (a * (x * t))
else
tmp = t_1 - (c * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_1;
} else if (x <= -1.3e-76) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 1.65e-177) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 1.85e+27) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else {
tmp = t_1 - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9e+18: tmp = t_1 elif x <= -1.3e-76: tmp = a * ((b * i) - (x * t)) elif x <= 1.65e-177: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif x <= 1.85e+27: tmp = (b * ((a * i) - (z * c))) - (a * (x * t)) else: tmp = t_1 - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9e+18) tmp = t_1; elseif (x <= -1.3e-76) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= 1.65e-177) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (x <= 1.85e+27) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(a * Float64(x * t))); else tmp = Float64(t_1 - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9e+18) tmp = t_1; elseif (x <= -1.3e-76) tmp = a * ((b * i) - (x * t)); elseif (x <= 1.65e-177) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif (x <= 1.85e+27) tmp = (b * ((a * i) - (z * c))) - (a * (x * t)); else tmp = t_1 - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9e+18], t$95$1, If[LessEqual[x, -1.3e-76], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e-177], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e+27], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-76}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-177}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{+27}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if x < -9e18Initial program 80.3%
Taylor expanded in c around inf 82.3%
*-commutative82.3%
associate-*l*82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in x around inf 74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
if -9e18 < x < -1.3e-76Initial program 61.4%
Taylor expanded in a around inf 60.6%
distribute-lft-out--60.6%
*-commutative60.6%
Simplified60.6%
if -1.3e-76 < x < 1.65e-177Initial program 68.8%
Taylor expanded in c around inf 67.7%
*-commutative67.7%
associate-*l*65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in x around 0 66.6%
if 1.65e-177 < x < 1.85000000000000001e27Initial program 78.4%
Taylor expanded in j around 0 70.9%
fma-neg70.9%
*-commutative70.9%
*-commutative70.9%
fma-neg70.9%
Simplified70.9%
Taylor expanded in y around 0 66.3%
associate-*r*66.3%
neg-mul-166.3%
*-commutative66.3%
Simplified66.3%
if 1.85000000000000001e27 < x Initial program 75.5%
Taylor expanded in j around 0 78.7%
fma-neg80.2%
*-commutative80.2%
*-commutative80.2%
fma-neg78.7%
Simplified78.7%
Taylor expanded in c around inf 75.7%
*-commutative74.0%
associate-*l*75.5%
*-commutative75.5%
Simplified77.2%
Final simplification70.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.42e+101) (not (<= b 2.8e+37))) (- (* b (- (* a i) (* z c))) (* a (* x t))) (+ (* j (- (* t c) (* y i))) (* 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 <= -2.42e+101) || !(b <= 2.8e+37)) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) + (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 <= (-2.42d+101)) .or. (.not. (b <= 2.8d+37))) then
tmp = (b * ((a * i) - (z * c))) - (a * (x * t))
else
tmp = (j * ((t * c) - (y * i))) + (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 <= -2.42e+101) || !(b <= 2.8e+37)) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.42e+101) or not (b <= 2.8e+37): tmp = (b * ((a * i) - (z * c))) - (a * (x * t)) else: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.42e+101) || !(b <= 2.8e+37)) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(a * Float64(x * t))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + 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 <= -2.42e+101) || ~((b <= 2.8e+37))) tmp = (b * ((a * i) - (z * c))) - (a * (x * t)); else tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.42e+101], N[Not[LessEqual[b, 2.8e+37]], $MachinePrecision]], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.42 \cdot 10^{+101} \lor \neg \left(b \leq 2.8 \cdot 10^{+37}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -2.4200000000000001e101 or 2.7999999999999998e37 < b Initial program 76.6%
Taylor expanded in j around 0 78.1%
fma-neg80.4%
*-commutative80.4%
*-commutative80.4%
fma-neg78.1%
Simplified78.1%
Taylor expanded in y around 0 76.1%
associate-*r*76.1%
neg-mul-176.1%
*-commutative76.1%
Simplified76.1%
if -2.4200000000000001e101 < b < 2.7999999999999998e37Initial program 72.9%
Taylor expanded in b around 0 71.0%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* z b)))) (t_2 (* z (* x y))))
(if (<= x -4e+174)
t_2
(if (<= x -5.8e+163)
(* x (* t (- a)))
(if (<= x -1.5e+19)
t_2
(if (<= x -7.8e-141)
(* y (* i (- j)))
(if (<= x -1.9e-229)
t_1
(if (<= x -3.8e-275)
(* j (- (* y i)))
(if (<= x 1.08e-179)
(* c (* t j))
(if (<= x 3.4e+41) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double t_2 = z * (x * y);
double tmp;
if (x <= -4e+174) {
tmp = t_2;
} else if (x <= -5.8e+163) {
tmp = x * (t * -a);
} else if (x <= -1.5e+19) {
tmp = t_2;
} else if (x <= -7.8e-141) {
tmp = y * (i * -j);
} else if (x <= -1.9e-229) {
tmp = t_1;
} else if (x <= -3.8e-275) {
tmp = j * -(y * i);
} else if (x <= 1.08e-179) {
tmp = c * (t * j);
} else if (x <= 3.4e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * -(z * b)
t_2 = z * (x * y)
if (x <= (-4d+174)) then
tmp = t_2
else if (x <= (-5.8d+163)) then
tmp = x * (t * -a)
else if (x <= (-1.5d+19)) then
tmp = t_2
else if (x <= (-7.8d-141)) then
tmp = y * (i * -j)
else if (x <= (-1.9d-229)) then
tmp = t_1
else if (x <= (-3.8d-275)) then
tmp = j * -(y * i)
else if (x <= 1.08d-179) then
tmp = c * (t * j)
else if (x <= 3.4d+41) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * -(z * b);
double t_2 = z * (x * y);
double tmp;
if (x <= -4e+174) {
tmp = t_2;
} else if (x <= -5.8e+163) {
tmp = x * (t * -a);
} else if (x <= -1.5e+19) {
tmp = t_2;
} else if (x <= -7.8e-141) {
tmp = y * (i * -j);
} else if (x <= -1.9e-229) {
tmp = t_1;
} else if (x <= -3.8e-275) {
tmp = j * -(y * i);
} else if (x <= 1.08e-179) {
tmp = c * (t * j);
} else if (x <= 3.4e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * -(z * b) t_2 = z * (x * y) tmp = 0 if x <= -4e+174: tmp = t_2 elif x <= -5.8e+163: tmp = x * (t * -a) elif x <= -1.5e+19: tmp = t_2 elif x <= -7.8e-141: tmp = y * (i * -j) elif x <= -1.9e-229: tmp = t_1 elif x <= -3.8e-275: tmp = j * -(y * i) elif x <= 1.08e-179: tmp = c * (t * j) elif x <= 3.4e+41: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(-Float64(z * b))) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -4e+174) tmp = t_2; elseif (x <= -5.8e+163) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -1.5e+19) tmp = t_2; elseif (x <= -7.8e-141) tmp = Float64(y * Float64(i * Float64(-j))); elseif (x <= -1.9e-229) tmp = t_1; elseif (x <= -3.8e-275) tmp = Float64(j * Float64(-Float64(y * i))); elseif (x <= 1.08e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 3.4e+41) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * -(z * b); t_2 = z * (x * y); tmp = 0.0; if (x <= -4e+174) tmp = t_2; elseif (x <= -5.8e+163) tmp = x * (t * -a); elseif (x <= -1.5e+19) tmp = t_2; elseif (x <= -7.8e-141) tmp = y * (i * -j); elseif (x <= -1.9e-229) tmp = t_1; elseif (x <= -3.8e-275) tmp = j * -(y * i); elseif (x <= 1.08e-179) tmp = c * (t * j); elseif (x <= 3.4e+41) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+174], t$95$2, If[LessEqual[x, -5.8e+163], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.5e+19], t$95$2, If[LessEqual[x, -7.8e-141], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e-229], t$95$1, If[LessEqual[x, -3.8e-275], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 1.08e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+41], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-z \cdot b\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{+19}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-141}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-275}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -4.00000000000000028e174 or -5.79999999999999996e163 < x < -1.5e19 or 3.39999999999999998e41 < x Initial program 80.7%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in z around inf 47.4%
associate-*r*49.7%
*-commutative49.7%
Simplified49.7%
if -4.00000000000000028e174 < x < -5.79999999999999996e163Initial program 50.0%
Taylor expanded in j around 0 50.0%
fma-neg50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
Simplified50.0%
*-commutative50.0%
prod-diff33.3%
fma-neg33.3%
cancel-sign-sub-inv33.3%
fma-def33.3%
*-commutative33.3%
Applied egg-rr33.3%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-*l*100.0%
Simplified100.0%
if -1.5e19 < x < -7.7999999999999994e-141Initial program 63.1%
Taylor expanded in y around inf 44.7%
+-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in z around 0 32.8%
mul-1-neg32.8%
distribute-lft-neg-out32.8%
*-commutative32.8%
Simplified32.8%
if -7.7999999999999994e-141 < x < -1.9000000000000001e-229 or 1.08000000000000006e-179 < x < 3.39999999999999998e41Initial program 72.1%
Taylor expanded in c around inf 56.6%
Taylor expanded in j around 0 40.5%
neg-mul-140.5%
distribute-lft-neg-in40.5%
*-commutative40.5%
Simplified40.5%
if -1.9000000000000001e-229 < x < -3.79999999999999972e-275Initial program 89.8%
Taylor expanded in c around inf 89.8%
*-commutative89.8%
associate-*l*71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around inf 50.9%
associate-*r*50.9%
neg-mul-150.9%
associate-*r*50.8%
*-commutative50.8%
associate-*l*60.4%
*-commutative60.4%
Simplified60.4%
if -3.79999999999999972e-275 < x < 1.08000000000000006e-179Initial program 66.8%
Taylor expanded in c around inf 57.0%
Taylor expanded in j around inf 43.3%
*-commutative43.3%
Simplified43.3%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z c) (- b))) (t_2 (* z (* x y))))
(if (<= x -1.65e+174)
t_2
(if (<= x -3e+159)
(* x (* t (- a)))
(if (<= x -1.3e+19)
t_2
(if (<= x -8.5e-116)
(* i (* y (- j)))
(if (<= x -3.5e-230)
t_1
(if (<= x -1.05e-274)
(* j (- (* y i)))
(if (<= x 1.28e-179)
(* c (* t j))
(if (<= x 3e+41) 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 = (z * c) * -b;
double t_2 = z * (x * y);
double tmp;
if (x <= -1.65e+174) {
tmp = t_2;
} else if (x <= -3e+159) {
tmp = x * (t * -a);
} else if (x <= -1.3e+19) {
tmp = t_2;
} else if (x <= -8.5e-116) {
tmp = i * (y * -j);
} else if (x <= -3.5e-230) {
tmp = t_1;
} else if (x <= -1.05e-274) {
tmp = j * -(y * i);
} else if (x <= 1.28e-179) {
tmp = c * (t * j);
} else if (x <= 3e+41) {
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 = (z * c) * -b
t_2 = z * (x * y)
if (x <= (-1.65d+174)) then
tmp = t_2
else if (x <= (-3d+159)) then
tmp = x * (t * -a)
else if (x <= (-1.3d+19)) then
tmp = t_2
else if (x <= (-8.5d-116)) then
tmp = i * (y * -j)
else if (x <= (-3.5d-230)) then
tmp = t_1
else if (x <= (-1.05d-274)) then
tmp = j * -(y * i)
else if (x <= 1.28d-179) then
tmp = c * (t * j)
else if (x <= 3d+41) 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 = (z * c) * -b;
double t_2 = z * (x * y);
double tmp;
if (x <= -1.65e+174) {
tmp = t_2;
} else if (x <= -3e+159) {
tmp = x * (t * -a);
} else if (x <= -1.3e+19) {
tmp = t_2;
} else if (x <= -8.5e-116) {
tmp = i * (y * -j);
} else if (x <= -3.5e-230) {
tmp = t_1;
} else if (x <= -1.05e-274) {
tmp = j * -(y * i);
} else if (x <= 1.28e-179) {
tmp = c * (t * j);
} else if (x <= 3e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * c) * -b t_2 = z * (x * y) tmp = 0 if x <= -1.65e+174: tmp = t_2 elif x <= -3e+159: tmp = x * (t * -a) elif x <= -1.3e+19: tmp = t_2 elif x <= -8.5e-116: tmp = i * (y * -j) elif x <= -3.5e-230: tmp = t_1 elif x <= -1.05e-274: tmp = j * -(y * i) elif x <= 1.28e-179: tmp = c * (t * j) elif x <= 3e+41: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * c) * Float64(-b)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -1.65e+174) tmp = t_2; elseif (x <= -3e+159) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -1.3e+19) tmp = t_2; elseif (x <= -8.5e-116) tmp = Float64(i * Float64(y * Float64(-j))); elseif (x <= -3.5e-230) tmp = t_1; elseif (x <= -1.05e-274) tmp = Float64(j * Float64(-Float64(y * i))); elseif (x <= 1.28e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 3e+41) 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 = (z * c) * -b; t_2 = z * (x * y); tmp = 0.0; if (x <= -1.65e+174) tmp = t_2; elseif (x <= -3e+159) tmp = x * (t * -a); elseif (x <= -1.3e+19) tmp = t_2; elseif (x <= -8.5e-116) tmp = i * (y * -j); elseif (x <= -3.5e-230) tmp = t_1; elseif (x <= -1.05e-274) tmp = j * -(y * i); elseif (x <= 1.28e-179) tmp = c * (t * j); elseif (x <= 3e+41) 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[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.65e+174], t$95$2, If[LessEqual[x, -3e+159], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.3e+19], t$95$2, If[LessEqual[x, -8.5e-116], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.5e-230], t$95$1, If[LessEqual[x, -1.05e-274], N[(j * (-N[(y * i), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 1.28e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+41], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+159}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{+19}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-116}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-274}:\\
\;\;\;\;j \cdot \left(-y \cdot i\right)\\
\mathbf{elif}\;x \leq 1.28 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.65e174 or -3.0000000000000002e159 < x < -1.3e19 or 2.9999999999999998e41 < x Initial program 80.7%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in z around inf 47.4%
associate-*r*49.7%
*-commutative49.7%
Simplified49.7%
if -1.65e174 < x < -3.0000000000000002e159Initial program 50.0%
Taylor expanded in j around 0 50.0%
fma-neg50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
Simplified50.0%
*-commutative50.0%
prod-diff33.3%
fma-neg33.3%
cancel-sign-sub-inv33.3%
fma-def33.3%
*-commutative33.3%
Applied egg-rr33.3%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-*l*100.0%
Simplified100.0%
if -1.3e19 < x < -8.4999999999999995e-116Initial program 61.5%
Taylor expanded in c around inf 57.6%
*-commutative57.6%
associate-*l*55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in i around inf 34.5%
associate-*r*34.5%
neg-mul-134.5%
Simplified34.5%
if -8.4999999999999995e-116 < x < -3.49999999999999988e-230 or 1.28000000000000006e-179 < x < 2.9999999999999998e41Initial program 72.3%
Taylor expanded in c around inf 62.8%
*-commutative62.8%
associate-*l*61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in b around inf 42.6%
mul-1-neg42.6%
*-commutative42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
if -3.49999999999999988e-230 < x < -1.04999999999999997e-274Initial program 89.8%
Taylor expanded in c around inf 89.8%
*-commutative89.8%
associate-*l*71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in i around inf 50.9%
associate-*r*50.9%
neg-mul-150.9%
associate-*r*50.8%
*-commutative50.8%
associate-*l*60.4%
*-commutative60.4%
Simplified60.4%
if -1.04999999999999997e-274 < x < 1.28000000000000006e-179Initial program 66.8%
Taylor expanded in c around inf 57.0%
Taylor expanded in j around inf 43.3%
*-commutative43.3%
Simplified43.3%
Final simplification46.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= x -9.5e+172)
t_1
(if (<= x -1.9e+163)
(* x (* t (- a)))
(if (<= x -400000000.0)
t_1
(if (<= x 7.5e-251)
t_2
(if (<= x 1.08e-179)
(* c (* t j))
(if (<= x 3.2e+44) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -9.5e+172) {
tmp = t_1;
} else if (x <= -1.9e+163) {
tmp = x * (t * -a);
} else if (x <= -400000000.0) {
tmp = t_1;
} else if (x <= 7.5e-251) {
tmp = t_2;
} else if (x <= 1.08e-179) {
tmp = c * (t * j);
} else if (x <= 3.2e+44) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = z * (x * y)
t_2 = b * ((a * i) - (z * c))
if (x <= (-9.5d+172)) then
tmp = t_1
else if (x <= (-1.9d+163)) then
tmp = x * (t * -a)
else if (x <= (-400000000.0d0)) then
tmp = t_1
else if (x <= 7.5d-251) then
tmp = t_2
else if (x <= 1.08d-179) then
tmp = c * (t * j)
else if (x <= 3.2d+44) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (x <= -9.5e+172) {
tmp = t_1;
} else if (x <= -1.9e+163) {
tmp = x * (t * -a);
} else if (x <= -400000000.0) {
tmp = t_1;
} else if (x <= 7.5e-251) {
tmp = t_2;
} else if (x <= 1.08e-179) {
tmp = c * (t * j);
} else if (x <= 3.2e+44) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = b * ((a * i) - (z * c)) tmp = 0 if x <= -9.5e+172: tmp = t_1 elif x <= -1.9e+163: tmp = x * (t * -a) elif x <= -400000000.0: tmp = t_1 elif x <= 7.5e-251: tmp = t_2 elif x <= 1.08e-179: tmp = c * (t * j) elif x <= 3.2e+44: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (x <= -9.5e+172) tmp = t_1; elseif (x <= -1.9e+163) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -400000000.0) tmp = t_1; elseif (x <= 7.5e-251) tmp = t_2; elseif (x <= 1.08e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 3.2e+44) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (x <= -9.5e+172) tmp = t_1; elseif (x <= -1.9e+163) tmp = x * (t * -a); elseif (x <= -400000000.0) tmp = t_1; elseif (x <= 7.5e-251) tmp = t_2; elseif (x <= 1.08e-179) tmp = c * (t * j); elseif (x <= 3.2e+44) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.5e+172], t$95$1, If[LessEqual[x, -1.9e+163], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -400000000.0], t$95$1, If[LessEqual[x, 7.5e-251], t$95$2, If[LessEqual[x, 1.08e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{+172}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -400000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-251}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -9.50000000000000027e172 or -1.90000000000000004e163 < x < -4e8 or 3.20000000000000004e44 < x Initial program 81.7%
Taylor expanded in y around inf 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 47.0%
associate-*r*49.3%
*-commutative49.3%
Simplified49.3%
if -9.50000000000000027e172 < x < -1.90000000000000004e163Initial program 50.0%
Taylor expanded in j around 0 50.0%
fma-neg50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
Simplified50.0%
*-commutative50.0%
prod-diff33.3%
fma-neg33.3%
cancel-sign-sub-inv33.3%
fma-def33.3%
*-commutative33.3%
Applied egg-rr33.3%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-*l*100.0%
Simplified100.0%
if -4e8 < x < 7.5000000000000004e-251 or 1.08000000000000006e-179 < x < 3.20000000000000004e44Initial program 69.2%
Taylor expanded in b around inf 46.2%
*-commutative46.2%
Simplified46.2%
if 7.5000000000000004e-251 < x < 1.08000000000000006e-179Initial program 64.3%
Taylor expanded in c around inf 64.1%
Taylor expanded in j around inf 63.5%
*-commutative63.5%
Simplified63.5%
Final simplification49.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -9e+18)
t_2
(if (<= x -1.24e-86)
t_1
(if (<= x -5.4e-114)
(* i (* y (- j)))
(if (<= x 6e-25)
(* c (- (* t j) (* z b)))
(if (<= x 3.5e+43)
(* b (- (* a i) (* z c)))
(if (<= x 8.8e+66) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_2;
} else if (x <= -1.24e-86) {
tmp = t_1;
} else if (x <= -5.4e-114) {
tmp = i * (y * -j);
} else if (x <= 6e-25) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 3.5e+43) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.8e+66) {
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 = x * ((y * z) - (t * a))
if (x <= (-9d+18)) then
tmp = t_2
else if (x <= (-1.24d-86)) then
tmp = t_1
else if (x <= (-5.4d-114)) then
tmp = i * (y * -j)
else if (x <= 6d-25) then
tmp = c * ((t * j) - (z * b))
else if (x <= 3.5d+43) then
tmp = b * ((a * i) - (z * c))
else if (x <= 8.8d+66) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_2;
} else if (x <= -1.24e-86) {
tmp = t_1;
} else if (x <= -5.4e-114) {
tmp = i * (y * -j);
} else if (x <= 6e-25) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 3.5e+43) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.8e+66) {
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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9e+18: tmp = t_2 elif x <= -1.24e-86: tmp = t_1 elif x <= -5.4e-114: tmp = i * (y * -j) elif x <= 6e-25: tmp = c * ((t * j) - (z * b)) elif x <= 3.5e+43: tmp = b * ((a * i) - (z * c)) elif x <= 8.8e+66: 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9e+18) tmp = t_2; elseif (x <= -1.24e-86) tmp = t_1; elseif (x <= -5.4e-114) tmp = Float64(i * Float64(y * Float64(-j))); elseif (x <= 6e-25) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 3.5e+43) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 8.8e+66) 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9e+18) tmp = t_2; elseif (x <= -1.24e-86) tmp = t_1; elseif (x <= -5.4e-114) tmp = i * (y * -j); elseif (x <= 6e-25) tmp = c * ((t * j) - (z * b)); elseif (x <= 3.5e+43) tmp = b * ((a * i) - (z * c)); elseif (x <= 8.8e+66) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9e+18], t$95$2, If[LessEqual[x, -1.24e-86], t$95$1, If[LessEqual[x, -5.4e-114], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e-25], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e+43], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e+66], 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 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.24 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{-114}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 8.8 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -9e18 or 8.7999999999999994e66 < x Initial program 80.2%
Taylor expanded in c around inf 78.6%
*-commutative78.6%
associate-*l*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if -9e18 < x < -1.23999999999999999e-86 or 3.5000000000000001e43 < x < 8.7999999999999994e66Initial program 66.5%
Taylor expanded in t around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
*-commutative58.3%
Simplified58.3%
if -1.23999999999999999e-86 < x < -5.3999999999999999e-114Initial program 58.5%
Taylor expanded in c around inf 66.8%
*-commutative66.8%
associate-*l*66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in i around inf 59.3%
associate-*r*59.3%
neg-mul-159.3%
Simplified59.3%
if -5.3999999999999999e-114 < x < 5.9999999999999995e-25Initial program 71.6%
Taylor expanded in c around inf 54.8%
if 5.9999999999999995e-25 < x < 3.5000000000000001e43Initial program 72.8%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -1.3e+19)
t_2
(if (<= x -5.9e-86)
t_1
(if (<= x -2.65e-138)
(* y (- (* x z) (* i j)))
(if (<= x 1.25e-23)
(* c (- (* t j) (* z b)))
(if (<= x 2.9e+44)
(* b (- (* a i) (* z c)))
(if (<= x 5.4e+65) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.3e+19) {
tmp = t_2;
} else if (x <= -5.9e-86) {
tmp = t_1;
} else if (x <= -2.65e-138) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.25e-23) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 2.9e+44) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.4e+65) {
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 = x * ((y * z) - (t * a))
if (x <= (-1.3d+19)) then
tmp = t_2
else if (x <= (-5.9d-86)) then
tmp = t_1
else if (x <= (-2.65d-138)) then
tmp = y * ((x * z) - (i * j))
else if (x <= 1.25d-23) then
tmp = c * ((t * j) - (z * b))
else if (x <= 2.9d+44) then
tmp = b * ((a * i) - (z * c))
else if (x <= 5.4d+65) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.3e+19) {
tmp = t_2;
} else if (x <= -5.9e-86) {
tmp = t_1;
} else if (x <= -2.65e-138) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.25e-23) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 2.9e+44) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.4e+65) {
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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.3e+19: tmp = t_2 elif x <= -5.9e-86: tmp = t_1 elif x <= -2.65e-138: tmp = y * ((x * z) - (i * j)) elif x <= 1.25e-23: tmp = c * ((t * j) - (z * b)) elif x <= 2.9e+44: tmp = b * ((a * i) - (z * c)) elif x <= 5.4e+65: 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.3e+19) tmp = t_2; elseif (x <= -5.9e-86) tmp = t_1; elseif (x <= -2.65e-138) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 1.25e-23) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 2.9e+44) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 5.4e+65) 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.3e+19) tmp = t_2; elseif (x <= -5.9e-86) tmp = t_1; elseif (x <= -2.65e-138) tmp = y * ((x * z) - (i * j)); elseif (x <= 1.25e-23) tmp = c * ((t * j) - (z * b)); elseif (x <= 2.9e+44) tmp = b * ((a * i) - (z * c)); elseif (x <= 5.4e+65) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+19], t$95$2, If[LessEqual[x, -5.9e-86], t$95$1, If[LessEqual[x, -2.65e-138], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e-23], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+44], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e+65], 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 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+19}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.9 \cdot 10^{-86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.65 \cdot 10^{-138}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-23}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+44}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.3e19 or 5.40000000000000038e65 < x Initial program 80.2%
Taylor expanded in c around inf 78.6%
*-commutative78.6%
associate-*l*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if -1.3e19 < x < -5.89999999999999998e-86 or 2.9000000000000002e44 < x < 5.40000000000000038e65Initial program 66.5%
Taylor expanded in t around inf 58.3%
+-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
*-commutative58.3%
Simplified58.3%
if -5.89999999999999998e-86 < x < -2.65000000000000013e-138Initial program 62.9%
Taylor expanded in y around inf 69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
Simplified69.8%
if -2.65000000000000013e-138 < x < 1.2500000000000001e-23Initial program 71.4%
Taylor expanded in c around inf 56.1%
if 1.2500000000000001e-23 < x < 2.9000000000000002e44Initial program 72.8%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -2.6e+19)
t_1
(if (<= x -6e-86)
(* a (- (* b i) (* x t)))
(if (<= x -4.8e-139)
(* y (- (* x z) (* i j)))
(if (<= x 4.2e-33)
(* c (- (* t j) (* z b)))
(if (<= x 9e+43)
(* b (- (* a i) (* z c)))
(if (<= x 5.2e+65) (* t (- (* c j) (* x a))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.6e+19) {
tmp = t_1;
} else if (x <= -6e-86) {
tmp = a * ((b * i) - (x * t));
} else if (x <= -4.8e-139) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 4.2e-33) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 9e+43) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.2e+65) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-2.6d+19)) then
tmp = t_1
else if (x <= (-6d-86)) then
tmp = a * ((b * i) - (x * t))
else if (x <= (-4.8d-139)) then
tmp = y * ((x * z) - (i * j))
else if (x <= 4.2d-33) then
tmp = c * ((t * j) - (z * b))
else if (x <= 9d+43) then
tmp = b * ((a * i) - (z * c))
else if (x <= 5.2d+65) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.6e+19) {
tmp = t_1;
} else if (x <= -6e-86) {
tmp = a * ((b * i) - (x * t));
} else if (x <= -4.8e-139) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 4.2e-33) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 9e+43) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.2e+65) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -2.6e+19: tmp = t_1 elif x <= -6e-86: tmp = a * ((b * i) - (x * t)) elif x <= -4.8e-139: tmp = y * ((x * z) - (i * j)) elif x <= 4.2e-33: tmp = c * ((t * j) - (z * b)) elif x <= 9e+43: tmp = b * ((a * i) - (z * c)) elif x <= 5.2e+65: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -2.6e+19) tmp = t_1; elseif (x <= -6e-86) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= -4.8e-139) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 4.2e-33) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 9e+43) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 5.2e+65) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -2.6e+19) tmp = t_1; elseif (x <= -6e-86) tmp = a * ((b * i) - (x * t)); elseif (x <= -4.8e-139) tmp = y * ((x * z) - (i * j)); elseif (x <= 4.2e-33) tmp = c * ((t * j) - (z * b)); elseif (x <= 9e+43) tmp = b * ((a * i) - (z * c)); elseif (x <= 5.2e+65) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.6e+19], t$95$1, If[LessEqual[x, -6e-86], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.8e-139], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e-33], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+43], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e+65], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-86}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-139}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-33}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+43}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{+65}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.6e19 or 5.20000000000000005e65 < x Initial program 80.2%
Taylor expanded in c around inf 78.6%
*-commutative78.6%
associate-*l*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in x around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if -2.6e19 < x < -6.0000000000000002e-86Initial program 63.3%
Taylor expanded in a around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
if -6.0000000000000002e-86 < x < -4.80000000000000029e-139Initial program 62.9%
Taylor expanded in y around inf 69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
Simplified69.8%
if -4.80000000000000029e-139 < x < 4.2e-33Initial program 71.4%
Taylor expanded in c around inf 56.1%
if 4.2e-33 < x < 9e43Initial program 72.8%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
if 9e43 < x < 5.20000000000000005e65Initial program 75.0%
Taylor expanded in t around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
*-commutative75.3%
Simplified75.3%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -1.5e+133)
t_2
(if (<= c -2e+110)
t_1
(if (<= c -300000.0)
(* b (- (* a i) (* z c)))
(if (<= c -1.55e-39)
t_1
(if (<= c -1.25e-179)
(* i (- (* a b) (* y j)))
(if (<= c 330.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.5e+133) {
tmp = t_2;
} else if (c <= -2e+110) {
tmp = t_1;
} else if (c <= -300000.0) {
tmp = b * ((a * i) - (z * c));
} else if (c <= -1.55e-39) {
tmp = t_1;
} else if (c <= -1.25e-179) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 330.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = c * ((t * j) - (z * b))
if (c <= (-1.5d+133)) then
tmp = t_2
else if (c <= (-2d+110)) then
tmp = t_1
else if (c <= (-300000.0d0)) then
tmp = b * ((a * i) - (z * c))
else if (c <= (-1.55d-39)) then
tmp = t_1
else if (c <= (-1.25d-179)) then
tmp = i * ((a * b) - (y * j))
else if (c <= 330.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.5e+133) {
tmp = t_2;
} else if (c <= -2e+110) {
tmp = t_1;
} else if (c <= -300000.0) {
tmp = b * ((a * i) - (z * c));
} else if (c <= -1.55e-39) {
tmp = t_1;
} else if (c <= -1.25e-179) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 330.0) {
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)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.5e+133: tmp = t_2 elif c <= -2e+110: tmp = t_1 elif c <= -300000.0: tmp = b * ((a * i) - (z * c)) elif c <= -1.55e-39: tmp = t_1 elif c <= -1.25e-179: tmp = i * ((a * b) - (y * j)) elif c <= 330.0: 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(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.5e+133) tmp = t_2; elseif (c <= -2e+110) tmp = t_1; elseif (c <= -300000.0) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (c <= -1.55e-39) tmp = t_1; elseif (c <= -1.25e-179) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 330.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.5e+133) tmp = t_2; elseif (c <= -2e+110) tmp = t_1; elseif (c <= -300000.0) tmp = b * ((a * i) - (z * c)); elseif (c <= -1.55e-39) tmp = t_1; elseif (c <= -1.25e-179) tmp = i * ((a * b) - (y * j)); elseif (c <= 330.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.5e+133], t$95$2, If[LessEqual[c, -2e+110], t$95$1, If[LessEqual[c, -300000.0], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.55e-39], t$95$1, If[LessEqual[c, -1.25e-179], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 330.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.5 \cdot 10^{+133}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -2 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -300000:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{-39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-179}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 330:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -1.50000000000000003e133 or 330 < c Initial program 61.0%
Taylor expanded in c around inf 68.3%
if -1.50000000000000003e133 < c < -2e110 or -3e5 < c < -1.54999999999999985e-39 or -1.2499999999999999e-179 < c < 330Initial program 82.3%
Taylor expanded in c around inf 80.0%
*-commutative80.0%
associate-*l*78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in x around inf 68.7%
*-commutative68.7%
*-commutative68.7%
Simplified68.7%
if -2e110 < c < -3e5Initial program 94.0%
Taylor expanded in b around inf 77.1%
*-commutative77.1%
Simplified77.1%
if -1.54999999999999985e-39 < c < -1.2499999999999999e-179Initial program 81.9%
Taylor expanded in i around inf 64.2%
distribute-lft-out--64.2%
*-commutative64.2%
Simplified64.2%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -9e+18)
t_1
(if (<= x -2.1e-76)
(* a (- (* b i) (* x t)))
(if (<= x 3e-187)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (<= x 2.5e+41) (* 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_1;
} else if (x <= -2.1e-76) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 3e-187) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 2.5e+41) {
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 = x * ((y * z) - (t * a))
if (x <= (-9d+18)) then
tmp = t_1
else if (x <= (-2.1d-76)) then
tmp = a * ((b * i) - (x * t))
else if (x <= 3d-187) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if (x <= 2.5d+41) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9e+18) {
tmp = t_1;
} else if (x <= -2.1e-76) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 3e-187) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 2.5e+41) {
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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9e+18: tmp = t_1 elif x <= -2.1e-76: tmp = a * ((b * i) - (x * t)) elif x <= 3e-187: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif x <= 2.5e+41: 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9e+18) tmp = t_1; elseif (x <= -2.1e-76) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= 3e-187) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (x <= 2.5e+41) 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9e+18) tmp = t_1; elseif (x <= -2.1e-76) tmp = a * ((b * i) - (x * t)); elseif (x <= 3e-187) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif (x <= 2.5e+41) 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9e+18], t$95$1, If[LessEqual[x, -2.1e-76], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e-187], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+41], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-76}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-187}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+41}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -9e18 or 2.50000000000000011e41 < x Initial program 79.1%
Taylor expanded in c around inf 78.5%
*-commutative78.5%
associate-*l*80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in x around inf 75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -9e18 < x < -2.09999999999999992e-76Initial program 61.4%
Taylor expanded in a around inf 60.6%
distribute-lft-out--60.6%
*-commutative60.6%
Simplified60.6%
if -2.09999999999999992e-76 < x < 3.00000000000000004e-187Initial program 70.7%
Taylor expanded in c around inf 69.6%
*-commutative69.6%
associate-*l*66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around 0 68.5%
if 3.00000000000000004e-187 < x < 2.50000000000000011e41Initial program 72.0%
Taylor expanded in b around inf 58.1%
*-commutative58.1%
Simplified58.1%
Final simplification69.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -3.7e+174)
t_1
(if (<= x -3.4e+164)
(* x (* t (- a)))
(if (<= x -1.6e+19)
t_1
(if (<= x 1.5e-179)
(* c (* t j))
(if (<= x 5.6e+41) (* c (- (* z b))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -3.7e+174) {
tmp = t_1;
} else if (x <= -3.4e+164) {
tmp = x * (t * -a);
} else if (x <= -1.6e+19) {
tmp = t_1;
} else if (x <= 1.5e-179) {
tmp = c * (t * j);
} else if (x <= 5.6e+41) {
tmp = c * -(z * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-3.7d+174)) then
tmp = t_1
else if (x <= (-3.4d+164)) then
tmp = x * (t * -a)
else if (x <= (-1.6d+19)) then
tmp = t_1
else if (x <= 1.5d-179) then
tmp = c * (t * j)
else if (x <= 5.6d+41) then
tmp = c * -(z * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -3.7e+174) {
tmp = t_1;
} else if (x <= -3.4e+164) {
tmp = x * (t * -a);
} else if (x <= -1.6e+19) {
tmp = t_1;
} else if (x <= 1.5e-179) {
tmp = c * (t * j);
} else if (x <= 5.6e+41) {
tmp = c * -(z * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -3.7e+174: tmp = t_1 elif x <= -3.4e+164: tmp = x * (t * -a) elif x <= -1.6e+19: tmp = t_1 elif x <= 1.5e-179: tmp = c * (t * j) elif x <= 5.6e+41: tmp = c * -(z * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -3.7e+174) tmp = t_1; elseif (x <= -3.4e+164) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -1.6e+19) tmp = t_1; elseif (x <= 1.5e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 5.6e+41) tmp = Float64(c * Float64(-Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -3.7e+174) tmp = t_1; elseif (x <= -3.4e+164) tmp = x * (t * -a); elseif (x <= -1.6e+19) tmp = t_1; elseif (x <= 1.5e-179) tmp = c * (t * j); elseif (x <= 5.6e+41) tmp = c * -(z * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+174], t$95$1, If[LessEqual[x, -3.4e+164], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e+19], t$95$1, If[LessEqual[x, 1.5e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e+41], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+174}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+41}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -3.7000000000000002e174 or -3.4000000000000001e164 < x < -1.6e19 or 5.5999999999999999e41 < x Initial program 80.7%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in z around inf 47.4%
associate-*r*49.7%
*-commutative49.7%
Simplified49.7%
if -3.7000000000000002e174 < x < -3.4000000000000001e164Initial program 50.0%
Taylor expanded in j around 0 50.0%
fma-neg50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
Simplified50.0%
*-commutative50.0%
prod-diff33.3%
fma-neg33.3%
cancel-sign-sub-inv33.3%
fma-def33.3%
*-commutative33.3%
Applied egg-rr33.3%
Taylor expanded in t around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
neg-mul-1100.0%
*-commutative100.0%
associate-*l*100.0%
Simplified100.0%
if -1.6e19 < x < 1.50000000000000003e-179Initial program 67.9%
Taylor expanded in c around inf 45.3%
Taylor expanded in j around inf 30.5%
*-commutative30.5%
Simplified30.5%
if 1.50000000000000003e-179 < x < 5.5999999999999999e41Initial program 73.3%
Taylor expanded in c around inf 53.8%
Taylor expanded in j around 0 39.8%
neg-mul-139.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
Simplified39.8%
Final simplification42.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.2e+114) (not (<= b 6.8e-34))) (* b (- (* a i) (* z c))) (* t (- (* c j) (* x 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 <= -4.2e+114) || !(b <= 6.8e-34)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (x * 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 <= (-4.2d+114)) .or. (.not. (b <= 6.8d-34))) then
tmp = b * ((a * i) - (z * c))
else
tmp = t * ((c * j) - (x * 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 <= -4.2e+114) || !(b <= 6.8e-34)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.2e+114) or not (b <= 6.8e-34): tmp = b * ((a * i) - (z * c)) else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.2e+114) || !(b <= 6.8e-34)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.2e+114) || ~((b <= 6.8e-34))) tmp = b * ((a * i) - (z * c)); else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.2e+114], N[Not[LessEqual[b, 6.8e-34]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{+114} \lor \neg \left(b \leq 6.8 \cdot 10^{-34}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if b < -4.2000000000000001e114 or 6.8000000000000001e-34 < b Initial program 79.2%
Taylor expanded in b around inf 60.4%
*-commutative60.4%
Simplified60.4%
if -4.2000000000000001e114 < b < 6.8000000000000001e-34Initial program 70.7%
Taylor expanded in t around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -1.1e+19)
t_1
(if (<= x 1.15e-179)
(* c (* t j))
(if (<= x 2.65e+41) (* c (- (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -1.1e+19) {
tmp = t_1;
} else if (x <= 1.15e-179) {
tmp = c * (t * j);
} else if (x <= 2.65e+41) {
tmp = c * -(z * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-1.1d+19)) then
tmp = t_1
else if (x <= 1.15d-179) then
tmp = c * (t * j)
else if (x <= 2.65d+41) then
tmp = c * -(z * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -1.1e+19) {
tmp = t_1;
} else if (x <= 1.15e-179) {
tmp = c * (t * j);
} else if (x <= 2.65e+41) {
tmp = c * -(z * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -1.1e+19: tmp = t_1 elif x <= 1.15e-179: tmp = c * (t * j) elif x <= 2.65e+41: tmp = c * -(z * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -1.1e+19) tmp = t_1; elseif (x <= 1.15e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 2.65e+41) tmp = Float64(c * Float64(-Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -1.1e+19) tmp = t_1; elseif (x <= 1.15e-179) tmp = c * (t * j); elseif (x <= 2.65e+41) tmp = c * -(z * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1e+19], t$95$1, If[LessEqual[x, 1.15e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.65e+41], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{+41}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.1e19 or 2.6499999999999998e41 < x Initial program 79.1%
Taylor expanded in y around inf 52.5%
+-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
Simplified52.5%
Taylor expanded in z around inf 46.0%
associate-*r*48.1%
*-commutative48.1%
Simplified48.1%
if -1.1e19 < x < 1.14999999999999994e-179Initial program 67.9%
Taylor expanded in c around inf 45.3%
Taylor expanded in j around inf 30.5%
*-commutative30.5%
Simplified30.5%
if 1.14999999999999994e-179 < x < 2.6499999999999998e41Initial program 73.3%
Taylor expanded in c around inf 53.8%
Taylor expanded in j around 0 39.8%
neg-mul-139.8%
distribute-lft-neg-in39.8%
*-commutative39.8%
Simplified39.8%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= x -2.8e+19)
t_1
(if (<= x 1.45e-179)
(* c (* t j))
(if (<= x 2.7e+44) (* i (* a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (x <= -2.8e+19) {
tmp = t_1;
} else if (x <= 1.45e-179) {
tmp = c * (t * j);
} else if (x <= 2.7e+44) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (x <= (-2.8d+19)) then
tmp = t_1
else if (x <= 1.45d-179) then
tmp = c * (t * j)
else if (x <= 2.7d+44) then
tmp = i * (a * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (x <= -2.8e+19) {
tmp = t_1;
} else if (x <= 1.45e-179) {
tmp = c * (t * j);
} else if (x <= 2.7e+44) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if x <= -2.8e+19: tmp = t_1 elif x <= 1.45e-179: tmp = c * (t * j) elif x <= 2.7e+44: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (x <= -2.8e+19) tmp = t_1; elseif (x <= 1.45e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 2.7e+44) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (x <= -2.8e+19) tmp = t_1; elseif (x <= 1.45e-179) tmp = c * (t * j); elseif (x <= 2.7e+44) tmp = i * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+19], t$95$1, If[LessEqual[x, 1.45e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+44], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.8e19 or 2.7e44 < x Initial program 79.8%
Taylor expanded in y around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in z around inf 46.3%
if -2.8e19 < x < 1.4499999999999999e-179Initial program 67.9%
Taylor expanded in c around inf 45.3%
Taylor expanded in j around inf 30.5%
*-commutative30.5%
Simplified30.5%
if 1.4499999999999999e-179 < x < 2.7e44Initial program 71.8%
Taylor expanded in j around 0 71.6%
fma-neg71.6%
*-commutative71.6%
*-commutative71.6%
fma-neg71.6%
Simplified71.6%
*-commutative71.6%
prod-diff59.3%
fma-neg59.3%
cancel-sign-sub-inv59.3%
fma-def59.3%
*-commutative59.3%
Applied egg-rr59.3%
Taylor expanded in i around inf 28.7%
mul-1-neg28.7%
*-commutative28.7%
distribute-rgt-in14.4%
associate-*r*14.4%
+-commutative14.4%
distribute-lft1-in28.7%
metadata-eval28.7%
neg-mul-128.7%
distribute-lft-neg-in28.7%
associate-*r*26.8%
remove-double-neg26.8%
*-commutative26.8%
associate-*l*30.7%
*-commutative30.7%
Simplified30.7%
Final simplification37.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -9.2e+18)
t_1
(if (<= x 1.1e-179)
(* c (* t j))
(if (<= x 1.25e+44) (* i (* a b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -9.2e+18) {
tmp = t_1;
} else if (x <= 1.1e-179) {
tmp = c * (t * j);
} else if (x <= 1.25e+44) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-9.2d+18)) then
tmp = t_1
else if (x <= 1.1d-179) then
tmp = c * (t * j)
else if (x <= 1.25d+44) then
tmp = i * (a * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -9.2e+18) {
tmp = t_1;
} else if (x <= 1.1e-179) {
tmp = c * (t * j);
} else if (x <= 1.25e+44) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -9.2e+18: tmp = t_1 elif x <= 1.1e-179: tmp = c * (t * j) elif x <= 1.25e+44: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -9.2e+18) tmp = t_1; elseif (x <= 1.1e-179) tmp = Float64(c * Float64(t * j)); elseif (x <= 1.25e+44) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -9.2e+18) tmp = t_1; elseif (x <= 1.1e-179) tmp = c * (t * j); elseif (x <= 1.25e+44) tmp = i * (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.2e+18], t$95$1, If[LessEqual[x, 1.1e-179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+44], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -9.2 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -9.2e18 or 1.2499999999999999e44 < x Initial program 79.8%
Taylor expanded in y around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in z around inf 46.3%
associate-*r*48.5%
*-commutative48.5%
Simplified48.5%
if -9.2e18 < x < 1.10000000000000002e-179Initial program 67.9%
Taylor expanded in c around inf 45.3%
Taylor expanded in j around inf 30.5%
*-commutative30.5%
Simplified30.5%
if 1.10000000000000002e-179 < x < 1.2499999999999999e44Initial program 71.8%
Taylor expanded in j around 0 71.6%
fma-neg71.6%
*-commutative71.6%
*-commutative71.6%
fma-neg71.6%
Simplified71.6%
*-commutative71.6%
prod-diff59.3%
fma-neg59.3%
cancel-sign-sub-inv59.3%
fma-def59.3%
*-commutative59.3%
Applied egg-rr59.3%
Taylor expanded in i around inf 28.7%
mul-1-neg28.7%
*-commutative28.7%
distribute-rgt-in14.4%
associate-*r*14.4%
+-commutative14.4%
distribute-lft1-in28.7%
metadata-eval28.7%
neg-mul-128.7%
distribute-lft-neg-in28.7%
associate-*r*26.8%
remove-double-neg26.8%
*-commutative26.8%
associate-*l*30.7%
*-commutative30.7%
Simplified30.7%
Final simplification38.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -3.3e+118) (* b (* a i)) (if (<= b 1.5e+40) (* 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 (b <= -3.3e+118) {
tmp = b * (a * i);
} else if (b <= 1.5e+40) {
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 (b <= (-3.3d+118)) then
tmp = b * (a * i)
else if (b <= 1.5d+40) 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 (b <= -3.3e+118) {
tmp = b * (a * i);
} else if (b <= 1.5e+40) {
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 b <= -3.3e+118: tmp = b * (a * i) elif b <= 1.5e+40: 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 (b <= -3.3e+118) tmp = Float64(b * Float64(a * i)); elseif (b <= 1.5e+40) 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 (b <= -3.3e+118) tmp = b * (a * i); elseif (b <= 1.5e+40) 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[LessEqual[b, -3.3e+118], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+40], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.3 \cdot 10^{+118}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+40}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.3e118Initial program 76.2%
Taylor expanded in b around inf 71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in i around inf 33.5%
*-commutative33.5%
associate-*l*38.5%
Simplified38.5%
if -3.3e118 < b < 1.5000000000000001e40Initial program 72.8%
Taylor expanded in c around inf 36.7%
Taylor expanded in j around inf 28.5%
*-commutative28.5%
Simplified28.5%
if 1.5000000000000001e40 < b Initial program 77.6%
Taylor expanded in b around inf 61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in i around inf 35.0%
Final simplification31.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -1.22e+100) (* i (* a b)) (if (<= b 7.5e+41) (* 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 (b <= -1.22e+100) {
tmp = i * (a * b);
} else if (b <= 7.5e+41) {
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 (b <= (-1.22d+100)) then
tmp = i * (a * b)
else if (b <= 7.5d+41) 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 (b <= -1.22e+100) {
tmp = i * (a * b);
} else if (b <= 7.5e+41) {
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 b <= -1.22e+100: tmp = i * (a * b) elif b <= 7.5e+41: 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 (b <= -1.22e+100) tmp = Float64(i * Float64(a * b)); elseif (b <= 7.5e+41) 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 (b <= -1.22e+100) tmp = i * (a * b); elseif (b <= 7.5e+41) 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[LessEqual[b, -1.22e+100], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e+41], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.22 \cdot 10^{+100}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{+41}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -1.21999999999999995e100Initial program 75.5%
Taylor expanded in j around 0 73.4%
fma-neg78.3%
*-commutative78.3%
*-commutative78.3%
fma-neg73.4%
Simplified73.4%
*-commutative73.4%
prod-diff63.7%
fma-neg63.6%
cancel-sign-sub-inv63.6%
fma-def63.7%
*-commutative63.7%
Applied egg-rr63.7%
Taylor expanded in i around inf 38.3%
mul-1-neg38.3%
*-commutative38.3%
distribute-rgt-in23.7%
associate-*r*23.7%
+-commutative23.7%
distribute-lft1-in38.3%
metadata-eval38.3%
neg-mul-138.3%
distribute-lft-neg-in38.3%
associate-*r*36.1%
remove-double-neg36.1%
*-commutative36.1%
associate-*l*40.7%
*-commutative40.7%
Simplified40.7%
if -1.21999999999999995e100 < b < 7.50000000000000072e41Initial program 72.9%
Taylor expanded in c around inf 36.1%
Taylor expanded in j around inf 27.8%
*-commutative27.8%
Simplified27.8%
if 7.50000000000000072e41 < b Initial program 77.6%
Taylor expanded in b around inf 61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in i around inf 35.0%
Final simplification31.3%
(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 74.2%
Taylor expanded in b around inf 35.4%
*-commutative35.4%
Simplified35.4%
Taylor expanded in i around inf 17.4%
Final simplification17.4%
(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 2024024
(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)))))