
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- (* i t) (* c z)) b)))
(if (<=
(- (* (- (* c a) (* i y)) j) (- (* (- (* a t) (* z y)) x) t_1))
INFINITY)
(- (- t_1 (/ x (/ -1.0 (fma (- a) t (* z y))))) (* (- (* i y) (* c a)) j))
(* (fma (- y) j (* b t)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((i * t) - (c * z)) * b;
double tmp;
if (((((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - t_1)) <= ((double) INFINITY)) {
tmp = (t_1 - (x / (-1.0 / fma(-a, t, (z * y))))) - (((i * y) - (c * a)) * j);
} else {
tmp = fma(-y, j, (b * t)) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(i * t) - Float64(c * z)) * b) tmp = 0.0 if (Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - t_1)) <= Inf) tmp = Float64(Float64(t_1 - Float64(x / Float64(-1.0 / fma(Float64(-a), t, Float64(z * y))))) - Float64(Float64(Float64(i * y) - Float64(c * a)) * j)); else tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(t$95$1 - N[(x / N[(-1.0 / N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t - c \cdot z\right) \cdot b\\
\mathbf{if}\;\left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - t\_1\right) \leq \infty:\\
\;\;\;\;\left(t\_1 - \frac{x}{\frac{-1}{\mathsf{fma}\left(-a, t, z \cdot y\right)}}\right) - \left(i \cdot y - c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.4%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6491.4
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6491.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6491.4
Applied rewrites91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.8
Applied rewrites49.8%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 INFINITY) t_1 (* (fma (- y) j (* b t)) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(-y, j, (b * t)) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.8
Applied rewrites49.8%
Final simplification83.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- z) c (* i t)) b (* (fma (- i) y (* c a)) j)))
(t_2 (* (fma (- x) a (* i b)) t)))
(if (<= t -5.5e+105)
t_2
(if (<= t 4.2e-115)
t_1
(if (<= t 1.85e+18)
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(if (<= t 5.6e+158) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-z, c, (i * t)), b, (fma(-i, y, (c * a)) * j));
double t_2 = fma(-x, a, (i * b)) * t;
double tmp;
if (t <= -5.5e+105) {
tmp = t_2;
} else if (t <= 4.2e-115) {
tmp = t_1;
} else if (t <= 1.85e+18) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
} else if (t <= 5.6e+158) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(fma(Float64(-i), y, Float64(c * a)) * j)) t_2 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -5.5e+105) tmp = t_2; elseif (t <= 4.2e-115) tmp = t_1; elseif (t <= 1.85e+18) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (t <= 5.6e+158) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.5e+105], t$95$2, If[LessEqual[t, 4.2e-115], t$95$1, If[LessEqual[t, 1.85e+18], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.6e+158], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
t_2 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+105}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+18}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{+158}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -5.49999999999999979e105 or 5.60000000000000003e158 < t Initial program 55.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.5
Applied rewrites75.5%
if -5.49999999999999979e105 < t < 4.20000000000000003e-115 or 1.85e18 < t < 5.60000000000000003e158Initial program 84.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.2%
if 4.20000000000000003e-115 < t < 1.85e18Initial program 66.2%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-outN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites75.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1e+63)
(* (fma (- x) a (* i b)) t)
(if (<= t -7.8e-82)
(+ (* (* (- z) b) c) (* (- (* c a) (* i y)) j))
(if (<= t 1.1e-10)
(fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
(fma (fma (- t) x (* j c)) a (* (* i t) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1e+63) {
tmp = fma(-x, a, (i * b)) * t;
} else if (t <= -7.8e-82) {
tmp = ((-z * b) * c) + (((c * a) - (i * y)) * j);
} else if (t <= 1.1e-10) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
} else {
tmp = fma(fma(-t, x, (j * c)), a, ((i * t) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1e+63) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (t <= -7.8e-82) tmp = Float64(Float64(Float64(Float64(-z) * b) * c) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); elseif (t <= 1.1e-10) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(Float64(i * t) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1e+63], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, -7.8e-82], N[(N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e-10], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;t \leq -7.8 \cdot 10^{-82}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-10}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \left(i \cdot t\right) \cdot b\right)\\
\end{array}
\end{array}
if t < -1.00000000000000006e63Initial program 57.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.6
Applied rewrites72.6%
if -1.00000000000000006e63 < t < -7.79999999999999947e-82Initial program 79.3%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6468.4
Applied rewrites68.4%
if -7.79999999999999947e-82 < t < 1.09999999999999995e-10Initial program 87.5%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-outN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.7%
if 1.09999999999999995e-10 < t Initial program 63.3%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6463.3
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6463.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6463.3
Applied rewrites63.3%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
mul-1-negN/A
sub-negN/A
neg-mul-1N/A
distribute-lft-inN/A
Applied rewrites71.9%
Taylor expanded in z around 0
Applied rewrites68.5%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i t) b)) (t_2 (fma (fma (- t) x (* j c)) a t_1)))
(if (<= a -3.6e+30)
t_2
(if (<= a -8.5e-95)
(+ t_1 (* (- (* c a) (* i y)) j))
(if (<= a 8e-219)
(* (fma (- i) j (* z x)) y)
(if (<= a 3.45e+43) (* (fma (- z) c (* i t)) b) 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 = (i * t) * b;
double t_2 = fma(fma(-t, x, (j * c)), a, t_1);
double tmp;
if (a <= -3.6e+30) {
tmp = t_2;
} else if (a <= -8.5e-95) {
tmp = t_1 + (((c * a) - (i * y)) * j);
} else if (a <= 8e-219) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 3.45e+43) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) t_2 = fma(fma(Float64(-t), x, Float64(j * c)), a, t_1) tmp = 0.0 if (a <= -3.6e+30) tmp = t_2; elseif (a <= -8.5e-95) tmp = Float64(t_1 + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); elseif (a <= 8e-219) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 3.45e+43) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + t$95$1), $MachinePrecision]}, If[LessEqual[a, -3.6e+30], t$95$2, If[LessEqual[a, -8.5e-95], N[(t$95$1 + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e-219], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 3.45e+43], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, t\_1\right)\\
\mathbf{if}\;a \leq -3.6 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-95}:\\
\;\;\;\;t\_1 + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-219}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 3.45 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.6000000000000002e30 or 3.4499999999999999e43 < a Initial program 64.8%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6464.8
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6464.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6464.8
Applied rewrites64.8%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
mul-1-negN/A
sub-negN/A
neg-mul-1N/A
distribute-lft-inN/A
Applied rewrites77.1%
Taylor expanded in z around 0
Applied rewrites73.5%
if -3.6000000000000002e30 < a < -8.4999999999999995e-95Initial program 85.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
lower-*.f6486.2
Applied rewrites86.2%
if -8.4999999999999995e-95 < a < 8.0000000000000003e-219Initial program 82.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
if 8.0000000000000003e-219 < a < 3.4499999999999999e43Initial program 77.3%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6465.4
Applied rewrites65.4%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- z) c (* i t))))
(if (<= t -5.5e+105)
(* (fma (- x) a (* i b)) t)
(if (<= t 1.4e-113)
(fma t_1 b (* (fma (- i) y (* c a)) j))
(fma t_1 b (* (fma (- x) t (* j c)) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-z, c, (i * t));
double tmp;
if (t <= -5.5e+105) {
tmp = fma(-x, a, (i * b)) * t;
} else if (t <= 1.4e-113) {
tmp = fma(t_1, b, (fma(-i, y, (c * a)) * j));
} else {
tmp = fma(t_1, b, (fma(-x, t, (j * c)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-z), c, Float64(i * t)) tmp = 0.0 if (t <= -5.5e+105) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (t <= 1.4e-113) tmp = fma(t_1, b, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); else tmp = fma(t_1, b, Float64(fma(Float64(-x), t, Float64(j * c)) * a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.5e+105], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 1.4e-113], N[(t$95$1 * b + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * b + N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c, i \cdot t\right)\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{+105}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-113}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right)\\
\end{array}
\end{array}
if t < -5.49999999999999979e105Initial program 57.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.1
Applied rewrites75.1%
if -5.49999999999999979e105 < t < 1.4e-113Initial program 86.2%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites75.9%
if 1.4e-113 < t Initial program 65.1%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- i) j) y)))
(if (<= a -3.8e+30)
(* (* c a) j)
(if (<= a -5.5e-148)
t_1
(if (<= a -1.3e-217)
(* (* z x) y)
(if (<= a 1.05e-234)
t_1
(if (<= a 7.1e-155)
(* (* i b) t)
(if (<= a 9.6e+55) (* (* (- c) z) b) (* (* (- x) a) t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 9.6e+55) {
tmp = (-c * z) * b;
} else {
tmp = (-x * a) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (-i * j) * y
if (a <= (-3.8d+30)) then
tmp = (c * a) * j
else if (a <= (-5.5d-148)) then
tmp = t_1
else if (a <= (-1.3d-217)) then
tmp = (z * x) * y
else if (a <= 1.05d-234) then
tmp = t_1
else if (a <= 7.1d-155) then
tmp = (i * b) * t
else if (a <= 9.6d+55) then
tmp = (-c * z) * b
else
tmp = (-x * a) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 9.6e+55) {
tmp = (-c * z) * b;
} else {
tmp = (-x * a) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-i * j) * y tmp = 0 if a <= -3.8e+30: tmp = (c * a) * j elif a <= -5.5e-148: tmp = t_1 elif a <= -1.3e-217: tmp = (z * x) * y elif a <= 1.05e-234: tmp = t_1 elif a <= 7.1e-155: tmp = (i * b) * t elif a <= 9.6e+55: tmp = (-c * z) * b else: tmp = (-x * a) * t return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-i) * j) * y) tmp = 0.0 if (a <= -3.8e+30) tmp = Float64(Float64(c * a) * j); elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = Float64(Float64(z * x) * y); elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = Float64(Float64(i * b) * t); elseif (a <= 9.6e+55) tmp = Float64(Float64(Float64(-c) * z) * b); else tmp = Float64(Float64(Float64(-x) * a) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-i * j) * y; tmp = 0.0; if (a <= -3.8e+30) tmp = (c * a) * j; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = (z * x) * y; elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = (i * b) * t; elseif (a <= 9.6e+55) tmp = (-c * z) * b; else tmp = (-x * a) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[a, -3.8e+30], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, -5.5e-148], t$95$1, If[LessEqual[a, -1.3e-217], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-234], t$95$1, If[LessEqual[a, 7.1e-155], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 9.6e+55], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.1 \cdot 10^{-155}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{+55}:\\
\;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
\end{array}
\end{array}
if a < -3.8000000000000001e30Initial program 67.9%
Taylor expanded in z around inf
Applied rewrites60.0%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in y around 0
Applied rewrites40.1%
if -3.8000000000000001e30 < a < -5.5000000000000003e-148 or -1.29999999999999997e-217 < a < 1.04999999999999996e-234Initial program 81.5%
Taylor expanded in z around inf
Applied rewrites77.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites51.2%
if -5.5000000000000003e-148 < a < -1.29999999999999997e-217Initial program 87.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.4
Applied rewrites81.4%
Taylor expanded in x around inf
Applied rewrites52.0%
Applied rewrites59.5%
if 1.04999999999999996e-234 < a < 7.1e-155Initial program 76.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6476.1
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6476.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.1
Applied rewrites76.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.5
Applied rewrites49.5%
Taylor expanded in x around 0
Applied rewrites49.4%
if 7.1e-155 < a < 9.5999999999999997e55Initial program 82.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6461.9
Applied rewrites61.9%
Taylor expanded in z around inf
Applied rewrites44.1%
if 9.5999999999999997e55 < a Initial program 61.4%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6461.4
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6461.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.4
Applied rewrites61.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.7
Applied rewrites52.7%
Taylor expanded in x around inf
Applied rewrites47.9%
Final simplification47.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- i) j) y)))
(if (<= a -3.8e+30)
(* (* c a) j)
(if (<= a -5.5e-148)
t_1
(if (<= a -1.3e-217)
(* (* z x) y)
(if (<= a 1.05e-234)
t_1
(if (<= a 7.1e-155)
(* (* i b) t)
(if (<= a 2.15e+55) (* (* (- c) z) b) (* (* (- t) x) a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 2.15e+55) {
tmp = (-c * z) * b;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (-i * j) * y
if (a <= (-3.8d+30)) then
tmp = (c * a) * j
else if (a <= (-5.5d-148)) then
tmp = t_1
else if (a <= (-1.3d-217)) then
tmp = (z * x) * y
else if (a <= 1.05d-234) then
tmp = t_1
else if (a <= 7.1d-155) then
tmp = (i * b) * t
else if (a <= 2.15d+55) then
tmp = (-c * z) * b
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 2.15e+55) {
tmp = (-c * z) * b;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-i * j) * y tmp = 0 if a <= -3.8e+30: tmp = (c * a) * j elif a <= -5.5e-148: tmp = t_1 elif a <= -1.3e-217: tmp = (z * x) * y elif a <= 1.05e-234: tmp = t_1 elif a <= 7.1e-155: tmp = (i * b) * t elif a <= 2.15e+55: tmp = (-c * z) * b else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-i) * j) * y) tmp = 0.0 if (a <= -3.8e+30) tmp = Float64(Float64(c * a) * j); elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = Float64(Float64(z * x) * y); elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = Float64(Float64(i * b) * t); elseif (a <= 2.15e+55) tmp = Float64(Float64(Float64(-c) * z) * b); else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-i * j) * y; tmp = 0.0; if (a <= -3.8e+30) tmp = (c * a) * j; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = (z * x) * y; elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = (i * b) * t; elseif (a <= 2.15e+55) tmp = (-c * z) * b; else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[a, -3.8e+30], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, -5.5e-148], t$95$1, If[LessEqual[a, -1.3e-217], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-234], t$95$1, If[LessEqual[a, 7.1e-155], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 2.15e+55], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.1 \cdot 10^{-155}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{+55}:\\
\;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if a < -3.8000000000000001e30Initial program 67.9%
Taylor expanded in z around inf
Applied rewrites60.0%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in y around 0
Applied rewrites40.1%
if -3.8000000000000001e30 < a < -5.5000000000000003e-148 or -1.29999999999999997e-217 < a < 1.04999999999999996e-234Initial program 81.5%
Taylor expanded in z around inf
Applied rewrites77.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites51.2%
if -5.5000000000000003e-148 < a < -1.29999999999999997e-217Initial program 87.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.4
Applied rewrites81.4%
Taylor expanded in x around inf
Applied rewrites52.0%
Applied rewrites59.5%
if 1.04999999999999996e-234 < a < 7.1e-155Initial program 76.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6476.1
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6476.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.1
Applied rewrites76.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.5
Applied rewrites49.5%
Taylor expanded in x around 0
Applied rewrites49.4%
if 7.1e-155 < a < 2.1499999999999999e55Initial program 82.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6461.9
Applied rewrites61.9%
Taylor expanded in z around inf
Applied rewrites44.1%
if 2.1499999999999999e55 < a Initial program 61.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.0
Applied rewrites68.0%
Taylor expanded in x around inf
Applied rewrites43.6%
Final simplification46.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- i) j) y)) (t_2 (* (* c a) j)))
(if (<= a -3.8e+30)
t_2
(if (<= a -5.5e-148)
t_1
(if (<= a -1.3e-217)
(* (* z x) y)
(if (<= a 1.05e-234)
t_1
(if (<= a 7.1e-155)
(* (* i b) t)
(if (<= a 1.05e+126) (* (* (- b) c) z) 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 = (-i * j) * y;
double t_2 = (c * a) * j;
double tmp;
if (a <= -3.8e+30) {
tmp = t_2;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 1.05e+126) {
tmp = (-b * c) * z;
} 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 = (-i * j) * y
t_2 = (c * a) * j
if (a <= (-3.8d+30)) then
tmp = t_2
else if (a <= (-5.5d-148)) then
tmp = t_1
else if (a <= (-1.3d-217)) then
tmp = (z * x) * y
else if (a <= 1.05d-234) then
tmp = t_1
else if (a <= 7.1d-155) then
tmp = (i * b) * t
else if (a <= 1.05d+126) then
tmp = (-b * c) * z
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 = (-i * j) * y;
double t_2 = (c * a) * j;
double tmp;
if (a <= -3.8e+30) {
tmp = t_2;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 7.1e-155) {
tmp = (i * b) * t;
} else if (a <= 1.05e+126) {
tmp = (-b * c) * z;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-i * j) * y t_2 = (c * a) * j tmp = 0 if a <= -3.8e+30: tmp = t_2 elif a <= -5.5e-148: tmp = t_1 elif a <= -1.3e-217: tmp = (z * x) * y elif a <= 1.05e-234: tmp = t_1 elif a <= 7.1e-155: tmp = (i * b) * t elif a <= 1.05e+126: tmp = (-b * c) * z else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-i) * j) * y) t_2 = Float64(Float64(c * a) * j) tmp = 0.0 if (a <= -3.8e+30) tmp = t_2; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = Float64(Float64(z * x) * y); elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = Float64(Float64(i * b) * t); elseif (a <= 1.05e+126) tmp = Float64(Float64(Float64(-b) * c) * z); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-i * j) * y; t_2 = (c * a) * j; tmp = 0.0; if (a <= -3.8e+30) tmp = t_2; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = (z * x) * y; elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 7.1e-155) tmp = (i * b) * t; elseif (a <= 1.05e+126) tmp = (-b * c) * z; 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[((-i) * j), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[a, -3.8e+30], t$95$2, If[LessEqual[a, -5.5e-148], t$95$1, If[LessEqual[a, -1.3e-217], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-234], t$95$1, If[LessEqual[a, 7.1e-155], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 1.05e+126], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-i\right) \cdot j\right) \cdot y\\
t_2 := \left(c \cdot a\right) \cdot j\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 7.1 \cdot 10^{-155}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+126}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.8000000000000001e30 or 1.05e126 < a Initial program 62.5%
Taylor expanded in z around inf
Applied rewrites63.0%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.4
Applied rewrites51.4%
Taylor expanded in y around 0
Applied rewrites41.9%
if -3.8000000000000001e30 < a < -5.5000000000000003e-148 or -1.29999999999999997e-217 < a < 1.04999999999999996e-234Initial program 81.5%
Taylor expanded in z around inf
Applied rewrites77.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites51.2%
if -5.5000000000000003e-148 < a < -1.29999999999999997e-217Initial program 87.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.4
Applied rewrites81.4%
Taylor expanded in x around inf
Applied rewrites52.0%
Applied rewrites59.5%
if 1.04999999999999996e-234 < a < 7.1e-155Initial program 76.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6476.1
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6476.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6476.1
Applied rewrites76.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.5
Applied rewrites49.5%
Taylor expanded in x around 0
Applied rewrites49.4%
if 7.1e-155 < a < 1.05e126Initial program 80.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.7
Applied rewrites41.7%
Taylor expanded in x around 0
Applied rewrites39.1%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- t) x (* j c)) a (* (* i t) b))))
(if (<= a -3.4e-32)
t_1
(if (<= a 8e-219)
(* (fma (- i) j (* z x)) y)
(if (<= a 3.45e+43) (* (fma (- z) c (* i t)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-t, x, (j * c)), a, ((i * t) * b));
double tmp;
if (a <= -3.4e-32) {
tmp = t_1;
} else if (a <= 8e-219) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 3.45e+43) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(Float64(i * t) * b)) tmp = 0.0 if (a <= -3.4e-32) tmp = t_1; elseif (a <= 8e-219) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 3.45e+43) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e-32], t$95$1, If[LessEqual[a, 8e-219], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 3.45e+43], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \left(i \cdot t\right) \cdot b\right)\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-219}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 3.45 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.39999999999999978e-32 or 3.4499999999999999e43 < a Initial program 66.7%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6466.7
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6466.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
mul-1-negN/A
sub-negN/A
neg-mul-1N/A
distribute-lft-inN/A
Applied rewrites75.9%
Taylor expanded in z around 0
Applied rewrites72.6%
if -3.39999999999999978e-32 < a < 8.0000000000000003e-219Initial program 82.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
if 8.0000000000000003e-219 < a < 3.4499999999999999e43Initial program 77.3%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6465.4
Applied rewrites65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1e+63)
(* (fma (- x) a (* i b)) t)
(if (<= t 2.6e-109)
(+ (* (* (- z) b) c) (* (- (* c a) (* i y)) j))
(fma (fma (- t) x (* j c)) a (* (* i t) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1e+63) {
tmp = fma(-x, a, (i * b)) * t;
} else if (t <= 2.6e-109) {
tmp = ((-z * b) * c) + (((c * a) - (i * y)) * j);
} else {
tmp = fma(fma(-t, x, (j * c)), a, ((i * t) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1e+63) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (t <= 2.6e-109) tmp = Float64(Float64(Float64(Float64(-z) * b) * c) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); else tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(Float64(i * t) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1e+63], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 2.6e-109], N[(N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-109}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \left(i \cdot t\right) \cdot b\right)\\
\end{array}
\end{array}
if t < -1.00000000000000006e63Initial program 57.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6472.6
Applied rewrites72.6%
if -1.00000000000000006e63 < t < 2.5999999999999998e-109Initial program 88.6%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6469.1
Applied rewrites69.1%
if 2.5999999999999998e-109 < t Initial program 65.1%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6465.1
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6465.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.1
Applied rewrites65.1%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-lft-neg-inN/A
mul-1-negN/A
sub-negN/A
neg-mul-1N/A
distribute-lft-inN/A
Applied rewrites70.3%
Taylor expanded in z around 0
Applied rewrites65.6%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- i) j) y)))
(if (<= a -3.8e+30)
(* (* c a) j)
(if (<= a -5.5e-148)
t_1
(if (<= a -1.3e-217)
(* (* z x) y)
(if (<= a 1.05e-234)
t_1
(if (<= a 2.15e+55) (* (* i b) t) (* (* (- t) x) a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 2.15e+55) {
tmp = (i * b) * t;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (-i * j) * y
if (a <= (-3.8d+30)) then
tmp = (c * a) * j
else if (a <= (-5.5d-148)) then
tmp = t_1
else if (a <= (-1.3d-217)) then
tmp = (z * x) * y
else if (a <= 1.05d-234) then
tmp = t_1
else if (a <= 2.15d+55) then
tmp = (i * b) * t
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-i * j) * y;
double tmp;
if (a <= -3.8e+30) {
tmp = (c * a) * j;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 2.15e+55) {
tmp = (i * b) * t;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-i * j) * y tmp = 0 if a <= -3.8e+30: tmp = (c * a) * j elif a <= -5.5e-148: tmp = t_1 elif a <= -1.3e-217: tmp = (z * x) * y elif a <= 1.05e-234: tmp = t_1 elif a <= 2.15e+55: tmp = (i * b) * t else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-i) * j) * y) tmp = 0.0 if (a <= -3.8e+30) tmp = Float64(Float64(c * a) * j); elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = Float64(Float64(z * x) * y); elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 2.15e+55) tmp = Float64(Float64(i * b) * t); else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-i * j) * y; tmp = 0.0; if (a <= -3.8e+30) tmp = (c * a) * j; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = (z * x) * y; elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 2.15e+55) tmp = (i * b) * t; else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[a, -3.8e+30], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, -5.5e-148], t$95$1, If[LessEqual[a, -1.3e-217], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-234], t$95$1, If[LessEqual[a, 2.15e+55], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{+55}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if a < -3.8000000000000001e30Initial program 67.9%
Taylor expanded in z around inf
Applied rewrites60.0%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in y around 0
Applied rewrites40.1%
if -3.8000000000000001e30 < a < -5.5000000000000003e-148 or -1.29999999999999997e-217 < a < 1.04999999999999996e-234Initial program 81.5%
Taylor expanded in z around inf
Applied rewrites77.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites51.2%
if -5.5000000000000003e-148 < a < -1.29999999999999997e-217Initial program 87.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.4
Applied rewrites81.4%
Taylor expanded in x around inf
Applied rewrites52.0%
Applied rewrites59.5%
if 1.04999999999999996e-234 < a < 2.1499999999999999e55Initial program 79.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6479.2
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6479.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6479.2
Applied rewrites79.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.9
Applied rewrites41.9%
Taylor expanded in x around 0
Applied rewrites38.5%
if 2.1499999999999999e55 < a Initial program 61.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.0
Applied rewrites68.0%
Taylor expanded in x around inf
Applied rewrites43.6%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -5.6e+21)
t_1
(if (<= a 1.05e-232)
(* (fma (- i) j (* z x)) y)
(if (<= a 1.6e-51)
(* (fma (- y) j (* b t)) i)
(if (<= a 1.2e+44) (* (fma (- z) b (* j a)) 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 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -5.6e+21) {
tmp = t_1;
} else if (a <= 1.05e-232) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 1.6e-51) {
tmp = fma(-y, j, (b * t)) * i;
} else if (a <= 1.2e+44) {
tmp = fma(-z, b, (j * a)) * c;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -5.6e+21) tmp = t_1; elseif (a <= 1.05e-232) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 1.6e-51) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); elseif (a <= 1.2e+44) tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -5.6e+21], t$95$1, If[LessEqual[a, 1.05e-232], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.6e-51], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 1.2e+44], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-232}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-51}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+44}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.6e21 or 1.20000000000000007e44 < a Initial program 65.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.0
Applied rewrites67.0%
if -5.6e21 < a < 1.05e-232Initial program 82.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites64.5%
if 1.05e-232 < a < 1.6e-51Initial program 79.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.7
Applied rewrites59.7%
if 1.6e-51 < a < 1.20000000000000007e44Initial program 77.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.5
Applied rewrites69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c a)) j)))
(if (<= j -2.25e-41)
t_1
(if (<= j -2.5e-109)
(* (fma (- i) j (* z x)) y)
(if (<= j 2.8e-235)
(* (fma (- c) b (* y x)) z)
(if (<= j 1.05e-120) (* (* (- x) a) t) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, y, (c * a)) * j;
double tmp;
if (j <= -2.25e-41) {
tmp = t_1;
} else if (j <= -2.5e-109) {
tmp = fma(-i, j, (z * x)) * y;
} else if (j <= 2.8e-235) {
tmp = fma(-c, b, (y * x)) * z;
} else if (j <= 1.05e-120) {
tmp = (-x * a) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j) tmp = 0.0 if (j <= -2.25e-41) tmp = t_1; elseif (j <= -2.5e-109) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (j <= 2.8e-235) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); elseif (j <= 1.05e-120) tmp = Float64(Float64(Float64(-x) * a) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -2.25e-41], t$95$1, If[LessEqual[j, -2.5e-109], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 2.8e-235], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 1.05e-120], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{if}\;j \leq -2.25 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -2.5 \cdot 10^{-109}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-235}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-120}:\\
\;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.25e-41 or 1.05e-120 < j Initial program 74.8%
Taylor expanded in z around inf
Applied rewrites74.3%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.6
Applied rewrites61.6%
if -2.25e-41 < j < -2.5000000000000001e-109Initial program 87.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.6
Applied rewrites61.6%
if -2.5000000000000001e-109 < j < 2.79999999999999995e-235Initial program 69.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.6
Applied rewrites52.6%
if 2.79999999999999995e-235 < j < 1.05e-120Initial program 61.2%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6461.1
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6461.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6461.1
Applied rewrites61.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.9
Applied rewrites65.9%
Taylor expanded in x around inf
Applied rewrites49.2%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- i) j) y)) (t_2 (* (* c a) j)))
(if (<= a -3.8e+30)
t_2
(if (<= a -5.5e-148)
t_1
(if (<= a -1.3e-217)
(* (* z x) y)
(if (<= a 1.05e-234) t_1 (if (<= a 1.65e+126) (* (* i b) t) 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 = (-i * j) * y;
double t_2 = (c * a) * j;
double tmp;
if (a <= -3.8e+30) {
tmp = t_2;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 1.65e+126) {
tmp = (i * b) * t;
} 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 = (-i * j) * y
t_2 = (c * a) * j
if (a <= (-3.8d+30)) then
tmp = t_2
else if (a <= (-5.5d-148)) then
tmp = t_1
else if (a <= (-1.3d-217)) then
tmp = (z * x) * y
else if (a <= 1.05d-234) then
tmp = t_1
else if (a <= 1.65d+126) then
tmp = (i * b) * t
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 = (-i * j) * y;
double t_2 = (c * a) * j;
double tmp;
if (a <= -3.8e+30) {
tmp = t_2;
} else if (a <= -5.5e-148) {
tmp = t_1;
} else if (a <= -1.3e-217) {
tmp = (z * x) * y;
} else if (a <= 1.05e-234) {
tmp = t_1;
} else if (a <= 1.65e+126) {
tmp = (i * b) * t;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-i * j) * y t_2 = (c * a) * j tmp = 0 if a <= -3.8e+30: tmp = t_2 elif a <= -5.5e-148: tmp = t_1 elif a <= -1.3e-217: tmp = (z * x) * y elif a <= 1.05e-234: tmp = t_1 elif a <= 1.65e+126: tmp = (i * b) * t else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-i) * j) * y) t_2 = Float64(Float64(c * a) * j) tmp = 0.0 if (a <= -3.8e+30) tmp = t_2; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = Float64(Float64(z * x) * y); elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 1.65e+126) tmp = Float64(Float64(i * b) * t); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-i * j) * y; t_2 = (c * a) * j; tmp = 0.0; if (a <= -3.8e+30) tmp = t_2; elseif (a <= -5.5e-148) tmp = t_1; elseif (a <= -1.3e-217) tmp = (z * x) * y; elseif (a <= 1.05e-234) tmp = t_1; elseif (a <= 1.65e+126) tmp = (i * b) * t; 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[((-i) * j), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[a, -3.8e+30], t$95$2, If[LessEqual[a, -5.5e-148], t$95$1, If[LessEqual[a, -1.3e-217], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-234], t$95$1, If[LessEqual[a, 1.65e+126], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-i\right) \cdot j\right) \cdot y\\
t_2 := \left(c \cdot a\right) \cdot j\\
\mathbf{if}\;a \leq -3.8 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-217}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+126}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -3.8000000000000001e30 or 1.65000000000000006e126 < a Initial program 62.5%
Taylor expanded in z around inf
Applied rewrites63.0%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.4
Applied rewrites51.4%
Taylor expanded in y around 0
Applied rewrites41.9%
if -3.8000000000000001e30 < a < -5.5000000000000003e-148 or -1.29999999999999997e-217 < a < 1.04999999999999996e-234Initial program 81.5%
Taylor expanded in z around inf
Applied rewrites77.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.1
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites51.2%
if -5.5000000000000003e-148 < a < -1.29999999999999997e-217Initial program 87.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.4
Applied rewrites81.4%
Taylor expanded in x around inf
Applied rewrites52.0%
Applied rewrites59.5%
if 1.04999999999999996e-234 < a < 1.65000000000000006e126Initial program 78.7%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6478.6
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6478.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6478.6
Applied rewrites78.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.3
Applied rewrites47.3%
Taylor expanded in x around 0
Applied rewrites34.0%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -5.6e+21)
t_1
(if (<= a 8e-219)
(* (fma (- i) j (* z x)) y)
(if (<= a 3.9e+43) (* (fma (- z) c (* i t)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -5.6e+21) {
tmp = t_1;
} else if (a <= 8e-219) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 3.9e+43) {
tmp = fma(-z, c, (i * t)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -5.6e+21) tmp = t_1; elseif (a <= 8e-219) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 3.9e+43) tmp = Float64(fma(Float64(-z), c, Float64(i * t)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -5.6e+21], t$95$1, If[LessEqual[a, 8e-219], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 3.9e+43], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-219}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.6e21 or 3.9000000000000001e43 < a Initial program 65.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.0
Applied rewrites67.0%
if -5.6e21 < a < 8.0000000000000003e-219Initial program 82.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.4
Applied rewrites64.4%
if 8.0000000000000003e-219 < a < 3.9000000000000001e43Initial program 77.3%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6465.4
Applied rewrites65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -5.6e+21)
t_1
(if (<= a 1.05e-232)
(* (fma (- i) j (* z x)) y)
(if (<= a 4.8e-50) (* (fma (- y) j (* b t)) 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 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -5.6e+21) {
tmp = t_1;
} else if (a <= 1.05e-232) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 4.8e-50) {
tmp = fma(-y, j, (b * t)) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -5.6e+21) tmp = t_1; elseif (a <= 1.05e-232) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 4.8e-50) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -5.6e+21], t$95$1, If[LessEqual[a, 1.05e-232], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 4.8e-50], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-232}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-50}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.6e21 or 4.80000000000000004e-50 < a Initial program 66.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.6
Applied rewrites63.6%
if -5.6e21 < a < 1.05e-232Initial program 82.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites64.5%
if 1.05e-232 < a < 4.80000000000000004e-50Initial program 79.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6458.5
Applied rewrites58.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -5.6e+21)
t_1
(if (<= a 3.5e-171)
(* (fma (- i) j (* z x)) y)
(if (<= a 2.4e+125) (* (fma (- x) a (* i b)) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -5.6e+21) {
tmp = t_1;
} else if (a <= 3.5e-171) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 2.4e+125) {
tmp = fma(-x, a, (i * b)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -5.6e+21) tmp = t_1; elseif (a <= 3.5e-171) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 2.4e+125) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -5.6e+21], t$95$1, If[LessEqual[a, 3.5e-171], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 2.4e+125], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-171}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+125}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.6e21 or 2.4e125 < a Initial program 63.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6468.9
Applied rewrites68.9%
if -5.6e21 < a < 3.49999999999999994e-171Initial program 80.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.9
Applied rewrites61.9%
if 3.49999999999999994e-171 < a < 2.4e125Initial program 80.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.4
Applied rewrites48.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.32e+18)
(* (fma (- a) t (* z y)) x)
(if (<= a 2.5e-157)
(* (fma (- i) j (* z x)) y)
(if (<= a 1.1e+194) (* (fma (- c) b (* y x)) z) (* (* (- x) a) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.32e+18) {
tmp = fma(-a, t, (z * y)) * x;
} else if (a <= 2.5e-157) {
tmp = fma(-i, j, (z * x)) * y;
} else if (a <= 1.1e+194) {
tmp = fma(-c, b, (y * x)) * z;
} else {
tmp = (-x * a) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.32e+18) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (a <= 2.5e-157) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (a <= 1.1e+194) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); else tmp = Float64(Float64(Float64(-x) * a) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.32e+18], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 2.5e-157], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.1e+194], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.32 \cdot 10^{+18}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-157}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+194}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
\end{array}
\end{array}
if a < -1.32e18Initial program 69.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6445.9
Applied rewrites45.9%
if -1.32e18 < a < 2.5000000000000001e-157Initial program 80.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.8
Applied rewrites60.8%
if 2.5000000000000001e-157 < a < 1.1000000000000001e194Initial program 75.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.1
Applied rewrites42.1%
if 1.1000000000000001e194 < a Initial program 52.4%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6452.4
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6452.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6452.4
Applied rewrites52.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Taylor expanded in x around inf
Applied rewrites56.7%
Final simplification52.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.3e+30)
(* (fma (- a) t (* z y)) x)
(if (<= a -9.2e-141)
(* (* (- i) j) y)
(if (<= a 1.1e+194) (* (fma (- c) b (* y x)) z) (* (* (- x) a) t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.3e+30) {
tmp = fma(-a, t, (z * y)) * x;
} else if (a <= -9.2e-141) {
tmp = (-i * j) * y;
} else if (a <= 1.1e+194) {
tmp = fma(-c, b, (y * x)) * z;
} else {
tmp = (-x * a) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.3e+30) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (a <= -9.2e-141) tmp = Float64(Float64(Float64(-i) * j) * y); elseif (a <= 1.1e+194) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); else tmp = Float64(Float64(Float64(-x) * a) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.3e+30], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, -9.2e-141], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.1e+194], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+30}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-141}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+194}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
\end{array}
\end{array}
if a < -1.29999999999999994e30Initial program 67.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6425.3
Applied rewrites25.3%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6444.8
Applied rewrites44.8%
if -1.29999999999999994e30 < a < -9.1999999999999998e-141Initial program 83.9%
Taylor expanded in z around inf
Applied rewrites75.2%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
Taylor expanded in y around inf
Applied rewrites56.1%
if -9.1999999999999998e-141 < a < 1.1000000000000001e194Initial program 77.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.3
Applied rewrites45.3%
if 1.1000000000000001e194 < a Initial program 52.4%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6452.4
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6452.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6452.4
Applied rewrites52.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Taylor expanded in x around inf
Applied rewrites56.7%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c a)) j)))
(if (<= j -5e-76)
t_1
(if (<= j 9.5e-104) (* (fma (- x) a (* i b)) t) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, y, (c * a)) * j;
double tmp;
if (j <= -5e-76) {
tmp = t_1;
} else if (j <= 9.5e-104) {
tmp = fma(-x, a, (i * b)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j) tmp = 0.0 if (j <= -5e-76) tmp = t_1; elseif (j <= 9.5e-104) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -5e-76], t$95$1, If[LessEqual[j, 9.5e-104], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{if}\;j \leq -5 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-104}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.9999999999999998e-76 or 9.5000000000000002e-104 < j Initial program 75.9%
Taylor expanded in z around inf
Applied rewrites74.2%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.0
Applied rewrites60.0%
if -4.9999999999999998e-76 < j < 9.5000000000000002e-104Initial program 69.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.2
Applied rewrites57.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -9.5e+184) (* (* (- i) y) j) (if (<= i 4e+177) (* (fma (- a) t (* z y)) x) (* (* i b) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -9.5e+184) {
tmp = (-i * y) * j;
} else if (i <= 4e+177) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = (i * b) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -9.5e+184) tmp = Float64(Float64(Float64(-i) * y) * j); elseif (i <= 4e+177) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); else tmp = Float64(Float64(i * b) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -9.5e+184], N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 4e+177], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9.5 \cdot 10^{+184}:\\
\;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\
\mathbf{elif}\;i \leq 4 \cdot 10^{+177}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if i < -9.4999999999999995e184Initial program 70.0%
Taylor expanded in z around inf
Applied rewrites80.3%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.9
Applied rewrites60.9%
Taylor expanded in y around inf
Applied rewrites60.9%
if -9.4999999999999995e184 < i < 4e177Initial program 74.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6436.7
Applied rewrites36.7%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6441.4
Applied rewrites41.4%
if 4e177 < i Initial program 65.0%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6465.0
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6465.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.0
Applied rewrites53.0%
Taylor expanded in x around 0
Applied rewrites53.1%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* c a) j)))
(if (<= a -2.2e-81)
t_1
(if (<= a -1.65e-254)
(* (* z y) x)
(if (<= a 1.65e+126) (* (* i b) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * a) * j;
double tmp;
if (a <= -2.2e-81) {
tmp = t_1;
} else if (a <= -1.65e-254) {
tmp = (z * y) * x;
} else if (a <= 1.65e+126) {
tmp = (i * b) * t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (c * a) * j
if (a <= (-2.2d-81)) then
tmp = t_1
else if (a <= (-1.65d-254)) then
tmp = (z * y) * x
else if (a <= 1.65d+126) then
tmp = (i * b) * t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * a) * j;
double tmp;
if (a <= -2.2e-81) {
tmp = t_1;
} else if (a <= -1.65e-254) {
tmp = (z * y) * x;
} else if (a <= 1.65e+126) {
tmp = (i * b) * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * a) * j tmp = 0 if a <= -2.2e-81: tmp = t_1 elif a <= -1.65e-254: tmp = (z * y) * x elif a <= 1.65e+126: tmp = (i * b) * t else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * a) * j) tmp = 0.0 if (a <= -2.2e-81) tmp = t_1; elseif (a <= -1.65e-254) tmp = Float64(Float64(z * y) * x); elseif (a <= 1.65e+126) tmp = Float64(Float64(i * b) * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * a) * j; tmp = 0.0; if (a <= -2.2e-81) tmp = t_1; elseif (a <= -1.65e-254) tmp = (z * y) * x; elseif (a <= 1.65e+126) tmp = (i * b) * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[a, -2.2e-81], t$95$1, If[LessEqual[a, -1.65e-254], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.65e+126], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a\right) \cdot j\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-254}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+126}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.1999999999999999e-81 or 1.65000000000000006e126 < a Initial program 65.5%
Taylor expanded in z around inf
Applied rewrites65.2%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.7
Applied rewrites53.7%
Taylor expanded in y around 0
Applied rewrites40.2%
if -2.1999999999999999e-81 < a < -1.65000000000000008e-254Initial program 88.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.8
Applied rewrites53.8%
Taylor expanded in x around inf
Applied rewrites43.0%
if -1.65000000000000008e-254 < a < 1.65000000000000006e126Initial program 77.7%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6477.7
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6477.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6477.7
Applied rewrites77.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.3
Applied rewrites44.3%
Taylor expanded in x around 0
Applied rewrites33.9%
Final simplification38.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* c a) j)))
(if (<= c -2.75e+50)
t_1
(if (<= c 38000000000.0)
(* (* i t) b)
(if (<= c 5.7e+150) (* (* y x) z) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * a) * j;
double tmp;
if (c <= -2.75e+50) {
tmp = t_1;
} else if (c <= 38000000000.0) {
tmp = (i * t) * b;
} else if (c <= 5.7e+150) {
tmp = (y * x) * 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 = (c * a) * j
if (c <= (-2.75d+50)) then
tmp = t_1
else if (c <= 38000000000.0d0) then
tmp = (i * t) * b
else if (c <= 5.7d+150) then
tmp = (y * x) * 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 = (c * a) * j;
double tmp;
if (c <= -2.75e+50) {
tmp = t_1;
} else if (c <= 38000000000.0) {
tmp = (i * t) * b;
} else if (c <= 5.7e+150) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * a) * j tmp = 0 if c <= -2.75e+50: tmp = t_1 elif c <= 38000000000.0: tmp = (i * t) * b elif c <= 5.7e+150: tmp = (y * x) * z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * a) * j) tmp = 0.0 if (c <= -2.75e+50) tmp = t_1; elseif (c <= 38000000000.0) tmp = Float64(Float64(i * t) * b); elseif (c <= 5.7e+150) tmp = Float64(Float64(y * x) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * a) * j; tmp = 0.0; if (c <= -2.75e+50) tmp = t_1; elseif (c <= 38000000000.0) tmp = (i * t) * b; elseif (c <= 5.7e+150) tmp = (y * x) * 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[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -2.75e+50], t$95$1, If[LessEqual[c, 38000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[c, 5.7e+150], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a\right) \cdot j\\
\mathbf{if}\;c \leq -2.75 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 38000000000:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;c \leq 5.7 \cdot 10^{+150}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.7499999999999999e50 or 5.7000000000000002e150 < c Initial program 71.3%
Taylor expanded in z around inf
Applied rewrites66.5%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.9
Applied rewrites59.9%
Taylor expanded in y around 0
Applied rewrites46.8%
if -2.7499999999999999e50 < c < 3.8e10Initial program 75.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6437.3
Applied rewrites37.3%
Taylor expanded in z around 0
Applied rewrites32.7%
if 3.8e10 < c < 5.7000000000000002e150Initial program 70.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.4
Applied rewrites40.4%
Taylor expanded in x around inf
Applied rewrites34.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* c a) j))) (if (<= a -2.2e-81) t_1 (if (<= a 1.4e-79) (* (* z x) y) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * a) * j;
double tmp;
if (a <= -2.2e-81) {
tmp = t_1;
} else if (a <= 1.4e-79) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (c * a) * j
if (a <= (-2.2d-81)) then
tmp = t_1
else if (a <= 1.4d-79) then
tmp = (z * x) * y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * a) * j;
double tmp;
if (a <= -2.2e-81) {
tmp = t_1;
} else if (a <= 1.4e-79) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * a) * j tmp = 0 if a <= -2.2e-81: tmp = t_1 elif a <= 1.4e-79: tmp = (z * x) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * a) * j) tmp = 0.0 if (a <= -2.2e-81) tmp = t_1; elseif (a <= 1.4e-79) tmp = Float64(Float64(z * x) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * a) * j; tmp = 0.0; if (a <= -2.2e-81) tmp = t_1; elseif (a <= 1.4e-79) tmp = (z * x) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[a, -2.2e-81], t$95$1, If[LessEqual[a, 1.4e-79], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a\right) \cdot j\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-79}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.1999999999999999e-81 or 1.40000000000000006e-79 < a Initial program 68.2%
Taylor expanded in z around inf
Applied rewrites66.9%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.6
Applied rewrites48.6%
Taylor expanded in y around 0
Applied rewrites35.4%
if -2.1999999999999999e-81 < a < 1.40000000000000006e-79Initial program 81.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.0
Applied rewrites45.0%
Taylor expanded in x around inf
Applied rewrites30.0%
Applied rewrites30.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -7.5e-282) (* (* z y) x) (* (* y x) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7.5e-282) {
tmp = (z * y) * x;
} else {
tmp = (y * x) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-7.5d-282)) then
tmp = (z * y) * x
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7.5e-282) {
tmp = (z * y) * x;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7.5e-282: tmp = (z * y) * x else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7.5e-282) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7.5e-282) tmp = (z * y) * x; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7.5e-282], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-282}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if z < -7.49999999999999937e-282Initial program 70.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6434.0
Applied rewrites34.0%
Taylor expanded in x around inf
Applied rewrites25.4%
if -7.49999999999999937e-282 < z Initial program 75.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6435.4
Applied rewrites35.4%
Taylor expanded in x around inf
Applied rewrites22.6%
Final simplification23.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j 8.5e-173) (* (* z x) y) (* (* z y) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= 8.5e-173) {
tmp = (z * x) * y;
} else {
tmp = (z * y) * x;
}
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 (j <= 8.5d-173) then
tmp = (z * x) * y
else
tmp = (z * y) * x
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 (j <= 8.5e-173) {
tmp = (z * x) * y;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= 8.5e-173: tmp = (z * x) * y else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= 8.5e-173) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= 8.5e-173) tmp = (z * x) * y; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, 8.5e-173], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq 8.5 \cdot 10^{-173}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if j < 8.4999999999999996e-173Initial program 72.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6437.9
Applied rewrites37.9%
Taylor expanded in x around inf
Applied rewrites19.0%
Applied rewrites21.4%
if 8.4999999999999996e-173 < j Initial program 75.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6429.1
Applied rewrites29.1%
Taylor expanded in x around inf
Applied rewrites25.2%
Final simplification22.7%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
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 = (z * y) * x
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 (z * y) * x;
}
def code(x, y, z, t, a, b, c, i, j): return (z * y) * x
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * y) * x) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * y) * x; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot y\right) \cdot x
\end{array}
Initial program 73.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6434.8
Applied rewrites34.8%
Taylor expanded in x around inf
Applied rewrites21.2%
Final simplification21.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024288
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))