
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 (- INFINITY))
(fma
j
(fma a c (* y (- 0.0 i)))
(fma z (fma c (- 0.0 b) (* x y)) (* t (fma a (- 0.0 x) (* b i)))))
(if (<= t_1 INFINITY)
t_1
(fma y (fma j (- 0.0 i) (* x z)) (* b (fma c (- 0.0 z) (* t 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma(j, fma(a, c, (y * (0.0 - i))), fma(z, fma(c, (0.0 - b), (x * y)), (t * fma(a, (0.0 - x), (b * i)))));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(y, fma(j, (0.0 - i), (x * z)), (b * fma(c, (0.0 - z), (t * 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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(j, fma(a, c, Float64(y * Float64(0.0 - i))), fma(z, fma(c, Float64(0.0 - b), Float64(x * y)), Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))))); elseif (t_1 <= Inf) tmp = t_1; else tmp = fma(y, fma(j, Float64(0.0 - i), Float64(x * z)), Float64(b * fma(c, Float64(0.0 - z), Float64(t * 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(j * N[(a * c + N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * N[(0.0 - z), $MachinePrecision] + N[(t * 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(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(a, c, y \cdot \left(0 - i\right)\right), \mathsf{fma}\left(z, \mathsf{fma}\left(c, 0 - b, x \cdot y\right), t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\right)\right)\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, 0 - i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, 0 - z, t \cdot i\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < -inf.0Initial program 81.4%
Taylor expanded in t around 0
Simplified91.1%
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified55.1%
Final simplification85.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8.2e+179)
(- (fma (* x z) y (fma y (- 0.0 (* i j)) 0.0)) (* z (* b c)))
(if (<= y 6.8e+123)
(fma
j
(fma a c (* y (- 0.0 i)))
(fma z (fma c (- 0.0 b) (* x y)) (* t (fma a (- 0.0 x) (* b i)))))
(fma y (fma j (- 0.0 i) (* x z)) (* b (fma c (- 0.0 z) (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8.2e+179) {
tmp = fma((x * z), y, fma(y, (0.0 - (i * j)), 0.0)) - (z * (b * c));
} else if (y <= 6.8e+123) {
tmp = fma(j, fma(a, c, (y * (0.0 - i))), fma(z, fma(c, (0.0 - b), (x * y)), (t * fma(a, (0.0 - x), (b * i)))));
} else {
tmp = fma(y, fma(j, (0.0 - i), (x * z)), (b * fma(c, (0.0 - z), (t * i))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8.2e+179) tmp = Float64(fma(Float64(x * z), y, fma(y, Float64(0.0 - Float64(i * j)), 0.0)) - Float64(z * Float64(b * c))); elseif (y <= 6.8e+123) tmp = fma(j, fma(a, c, Float64(y * Float64(0.0 - i))), fma(z, fma(c, Float64(0.0 - b), Float64(x * y)), Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))))); else tmp = fma(y, fma(j, Float64(0.0 - i), Float64(x * z)), Float64(b * fma(c, Float64(0.0 - z), Float64(t * i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8.2e+179], N[(N[(N[(x * z), $MachinePrecision] * y + N[(y * N[(0.0 - N[(i * j), $MachinePrecision]), $MachinePrecision] + 0.0), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+123], N[(j * N[(a * c + N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * N[(0.0 - z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.2 \cdot 10^{+179}:\\
\;\;\;\;\mathsf{fma}\left(x \cdot z, y, \mathsf{fma}\left(y, 0 - i \cdot j, 0\right)\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+123}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(a, c, y \cdot \left(0 - i\right)\right), \mathsf{fma}\left(z, \mathsf{fma}\left(c, 0 - b, x \cdot y\right), t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, 0 - i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, 0 - z, t \cdot i\right)\right)\\
\end{array}
\end{array}
if y < -8.20000000000000021e179Initial program 45.9%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified74.6%
Taylor expanded in t around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/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-*.f64N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6481.2
Simplified81.2%
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-inN/A
*-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
+-lft-identityN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
sub0-negN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
--lowering--.f6481.3
Applied egg-rr81.3%
if -8.20000000000000021e179 < y < 6.80000000000000002e123Initial program 80.2%
Taylor expanded in t around 0
Simplified85.5%
if 6.80000000000000002e123 < y Initial program 61.3%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified82.9%
Final simplification84.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.4e+84)
(* t (* b (fma (- 0.0 a) (/ x b) i)))
(if (<= t -5.8e+25)
(* i (fma j (- 0.0 y) (* t b)))
(if (<= t -6e-57)
(* a (fma x (- 0.0 t) (* c j)))
(if (<= t -1.38e-105)
(* z (fma y x (- 0.0 (* b c))))
(if (<= t 1.18e-14)
(fma j (fma a c (* y (- 0.0 i))) (* x (* y z)))
(* t (fma a (- 0.0 x) (* b i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.4e+84) {
tmp = t * (b * fma((0.0 - a), (x / b), i));
} else if (t <= -5.8e+25) {
tmp = i * fma(j, (0.0 - y), (t * b));
} else if (t <= -6e-57) {
tmp = a * fma(x, (0.0 - t), (c * j));
} else if (t <= -1.38e-105) {
tmp = z * fma(y, x, (0.0 - (b * c)));
} else if (t <= 1.18e-14) {
tmp = fma(j, fma(a, c, (y * (0.0 - i))), (x * (y * z)));
} else {
tmp = t * fma(a, (0.0 - x), (b * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.4e+84) tmp = Float64(t * Float64(b * fma(Float64(0.0 - a), Float64(x / b), i))); elseif (t <= -5.8e+25) tmp = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))); elseif (t <= -6e-57) tmp = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))); elseif (t <= -1.38e-105) tmp = Float64(z * fma(y, x, Float64(0.0 - Float64(b * c)))); elseif (t <= 1.18e-14) tmp = fma(j, fma(a, c, Float64(y * Float64(0.0 - i))), Float64(x * Float64(y * z))); else tmp = Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.4e+84], N[(t * N[(b * N[(N[(0.0 - a), $MachinePrecision] * N[(x / b), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.8e+25], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6e-57], N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.38e-105], N[(z * N[(y * x + N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.18e-14], N[(j * N[(a * c + N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+84}:\\
\;\;\;\;t \cdot \left(b \cdot \mathsf{fma}\left(0 - a, \frac{x}{b}, i\right)\right)\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{+25}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-57}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{elif}\;t \leq -1.38 \cdot 10^{-105}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, 0 - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.18 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(a, c, y \cdot \left(0 - i\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\\
\end{array}
\end{array}
if t < -1.39999999999999991e84Initial program 53.6%
Taylor expanded in t around 0
Simplified75.5%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6472.9
Simplified72.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-/l*N/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f6473.0
Simplified73.0%
if -1.39999999999999991e84 < t < -5.7999999999999998e25Initial program 64.2%
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
*-lowering-*.f6482.7
Simplified82.7%
sub0-negN/A
neg-lowering-neg.f6482.7
Applied egg-rr82.7%
if -5.7999999999999998e25 < t < -6.00000000000000001e-57Initial program 67.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Applied egg-rr67.0%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6460.8
Simplified60.8%
if -6.00000000000000001e-57 < t < -1.3800000000000001e-105Initial program 67.1%
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-*.f6474.3
Simplified74.3%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
sub0-negN/A
distribute-lft-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6474.3
Applied egg-rr74.3%
if -1.3800000000000001e-105 < t < 1.17999999999999993e-14Initial program 88.3%
Taylor expanded in t around 0
Simplified72.2%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6470.3
Simplified70.3%
if 1.17999999999999993e-14 < t Initial program 63.1%
Taylor expanded in t around inf
*-lowering-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6458.5
Simplified58.5%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.65e+145)
(* a (fma x (- 0.0 t) (* c j)))
(if (<= a -4.8e-124)
(fma t (* b i) (* z (fma b (- 0.0 c) (* x y))))
(if (<= a 2.2e+156)
(fma y (fma j (- 0.0 i) (* x z)) (* z (- 0.0 (* b c))))
(* a (fma j c (* x (- 0.0 t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.65e+145) {
tmp = a * fma(x, (0.0 - t), (c * j));
} else if (a <= -4.8e-124) {
tmp = fma(t, (b * i), (z * fma(b, (0.0 - c), (x * y))));
} else if (a <= 2.2e+156) {
tmp = fma(y, fma(j, (0.0 - i), (x * z)), (z * (0.0 - (b * c))));
} else {
tmp = a * fma(j, c, (x * (0.0 - t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.65e+145) tmp = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))); elseif (a <= -4.8e-124) tmp = fma(t, Float64(b * i), Float64(z * fma(b, Float64(0.0 - c), Float64(x * y)))); elseif (a <= 2.2e+156) tmp = fma(y, fma(j, Float64(0.0 - i), Float64(x * z)), Float64(z * Float64(0.0 - Float64(b * c)))); else tmp = Float64(a * fma(j, c, Float64(x * Float64(0.0 - t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.65e+145], N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-124], N[(t * N[(b * i), $MachinePrecision] + N[(z * N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+156], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(z * N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(j * c + N[(x * N[(0.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.65 \cdot 10^{+145}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-124}:\\
\;\;\;\;\mathsf{fma}\left(t, b \cdot i, z \cdot \mathsf{fma}\left(b, 0 - c, x \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, 0 - i, x \cdot z\right), z \cdot \left(0 - b \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(0 - t\right)\right)\\
\end{array}
\end{array}
if a < -1.65000000000000013e145Initial program 67.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Applied egg-rr67.0%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6479.7
Simplified79.7%
if -1.65000000000000013e145 < a < -4.79999999999999985e-124Initial program 72.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified73.8%
Taylor expanded in j around 0
+-commutativeN/A
distribute-lft-inN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified71.8%
if -4.79999999999999985e-124 < a < 2.20000000000000004e156Initial program 80.5%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified77.6%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6468.6
Simplified68.6%
if 2.20000000000000004e156 < a Initial program 51.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6461.2
Simplified61.2%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.3e+142)
(* a (fma x (- 0.0 t) (* c j)))
(if (<= a 5.8e+256)
(fma y (fma j (- 0.0 i) (* x z)) (* b (fma c (- 0.0 z) (* t i))))
(* a (fma j c (* x (- 0.0 t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.3e+142) {
tmp = a * fma(x, (0.0 - t), (c * j));
} else if (a <= 5.8e+256) {
tmp = fma(y, fma(j, (0.0 - i), (x * z)), (b * fma(c, (0.0 - z), (t * i))));
} else {
tmp = a * fma(j, c, (x * (0.0 - t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.3e+142) tmp = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))); elseif (a <= 5.8e+256) tmp = fma(y, fma(j, Float64(0.0 - i), Float64(x * z)), Float64(b * fma(c, Float64(0.0 - z), Float64(t * i)))); else tmp = Float64(a * fma(j, c, Float64(x * Float64(0.0 - t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.3e+142], N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e+256], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * N[(0.0 - z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(j * c + N[(x * N[(0.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+142}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{+256}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, 0 - i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, 0 - z, t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(0 - t\right)\right)\\
\end{array}
\end{array}
if a < -1.30000000000000011e142Initial program 67.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Applied egg-rr67.0%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6479.7
Simplified79.7%
if -1.30000000000000011e142 < a < 5.8000000000000003e256Initial program 76.6%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified75.2%
if 5.8000000000000003e256 < a Initial program 27.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6473.4
Simplified73.4%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.36e+143)
(* a (fma x (- 0.0 t) (* c j)))
(if (<= a -1.95e-126)
(fma t (* b i) (* z (fma b (- 0.0 c) (* x y))))
(if (<= a 2.05e+156)
(- (* y (fma i (- 0.0 j) (* x z))) (* z (* b c)))
(* a (fma j c (* x (- 0.0 t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.36e+143) {
tmp = a * fma(x, (0.0 - t), (c * j));
} else if (a <= -1.95e-126) {
tmp = fma(t, (b * i), (z * fma(b, (0.0 - c), (x * y))));
} else if (a <= 2.05e+156) {
tmp = (y * fma(i, (0.0 - j), (x * z))) - (z * (b * c));
} else {
tmp = a * fma(j, c, (x * (0.0 - t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.36e+143) tmp = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))); elseif (a <= -1.95e-126) tmp = fma(t, Float64(b * i), Float64(z * fma(b, Float64(0.0 - c), Float64(x * y)))); elseif (a <= 2.05e+156) tmp = Float64(Float64(y * fma(i, Float64(0.0 - j), Float64(x * z))) - Float64(z * Float64(b * c))); else tmp = Float64(a * fma(j, c, Float64(x * Float64(0.0 - t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.36e+143], N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-126], N[(t * N[(b * i), $MachinePrecision] + N[(z * N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e+156], N[(N[(y * N[(i * N[(0.0 - j), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(j * c + N[(x * N[(0.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.36 \cdot 10^{+143}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-126}:\\
\;\;\;\;\mathsf{fma}\left(t, b \cdot i, z \cdot \mathsf{fma}\left(b, 0 - c, x \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+156}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(i, 0 - j, x \cdot z\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(0 - t\right)\right)\\
\end{array}
\end{array}
if a < -1.3599999999999999e143Initial program 67.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Applied egg-rr67.0%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6479.7
Simplified79.7%
if -1.3599999999999999e143 < a < -1.9499999999999999e-126Initial program 72.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified73.8%
Taylor expanded in j around 0
+-commutativeN/A
distribute-lft-inN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified71.8%
if -1.9499999999999999e-126 < a < 2.0500000000000001e156Initial program 80.5%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified77.6%
Taylor expanded in t around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/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-*.f64N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Simplified67.0%
if 2.0500000000000001e156 < a Initial program 51.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6461.2
Simplified61.2%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.5e+55)
(- t_1 (* c (* z b)))
(if (<= j 8e-10)
(fma x (- (* y z) (* t a)) (* b (fma c (- 0.0 z) (* t i))))
(+ t_1 (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.5e+55) {
tmp = t_1 - (c * (z * b));
} else if (j <= 8e-10) {
tmp = fma(x, ((y * z) - (t * a)), (b * fma(c, (0.0 - z), (t * i))));
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.5e+55) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (j <= 8e-10) tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(b * fma(c, Float64(0.0 - z), Float64(t * i)))); else tmp = Float64(t_1 + Float64(y * Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+55], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-10], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * N[(0.0 - z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-10}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, b \cdot \mathsf{fma}\left(c, 0 - z, t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if j < -1.50000000000000008e55Initial program 78.3%
Taylor expanded in c around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6471.1
Simplified71.1%
if -1.50000000000000008e55 < j < 8.00000000000000029e-10Initial program 69.6%
Taylor expanded in j around 0
sub-negN/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
distribute-neg-inN/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
*-lowering-*.f6466.6
Simplified66.6%
if 8.00000000000000029e-10 < j Initial program 77.2%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.7
Simplified76.7%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -5.5e+37)
(- t_1 (* c (* z b)))
(if (<= j 7e-10)
(fma t (* b i) (* z (fma b (- 0.0 c) (* x y))))
(+ t_1 (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -5.5e+37) {
tmp = t_1 - (c * (z * b));
} else if (j <= 7e-10) {
tmp = fma(t, (b * i), (z * fma(b, (0.0 - c), (x * y))));
} else {
tmp = t_1 + (y * (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -5.5e+37) tmp = Float64(t_1 - Float64(c * Float64(z * b))); elseif (j <= 7e-10) tmp = fma(t, Float64(b * i), Float64(z * fma(b, Float64(0.0 - c), Float64(x * y)))); else tmp = Float64(t_1 + Float64(y * Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.5e+37], N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e-10], N[(t * N[(b * i), $MachinePrecision] + N[(z * N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -5.5 \cdot 10^{+37}:\\
\;\;\;\;t\_1 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{-10}:\\
\;\;\;\;\mathsf{fma}\left(t, b \cdot i, z \cdot \mathsf{fma}\left(b, 0 - c, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if j < -5.50000000000000016e37Initial program 78.4%
Taylor expanded in c around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6468.6
Simplified68.6%
if -5.50000000000000016e37 < j < 6.99999999999999961e-10Initial program 69.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified72.2%
Taylor expanded in j around 0
+-commutativeN/A
distribute-lft-inN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified66.8%
if 6.99999999999999961e-10 < j Initial program 77.2%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.7
Simplified76.7%
Final simplification69.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.7e+37)
(fma j (fma a c (* y (- 0.0 i))) (* x (* y z)))
(if (<= j 8e-10)
(fma t (* b i) (* z (fma b (- 0.0 c) (* x y))))
(+ (* j (- (* a c) (* y i))) (* y (* x z))))))
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.7e+37) {
tmp = fma(j, fma(a, c, (y * (0.0 - i))), (x * (y * z)));
} else if (j <= 8e-10) {
tmp = fma(t, (b * i), (z * fma(b, (0.0 - c), (x * y))));
} else {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.7e+37) tmp = fma(j, fma(a, c, Float64(y * Float64(0.0 - i))), Float64(x * Float64(y * z))); elseif (j <= 8e-10) tmp = fma(t, Float64(b * i), Float64(z * fma(b, Float64(0.0 - c), Float64(x * y)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.7e+37], N[(j * N[(a * c + N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-10], N[(t * N[(b * i), $MachinePrecision] + N[(z * N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.7 \cdot 10^{+37}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(a, c, y \cdot \left(0 - i\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-10}:\\
\;\;\;\;\mathsf{fma}\left(t, b \cdot i, z \cdot \mathsf{fma}\left(b, 0 - c, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if j < -2.69999999999999986e37Initial program 78.4%
Taylor expanded in t around 0
Simplified71.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6460.9
Simplified60.9%
if -2.69999999999999986e37 < j < 8.00000000000000029e-10Initial program 69.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified72.2%
Taylor expanded in j around 0
+-commutativeN/A
distribute-lft-inN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified66.8%
if 8.00000000000000029e-10 < j Initial program 77.2%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.7
Simplified76.7%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j (fma a c (* y (- 0.0 i))) (* x (* y z)))))
(if (<= j -3.6e+37)
t_1
(if (<= j 1.5e-9) (fma t (* b i) (* z (fma b (- 0.0 c) (* x y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, fma(a, c, (y * (0.0 - i))), (x * (y * z)));
double tmp;
if (j <= -3.6e+37) {
tmp = t_1;
} else if (j <= 1.5e-9) {
tmp = fma(t, (b * i), (z * fma(b, (0.0 - c), (x * y))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, fma(a, c, Float64(y * Float64(0.0 - i))), Float64(x * Float64(y * z))) tmp = 0.0 if (j <= -3.6e+37) tmp = t_1; elseif (j <= 1.5e-9) tmp = fma(t, Float64(b * i), Float64(z * fma(b, Float64(0.0 - c), Float64(x * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c + N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.6e+37], t$95$1, If[LessEqual[j, 1.5e-9], N[(t * N[(b * i), $MachinePrecision] + N[(z * N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, \mathsf{fma}\left(a, c, y \cdot \left(0 - i\right)\right), x \cdot \left(y \cdot z\right)\right)\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{+37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(t, b \cdot i, z \cdot \mathsf{fma}\left(b, 0 - c, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.59999999999999998e37 or 1.49999999999999999e-9 < j Initial program 77.8%
Taylor expanded in t around 0
Simplified73.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6465.8
Simplified65.8%
if -3.59999999999999998e37 < j < 1.49999999999999999e-9Initial program 69.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.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-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
Simplified72.2%
Taylor expanded in j around 0
+-commutativeN/A
distribute-lft-inN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
Simplified66.8%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.3e+26)
(- 0.0 (* i (* y j)))
(if (<= y -1.2e-50)
(* b (* t i))
(if (<= y 2.8e-290)
(* b (* c (- 0.0 z)))
(if (<= y 2.7e+14) (* t (* a (- 0.0 x))) (- 0.0 (* y (* i j))))))))
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.3e+26) {
tmp = 0.0 - (i * (y * j));
} else if (y <= -1.2e-50) {
tmp = b * (t * i);
} else if (y <= 2.8e-290) {
tmp = b * (c * (0.0 - z));
} else if (y <= 2.7e+14) {
tmp = t * (a * (0.0 - x));
} else {
tmp = 0.0 - (y * (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-2.3d+26)) then
tmp = 0.0d0 - (i * (y * j))
else if (y <= (-1.2d-50)) then
tmp = b * (t * i)
else if (y <= 2.8d-290) then
tmp = b * (c * (0.0d0 - z))
else if (y <= 2.7d+14) then
tmp = t * (a * (0.0d0 - x))
else
tmp = 0.0d0 - (y * (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.3e+26) {
tmp = 0.0 - (i * (y * j));
} else if (y <= -1.2e-50) {
tmp = b * (t * i);
} else if (y <= 2.8e-290) {
tmp = b * (c * (0.0 - z));
} else if (y <= 2.7e+14) {
tmp = t * (a * (0.0 - x));
} else {
tmp = 0.0 - (y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -2.3e+26: tmp = 0.0 - (i * (y * j)) elif y <= -1.2e-50: tmp = b * (t * i) elif y <= 2.8e-290: tmp = b * (c * (0.0 - z)) elif y <= 2.7e+14: tmp = t * (a * (0.0 - x)) else: tmp = 0.0 - (y * (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.3e+26) tmp = Float64(0.0 - Float64(i * Float64(y * j))); elseif (y <= -1.2e-50) tmp = Float64(b * Float64(t * i)); elseif (y <= 2.8e-290) tmp = Float64(b * Float64(c * Float64(0.0 - z))); elseif (y <= 2.7e+14) tmp = Float64(t * Float64(a * Float64(0.0 - x))); else tmp = Float64(0.0 - Float64(y * Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -2.3e+26) tmp = 0.0 - (i * (y * j)); elseif (y <= -1.2e-50) tmp = b * (t * i); elseif (y <= 2.8e-290) tmp = b * (c * (0.0 - z)); elseif (y <= 2.7e+14) tmp = t * (a * (0.0 - x)); else tmp = 0.0 - (y * (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.3e+26], N[(0.0 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.2e-50], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-290], N[(b * N[(c * N[(0.0 - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+14], N[(t * N[(a * N[(0.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.0 - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+26}:\\
\;\;\;\;0 - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-50}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-290}:\\
\;\;\;\;b \cdot \left(c \cdot \left(0 - z\right)\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(a \cdot \left(0 - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;0 - y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if y < -2.3000000000000001e26Initial program 65.2%
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
*-lowering-*.f6448.7
Simplified48.7%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6438.2
Simplified38.2%
sub0-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6438.2
Applied egg-rr38.2%
if -2.3000000000000001e26 < y < -1.20000000000000001e-50Initial program 64.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
*-lowering-*.f6447.0
Simplified47.0%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6437.8
Simplified37.8%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.1
Applied egg-rr42.1%
if -1.20000000000000001e-50 < y < 2.79999999999999997e-290Initial program 88.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.7
Simplified56.7%
Taylor expanded in j around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6436.4
Simplified36.4%
associate-*r*N/A
sub0-negN/A
distribute-rgt-neg-inN/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f6436.4
Applied egg-rr36.4%
if 2.79999999999999997e-290 < y < 2.7e14Initial program 82.2%
Taylor expanded in t around 0
Simplified85.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.9
Simplified49.9%
Taylor expanded in b around 0
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--.f6438.4
Simplified38.4%
if 2.7e14 < y Initial program 63.2%
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
*-lowering-*.f6457.1
Simplified57.1%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.0
Simplified44.0%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.1
Applied egg-rr47.1%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -8e+30)
(* i (* t (- b (/ (* y j) t))))
(if (<= i 1.2e-118)
(* z (fma y x (- 0.0 (* b c))))
(if (<= i 3e+91)
(* y (fma j (- 0.0 i) (* x z)))
(* i (fma j (- 0.0 y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -8e+30) {
tmp = i * (t * (b - ((y * j) / t)));
} else if (i <= 1.2e-118) {
tmp = z * fma(y, x, (0.0 - (b * c)));
} else if (i <= 3e+91) {
tmp = y * fma(j, (0.0 - i), (x * z));
} else {
tmp = i * fma(j, (0.0 - y), (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -8e+30) tmp = Float64(i * Float64(t * Float64(b - Float64(Float64(y * j) / t)))); elseif (i <= 1.2e-118) tmp = Float64(z * fma(y, x, Float64(0.0 - Float64(b * c)))); elseif (i <= 3e+91) tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); else tmp = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -8e+30], N[(i * N[(t * N[(b - N[(N[(y * j), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.2e-118], N[(z * N[(y * x + N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+91], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8 \cdot 10^{+30}:\\
\;\;\;\;i \cdot \left(t \cdot \left(b - \frac{y \cdot j}{t}\right)\right)\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{-118}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, 0 - b \cdot c\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+91}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\end{array}
\end{array}
if i < -8.0000000000000002e30Initial program 67.1%
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
*-lowering-*.f6466.0
Simplified66.0%
Taylor expanded in t around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6467.5
Simplified67.5%
if -8.0000000000000002e30 < i < 1.2000000000000001e-118Initial program 81.4%
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-*.f6452.6
Simplified52.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
sub0-negN/A
distribute-lft-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6454.4
Applied egg-rr54.4%
if 1.2000000000000001e-118 < i < 3.00000000000000006e91Initial program 68.1%
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-*.f6452.4
Simplified52.4%
if 3.00000000000000006e91 < i Initial program 64.6%
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
*-lowering-*.f6478.5
Simplified78.5%
sub0-negN/A
neg-lowering-neg.f6478.5
Applied egg-rr78.5%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- 0.0 y) (* t b)))))
(if (<= i -3.2e+57)
t_1
(if (<= i 9e-117)
(* z (fma y x (- 0.0 (* b c))))
(if (<= i 3.1e+91) (* y (fma j (- 0.0 i) (* x z))) 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 = i * fma(j, (0.0 - y), (t * b));
double tmp;
if (i <= -3.2e+57) {
tmp = t_1;
} else if (i <= 9e-117) {
tmp = z * fma(y, x, (0.0 - (b * c)));
} else if (i <= 3.1e+91) {
tmp = y * fma(j, (0.0 - i), (x * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))) tmp = 0.0 if (i <= -3.2e+57) tmp = t_1; elseif (i <= 9e-117) tmp = Float64(z * fma(y, x, Float64(0.0 - Float64(b * c)))); elseif (i <= 3.1e+91) tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.2e+57], t$95$1, If[LessEqual[i, 9e-117], N[(z * N[(y * x + N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e+91], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{if}\;i \leq -3.2 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-117}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, 0 - b \cdot c\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{+91}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.20000000000000029e57 or 3.09999999999999998e91 < i Initial program 65.6%
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
*-lowering-*.f6474.4
Simplified74.4%
sub0-negN/A
neg-lowering-neg.f6474.4
Applied egg-rr74.4%
if -3.20000000000000029e57 < i < 8.99999999999999939e-117Initial program 80.9%
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-*.f6452.1
Simplified52.1%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
sub0-negN/A
distribute-lft-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6453.8
Applied egg-rr53.8%
if 8.99999999999999939e-117 < i < 3.09999999999999998e91Initial program 68.1%
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-*.f6452.4
Simplified52.4%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- 0.0 y) (* t b)))))
(if (<= i -1.9e+56)
t_1
(if (<= i 2.5e-19)
(* z (fma y x (- 0.0 (* b c))))
(if (<= i 4.1e+57) (* a (fma j c (* x (- 0.0 t)))) 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 = i * fma(j, (0.0 - y), (t * b));
double tmp;
if (i <= -1.9e+56) {
tmp = t_1;
} else if (i <= 2.5e-19) {
tmp = z * fma(y, x, (0.0 - (b * c)));
} else if (i <= 4.1e+57) {
tmp = a * fma(j, c, (x * (0.0 - t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))) tmp = 0.0 if (i <= -1.9e+56) tmp = t_1; elseif (i <= 2.5e-19) tmp = Float64(z * fma(y, x, Float64(0.0 - Float64(b * c)))); elseif (i <= 4.1e+57) tmp = Float64(a * fma(j, c, Float64(x * Float64(0.0 - t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+56], t$95$1, If[LessEqual[i, 2.5e-19], N[(z * N[(y * x + N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.1e+57], N[(a * N[(j * c + N[(x * N[(0.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{if}\;i \leq -1.9 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.5 \cdot 10^{-19}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, 0 - b \cdot c\right)\\
\mathbf{elif}\;i \leq 4.1 \cdot 10^{+57}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(0 - t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.89999999999999998e56 or 4.1e57 < i Initial program 66.0%
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
*-lowering-*.f6471.6
Simplified71.6%
sub0-negN/A
neg-lowering-neg.f6471.6
Applied egg-rr71.6%
if -1.89999999999999998e56 < i < 2.5000000000000002e-19Initial program 80.6%
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-*.f6451.6
Simplified51.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
sub0-negN/A
distribute-lft-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6453.1
Applied egg-rr53.1%
if 2.5000000000000002e-19 < i < 4.1e57Initial program 57.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6465.3
Simplified65.3%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- 0.0 y) (* t b)))))
(if (<= i -3.2e-39)
t_1
(if (<= i 5.9e-151)
(* c (- (* a j) (* z b)))
(if (<= i 1e+85) (* 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 = i * fma(j, (0.0 - y), (t * b));
double tmp;
if (i <= -3.2e-39) {
tmp = t_1;
} else if (i <= 5.9e-151) {
tmp = c * ((a * j) - (z * b));
} else if (i <= 1e+85) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))) tmp = 0.0 if (i <= -3.2e-39) tmp = t_1; elseif (i <= 5.9e-151) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (i <= 1e+85) tmp = 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[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.2e-39], t$95$1, If[LessEqual[i, 5.9e-151], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1e+85], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{if}\;i \leq -3.2 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.9 \cdot 10^{-151}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 10^{+85}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.1999999999999998e-39 or 1e85 < i Initial program 66.9%
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
*-lowering-*.f6466.5
Simplified66.5%
sub0-negN/A
neg-lowering-neg.f6466.5
Applied egg-rr66.5%
if -3.1999999999999998e-39 < i < 5.8999999999999999e-151Initial program 83.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6456.7
Simplified56.7%
if 5.8999999999999999e-151 < i < 1e85Initial program 70.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.4
Simplified47.4%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma x (- 0.0 t) (* c j)))))
(if (<= a -1.45e+60)
t_1
(if (<= a -6e-123)
(* i (* t b))
(if (<= a 54.0) (* j (* y (- 0.0 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 = a * fma(x, (0.0 - t), (c * j));
double tmp;
if (a <= -1.45e+60) {
tmp = t_1;
} else if (a <= -6e-123) {
tmp = i * (t * b);
} else if (a <= 54.0) {
tmp = j * (y * (0.0 - i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))) tmp = 0.0 if (a <= -1.45e+60) tmp = t_1; elseif (a <= -6e-123) tmp = Float64(i * Float64(t * b)); elseif (a <= 54.0) tmp = Float64(j * Float64(y * Float64(0.0 - i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.45e+60], t$95$1, If[LessEqual[a, -6e-123], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 54.0], N[(j * N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{if}\;a \leq -1.45 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-123}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 54:\\
\;\;\;\;j \cdot \left(y \cdot \left(0 - i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.45e60 or 54 < a Initial program 64.4%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.4
Applied egg-rr64.4%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6457.7
Simplified57.7%
if -1.45e60 < a < -5.99999999999999968e-123Initial program 75.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
*-lowering-*.f6459.3
Simplified59.3%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6445.5
Simplified45.5%
if -5.99999999999999968e-123 < a < 54Initial program 81.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
*-lowering-*.f6447.5
Simplified47.5%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6432.1
Simplified32.1%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6433.7
Applied egg-rr33.7%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -6.8e+68)
(* i (* t b))
(if (<= t -7.5e-9)
(* a (* c j))
(if (<= t -2.3e-105)
(* c (- 0.0 (* z b)))
(if (<= t 7.3e-14) (* x (* y z)) (* t (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.8e+68) {
tmp = i * (t * b);
} else if (t <= -7.5e-9) {
tmp = a * (c * j);
} else if (t <= -2.3e-105) {
tmp = c * (0.0 - (z * b));
} else if (t <= 7.3e-14) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-6.8d+68)) then
tmp = i * (t * b)
else if (t <= (-7.5d-9)) then
tmp = a * (c * j)
else if (t <= (-2.3d-105)) then
tmp = c * (0.0d0 - (z * b))
else if (t <= 7.3d-14) then
tmp = x * (y * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.8e+68) {
tmp = i * (t * b);
} else if (t <= -7.5e-9) {
tmp = a * (c * j);
} else if (t <= -2.3e-105) {
tmp = c * (0.0 - (z * b));
} else if (t <= 7.3e-14) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.8e+68: tmp = i * (t * b) elif t <= -7.5e-9: tmp = a * (c * j) elif t <= -2.3e-105: tmp = c * (0.0 - (z * b)) elif t <= 7.3e-14: tmp = x * (y * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.8e+68) tmp = Float64(i * Float64(t * b)); elseif (t <= -7.5e-9) tmp = Float64(a * Float64(c * j)); elseif (t <= -2.3e-105) tmp = Float64(c * Float64(0.0 - Float64(z * b))); elseif (t <= 7.3e-14) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.8e+68) tmp = i * (t * b); elseif (t <= -7.5e-9) tmp = a * (c * j); elseif (t <= -2.3e-105) tmp = c * (0.0 - (z * b)); elseif (t <= 7.3e-14) tmp = x * (y * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.8e+68], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e-9], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.3e-105], N[(c * N[(0.0 - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.3e-14], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.8 \cdot 10^{+68}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(0 - z \cdot b\right)\\
\mathbf{elif}\;t \leq 7.3 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -6.8000000000000003e68Initial program 53.2%
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
*-lowering-*.f6454.9
Simplified54.9%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6446.4
Simplified46.4%
if -6.8000000000000003e68 < t < -7.49999999999999933e-9Initial program 67.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6448.6
Simplified48.6%
Taylor expanded in j around inf
*-lowering-*.f6441.9
Simplified41.9%
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.0
Applied egg-rr48.0%
if -7.49999999999999933e-9 < t < -2.3000000000000001e-105Initial program 72.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.2
Simplified53.2%
Taylor expanded in j around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6441.2
Simplified41.2%
sub0-negN/A
neg-lowering-neg.f6441.2
Applied egg-rr41.2%
if -2.3000000000000001e-105 < t < 7.30000000000000045e-14Initial program 87.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-*.f6442.0
Simplified42.0%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6433.0
Simplified33.0%
if 7.30000000000000045e-14 < t Initial program 63.1%
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
*-lowering-*.f6452.0
Simplified52.0%
Taylor expanded in j around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.5
Simplified38.5%
Final simplification38.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -5.2e+84)
(* t (* a (- 0.0 x)))
(if (<= a -1e-121)
(* i (* t b))
(if (<= a 1.35e+27) (* j (* y (- 0.0 i))) (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -5.2e+84) {
tmp = t * (a * (0.0 - x));
} else if (a <= -1e-121) {
tmp = i * (t * b);
} else if (a <= 1.35e+27) {
tmp = j * (y * (0.0 - i));
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-5.2d+84)) then
tmp = t * (a * (0.0d0 - x))
else if (a <= (-1d-121)) then
tmp = i * (t * b)
else if (a <= 1.35d+27) then
tmp = j * (y * (0.0d0 - i))
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -5.2e+84) {
tmp = t * (a * (0.0 - x));
} else if (a <= -1e-121) {
tmp = i * (t * b);
} else if (a <= 1.35e+27) {
tmp = j * (y * (0.0 - i));
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -5.2e+84: tmp = t * (a * (0.0 - x)) elif a <= -1e-121: tmp = i * (t * b) elif a <= 1.35e+27: tmp = j * (y * (0.0 - i)) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -5.2e+84) tmp = Float64(t * Float64(a * Float64(0.0 - x))); elseif (a <= -1e-121) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.35e+27) tmp = Float64(j * Float64(y * Float64(0.0 - i))); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -5.2e+84) tmp = t * (a * (0.0 - x)); elseif (a <= -1e-121) tmp = i * (t * b); elseif (a <= 1.35e+27) tmp = j * (y * (0.0 - i)); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -5.2e+84], N[(t * N[(a * N[(0.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1e-121], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+27], N[(j * N[(y * N[(0.0 - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{+84}:\\
\;\;\;\;t \cdot \left(a \cdot \left(0 - x\right)\right)\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+27}:\\
\;\;\;\;j \cdot \left(y \cdot \left(0 - i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -5.2000000000000002e84Initial program 65.1%
Taylor expanded in t around 0
Simplified69.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.0
Simplified50.0%
Taylor expanded in b around 0
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--.f6450.1
Simplified50.1%
if -5.2000000000000002e84 < a < -9.9999999999999998e-122Initial program 73.6%
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
*-lowering-*.f6460.4
Simplified60.4%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6444.6
Simplified44.6%
if -9.9999999999999998e-122 < a < 1.3499999999999999e27Initial program 81.5%
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
*-lowering-*.f6446.8
Simplified46.8%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.3
Simplified31.3%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6432.9
Applied egg-rr32.9%
if 1.3499999999999999e27 < a Initial program 63.1%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6448.5
Simplified48.5%
Taylor expanded in j around inf
*-lowering-*.f6437.2
Simplified37.2%
Final simplification38.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -8.6e+81)
(* t (* a (- 0.0 x)))
(if (<= a -3.7e-121)
(* i (* t b))
(if (<= a 1.1e+107) (- 0.0 (* i (* y j))) (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.6e+81) {
tmp = t * (a * (0.0 - x));
} else if (a <= -3.7e-121) {
tmp = i * (t * b);
} else if (a <= 1.1e+107) {
tmp = 0.0 - (i * (y * j));
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-8.6d+81)) then
tmp = t * (a * (0.0d0 - x))
else if (a <= (-3.7d-121)) then
tmp = i * (t * b)
else if (a <= 1.1d+107) then
tmp = 0.0d0 - (i * (y * j))
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.6e+81) {
tmp = t * (a * (0.0 - x));
} else if (a <= -3.7e-121) {
tmp = i * (t * b);
} else if (a <= 1.1e+107) {
tmp = 0.0 - (i * (y * j));
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -8.6e+81: tmp = t * (a * (0.0 - x)) elif a <= -3.7e-121: tmp = i * (t * b) elif a <= 1.1e+107: tmp = 0.0 - (i * (y * j)) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -8.6e+81) tmp = Float64(t * Float64(a * Float64(0.0 - x))); elseif (a <= -3.7e-121) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.1e+107) tmp = Float64(0.0 - Float64(i * Float64(y * j))); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -8.6e+81) tmp = t * (a * (0.0 - x)); elseif (a <= -3.7e-121) tmp = i * (t * b); elseif (a <= 1.1e+107) tmp = 0.0 - (i * (y * j)); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -8.6e+81], N[(t * N[(a * N[(0.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.7e-121], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e+107], N[(0.0 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.6 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(a \cdot \left(0 - x\right)\right)\\
\mathbf{elif}\;a \leq -3.7 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+107}:\\
\;\;\;\;0 - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -8.6000000000000003e81Initial program 65.1%
Taylor expanded in t around 0
Simplified69.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.0
Simplified50.0%
Taylor expanded in b around 0
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--.f6450.1
Simplified50.1%
if -8.6000000000000003e81 < a < -3.7000000000000002e-121Initial program 73.0%
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
*-lowering-*.f6461.6
Simplified61.6%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6445.5
Simplified45.5%
if -3.7000000000000002e-121 < a < 1.1e107Initial program 81.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
*-lowering-*.f6446.2
Simplified46.2%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.0
Simplified31.0%
sub0-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6431.0
Applied egg-rr31.0%
if 1.1e107 < a Initial program 58.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.0
Simplified52.0%
Taylor expanded in j around inf
*-lowering-*.f6439.3
Simplified39.3%
Final simplification38.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.4e+75)
(* a (* x (- 0.0 t)))
(if (<= a -4.8e-121)
(* i (* t b))
(if (<= a 9e+106) (- 0.0 (* i (* y j))) (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.4e+75) {
tmp = a * (x * (0.0 - t));
} else if (a <= -4.8e-121) {
tmp = i * (t * b);
} else if (a <= 9e+106) {
tmp = 0.0 - (i * (y * j));
} else {
tmp = c * (a * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3.4d+75)) then
tmp = a * (x * (0.0d0 - t))
else if (a <= (-4.8d-121)) then
tmp = i * (t * b)
else if (a <= 9d+106) then
tmp = 0.0d0 - (i * (y * j))
else
tmp = c * (a * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.4e+75) {
tmp = a * (x * (0.0 - t));
} else if (a <= -4.8e-121) {
tmp = i * (t * b);
} else if (a <= 9e+106) {
tmp = 0.0 - (i * (y * j));
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.4e+75: tmp = a * (x * (0.0 - t)) elif a <= -4.8e-121: tmp = i * (t * b) elif a <= 9e+106: tmp = 0.0 - (i * (y * j)) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.4e+75) tmp = Float64(a * Float64(x * Float64(0.0 - t))); elseif (a <= -4.8e-121) tmp = Float64(i * Float64(t * b)); elseif (a <= 9e+106) tmp = Float64(0.0 - Float64(i * Float64(y * j))); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.4e+75) tmp = a * (x * (0.0 - t)); elseif (a <= -4.8e-121) tmp = i * (t * b); elseif (a <= 9e+106) tmp = 0.0 - (i * (y * j)); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.4e+75], N[(a * N[(x * N[(0.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-121], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+106], N[(0.0 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.4 \cdot 10^{+75}:\\
\;\;\;\;a \cdot \left(x \cdot \left(0 - t\right)\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+106}:\\
\;\;\;\;0 - i \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if a < -3.40000000000000011e75Initial program 65.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6465.0
Applied egg-rr65.0%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.9
Simplified73.9%
Taylor expanded in t around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-lowering-neg.f6447.9
Simplified47.9%
if -3.40000000000000011e75 < a < -4.80000000000000007e-121Initial program 73.0%
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
*-lowering-*.f6461.6
Simplified61.6%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6445.5
Simplified45.5%
if -4.80000000000000007e-121 < a < 8.9999999999999994e106Initial program 81.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
*-lowering-*.f6446.2
Simplified46.2%
Taylor expanded in j around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.0
Simplified31.0%
sub0-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-lowering-neg.f64N/A
*-lowering-*.f6431.0
Applied egg-rr31.0%
if 8.9999999999999994e106 < a Initial program 58.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.0
Simplified52.0%
Taylor expanded in j around inf
*-lowering-*.f6439.3
Simplified39.3%
Final simplification37.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- 0.0 y) (* t b)))))
(if (<= i -7.2e+55)
t_1
(if (<= i 1.65e-18) (* z (fma y x (- 0.0 (* b 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 = i * fma(j, (0.0 - y), (t * b));
double tmp;
if (i <= -7.2e+55) {
tmp = t_1;
} else if (i <= 1.65e-18) {
tmp = z * fma(y, x, (0.0 - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))) tmp = 0.0 if (i <= -7.2e+55) tmp = t_1; elseif (i <= 1.65e-18) tmp = Float64(z * fma(y, x, Float64(0.0 - Float64(b * c)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.2e+55], t$95$1, If[LessEqual[i, 1.65e-18], N[(z * N[(y * x + N[(0.0 - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{if}\;i \leq -7.2 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{-18}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, 0 - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.19999999999999975e55 or 1.6500000000000001e-18 < i Initial program 65.0%
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
*-lowering-*.f6467.4
Simplified67.4%
sub0-negN/A
neg-lowering-neg.f6467.4
Applied egg-rr67.4%
if -7.19999999999999975e55 < i < 1.6500000000000001e-18Initial program 80.6%
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-*.f6451.6
Simplified51.6%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-commutativeN/A
sub0-negN/A
distribute-lft-neg-outN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6453.1
Applied egg-rr53.1%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (fma j (- 0.0 y) (* t b)))))
(if (<= i -3.5e-39)
t_1
(if (<= i 9.8e-117) (* c (- (* a j) (* z b))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * fma(j, (0.0 - y), (t * b));
double tmp;
if (i <= -3.5e-39) {
tmp = t_1;
} else if (i <= 9.8e-117) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * fma(j, Float64(0.0 - y), Float64(t * b))) tmp = 0.0 if (i <= -3.5e-39) tmp = t_1; elseif (i <= 9.8e-117) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * N[(0.0 - y), $MachinePrecision] + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e-39], t$95$1, If[LessEqual[i, 9.8e-117], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, 0 - y, t \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9.8 \cdot 10^{-117}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.5e-39 or 9.7999999999999995e-117 < i Initial program 67.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
*-lowering-*.f6460.3
Simplified60.3%
sub0-negN/A
neg-lowering-neg.f6460.3
Applied egg-rr60.3%
if -3.5e-39 < i < 9.7999999999999995e-117Initial program 82.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6455.4
Simplified55.4%
Final simplification58.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (fma x (- 0.0 t) (* c j))))) (if (<= a -9e+65) t_1 (if (<= a 7.5e-45) (* b (- (* t 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 = a * fma(x, (0.0 - t), (c * j));
double tmp;
if (a <= -9e+65) {
tmp = t_1;
} else if (a <= 7.5e-45) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(x, Float64(0.0 - t), Float64(c * j))) tmp = 0.0 if (a <= -9e+65) tmp = t_1; elseif (a <= 7.5e-45) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * N[(0.0 - t), $MachinePrecision] + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e+65], t$95$1, If[LessEqual[a, 7.5e-45], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(x, 0 - t, c \cdot j\right)\\
\mathbf{if}\;a \leq -9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-45}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9e65 or 7.5000000000000006e-45 < a Initial program 67.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6467.0
Applied egg-rr67.0%
Taylor expanded in a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6456.8
Simplified56.8%
if -9e65 < a < 7.5000000000000006e-45Initial program 78.3%
Taylor expanded in t around 0
Simplified86.1%
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
*-commutativeN/A
*-lowering-*.f6442.8
Simplified42.8%
Final simplification49.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -6.4e+68)
(* i (* t b))
(if (<= t -9.5e-110)
(* c (* a j))
(if (<= t 4.2e-14) (* x (* y z)) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.4e+68) {
tmp = i * (t * b);
} else if (t <= -9.5e-110) {
tmp = c * (a * j);
} else if (t <= 4.2e-14) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-6.4d+68)) then
tmp = i * (t * b)
else if (t <= (-9.5d-110)) then
tmp = c * (a * j)
else if (t <= 4.2d-14) then
tmp = x * (y * z)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.4e+68) {
tmp = i * (t * b);
} else if (t <= -9.5e-110) {
tmp = c * (a * j);
} else if (t <= 4.2e-14) {
tmp = x * (y * z);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.4e+68: tmp = i * (t * b) elif t <= -9.5e-110: tmp = c * (a * j) elif t <= 4.2e-14: tmp = x * (y * z) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.4e+68) tmp = Float64(i * Float64(t * b)); elseif (t <= -9.5e-110) tmp = Float64(c * Float64(a * j)); elseif (t <= 4.2e-14) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.4e+68) tmp = i * (t * b); elseif (t <= -9.5e-110) tmp = c * (a * j); elseif (t <= 4.2e-14) tmp = x * (y * z); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.4e+68], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-110], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-14], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{+68}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-110}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -6.39999999999999989e68Initial program 53.2%
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
*-lowering-*.f6454.9
Simplified54.9%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6446.4
Simplified46.4%
if -6.39999999999999989e68 < t < -9.50000000000000004e-110Initial program 67.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6451.5
Simplified51.5%
Taylor expanded in j around inf
*-lowering-*.f6431.0
Simplified31.0%
if -9.50000000000000004e-110 < t < 4.1999999999999998e-14Initial program 89.1%
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-*.f6441.8
Simplified41.8%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6433.5
Simplified33.5%
if 4.1999999999999998e-14 < t Initial program 63.1%
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
*-lowering-*.f6452.0
Simplified52.0%
Taylor expanded in j around 0
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.5
Simplified38.5%
Final simplification36.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* a j)))) (if (<= j -1.55e+103) t_1 (if (<= j 2.9e+88) (* i (* t 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 * (a * j);
double tmp;
if (j <= -1.55e+103) {
tmp = t_1;
} else if (j <= 2.9e+88) {
tmp = i * (t * 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 * (a * j)
if (j <= (-1.55d+103)) then
tmp = t_1
else if (j <= 2.9d+88) then
tmp = i * (t * 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 * (a * j);
double tmp;
if (j <= -1.55e+103) {
tmp = t_1;
} else if (j <= 2.9e+88) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if j <= -1.55e+103: tmp = t_1 elif j <= 2.9e+88: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -1.55e+103) tmp = t_1; elseif (j <= 2.9e+88) tmp = Float64(i * Float64(t * 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 * (a * j); tmp = 0.0; if (j <= -1.55e+103) tmp = t_1; elseif (j <= 2.9e+88) tmp = i * (t * 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[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.55e+103], t$95$1, If[LessEqual[j, 2.9e+88], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -1.55 \cdot 10^{+103}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{+88}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.5500000000000001e103 or 2.9e88 < j Initial program 76.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.0
Simplified49.0%
Taylor expanded in j around inf
*-lowering-*.f6440.5
Simplified40.5%
if -1.5500000000000001e103 < j < 2.9e88Initial program 71.1%
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
*-lowering-*.f6440.8
Simplified40.8%
Taylor expanded in j around 0
*-commutativeN/A
*-lowering-*.f6428.9
Simplified28.9%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* a j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (a * j);
}
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 = c * (a * j)
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 c * (a * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (a * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(a * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (a * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(a \cdot j\right)
\end{array}
Initial program 73.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6435.0
Simplified35.0%
Taylor expanded in j around inf
*-lowering-*.f6419.2
Simplified19.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024196
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))