
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* i (fma j (- y) (* a b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * fma(j, -y, (a * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6449.0
Simplified49.0%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -1.9e+170)
t_1
(if (<= c -2.3e-270)
(fma i (fma j (- y) (* a b)) (* x (- (* y z) (* t a))))
(if (<= c 8.8e+47)
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -1.9e+170) {
tmp = t_1;
} else if (c <= -2.3e-270) {
tmp = fma(i, fma(j, -y, (a * b)), (x * ((y * z) - (t * a))));
} else if (c <= 8.8e+47) {
tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -1.9e+170) tmp = t_1; elseif (c <= -2.3e-270) tmp = fma(i, fma(j, Float64(-y), Float64(a * b)), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (c <= 8.8e+47) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.9e+170], t$95$1, If[LessEqual[c, -2.3e-270], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.8e+47], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-270}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, -y, a \cdot b\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{elif}\;c \leq 8.8 \cdot 10^{+47}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.8999999999999999e170 or 8.7999999999999997e47 < c Initial program 64.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6479.7
Simplified79.7%
if -1.8999999999999999e170 < c < -2.3000000000000001e-270Initial program 81.0%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified72.0%
if -2.3000000000000001e-270 < c < 8.7999999999999997e47Initial program 81.1%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.7%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -8.6e+167)
t_1
(if (<= c 8.6e+91)
(fma i (fma j (- y) (* a b)) (* x (- (* y z) (* t a))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -8.6e+167) {
tmp = t_1;
} else if (c <= 8.6e+91) {
tmp = fma(i, fma(j, -y, (a * b)), (x * ((y * z) - (t * a))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -8.6e+167) tmp = t_1; elseif (c <= 8.6e+91) tmp = fma(i, fma(j, Float64(-y), Float64(a * b)), Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.6e+167], t$95$1, If[LessEqual[c, 8.6e+91], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -8.6 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 8.6 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(j, -y, a \cdot b\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -8.6000000000000004e167 or 8.6000000000000001e91 < c Initial program 65.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6481.7
Simplified81.7%
if -8.6000000000000004e167 < c < 8.6000000000000001e91Initial program 80.2%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified69.7%
Final simplification73.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -8.6e+167)
t_1
(if (<= c -4e-226)
(* x (- (* y z) (* t a)))
(if (<= c 9.2e-18)
(* y (fma j (- i) (* x z)))
(if (<= c 3.8e+45) (* b (fma c (- z) (* a i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -8.6e+167) {
tmp = t_1;
} else if (c <= -4e-226) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 9.2e-18) {
tmp = y * fma(j, -i, (x * z));
} else if (c <= 3.8e+45) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -8.6e+167) tmp = t_1; elseif (c <= -4e-226) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 9.2e-18) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (c <= 3.8e+45) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.6e+167], t$95$1, If[LessEqual[c, -4e-226], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e-18], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+45], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -8.6 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4 \cdot 10^{-226}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{+45}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -8.6000000000000004e167 or 3.8000000000000002e45 < c Initial program 64.9%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6479.7
Simplified79.7%
if -8.6000000000000004e167 < c < -3.99999999999999969e-226Initial program 82.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.6
Simplified50.6%
if -3.99999999999999969e-226 < c < 9.2000000000000004e-18Initial program 78.2%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6461.8
Simplified61.8%
if 9.2000000000000004e-18 < c < 3.8000000000000002e45Initial program 84.3%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/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-*.f6465.0
Simplified65.0%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -9.2e+167)
t_1
(if (<= c 4.4e+91) (fma x (fma y z (- (* t a))) (* a (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -9.2e+167) {
tmp = t_1;
} else if (c <= 4.4e+91) {
tmp = fma(x, fma(y, z, -(t * a)), (a * (b * i)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -9.2e+167) tmp = t_1; elseif (c <= 4.4e+91) tmp = fma(x, fma(y, z, Float64(-Float64(t * a))), Float64(a * Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.2e+167], t$95$1, If[LessEqual[c, 4.4e+91], N[(x * N[(y * z + (-N[(t * a), $MachinePrecision])), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -9.2 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(y, z, -t \cdot a\right), a \cdot \left(b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -9.19999999999999952e167 or 4.39999999999999999e91 < c Initial program 65.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6481.7
Simplified81.7%
if -9.19999999999999952e167 < c < 4.39999999999999999e91Initial program 80.2%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Simplified69.7%
Taylor expanded in j around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6459.6
Simplified59.6%
Final simplification66.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -4.9e+117)
(* t (* x (- a)))
(if (<= x -9e-164)
(* b (* a i))
(if (<= x -3.35e-292)
(* y (* j (- i)))
(if (<= x 4.8e-168)
(* c (* z (- b)))
(if (<= x 56000.0) (* t (* c j)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.9e+117) {
tmp = t * (x * -a);
} else if (x <= -9e-164) {
tmp = b * (a * i);
} else if (x <= -3.35e-292) {
tmp = y * (j * -i);
} else if (x <= 4.8e-168) {
tmp = c * (z * -b);
} else if (x <= 56000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-4.9d+117)) then
tmp = t * (x * -a)
else if (x <= (-9d-164)) then
tmp = b * (a * i)
else if (x <= (-3.35d-292)) then
tmp = y * (j * -i)
else if (x <= 4.8d-168) then
tmp = c * (z * -b)
else if (x <= 56000.0d0) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.9e+117) {
tmp = t * (x * -a);
} else if (x <= -9e-164) {
tmp = b * (a * i);
} else if (x <= -3.35e-292) {
tmp = y * (j * -i);
} else if (x <= 4.8e-168) {
tmp = c * (z * -b);
} else if (x <= 56000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -4.9e+117: tmp = t * (x * -a) elif x <= -9e-164: tmp = b * (a * i) elif x <= -3.35e-292: tmp = y * (j * -i) elif x <= 4.8e-168: tmp = c * (z * -b) elif x <= 56000.0: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -4.9e+117) tmp = Float64(t * Float64(x * Float64(-a))); elseif (x <= -9e-164) tmp = Float64(b * Float64(a * i)); elseif (x <= -3.35e-292) tmp = Float64(y * Float64(j * Float64(-i))); elseif (x <= 4.8e-168) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 56000.0) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -4.9e+117) tmp = t * (x * -a); elseif (x <= -9e-164) tmp = b * (a * i); elseif (x <= -3.35e-292) tmp = y * (j * -i); elseif (x <= 4.8e-168) tmp = c * (z * -b); elseif (x <= 56000.0) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.9e+117], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9e-164], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.35e-292], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-168], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 56000.0], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.9 \cdot 10^{+117}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -9 \cdot 10^{-164}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -3.35 \cdot 10^{-292}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 56000:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -4.9000000000000001e117Initial program 82.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6
Simplified40.6%
Taylor expanded in t around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6444.3
Simplified44.3%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f6446.4
Applied egg-rr46.4%
if -4.9000000000000001e117 < x < -8.9999999999999995e-164Initial program 82.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6425.7
Simplified25.7%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6432.9
Applied egg-rr32.9%
if -8.9999999999999995e-164 < x < -3.3500000000000001e-292Initial program 50.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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6466.4
Simplified66.4%
Taylor expanded in j around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-lowering-neg.f6451.3
Simplified51.3%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f6454.9
Applied egg-rr54.9%
if -3.3500000000000001e-292 < x < 4.7999999999999999e-168Initial program 74.5%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.3%
Taylor expanded in c around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.5
Simplified50.5%
if 4.7999999999999999e-168 < x < 56000Initial program 79.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.6
Simplified54.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6432.0
Simplified32.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Applied egg-rr36.3%
if 56000 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.7e+119)
(- (* x (* t a)))
(if (<= x -5e-164)
(* b (* a i))
(if (<= x -2.3e-291)
(* y (* j (- i)))
(if (<= x 3.2e-168)
(* c (* z (- b)))
(if (<= x 1300000000.0) (* t (* c j)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.7e+119) {
tmp = -(x * (t * a));
} else if (x <= -5e-164) {
tmp = b * (a * i);
} else if (x <= -2.3e-291) {
tmp = y * (j * -i);
} else if (x <= 3.2e-168) {
tmp = c * (z * -b);
} else if (x <= 1300000000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.7d+119)) then
tmp = -(x * (t * a))
else if (x <= (-5d-164)) then
tmp = b * (a * i)
else if (x <= (-2.3d-291)) then
tmp = y * (j * -i)
else if (x <= 3.2d-168) then
tmp = c * (z * -b)
else if (x <= 1300000000.0d0) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.7e+119) {
tmp = -(x * (t * a));
} else if (x <= -5e-164) {
tmp = b * (a * i);
} else if (x <= -2.3e-291) {
tmp = y * (j * -i);
} else if (x <= 3.2e-168) {
tmp = c * (z * -b);
} else if (x <= 1300000000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.7e+119: tmp = -(x * (t * a)) elif x <= -5e-164: tmp = b * (a * i) elif x <= -2.3e-291: tmp = y * (j * -i) elif x <= 3.2e-168: tmp = c * (z * -b) elif x <= 1300000000.0: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.7e+119) tmp = Float64(-Float64(x * Float64(t * a))); elseif (x <= -5e-164) tmp = Float64(b * Float64(a * i)); elseif (x <= -2.3e-291) tmp = Float64(y * Float64(j * Float64(-i))); elseif (x <= 3.2e-168) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 1300000000.0) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.7e+119) tmp = -(x * (t * a)); elseif (x <= -5e-164) tmp = b * (a * i); elseif (x <= -2.3e-291) tmp = y * (j * -i); elseif (x <= 3.2e-168) tmp = c * (z * -b); elseif (x <= 1300000000.0) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.7e+119], (-N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), If[LessEqual[x, -5e-164], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e-291], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e-168], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1300000000.0], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+119}:\\
\;\;\;\;-x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-164}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-291}:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 1300000000:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.6999999999999998e119Initial program 82.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6
Simplified40.6%
Taylor expanded in t around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6444.3
Simplified44.3%
if -2.6999999999999998e119 < x < -4.99999999999999962e-164Initial program 82.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6425.7
Simplified25.7%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6432.9
Applied egg-rr32.9%
if -4.99999999999999962e-164 < x < -2.3000000000000001e-291Initial program 50.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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6466.4
Simplified66.4%
Taylor expanded in j around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-lowering-neg.f6451.3
Simplified51.3%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
neg-lowering-neg.f6454.9
Applied egg-rr54.9%
if -2.3000000000000001e-291 < x < 3.20000000000000006e-168Initial program 74.5%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.3%
Taylor expanded in c around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.5
Simplified50.5%
if 3.20000000000000006e-168 < x < 1.3e9Initial program 79.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.6
Simplified54.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6432.0
Simplified32.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Applied egg-rr36.3%
if 1.3e9 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -8e+118)
(- (* x (* t a)))
(if (<= x -5.6e-164)
(* b (* a i))
(if (<= x -1e-292)
(* i (* y (- j)))
(if (<= x 9.5e-168)
(* c (* z (- b)))
(if (<= x 11.0) (* t (* c j)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -8e+118) {
tmp = -(x * (t * a));
} else if (x <= -5.6e-164) {
tmp = b * (a * i);
} else if (x <= -1e-292) {
tmp = i * (y * -j);
} else if (x <= 9.5e-168) {
tmp = c * (z * -b);
} else if (x <= 11.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-8d+118)) then
tmp = -(x * (t * a))
else if (x <= (-5.6d-164)) then
tmp = b * (a * i)
else if (x <= (-1d-292)) then
tmp = i * (y * -j)
else if (x <= 9.5d-168) then
tmp = c * (z * -b)
else if (x <= 11.0d0) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -8e+118) {
tmp = -(x * (t * a));
} else if (x <= -5.6e-164) {
tmp = b * (a * i);
} else if (x <= -1e-292) {
tmp = i * (y * -j);
} else if (x <= 9.5e-168) {
tmp = c * (z * -b);
} else if (x <= 11.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -8e+118: tmp = -(x * (t * a)) elif x <= -5.6e-164: tmp = b * (a * i) elif x <= -1e-292: tmp = i * (y * -j) elif x <= 9.5e-168: tmp = c * (z * -b) elif x <= 11.0: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -8e+118) tmp = Float64(-Float64(x * Float64(t * a))); elseif (x <= -5.6e-164) tmp = Float64(b * Float64(a * i)); elseif (x <= -1e-292) tmp = Float64(i * Float64(y * Float64(-j))); elseif (x <= 9.5e-168) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 11.0) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -8e+118) tmp = -(x * (t * a)); elseif (x <= -5.6e-164) tmp = b * (a * i); elseif (x <= -1e-292) tmp = i * (y * -j); elseif (x <= 9.5e-168) tmp = c * (z * -b); elseif (x <= 11.0) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -8e+118], (-N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), If[LessEqual[x, -5.6e-164], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1e-292], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e-168], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 11.0], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+118}:\\
\;\;\;\;-x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-164}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -1 \cdot 10^{-292}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 11:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -7.99999999999999973e118Initial program 82.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6
Simplified40.6%
Taylor expanded in t around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6444.3
Simplified44.3%
if -7.99999999999999973e118 < x < -5.6000000000000002e-164Initial program 82.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6425.7
Simplified25.7%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6432.9
Applied egg-rr32.9%
if -5.6000000000000002e-164 < x < -1.0000000000000001e-292Initial program 50.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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6466.4
Simplified66.4%
Taylor expanded in j around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-lowering-neg.f6451.3
Simplified51.3%
if -1.0000000000000001e-292 < x < 9.49999999999999918e-168Initial program 74.5%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.3%
Taylor expanded in c around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.5
Simplified50.5%
if 9.49999999999999918e-168 < x < 11Initial program 79.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.6
Simplified54.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6432.0
Simplified32.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Applied egg-rr36.3%
if 11 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -9e+117)
(* a (* x (- t)))
(if (<= x -9.2e-163)
(* b (* a i))
(if (<= x -2.1e-281)
(* i (* y (- j)))
(if (<= x 6e-168)
(* c (* z (- b)))
(if (<= x 1500000000.0) (* t (* c j)) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -9e+117) {
tmp = a * (x * -t);
} else if (x <= -9.2e-163) {
tmp = b * (a * i);
} else if (x <= -2.1e-281) {
tmp = i * (y * -j);
} else if (x <= 6e-168) {
tmp = c * (z * -b);
} else if (x <= 1500000000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-9d+117)) then
tmp = a * (x * -t)
else if (x <= (-9.2d-163)) then
tmp = b * (a * i)
else if (x <= (-2.1d-281)) then
tmp = i * (y * -j)
else if (x <= 6d-168) then
tmp = c * (z * -b)
else if (x <= 1500000000.0d0) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -9e+117) {
tmp = a * (x * -t);
} else if (x <= -9.2e-163) {
tmp = b * (a * i);
} else if (x <= -2.1e-281) {
tmp = i * (y * -j);
} else if (x <= 6e-168) {
tmp = c * (z * -b);
} else if (x <= 1500000000.0) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -9e+117: tmp = a * (x * -t) elif x <= -9.2e-163: tmp = b * (a * i) elif x <= -2.1e-281: tmp = i * (y * -j) elif x <= 6e-168: tmp = c * (z * -b) elif x <= 1500000000.0: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -9e+117) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= -9.2e-163) tmp = Float64(b * Float64(a * i)); elseif (x <= -2.1e-281) tmp = Float64(i * Float64(y * Float64(-j))); elseif (x <= 6e-168) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 1500000000.0) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -9e+117) tmp = a * (x * -t); elseif (x <= -9.2e-163) tmp = b * (a * i); elseif (x <= -2.1e-281) tmp = i * (y * -j); elseif (x <= 6e-168) tmp = c * (z * -b); elseif (x <= 1500000000.0) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -9e+117], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.2e-163], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.1e-281], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e-168], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1500000000.0], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{+117}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -9.2 \cdot 10^{-163}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 1500000000:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -9e117Initial program 82.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6
Simplified40.6%
Taylor expanded in t around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6438.3
Simplified38.3%
if -9e117 < x < -9.1999999999999997e-163Initial program 82.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6425.7
Simplified25.7%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6432.9
Applied egg-rr32.9%
if -9.1999999999999997e-163 < x < -2.0999999999999999e-281Initial program 50.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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6466.4
Simplified66.4%
Taylor expanded in j around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/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-lowering-neg.f6451.3
Simplified51.3%
if -2.0999999999999999e-281 < x < 5.99999999999999983e-168Initial program 74.5%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified76.3%
Taylor expanded in c around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.5
Simplified50.5%
if 5.99999999999999983e-168 < x < 1.5e9Initial program 79.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.6
Simplified54.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6432.0
Simplified32.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Applied egg-rr36.3%
if 1.5e9 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.45e+62)
t_1
(if (<= x -1.05e-173)
(* b (fma c (- z) (* a i)))
(if (<= x 2.5e-66) (* j (fma c t (* y (- i)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.45e+62) {
tmp = t_1;
} else if (x <= -1.05e-173) {
tmp = b * fma(c, -z, (a * i));
} else if (x <= 2.5e-66) {
tmp = j * fma(c, t, (y * -i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.45e+62) tmp = t_1; elseif (x <= -1.05e-173) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); elseif (x <= 2.5e-66) tmp = Float64(j * fma(c, t, Float64(y * Float64(-i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.45e+62], t$95$1, If[LessEqual[x, -1.05e-173], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-66], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.45 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-173}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-66}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.44999999999999992e62 or 2.49999999999999981e-66 < x Initial program 80.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2
Simplified62.2%
if -1.44999999999999992e62 < x < -1.05000000000000001e-173Initial program 81.3%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/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-*.f6453.7
Simplified53.7%
if -1.05000000000000001e-173 < x < 2.49999999999999981e-66Initial program 66.1%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6459.0
Simplified59.0%
Final simplification59.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -4.6e+67)
t_1
(if (<= a 1.5e-21)
(* c (fma b (- z) (* t j)))
(if (<= a 3.4e+133) (* i (fma j (- y) (* a b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -4.6e+67) {
tmp = t_1;
} else if (a <= 1.5e-21) {
tmp = c * fma(b, -z, (t * j));
} else if (a <= 3.4e+133) {
tmp = i * fma(j, -y, (a * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -4.6e+67) tmp = t_1; elseif (a <= 1.5e-21) tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); elseif (a <= 3.4e+133) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); 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[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.6e+67], t$95$1, If[LessEqual[a, 1.5e-21], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e+133], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-21}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{+133}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.5999999999999997e67 or 3.39999999999999987e133 < a Initial program 67.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6460.7
Simplified60.7%
if -4.5999999999999997e67 < a < 1.49999999999999996e-21Initial program 83.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6452.7
Simplified52.7%
if 1.49999999999999996e-21 < a < 3.39999999999999987e133Initial program 68.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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6457.7
Simplified57.7%
Final simplification56.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -9.6e-58)
t_1
(if (<= a 7.7e-222)
(* x (* y z))
(if (<= a 6.6e-71) (* t (* c j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -9.6e-58) {
tmp = t_1;
} else if (a <= 7.7e-222) {
tmp = x * (y * z);
} else if (a <= 6.6e-71) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -9.6e-58) tmp = t_1; elseif (a <= 7.7e-222) tmp = Float64(x * Float64(y * z)); elseif (a <= 6.6e-71) tmp = Float64(t * Float64(c * j)); 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[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.6e-58], t$95$1, If[LessEqual[a, 7.7e-222], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.6e-71], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -9.6 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.7 \cdot 10^{-222}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{-71}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.6000000000000002e-58 or 6.6000000000000003e-71 < a Initial program 71.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6450.1
Simplified50.1%
if -9.6000000000000002e-58 < a < 7.6999999999999994e-222Initial program 82.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6440.1
Simplified40.1%
if 7.6999999999999994e-222 < a < 6.6000000000000003e-71Initial program 81.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6455.5
Simplified55.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6440.9
Simplified40.9%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6442.7
Applied egg-rr42.7%
Final simplification46.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.8e+119)
(* a (* x (- t)))
(if (<= x -1.1e-262)
(* b (* a i))
(if (<= x 2.5e-168)
(* c (* z (- b)))
(if (<= x 0.185) (* t (* c j)) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.8e+119) {
tmp = a * (x * -t);
} else if (x <= -1.1e-262) {
tmp = b * (a * i);
} else if (x <= 2.5e-168) {
tmp = c * (z * -b);
} else if (x <= 0.185) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.8d+119)) then
tmp = a * (x * -t)
else if (x <= (-1.1d-262)) then
tmp = b * (a * i)
else if (x <= 2.5d-168) then
tmp = c * (z * -b)
else if (x <= 0.185d0) then
tmp = t * (c * j)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.8e+119) {
tmp = a * (x * -t);
} else if (x <= -1.1e-262) {
tmp = b * (a * i);
} else if (x <= 2.5e-168) {
tmp = c * (z * -b);
} else if (x <= 0.185) {
tmp = t * (c * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.8e+119: tmp = a * (x * -t) elif x <= -1.1e-262: tmp = b * (a * i) elif x <= 2.5e-168: tmp = c * (z * -b) elif x <= 0.185: tmp = t * (c * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.8e+119) tmp = Float64(a * Float64(x * Float64(-t))); elseif (x <= -1.1e-262) tmp = Float64(b * Float64(a * i)); elseif (x <= 2.5e-168) tmp = Float64(c * Float64(z * Float64(-b))); elseif (x <= 0.185) tmp = Float64(t * Float64(c * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.8e+119) tmp = a * (x * -t); elseif (x <= -1.1e-262) tmp = b * (a * i); elseif (x <= 2.5e-168) tmp = c * (z * -b); elseif (x <= 0.185) tmp = t * (c * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.8e+119], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.1e-262], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-168], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.185], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+119}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-262}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-168}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;x \leq 0.185:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -1.80000000000000001e119Initial program 82.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6440.6
Simplified40.6%
Taylor expanded in t around inf
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6438.3
Simplified38.3%
if -1.80000000000000001e119 < x < -1.09999999999999994e-262Initial program 70.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.9
Simplified41.9%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6430.5
Simplified30.5%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6434.3
Applied egg-rr34.3%
if -1.09999999999999994e-262 < x < 2.50000000000000001e-168Initial program 77.4%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified79.0%
Taylor expanded in c around inf
mul-1-negN/A
neg-lowering-neg.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.7
Simplified47.7%
if 2.50000000000000001e-168 < x < 0.185Initial program 79.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6454.6
Simplified54.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6432.0
Simplified32.0%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Applied egg-rr36.3%
if 0.185 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))))
(if (<= b -1.8e+25)
t_1
(if (<= b 1.45e+38) (* j (fma c t (* y (- i)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double tmp;
if (b <= -1.8e+25) {
tmp = t_1;
} else if (b <= 1.45e+38) {
tmp = j * fma(c, t, (y * -i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) tmp = 0.0 if (b <= -1.8e+25) tmp = t_1; elseif (b <= 1.45e+38) tmp = Float64(j * fma(c, t, Float64(y * Float64(-i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+25], t$95$1, If[LessEqual[b, 1.45e+38], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+38}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.80000000000000008e25 or 1.45000000000000003e38 < b Initial program 77.5%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/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-*.f6464.4
Simplified64.4%
if -1.80000000000000008e25 < b < 1.45000000000000003e38Initial program 74.8%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6450.1
Simplified50.1%
Final simplification55.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -6.5e+64)
t_1
(if (<= a 7.4e-25) (* c (fma b (- z) (* t j))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -6.5e+64) {
tmp = t_1;
} else if (a <= 7.4e-25) {
tmp = c * fma(b, -z, (t * j));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -6.5e+64) tmp = t_1; elseif (a <= 7.4e-25) tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); 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[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.5e+64], t$95$1, If[LessEqual[a, 7.4e-25], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.4 \cdot 10^{-25}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.50000000000000007e64 or 7.40000000000000017e-25 < a Initial program 67.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6454.7
Simplified54.7%
if -6.50000000000000007e64 < a < 7.40000000000000017e-25Initial program 83.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6452.3
Simplified52.3%
Final simplification53.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -4e+126) (* t (* x (- a))) (if (<= x 270000000000.0) (* b (fma c (- z) (* a i))) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4e+126) {
tmp = t * (x * -a);
} else if (x <= 270000000000.0) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = z * (x * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -4e+126) tmp = Float64(t * Float64(x * Float64(-a))); elseif (x <= 270000000000.0) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = Float64(z * Float64(x * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4e+126], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 270000000000.0], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{+126}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq 270000000000:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -3.9999999999999997e126Initial program 84.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6441.4
Simplified41.4%
Taylor expanded in t around inf
mul-1-negN/A
associate-*r*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6445.2
Simplified45.2%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
neg-lowering-neg.f6447.3
Applied egg-rr47.3%
if -3.9999999999999997e126 < x < 2.7e11Initial program 73.9%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/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-*.f6446.5
Simplified46.5%
if 2.7e11 < x Initial program 74.6%
Taylor expanded in t 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
neg-mul-1N/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
Simplified62.1%
Taylor expanded in x around inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
Final simplification47.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -7.2e+164)
t_1
(if (<= c 7.5e-16) (* x (* y z)) (if (<= c 3.1e+45) (* b (* a i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -7.2e+164) {
tmp = t_1;
} else if (c <= 7.5e-16) {
tmp = x * (y * z);
} else if (c <= 3.1e+45) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (c <= (-7.2d+164)) then
tmp = t_1
else if (c <= 7.5d-16) then
tmp = x * (y * z)
else if (c <= 3.1d+45) then
tmp = b * (a * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -7.2e+164) {
tmp = t_1;
} else if (c <= 7.5e-16) {
tmp = x * (y * z);
} else if (c <= 3.1e+45) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -7.2e+164: tmp = t_1 elif c <= 7.5e-16: tmp = x * (y * z) elif c <= 3.1e+45: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -7.2e+164) tmp = t_1; elseif (c <= 7.5e-16) tmp = Float64(x * Float64(y * z)); elseif (c <= 3.1e+45) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (c <= -7.2e+164) tmp = t_1; elseif (c <= 7.5e-16) tmp = x * (y * z); elseif (c <= 3.1e+45) tmp = b * (a * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.2e+164], t$95$1, If[LessEqual[c, 7.5e-16], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e+45], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -7.2 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{+45}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -7.19999999999999981e164 or 3.09999999999999988e45 < c Initial program 65.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6459.0
Simplified59.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6449.5
Simplified49.5%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.8
Applied egg-rr50.8%
if -7.19999999999999981e164 < c < 7.5e-16Initial program 80.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6449.3
Simplified49.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6431.8
Simplified31.8%
if 7.5e-16 < c < 3.09999999999999988e45Initial program 84.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6451.0
Simplified51.0%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.2
Simplified36.2%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6443.5
Applied egg-rr43.5%
Final simplification38.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* t (* c j)))) (if (<= c -1.8e+165) t_1 (if (<= c 2.3e+35) (* x (* y 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 = t * (c * j);
double tmp;
if (c <= -1.8e+165) {
tmp = t_1;
} else if (c <= 2.3e+35) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (c * j)
if (c <= (-1.8d+165)) then
tmp = t_1
else if (c <= 2.3d+35) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (c * j);
double tmp;
if (c <= -1.8e+165) {
tmp = t_1;
} else if (c <= 2.3e+35) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -1.8e+165: tmp = t_1 elif c <= 2.3e+35: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -1.8e+165) tmp = t_1; elseif (c <= 2.3e+35) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (c <= -1.8e+165) tmp = t_1; elseif (c <= 2.3e+35) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.8e+165], t$95$1, If[LessEqual[c, 2.3e+35], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.8 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+35}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.7999999999999999e165 or 2.2999999999999998e35 < c Initial program 65.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6460.0
Simplified60.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6448.4
Simplified48.4%
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6449.6
Applied egg-rr49.6%
if -1.7999999999999999e165 < c < 2.2999999999999998e35Initial program 81.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.5
Simplified47.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.6
Simplified30.6%
Final simplification36.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* j (* t c)))) (if (<= c -4e+164) t_1 (if (<= c 4.2e+33) (* x (* y 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 = j * (t * c);
double tmp;
if (c <= -4e+164) {
tmp = t_1;
} else if (c <= 4.2e+33) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * (t * c)
if (c <= (-4d+164)) then
tmp = t_1
else if (c <= 4.2d+33) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (t * c);
double tmp;
if (c <= -4e+164) {
tmp = t_1;
} else if (c <= 4.2e+33) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (t * c) tmp = 0 if c <= -4e+164: tmp = t_1 elif c <= 4.2e+33: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(t * c)) tmp = 0.0 if (c <= -4e+164) tmp = t_1; elseif (c <= 4.2e+33) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (t * c); tmp = 0.0; if (c <= -4e+164) tmp = t_1; elseif (c <= 4.2e+33) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4e+164], t$95$1, If[LessEqual[c, 4.2e+33], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;c \leq -4 \cdot 10^{+164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+33}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4e164 or 4.2000000000000001e33 < c Initial program 65.0%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6460.0
Simplified60.0%
Taylor expanded in c around inf
*-lowering-*.f6448.6
Simplified48.6%
if -4e164 < c < 4.2000000000000001e33Initial program 81.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.5
Simplified47.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.6
Simplified30.6%
Final simplification36.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* i (* a b)))) (if (<= a -1.4e+45) t_1 (if (<= a 6.3e-18) (* j (* t 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 * (a * b);
double tmp;
if (a <= -1.4e+45) {
tmp = t_1;
} else if (a <= 6.3e-18) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (a <= (-1.4d+45)) then
tmp = t_1
else if (a <= 6.3d-18) then
tmp = j * (t * c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -1.4e+45) {
tmp = t_1;
} else if (a <= 6.3e-18) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if a <= -1.4e+45: tmp = t_1 elif a <= 6.3e-18: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (a <= -1.4e+45) tmp = t_1; elseif (a <= 6.3e-18) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (a <= -1.4e+45) tmp = t_1; elseif (a <= 6.3e-18) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.4e+45], t$95$1, If[LessEqual[a, 6.3e-18], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -1.4 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.3 \cdot 10^{-18}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.4e45 or 6.3000000000000004e-18 < a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6451.8
Simplified51.8%
Taylor expanded in j around 0
*-lowering-*.f6434.9
Simplified34.9%
if -1.4e45 < a < 6.3000000000000004e-18Initial program 84.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6446.3
Simplified46.3%
Taylor expanded in c around inf
*-lowering-*.f6433.1
Simplified33.1%
Final simplification34.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* i (* a b)))) (if (<= a -5.1e+44) t_1 (if (<= a 2.6e-17) (* c (* t j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -5.1e+44) {
tmp = t_1;
} else if (a <= 2.6e-17) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (a <= (-5.1d+44)) then
tmp = t_1
else if (a <= 2.6d-17) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -5.1e+44) {
tmp = t_1;
} else if (a <= 2.6e-17) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if a <= -5.1e+44: tmp = t_1 elif a <= 2.6e-17: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (a <= -5.1e+44) tmp = t_1; elseif (a <= 2.6e-17) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (a <= -5.1e+44) tmp = t_1; elseif (a <= 2.6e-17) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.1e+44], t$95$1, If[LessEqual[a, 2.6e-17], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -5.1 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-17}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.1e44 or 2.60000000000000003e-17 < a 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-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6451.8
Simplified51.8%
Taylor expanded in j around 0
*-lowering-*.f6434.9
Simplified34.9%
if -5.1e44 < a < 2.60000000000000003e-17Initial program 84.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6446.3
Simplified46.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6431.6
Simplified31.6%
Final simplification33.3%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* b i)))) (if (<= b -4.6e+27) t_1 (if (<= b 9.6e+43) (* c (* t j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -4.6e+27) {
tmp = t_1;
} else if (b <= 9.6e+43) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * i)
if (b <= (-4.6d+27)) then
tmp = t_1
else if (b <= 9.6d+43) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (b * i);
double tmp;
if (b <= -4.6e+27) {
tmp = t_1;
} else if (b <= 9.6e+43) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if b <= -4.6e+27: tmp = t_1 elif b <= 9.6e+43: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(b * i)) tmp = 0.0 if (b <= -4.6e+27) tmp = t_1; elseif (b <= 9.6e+43) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (b * i); tmp = 0.0; if (b <= -4.6e+27) tmp = t_1; elseif (b <= 9.6e+43) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.6e+27], t$95$1, If[LessEqual[b, 9.6e+43], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;b \leq -4.6 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.6000000000000001e27 or 9.60000000000000093e43 < b Initial program 76.8%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6446.6
Simplified46.6%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.3
Simplified36.3%
if -4.6000000000000001e27 < b < 9.60000000000000093e43Initial program 75.3%
Taylor expanded in j around inf
*-lowering-*.f64N/A
sub-negN/A
accelerator-lowering-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6449.8
Simplified49.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
*-lowering-*.f6430.3
Simplified30.3%
Final simplification32.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 75.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f64N/A
*-commutativeN/A
*-lowering-*.f6434.0
Simplified34.0%
Taylor expanded in t around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6420.5
Simplified20.5%
Final simplification20.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024204
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))