
(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 24 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 (* j (fma c t (- 0.0 (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((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 = j * fma(c, t, (0.0 - (y * i)));
}
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(j * fma(c, t, Float64(0.0 - Float64(y * i)))); end return 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[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $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}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.9%
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 j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6458.3
Simplified58.3%
Final simplification86.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i 1.65e+66)
(fma
a
(fma t (- 0.0 x) (* b i))
(fma z (fma c (- 0.0 b) (* x y)) (* j (fma c t (- 0.0 (* y i))))))
(fma i (fma j (- 0.0 y) (* a b)) (* 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 (i <= 1.65e+66) {
tmp = fma(a, fma(t, (0.0 - x), (b * i)), fma(z, fma(c, (0.0 - b), (x * y)), (j * fma(c, t, (0.0 - (y * i))))));
} else {
tmp = fma(i, fma(j, (0.0 - y), (a * b)), (x * ((y * z) - (t * a))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= 1.65e+66) tmp = fma(a, fma(t, Float64(0.0 - x), Float64(b * i)), fma(z, fma(c, Float64(0.0 - b), Float64(x * y)), Float64(j * fma(c, t, Float64(0.0 - Float64(y * i)))))); else tmp = fma(i, fma(j, Float64(0.0 - y), Float64(a * b)), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, 1.65e+66], N[(a * N[(t * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq 1.65 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(t, 0 - x, b \cdot i\right), \mathsf{fma}\left(z, \mathsf{fma}\left(c, 0 - b, x \cdot y\right), j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, 0 - y, a \cdot b\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\end{array}
\end{array}
if i < 1.6500000000000001e66Initial program 79.7%
Taylor expanded in z around 0
Simplified84.0%
if 1.6500000000000001e66 < i Initial program 71.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified83.5%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma i (* a b) (* x (- (* y z) (* t a)))))
(t_2 (* y (fma j (- 0.0 i) (* x z)))))
(if (<= y -3.1e+98)
t_2
(if (<= y -1.4e-112)
t_1
(if (<= y -1.25e-212)
(* c (fma b (- 0.0 z) (* t j)))
(if (<= y 1.6e-10) 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 = fma(i, (a * b), (x * ((y * z) - (t * a))));
double t_2 = y * fma(j, (0.0 - i), (x * z));
double tmp;
if (y <= -3.1e+98) {
tmp = t_2;
} else if (y <= -1.4e-112) {
tmp = t_1;
} else if (y <= -1.25e-212) {
tmp = c * fma(b, (0.0 - z), (t * j));
} else if (y <= 1.6e-10) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(i, Float64(a * b), Float64(x * Float64(Float64(y * z) - Float64(t * a)))) t_2 = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))) tmp = 0.0 if (y <= -3.1e+98) tmp = t_2; elseif (y <= -1.4e-112) tmp = t_1; elseif (y <= -1.25e-212) tmp = Float64(c * fma(b, Float64(0.0 - z), Float64(t * j))); elseif (y <= 1.6e-10) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+98], t$95$2, If[LessEqual[y, -1.4e-112], t$95$1, If[LessEqual[y, -1.25e-212], N[(c * N[(b * N[(0.0 - z), $MachinePrecision] + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-10], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(i, a \cdot b, x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
t_2 := y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+98}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-212}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, 0 - z, t \cdot j\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.10000000000000019e98 or 1.5999999999999999e-10 < y Initial program 73.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6474.3
Simplified74.3%
if -3.10000000000000019e98 < y < -1.40000000000000011e-112 or -1.25000000000000011e-212 < y < 1.5999999999999999e-10Initial program 82.2%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified70.1%
Taylor expanded in j around 0
*-lowering-*.f6465.3
Simplified65.3%
if -1.40000000000000011e-112 < y < -1.25000000000000011e-212Initial program 82.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6474.5
Simplified74.5%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))))
(if (<= j -2.2e-69)
(fma x t_1 (* j (fma c t (- 0.0 (* y i)))))
(if (<= j 1.6e-49)
(fma i (fma j (- 0.0 y) (* a b)) (* x t_1))
(* z (fma (- (* t c) (* y i)) (/ j z) (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double tmp;
if (j <= -2.2e-69) {
tmp = fma(x, t_1, (j * fma(c, t, (0.0 - (y * i)))));
} else if (j <= 1.6e-49) {
tmp = fma(i, fma(j, (0.0 - y), (a * b)), (x * t_1));
} else {
tmp = z * fma(((t * c) - (y * i)), (j / z), (x * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (j <= -2.2e-69) tmp = fma(x, t_1, Float64(j * fma(c, t, Float64(0.0 - Float64(y * i))))); elseif (j <= 1.6e-49) tmp = fma(i, fma(j, Float64(0.0 - y), Float64(a * b)), Float64(x * t_1)); else tmp = Float64(z * fma(Float64(Float64(t * c) - Float64(y * i)), Float64(j / z), Float64(x * y))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.2e-69], N[(x * t$95$1 + N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e-49], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * N[(j / z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
\mathbf{if}\;j \leq -2.2 \cdot 10^{-69}:\\
\;\;\;\;\mathsf{fma}\left(x, t\_1, j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-49}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, 0 - y, a \cdot b\right), x \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(t \cdot c - y \cdot i, \frac{j}{z}, x \cdot y\right)\\
\end{array}
\end{array}
if j < -2.2e-69Initial program 79.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6474.8
Simplified74.8%
if -2.2e-69 < j < 1.60000000000000001e-49Initial program 79.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified71.9%
if 1.60000000000000001e-49 < j Initial program 74.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6473.7
Simplified73.7%
Taylor expanded in y around inf
*-lowering-*.f6473.8
Simplified73.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6475.6
Simplified75.6%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))))
(if (<= j -6.3e-71)
(fma x t_1 (* j (fma c t (- 0.0 (* y i)))))
(if (<= j 1.25e-49)
(fma i (fma j (- 0.0 y) (* a b)) (* x t_1))
(- (* y (* x z)) (* j (- (* y i) (* t c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double tmp;
if (j <= -6.3e-71) {
tmp = fma(x, t_1, (j * fma(c, t, (0.0 - (y * i)))));
} else if (j <= 1.25e-49) {
tmp = fma(i, fma(j, (0.0 - y), (a * b)), (x * t_1));
} else {
tmp = (y * (x * z)) - (j * ((y * i) - (t * c)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (j <= -6.3e-71) tmp = fma(x, t_1, Float64(j * fma(c, t, Float64(0.0 - Float64(y * i))))); elseif (j <= 1.25e-49) tmp = fma(i, fma(j, Float64(0.0 - y), Float64(a * b)), Float64(x * t_1)); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.3e-71], N[(x * t$95$1 + N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.25e-49], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
\mathbf{if}\;j \leq -6.3 \cdot 10^{-71}:\\
\;\;\;\;\mathsf{fma}\left(x, t\_1, j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-49}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, 0 - y, a \cdot b\right), x \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\end{array}
\end{array}
if j < -6.3000000000000003e-71Initial program 79.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6474.8
Simplified74.8%
if -6.3000000000000003e-71 < j < 1.25e-49Initial program 79.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified71.9%
if 1.25e-49 < j Initial program 74.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.4
Simplified75.4%
Final simplification73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.3e+114)
(* j (- (* t c) (* y i)))
(if (<= j 5.5e-50)
(fma i (fma j (- 0.0 y) (* a b)) (* x (- (* y z) (* t a))))
(- (* y (* x z)) (* j (- (* y i) (* t c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.3e+114) {
tmp = j * ((t * c) - (y * i));
} else if (j <= 5.5e-50) {
tmp = fma(i, fma(j, (0.0 - y), (a * b)), (x * ((y * z) - (t * a))));
} else {
tmp = (y * (x * z)) - (j * ((y * i) - (t * c)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.3e+114) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (j <= 5.5e-50) tmp = fma(i, fma(j, Float64(0.0 - y), Float64(a * b)), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.3e+114], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e-50], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.3 \cdot 10^{+114}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{-50}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, 0 - y, a \cdot b\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\end{array}
\end{array}
if j < -4.3000000000000001e114Initial program 73.6%
Taylor expanded in z around 0
Simplified81.5%
Taylor expanded in j around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6481.9
Simplified81.9%
if -4.3000000000000001e114 < j < 5.49999999999999975e-50Initial program 80.8%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified69.9%
if 5.49999999999999975e-50 < j Initial program 74.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.4
Simplified75.4%
Final simplification73.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- 0.0 x) (* b i))))
(t_2 (* y (fma j (- 0.0 i) (* x z)))))
(if (<= y -6.5e+61)
t_2
(if (<= y -4.9e-111)
t_1
(if (<= y -3.8e-211)
(* c (fma b (- 0.0 z) (* t j)))
(if (<= y 7.6e-10) 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 = a * fma(t, (0.0 - x), (b * i));
double t_2 = y * fma(j, (0.0 - i), (x * z));
double tmp;
if (y <= -6.5e+61) {
tmp = t_2;
} else if (y <= -4.9e-111) {
tmp = t_1;
} else if (y <= -3.8e-211) {
tmp = c * fma(b, (0.0 - z), (t * j));
} else if (y <= 7.6e-10) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(0.0 - x), Float64(b * i))) t_2 = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))) tmp = 0.0 if (y <= -6.5e+61) tmp = t_2; elseif (y <= -4.9e-111) tmp = t_1; elseif (y <= -3.8e-211) tmp = Float64(c * fma(b, Float64(0.0 - z), Float64(t * j))); elseif (y <= 7.6e-10) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+61], t$95$2, If[LessEqual[y, -4.9e-111], t$95$1, If[LessEqual[y, -3.8e-211], N[(c * N[(b * N[(0.0 - z), $MachinePrecision] + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.6e-10], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, 0 - x, b \cdot i\right)\\
t_2 := y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.9 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-211}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, 0 - z, t \cdot j\right)\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6.4999999999999996e61 or 7.5999999999999996e-10 < y Initial program 73.2%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6472.9
Simplified72.9%
if -6.4999999999999996e61 < y < -4.90000000000000019e-111 or -3.80000000000000012e-211 < y < 7.5999999999999996e-10Initial program 83.7%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6458.4
Simplified58.4%
if -4.90000000000000019e-111 < y < -3.80000000000000012e-211Initial program 82.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6474.5
Simplified74.5%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.6e-70)
(fma x (* y z) (* j (fma c t (- 0.0 (* y i)))))
(if (<= j 9e-63)
(fma i (* a b) (* x (- (* y z) (* t a))))
(- (* y (* x z)) (* j (- (* y i) (* t c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.6e-70) {
tmp = fma(x, (y * z), (j * fma(c, t, (0.0 - (y * i)))));
} else if (j <= 9e-63) {
tmp = fma(i, (a * b), (x * ((y * z) - (t * a))));
} else {
tmp = (y * (x * z)) - (j * ((y * i) - (t * c)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.6e-70) tmp = fma(x, Float64(y * z), Float64(j * fma(c, t, Float64(0.0 - Float64(y * i))))); elseif (j <= 9e-63) tmp = fma(i, Float64(a * b), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.6e-70], N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e-63], N[(i * N[(a * b), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.6 \cdot 10^{-70}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(i, a \cdot b, x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\end{array}
\end{array}
if j < -2.60000000000000002e-70Initial program 79.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6474.8
Simplified74.8%
Taylor expanded in y around inf
*-lowering-*.f6468.0
Simplified68.0%
if -2.60000000000000002e-70 < j < 8.9999999999999999e-63Initial program 79.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified73.0%
Taylor expanded in j around 0
*-lowering-*.f6467.2
Simplified67.2%
if 8.9999999999999999e-63 < j Initial program 74.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.2
Simplified73.2%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma x (* y z) (* j (fma c t (- 0.0 (* y i)))))))
(if (<= j -1.75e-70)
t_1
(if (<= j 9.5e-50) (fma i (* a b) (* x (- (* y z) (* t 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 = fma(x, (y * z), (j * fma(c, t, (0.0 - (y * i)))));
double tmp;
if (j <= -1.75e-70) {
tmp = t_1;
} else if (j <= 9.5e-50) {
tmp = fma(i, (a * b), (x * ((y * z) - (t * a))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(x, Float64(y * z), Float64(j * fma(c, t, Float64(0.0 - Float64(y * i))))) tmp = 0.0 if (j <= -1.75e-70) tmp = t_1; elseif (j <= 9.5e-50) tmp = fma(i, Float64(a * b), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e-70], t$95$1, If[LessEqual[j, 9.5e-50], N[(i * N[(a * b), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{-70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-50}:\\
\;\;\;\;\mathsf{fma}\left(i, a \cdot b, x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.74999999999999987e-70 or 9.4999999999999993e-50 < j Initial program 77.6%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6474.3
Simplified74.3%
Taylor expanded in y around inf
*-lowering-*.f6470.7
Simplified70.7%
if -1.74999999999999987e-70 < j < 9.4999999999999993e-50Initial program 79.1%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified71.9%
Taylor expanded in j around 0
*-lowering-*.f6465.6
Simplified65.6%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= y -4.8e+67)
(* z (* x y))
(if (<= y -2.5e-111)
t_1
(if (<= y -1.3e-211)
(* z (- 0.0 (* b c)))
(if (<= y 3.8e-29) t_1 (* j (- 0.0 (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -4.8e+67) {
tmp = z * (x * y);
} else if (y <= -2.5e-111) {
tmp = t_1;
} else if (y <= -1.3e-211) {
tmp = z * (0.0 - (b * c));
} else if (y <= 3.8e-29) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (y <= (-4.8d+67)) then
tmp = z * (x * y)
else if (y <= (-2.5d-111)) then
tmp = t_1
else if (y <= (-1.3d-211)) then
tmp = z * (0.0d0 - (b * c))
else if (y <= 3.8d-29) then
tmp = t_1
else
tmp = j * (0.0d0 - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -4.8e+67) {
tmp = z * (x * y);
} else if (y <= -2.5e-111) {
tmp = t_1;
} else if (y <= -1.3e-211) {
tmp = z * (0.0 - (b * c));
} else if (y <= 3.8e-29) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if y <= -4.8e+67: tmp = z * (x * y) elif y <= -2.5e-111: tmp = t_1 elif y <= -1.3e-211: tmp = z * (0.0 - (b * c)) elif y <= 3.8e-29: tmp = t_1 else: tmp = j * (0.0 - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (y <= -4.8e+67) tmp = Float64(z * Float64(x * y)); elseif (y <= -2.5e-111) tmp = t_1; elseif (y <= -1.3e-211) tmp = Float64(z * Float64(0.0 - Float64(b * c))); elseif (y <= 3.8e-29) tmp = t_1; else tmp = Float64(j * Float64(0.0 - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (y <= -4.8e+67) tmp = z * (x * y); elseif (y <= -2.5e-111) tmp = t_1; elseif (y <= -1.3e-211) tmp = z * (0.0 - (b * c)); elseif (y <= 3.8e-29) tmp = t_1; else tmp = j * (0.0 - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e+67], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.5e-111], t$95$1, If[LessEqual[y, -1.3e-211], N[(z * N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e-29], t$95$1, N[(j * N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{+67}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-211}:\\
\;\;\;\;z \cdot \left(0 - b \cdot c\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(0 - y \cdot i\right)\\
\end{array}
\end{array}
if y < -4.80000000000000004e67Initial program 65.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
if -4.80000000000000004e67 < y < -2.5000000000000001e-111 or -1.3e-211 < y < 3.79999999999999976e-29Initial program 83.7%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6443.8
Simplified43.8%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6439.4
Simplified39.4%
if -2.5000000000000001e-111 < y < -1.3e-211Initial program 82.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6449.2
Simplified49.2%
Taylor expanded in c around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6449.0
Simplified49.0%
if 3.79999999999999976e-29 < y Initial program 79.4%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9
Simplified46.9%
Taylor expanded in j around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6442.4
Simplified42.4%
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.1
Applied egg-rr47.1%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= y -7.5e+64)
(* z (* x y))
(if (<= y -1.52e-111)
t_1
(if (<= y -4.2e-212)
(- 0.0 (* c (* z b)))
(if (<= y 5.4e-30) t_1 (* j (- 0.0 (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -7.5e+64) {
tmp = z * (x * y);
} else if (y <= -1.52e-111) {
tmp = t_1;
} else if (y <= -4.2e-212) {
tmp = 0.0 - (c * (z * b));
} else if (y <= 5.4e-30) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (y <= (-7.5d+64)) then
tmp = z * (x * y)
else if (y <= (-1.52d-111)) then
tmp = t_1
else if (y <= (-4.2d-212)) then
tmp = 0.0d0 - (c * (z * b))
else if (y <= 5.4d-30) then
tmp = t_1
else
tmp = j * (0.0d0 - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -7.5e+64) {
tmp = z * (x * y);
} else if (y <= -1.52e-111) {
tmp = t_1;
} else if (y <= -4.2e-212) {
tmp = 0.0 - (c * (z * b));
} else if (y <= 5.4e-30) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if y <= -7.5e+64: tmp = z * (x * y) elif y <= -1.52e-111: tmp = t_1 elif y <= -4.2e-212: tmp = 0.0 - (c * (z * b)) elif y <= 5.4e-30: tmp = t_1 else: tmp = j * (0.0 - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (y <= -7.5e+64) tmp = Float64(z * Float64(x * y)); elseif (y <= -1.52e-111) tmp = t_1; elseif (y <= -4.2e-212) tmp = Float64(0.0 - Float64(c * Float64(z * b))); elseif (y <= 5.4e-30) tmp = t_1; else tmp = Float64(j * Float64(0.0 - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (y <= -7.5e+64) tmp = z * (x * y); elseif (y <= -1.52e-111) tmp = t_1; elseif (y <= -4.2e-212) tmp = 0.0 - (c * (z * b)); elseif (y <= 5.4e-30) tmp = t_1; else tmp = j * (0.0 - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+64], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.52e-111], t$95$1, If[LessEqual[y, -4.2e-212], N[(0.0 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.4e-30], t$95$1, N[(j * N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+64}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -1.52 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-212}:\\
\;\;\;\;0 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(0 - y \cdot i\right)\\
\end{array}
\end{array}
if y < -7.5000000000000005e64Initial program 65.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
if -7.5000000000000005e64 < y < -1.51999999999999998e-111 or -4.1999999999999999e-212 < y < 5.39999999999999975e-30Initial program 83.7%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6443.8
Simplified43.8%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6439.4
Simplified39.4%
if -1.51999999999999998e-111 < y < -4.1999999999999999e-212Initial program 82.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6449.2
Simplified49.2%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6445.0
Simplified45.0%
if 5.39999999999999975e-30 < y Initial program 79.4%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9
Simplified46.9%
Taylor expanded in j around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6442.4
Simplified42.4%
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.1
Applied egg-rr47.1%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= y -3.5e+65)
(* z (* x y))
(if (<= y -2.9e-69)
t_1
(if (<= y -2.8e-211)
(* j (* t c))
(if (<= y 1.75e-29) t_1 (* j (- 0.0 (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -3.5e+65) {
tmp = z * (x * y);
} else if (y <= -2.9e-69) {
tmp = t_1;
} else if (y <= -2.8e-211) {
tmp = j * (t * c);
} else if (y <= 1.75e-29) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (y <= (-3.5d+65)) then
tmp = z * (x * y)
else if (y <= (-2.9d-69)) then
tmp = t_1
else if (y <= (-2.8d-211)) then
tmp = j * (t * c)
else if (y <= 1.75d-29) then
tmp = t_1
else
tmp = j * (0.0d0 - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -3.5e+65) {
tmp = z * (x * y);
} else if (y <= -2.9e-69) {
tmp = t_1;
} else if (y <= -2.8e-211) {
tmp = j * (t * c);
} else if (y <= 1.75e-29) {
tmp = t_1;
} else {
tmp = j * (0.0 - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if y <= -3.5e+65: tmp = z * (x * y) elif y <= -2.9e-69: tmp = t_1 elif y <= -2.8e-211: tmp = j * (t * c) elif y <= 1.75e-29: tmp = t_1 else: tmp = j * (0.0 - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (y <= -3.5e+65) tmp = Float64(z * Float64(x * y)); elseif (y <= -2.9e-69) tmp = t_1; elseif (y <= -2.8e-211) tmp = Float64(j * Float64(t * c)); elseif (y <= 1.75e-29) tmp = t_1; else tmp = Float64(j * Float64(0.0 - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (y <= -3.5e+65) tmp = z * (x * y); elseif (y <= -2.9e-69) tmp = t_1; elseif (y <= -2.8e-211) tmp = j * (t * c); elseif (y <= 1.75e-29) tmp = t_1; else tmp = j * (0.0 - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+65], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e-69], t$95$1, If[LessEqual[y, -2.8e-211], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e-29], t$95$1, N[(j * N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+65}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-211}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(0 - y \cdot i\right)\\
\end{array}
\end{array}
if y < -3.5000000000000001e65Initial program 65.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
if -3.5000000000000001e65 < y < -2.8999999999999998e-69 or -2.7999999999999998e-211 < y < 1.7499999999999999e-29Initial program 82.3%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.3
Simplified46.3%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6441.5
Simplified41.5%
if -2.8999999999999998e-69 < y < -2.7999999999999998e-211Initial program 86.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6453.0
Simplified53.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.8
Simplified30.8%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.0
Applied egg-rr37.0%
if 1.7499999999999999e-29 < y Initial program 79.4%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9
Simplified46.9%
Taylor expanded in j around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6442.4
Simplified42.4%
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.1
Applied egg-rr47.1%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.7e+114)
(* x (fma (- 0.0 a) t (* y z)))
(if (<= x -7.6e-269)
(* b (- (* a i) (* z c)))
(if (<= x 1.6e+104)
(* j (fma c t (- 0.0 (* 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 (x <= -2.7e+114) {
tmp = x * fma((0.0 - a), t, (y * z));
} else if (x <= -7.6e-269) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.6e+104) {
tmp = j * fma(c, t, (0.0 - (y * i)));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.7e+114) tmp = Float64(x * fma(Float64(0.0 - a), t, Float64(y * z))); elseif (x <= -7.6e-269) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.6e+104) tmp = Float64(j * fma(c, t, Float64(0.0 - Float64(y * i)))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.7e+114], N[(x * N[(N[(0.0 - a), $MachinePrecision] * t + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.6e-269], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e+104], N[(j * N[(c * t + N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+114}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(0 - a, t, y \cdot z\right)\\
\mathbf{elif}\;x \leq -7.6 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+104}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, 0 - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -2.7e114Initial program 89.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6489.0
Simplified89.0%
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6489.1
Applied egg-rr89.1%
if -2.7e114 < x < -7.6000000000000005e-269Initial program 84.1%
Taylor expanded in z around 0
Simplified82.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.5
Simplified56.5%
if -7.6000000000000005e-269 < x < 1.6e104Initial program 68.6%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6459.3
Simplified59.3%
if 1.6e104 < x Initial program 79.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6477.0
Simplified77.0%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (fma x (- 0.0 a) (* c j)))))
(if (<= x -3.9e+126)
t_1
(if (<= x -5.8e-273)
(* b (- (* a i) (* z c)))
(if (<= x 6.5e+191) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * fma(x, (0.0 - a), (c * j));
double tmp;
if (x <= -3.9e+126) {
tmp = t_1;
} else if (x <= -5.8e-273) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 6.5e+191) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * fma(x, Float64(0.0 - a), Float64(c * j))) tmp = 0.0 if (x <= -3.9e+126) tmp = t_1; elseif (x <= -5.8e-273) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 6.5e+191) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(x * N[(0.0 - a), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+126], t$95$1, If[LessEqual[x, -5.8e-273], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+191], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \mathsf{fma}\left(x, 0 - a, c \cdot j\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-273}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+191}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.89999999999999993e126 or 6.50000000000000008e191 < x Initial program 81.0%
Taylor expanded in z around 0
Simplified77.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6467.6
Simplified67.6%
sub0-negN/A
neg-lowering-neg.f6467.6
Applied egg-rr67.6%
if -3.89999999999999993e126 < x < -5.79999999999999973e-273Initial program 84.1%
Taylor expanded in z around 0
Simplified82.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.5
Simplified56.5%
if -5.79999999999999973e-273 < x < 6.50000000000000008e191Initial program 71.9%
Taylor expanded in z around 0
Simplified79.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6457.0
Simplified57.0%
Final simplification59.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.5e+110)
(* x (fma (- 0.0 a) t (* y z)))
(if (<= x -9.5e-269)
(* b (- (* a i) (* z c)))
(if (<= x 1.4e+104)
(* 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 (x <= -2.5e+110) {
tmp = x * fma((0.0 - a), t, (y * z));
} else if (x <= -9.5e-269) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.4e+104) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.5e+110) tmp = Float64(x * fma(Float64(0.0 - a), t, Float64(y * z))); elseif (x <= -9.5e-269) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.4e+104) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.5e+110], N[(x * N[(N[(0.0 - a), $MachinePrecision] * t + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-269], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+104], 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]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(0 - a, t, y \cdot z\right)\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+104}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if x < -2.49999999999999989e110Initial program 89.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6489.0
Simplified89.0%
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
accelerator-lowering-fma.f64N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6489.1
Applied egg-rr89.1%
if -2.49999999999999989e110 < x < -9.5000000000000006e-269Initial program 84.1%
Taylor expanded in z around 0
Simplified82.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.5
Simplified56.5%
if -9.5000000000000006e-269 < x < 1.4e104Initial program 68.6%
Taylor expanded in z around 0
Simplified81.5%
Taylor expanded in j around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.2
Simplified58.2%
if 1.4e104 < x Initial program 79.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6477.0
Simplified77.0%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -2.5e+110)
t_1
(if (<= x -2.6e-274)
(* b (- (* a i) (* z c)))
(if (<= x 1.25e+104) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.5e+110) {
tmp = t_1;
} else if (x <= -2.6e-274) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.25e+104) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-2.5d+110)) then
tmp = t_1
else if (x <= (-2.6d-274)) then
tmp = b * ((a * i) - (z * c))
else if (x <= 1.25d+104) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.5e+110) {
tmp = t_1;
} else if (x <= -2.6e-274) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 1.25e+104) {
tmp = j * ((t * c) - (y * i));
} 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.5e+110: tmp = t_1 elif x <= -2.6e-274: tmp = b * ((a * i) - (z * c)) elif x <= 1.25e+104: tmp = j * ((t * c) - (y * i)) 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.5e+110) tmp = t_1; elseif (x <= -2.6e-274) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 1.25e+104) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -2.5e+110) tmp = t_1; elseif (x <= -2.6e-274) tmp = b * ((a * i) - (z * c)); elseif (x <= 1.25e+104) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+110], t$95$1, If[LessEqual[x, -2.6e-274], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+104], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $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.5 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+104}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.49999999999999989e110 or 1.2499999999999999e104 < x Initial program 83.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6481.8
Simplified81.8%
if -2.49999999999999989e110 < x < -2.6e-274Initial program 84.1%
Taylor expanded in z around 0
Simplified82.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.5
Simplified56.5%
if -2.6e-274 < x < 1.2499999999999999e104Initial program 68.6%
Taylor expanded in z around 0
Simplified81.5%
Taylor expanded in j around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6458.2
Simplified58.2%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= y -2.6e+62)
(* z (* x y))
(if (<= y -2.3e-67)
t_1
(if (<= y -3.8e-212)
(* j (* t c))
(if (<= y 1.7e-22) t_1 (* x (* y z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -2.6e+62) {
tmp = z * (x * y);
} else if (y <= -2.3e-67) {
tmp = t_1;
} else if (y <= -3.8e-212) {
tmp = j * (t * c);
} else if (y <= 1.7e-22) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (y <= (-2.6d+62)) then
tmp = z * (x * y)
else if (y <= (-2.3d-67)) then
tmp = t_1
else if (y <= (-3.8d-212)) then
tmp = j * (t * c)
else if (y <= 1.7d-22) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (y <= -2.6e+62) {
tmp = z * (x * y);
} else if (y <= -2.3e-67) {
tmp = t_1;
} else if (y <= -3.8e-212) {
tmp = j * (t * c);
} else if (y <= 1.7e-22) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if y <= -2.6e+62: tmp = z * (x * y) elif y <= -2.3e-67: tmp = t_1 elif y <= -3.8e-212: tmp = j * (t * c) elif y <= 1.7e-22: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (y <= -2.6e+62) tmp = Float64(z * Float64(x * y)); elseif (y <= -2.3e-67) tmp = t_1; elseif (y <= -3.8e-212) tmp = Float64(j * Float64(t * c)); elseif (y <= 1.7e-22) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (y <= -2.6e+62) tmp = z * (x * y); elseif (y <= -2.3e-67) tmp = t_1; elseif (y <= -3.8e-212) tmp = j * (t * c); elseif (y <= 1.7e-22) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+62], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.3e-67], t$95$1, If[LessEqual[y, -3.8e-212], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-22], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+62}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{-212}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -2.59999999999999984e62Initial program 65.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
if -2.59999999999999984e62 < y < -2.3e-67 or -3.80000000000000022e-212 < y < 1.6999999999999999e-22Initial program 82.8%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6445.5
Simplified45.5%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6440.3
Simplified40.3%
if -2.3e-67 < y < -3.80000000000000022e-212Initial program 86.9%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6453.0
Simplified53.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.8
Simplified30.8%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.0
Applied egg-rr37.0%
if 1.6999999999999999e-22 < y Initial program 78.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.9
Simplified43.9%
Taylor expanded in y around inf
*-lowering-*.f6436.7
Simplified36.7%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -8.8e+15)
t_1
(if (<= b 1.26e-94) (* j (- (* t c) (* y i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8.8e+15) {
tmp = t_1;
} else if (b <= 1.26e-94) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-8.8d+15)) then
tmp = t_1
else if (b <= 1.26d-94) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8.8e+15) {
tmp = t_1;
} else if (b <= 1.26e-94) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -8.8e+15: tmp = t_1 elif b <= 1.26e-94: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -8.8e+15) tmp = t_1; elseif (b <= 1.26e-94) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -8.8e+15) tmp = t_1; elseif (b <= 1.26e-94) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.8e+15], t$95$1, If[LessEqual[b, 1.26e-94], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -8.8 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{-94}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.8e15 or 1.2600000000000001e-94 < b Initial program 79.0%
Taylor expanded in z around 0
Simplified76.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6461.9
Simplified61.9%
if -8.8e15 < b < 1.2600000000000001e-94Initial program 77.5%
Taylor expanded in z around 0
Simplified83.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6452.4
Simplified52.4%
Final simplification57.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- 0.0 (* y i)))))
(if (<= y -5.5e+161)
t_1
(if (<= y 7.5e+108) (* 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 = j * (0.0 - (y * i));
double tmp;
if (y <= -5.5e+161) {
tmp = t_1;
} else if (y <= 7.5e+108) {
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 = j * (0.0d0 - (y * i))
if (y <= (-5.5d+161)) then
tmp = t_1
else if (y <= 7.5d+108) 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 = j * (0.0 - (y * i));
double tmp;
if (y <= -5.5e+161) {
tmp = t_1;
} else if (y <= 7.5e+108) {
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 = j * (0.0 - (y * i)) tmp = 0 if y <= -5.5e+161: tmp = t_1 elif y <= 7.5e+108: 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(j * Float64(0.0 - Float64(y * i))) tmp = 0.0 if (y <= -5.5e+161) tmp = t_1; elseif (y <= 7.5e+108) 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 = j * (0.0 - (y * i)); tmp = 0.0; if (y <= -5.5e+161) tmp = t_1; elseif (y <= 7.5e+108) 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[(j * N[(0.0 - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+161], t$95$1, If[LessEqual[y, 7.5e+108], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(0 - y \cdot i\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.5000000000000005e161 or 7.50000000000000039e108 < y Initial program 70.8%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6462.8
Simplified62.8%
Taylor expanded in j around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6454.2
Simplified54.2%
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6459.1
Applied egg-rr59.1%
if -5.5000000000000005e161 < y < 7.50000000000000039e108Initial program 81.4%
Taylor expanded in z around 0
Simplified81.5%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6444.8
Simplified44.8%
Final simplification49.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -2.7e+69) (* z (* x y)) (if (<= y 9.6e-25) (* i (* a b)) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.7e+69) {
tmp = z * (x * y);
} else if (y <= 9.6e-25) {
tmp = i * (a * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.7d+69)) then
tmp = z * (x * y)
else if (y <= 9.6d-25) then
tmp = i * (a * b)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.7e+69) {
tmp = z * (x * y);
} else if (y <= 9.6e-25) {
tmp = i * (a * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.7e+69: tmp = z * (x * y) elif y <= 9.6e-25: tmp = i * (a * b) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.7e+69) tmp = Float64(z * Float64(x * y)); elseif (y <= 9.6e-25) tmp = Float64(i * Float64(a * b)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.7e+69) tmp = z * (x * y); elseif (y <= 9.6e-25) tmp = i * (a * b); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.7e+69], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.6e-25], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-25}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -2.6999999999999998e69Initial program 65.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in y around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6446.0
Simplified46.0%
if -2.6999999999999998e69 < y < 9.60000000000000037e-25Initial program 83.8%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6437.3
Simplified37.3%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6432.7
Simplified32.7%
if 9.60000000000000037e-25 < y Initial program 78.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6443.9
Simplified43.9%
Taylor expanded in y around inf
*-lowering-*.f6436.7
Simplified36.7%
Final simplification36.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= y -8e+63) t_1 (if (<= y 1.1e-21) (* 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 (y <= -8e+63) {
tmp = t_1;
} else if (y <= 1.1e-21) {
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 (y <= (-8d+63)) then
tmp = t_1
else if (y <= 1.1d-21) 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 (y <= -8e+63) {
tmp = t_1;
} else if (y <= 1.1e-21) {
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 y <= -8e+63: tmp = t_1 elif y <= 1.1e-21: 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 (y <= -8e+63) tmp = t_1; elseif (y <= 1.1e-21) 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 (y <= -8e+63) tmp = t_1; elseif (y <= 1.1e-21) 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[y, -8e+63], t$95$1, If[LessEqual[y, 1.1e-21], 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}\;y \leq -8 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-21}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.00000000000000046e63 or 1.1e-21 < y Initial program 73.1%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.0
Simplified47.0%
Taylor expanded in y around inf
*-lowering-*.f6440.5
Simplified40.5%
if -8.00000000000000046e63 < y < 1.1e-21Initial program 83.8%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6437.3
Simplified37.3%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6432.7
Simplified32.7%
Final simplification36.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -2e+98) t_1 (if (<= j 3.3e-118) (* 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 = c * (t * j);
double tmp;
if (j <= -2e+98) {
tmp = t_1;
} else if (j <= 3.3e-118) {
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 = c * (t * j)
if (j <= (-2d+98)) then
tmp = t_1
else if (j <= 3.3d-118) 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 = c * (t * j);
double tmp;
if (j <= -2e+98) {
tmp = t_1;
} else if (j <= 3.3e-118) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -2e+98: tmp = t_1 elif j <= 3.3e-118: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2e+98) tmp = t_1; elseif (j <= 3.3e-118) 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 = c * (t * j); tmp = 0.0; if (j <= -2e+98) tmp = t_1; elseif (j <= 3.3e-118) 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[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2e+98], t$95$1, If[LessEqual[j, 3.3e-118], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.3 \cdot 10^{-118}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2e98 or 3.3e-118 < j Initial program 74.2%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6472.7
Simplified72.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6437.6
Simplified37.6%
if -2e98 < j < 3.3e-118Initial program 81.7%
Taylor expanded in i around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6440.1
Simplified40.1%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6430.6
Simplified30.6%
Final simplification33.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -5.4e+97) t_1 (if (<= j 2.35e-118) (* a (* b i)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -5.4e+97) {
tmp = t_1;
} else if (j <= 2.35e-118) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-5.4d+97)) then
tmp = t_1
else if (j <= 2.35d-118) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -5.4e+97) {
tmp = t_1;
} else if (j <= 2.35e-118) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -5.4e+97: tmp = t_1 elif j <= 2.35e-118: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -5.4e+97) tmp = t_1; elseif (j <= 2.35e-118) tmp = Float64(a * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -5.4e+97) tmp = t_1; elseif (j <= 2.35e-118) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.4e+97], t$95$1, If[LessEqual[j, 2.35e-118], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -5.4 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.35 \cdot 10^{-118}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -5.39999999999999987e97 or 2.34999999999999995e-118 < j Initial program 74.2%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6472.7
Simplified72.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6437.6
Simplified37.6%
if -5.39999999999999987e97 < j < 2.34999999999999995e-118Initial program 81.7%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified71.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6427.3
Simplified27.3%
Final simplification32.0%
(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 78.3%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified64.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6421.6
Simplified21.6%
Final simplification21.6%
(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 2024195
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))