
(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
(if (<=
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))
INFINITY)
(/
1.0
(/
1.0
(fma
(fma (- i) y (* c a))
j
(fma (- b) (fma (- i) t (* c z)) (* (fma (- a) t (* z y)) x)))))
(fma
(* i t)
b
(fma (fma (- j) i (* z x)) y (fma (* (- x) t) a (* (* j c) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (((((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b))) <= ((double) INFINITY)) {
tmp = 1.0 / (1.0 / fma(fma(-i, y, (c * a)), j, fma(-b, fma(-i, t, (c * z)), (fma(-a, t, (z * y)) * x))));
} else {
tmp = fma((i * t), b, fma(fma(-j, i, (z * x)), y, fma((-x * t), a, ((j * c) * a))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (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))) <= Inf) tmp = Float64(1.0 / Float64(1.0 / fma(fma(Float64(-i), y, Float64(c * a)), j, fma(Float64(-b), fma(Float64(-i), t, Float64(c * z)), Float64(fma(Float64(-a), t, Float64(z * y)) * x))))); else tmp = fma(Float64(i * t), b, fma(fma(Float64(-j), i, Float64(z * x)), y, fma(Float64(Float64(-x) * t), a, Float64(Float64(j * c) * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := 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] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(1.0 / N[(1.0 / N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[((-b) * N[((-i) * t + N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-x) * t), $MachinePrecision] * a + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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) \leq \infty:\\
\;\;\;\;\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.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 a around 0
Applied rewrites54.7%
Applied rewrites52.8%
Taylor expanded in c around 0
Applied rewrites54.7%
Final simplification83.5%
(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
(* i t)
b
(fma (fma (- j) i (* z x)) y (fma (* (- x) t) a (* (* 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 = (((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((i * t), b, fma(fma(-j, i, (z * x)), y, fma((-x * t), a, ((j * c) * a))));
}
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 = fma(Float64(i * t), b, fma(fma(Float64(-j), i, Float64(z * x)), y, fma(Float64(Float64(-x) * t), a, Float64(Float64(j * c) * a)))); 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[(i * t), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-x) * t), $MachinePrecision] * a + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 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 a around 0
Applied rewrites54.7%
Applied rewrites52.8%
Taylor expanded in c around 0
Applied rewrites54.7%
Final simplification83.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- j) i (* z x))))
(if (<= z -1.8e+144)
(* (fma y x (* (- c) b)) z)
(if (<= z 4100000000000.0)
(fma (* i t) b (fma t_1 y (fma (* (- x) t) a (* (* j c) a))))
(fma t_1 y (* (- z) (fma (- b) (/ (* i t) z) (* c b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-j, i, (z * x));
double tmp;
if (z <= -1.8e+144) {
tmp = fma(y, x, (-c * b)) * z;
} else if (z <= 4100000000000.0) {
tmp = fma((i * t), b, fma(t_1, y, fma((-x * t), a, ((j * c) * a))));
} else {
tmp = fma(t_1, y, (-z * fma(-b, ((i * t) / z), (c * b))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-j), i, Float64(z * x)) tmp = 0.0 if (z <= -1.8e+144) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); elseif (z <= 4100000000000.0) tmp = fma(Float64(i * t), b, fma(t_1, y, fma(Float64(Float64(-x) * t), a, Float64(Float64(j * c) * a)))); else tmp = fma(t_1, y, Float64(Float64(-z) * fma(Float64(-b), Float64(Float64(i * t) / z), Float64(c * b)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.8e+144], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 4100000000000.0], N[(N[(i * t), $MachinePrecision] * b + N[(t$95$1 * y + N[(N[((-x) * t), $MachinePrecision] * a + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * y + N[((-z) * N[((-b) * N[(N[(i * t), $MachinePrecision] / z), $MachinePrecision] + N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-j, i, z \cdot x\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+144}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;z \leq 4100000000000:\\
\;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(t\_1, y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y, \left(-z\right) \cdot \mathsf{fma}\left(-b, \frac{i \cdot t}{z}, c \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -1.7999999999999999e144Initial program 52.3%
Taylor expanded in a around 0
Applied rewrites61.2%
Applied rewrites61.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.4
Applied rewrites71.4%
Applied rewrites71.4%
if -1.7999999999999999e144 < z < 4.1e12Initial program 79.6%
Taylor expanded in a around 0
Applied rewrites88.0%
Applied rewrites86.8%
Taylor expanded in c around 0
Applied rewrites81.4%
if 4.1e12 < z Initial program 62.5%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites76.8%
Taylor expanded in z around -inf
Applied rewrites78.4%
Final simplification79.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- j) i (* z x))))
(if (<= z -1.8e+144)
(* (fma y x (* (- c) b)) z)
(if (<= z 4100000000000.0)
(fma (* i t) b (fma t_1 y (fma (* (- x) t) a (* (* j c) a))))
(fma t_1 y (* (fma (- c) z (* i t)) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-j, i, (z * x));
double tmp;
if (z <= -1.8e+144) {
tmp = fma(y, x, (-c * b)) * z;
} else if (z <= 4100000000000.0) {
tmp = fma((i * t), b, fma(t_1, y, fma((-x * t), a, ((j * c) * a))));
} else {
tmp = fma(t_1, y, (fma(-c, z, (i * t)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-j), i, Float64(z * x)) tmp = 0.0 if (z <= -1.8e+144) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); elseif (z <= 4100000000000.0) tmp = fma(Float64(i * t), b, fma(t_1, y, fma(Float64(Float64(-x) * t), a, Float64(Float64(j * c) * a)))); else tmp = fma(t_1, y, Float64(fma(Float64(-c), z, Float64(i * t)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.8e+144], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 4100000000000.0], N[(N[(i * t), $MachinePrecision] * b + N[(t$95$1 * y + N[(N[((-x) * t), $MachinePrecision] * a + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-j, i, z \cdot x\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+144}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;z \leq 4100000000000:\\
\;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(t\_1, y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\end{array}
\end{array}
if z < -1.7999999999999999e144Initial program 52.3%
Taylor expanded in a around 0
Applied rewrites61.2%
Applied rewrites61.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.4
Applied rewrites71.4%
Applied rewrites71.4%
if -1.7999999999999999e144 < z < 4.1e12Initial program 79.6%
Taylor expanded in a around 0
Applied rewrites88.0%
Applied rewrites86.8%
Taylor expanded in c around 0
Applied rewrites81.4%
if 4.1e12 < z Initial program 62.5%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites76.8%
Final simplification78.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a 2.1e+221)
(fma (fma (- c) z (* i t)) b (fma (fma (- j) i (* z x)) y t_1))
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 <= 2.1e+221) {
tmp = fma(fma(-c, z, (i * t)), b, fma(fma(-j, i, (z * x)), y, t_1));
} 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 <= 2.1e+221) tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, fma(fma(Float64(-j), i, Float64(z * x)), y, t_1)); 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, 2.1e+221], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + t$95$1), $MachinePrecision]), $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 2.1 \cdot 10^{+221}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < 2.10000000000000002e221Initial program 76.4%
Taylor expanded in a around 0
Applied rewrites82.5%
if 2.10000000000000002e221 < a Initial program 35.2%
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
lower-*.f6486.2
Applied rewrites86.2%
Final simplification82.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -1.06e+108)
t_1
(if (<= a -9e-79)
(+ (* (* z y) x) (* (- (* c a) (* i y)) j))
(if (<= a 45.0)
(fma (fma (- c) z (* i t)) b (* (* (- y) j) i))
(if (<= a 5.2e+124) (* (fma y x (* (- c) b)) 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 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -1.06e+108) {
tmp = t_1;
} else if (a <= -9e-79) {
tmp = ((z * y) * x) + (((c * a) - (i * y)) * j);
} else if (a <= 45.0) {
tmp = fma(fma(-c, z, (i * t)), b, ((-y * j) * i));
} else if (a <= 5.2e+124) {
tmp = fma(y, x, (-c * b)) * z;
} 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 <= -1.06e+108) tmp = t_1; elseif (a <= -9e-79) tmp = Float64(Float64(Float64(z * y) * x) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); elseif (a <= 45.0) tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(Float64(-y) * j) * i)); elseif (a <= 5.2e+124) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); 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, -1.06e+108], t$95$1, If[LessEqual[a, -9e-79], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 45.0], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+124], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $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 -1.06 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-79}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{elif}\;a \leq 45:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(\left(-y\right) \cdot j\right) \cdot i\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.06e108 or 5.2000000000000001e124 < a Initial program 50.1%
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
lower-*.f6475.2
Applied rewrites75.2%
if -1.06e108 < a < -9.0000000000000006e-79Initial program 89.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6471.9
Applied rewrites71.9%
if -9.0000000000000006e-79 < a < 45Initial program 81.4%
Taylor expanded in a around 0
Applied rewrites81.3%
Taylor expanded in i around inf
Applied rewrites64.1%
if 45 < a < 5.2000000000000001e124Initial program 78.9%
Taylor expanded in a around 0
Applied rewrites79.4%
Applied rewrites79.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
Applied rewrites67.7%
Final simplification69.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.1e+113)
t_1
(if (<= a 1.2e+156)
(fma (fma (- j) i (* z x)) y (* (fma (- c) z (* 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.1e+113) {
tmp = t_1;
} else if (a <= 1.2e+156) {
tmp = fma(fma(-j, i, (z * x)), y, (fma(-c, z, (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.1e+113) tmp = t_1; elseif (a <= 1.2e+156) tmp = fma(fma(Float64(-j), i, Float64(z * x)), y, Float64(fma(Float64(-c), z, 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.1e+113], t$95$1, If[LessEqual[a, 1.2e+156], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $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.1 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.09999999999999994e113 or 1.2000000000000001e156 < a Initial program 50.1%
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
lower-*.f6475.2
Applied rewrites75.2%
if -5.09999999999999994e113 < a < 1.2000000000000001e156Initial program 82.1%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites74.8%
Final simplification74.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -1.85e+59)
t_1
(if (<= a 45.0)
(fma (fma (- c) z (* i t)) b (* (* (- y) j) i))
(if (<= a 5.2e+124) (* (fma y x (* (- c) b)) 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 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -1.85e+59) {
tmp = t_1;
} else if (a <= 45.0) {
tmp = fma(fma(-c, z, (i * t)), b, ((-y * j) * i));
} else if (a <= 5.2e+124) {
tmp = fma(y, x, (-c * b)) * z;
} 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 <= -1.85e+59) tmp = t_1; elseif (a <= 45.0) tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(Float64(-y) * j) * i)); elseif (a <= 5.2e+124) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); 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, -1.85e+59], t$95$1, If[LessEqual[a, 45.0], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+124], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $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 -1.85 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 45:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(\left(-y\right) \cdot j\right) \cdot i\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.84999999999999999e59 or 5.2000000000000001e124 < a Initial program 51.8%
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
lower-*.f6473.9
Applied rewrites73.9%
if -1.84999999999999999e59 < a < 45Initial program 84.2%
Taylor expanded in a around 0
Applied rewrites83.3%
Taylor expanded in i around inf
Applied rewrites61.7%
if 45 < a < 5.2000000000000001e124Initial program 78.9%
Taylor expanded in a around 0
Applied rewrites79.4%
Applied rewrites79.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
Applied rewrites67.7%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- x) a) t)))
(if (<= j -2.05e+103)
(* (* (- y) j) i)
(if (<= j -5.8e-59)
t_1
(if (<= j -8.2e-141)
(* (* i t) b)
(if (<= j 1.26e-157)
(* (* z x) y)
(if (<= j 4.4e-56) t_1 (* (* 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 = (-x * a) * t;
double tmp;
if (j <= -2.05e+103) {
tmp = (-y * j) * i;
} else if (j <= -5.8e-59) {
tmp = t_1;
} else if (j <= -8.2e-141) {
tmp = (i * t) * b;
} else if (j <= 1.26e-157) {
tmp = (z * x) * y;
} else if (j <= 4.4e-56) {
tmp = t_1;
} else {
tmp = (j * c) * 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 = (-x * a) * t
if (j <= (-2.05d+103)) then
tmp = (-y * j) * i
else if (j <= (-5.8d-59)) then
tmp = t_1
else if (j <= (-8.2d-141)) then
tmp = (i * t) * b
else if (j <= 1.26d-157) then
tmp = (z * x) * y
else if (j <= 4.4d-56) then
tmp = t_1
else
tmp = (j * c) * 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 = (-x * a) * t;
double tmp;
if (j <= -2.05e+103) {
tmp = (-y * j) * i;
} else if (j <= -5.8e-59) {
tmp = t_1;
} else if (j <= -8.2e-141) {
tmp = (i * t) * b;
} else if (j <= 1.26e-157) {
tmp = (z * x) * y;
} else if (j <= 4.4e-56) {
tmp = t_1;
} else {
tmp = (j * c) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-x * a) * t tmp = 0 if j <= -2.05e+103: tmp = (-y * j) * i elif j <= -5.8e-59: tmp = t_1 elif j <= -8.2e-141: tmp = (i * t) * b elif j <= 1.26e-157: tmp = (z * x) * y elif j <= 4.4e-56: tmp = t_1 else: tmp = (j * c) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-x) * a) * t) tmp = 0.0 if (j <= -2.05e+103) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (j <= -5.8e-59) tmp = t_1; elseif (j <= -8.2e-141) tmp = Float64(Float64(i * t) * b); elseif (j <= 1.26e-157) tmp = Float64(Float64(z * x) * y); elseif (j <= 4.4e-56) tmp = t_1; else tmp = Float64(Float64(j * c) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-x * a) * t; tmp = 0.0; if (j <= -2.05e+103) tmp = (-y * j) * i; elseif (j <= -5.8e-59) tmp = t_1; elseif (j <= -8.2e-141) tmp = (i * t) * b; elseif (j <= 1.26e-157) tmp = (z * x) * y; elseif (j <= 4.4e-56) tmp = t_1; else tmp = (j * c) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[j, -2.05e+103], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, -5.8e-59], t$95$1, If[LessEqual[j, -8.2e-141], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 1.26e-157], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 4.4e-56], t$95$1, N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\
\mathbf{if}\;j \leq -2.05 \cdot 10^{+103}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\end{array}
\end{array}
if j < -2.0500000000000001e103Initial program 69.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
cancel-sign-subN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.9
Applied rewrites57.9%
Taylor expanded in b around 0
Applied rewrites50.7%
if -2.0500000000000001e103 < j < -5.80000000000000033e-59 or 1.26000000000000003e-157 < j < 4.40000000000000008e-56Initial program 80.4%
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
lower-*.f6461.7
Applied rewrites61.7%
Taylor expanded in b around 0
Applied rewrites51.1%
if -5.80000000000000033e-59 < j < -8.20000000000000005e-141Initial program 70.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites74.8%
Taylor expanded in t around inf
Applied rewrites44.9%
if -8.20000000000000005e-141 < j < 1.26000000000000003e-157Initial program 69.8%
Taylor expanded in a around 0
Applied rewrites85.2%
Applied rewrites85.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.3
Applied rewrites61.3%
Taylor expanded in c around 0
Applied rewrites38.3%
if 4.40000000000000008e-56 < j Initial program 70.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
Taylor expanded in c around inf
Applied rewrites44.5%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- x) a) t)))
(if (<= j -1.22e+113)
(* (* (- y) i) j)
(if (<= j -5.8e-59)
t_1
(if (<= j -8.2e-141)
(* (* i t) b)
(if (<= j 1.26e-157)
(* (* z x) y)
(if (<= j 4.4e-56) t_1 (* (* 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 = (-x * a) * t;
double tmp;
if (j <= -1.22e+113) {
tmp = (-y * i) * j;
} else if (j <= -5.8e-59) {
tmp = t_1;
} else if (j <= -8.2e-141) {
tmp = (i * t) * b;
} else if (j <= 1.26e-157) {
tmp = (z * x) * y;
} else if (j <= 4.4e-56) {
tmp = t_1;
} else {
tmp = (j * c) * 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 = (-x * a) * t
if (j <= (-1.22d+113)) then
tmp = (-y * i) * j
else if (j <= (-5.8d-59)) then
tmp = t_1
else if (j <= (-8.2d-141)) then
tmp = (i * t) * b
else if (j <= 1.26d-157) then
tmp = (z * x) * y
else if (j <= 4.4d-56) then
tmp = t_1
else
tmp = (j * c) * 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 = (-x * a) * t;
double tmp;
if (j <= -1.22e+113) {
tmp = (-y * i) * j;
} else if (j <= -5.8e-59) {
tmp = t_1;
} else if (j <= -8.2e-141) {
tmp = (i * t) * b;
} else if (j <= 1.26e-157) {
tmp = (z * x) * y;
} else if (j <= 4.4e-56) {
tmp = t_1;
} else {
tmp = (j * c) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-x * a) * t tmp = 0 if j <= -1.22e+113: tmp = (-y * i) * j elif j <= -5.8e-59: tmp = t_1 elif j <= -8.2e-141: tmp = (i * t) * b elif j <= 1.26e-157: tmp = (z * x) * y elif j <= 4.4e-56: tmp = t_1 else: tmp = (j * c) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-x) * a) * t) tmp = 0.0 if (j <= -1.22e+113) tmp = Float64(Float64(Float64(-y) * i) * j); elseif (j <= -5.8e-59) tmp = t_1; elseif (j <= -8.2e-141) tmp = Float64(Float64(i * t) * b); elseif (j <= 1.26e-157) tmp = Float64(Float64(z * x) * y); elseif (j <= 4.4e-56) tmp = t_1; else tmp = Float64(Float64(j * c) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-x * a) * t; tmp = 0.0; if (j <= -1.22e+113) tmp = (-y * i) * j; elseif (j <= -5.8e-59) tmp = t_1; elseif (j <= -8.2e-141) tmp = (i * t) * b; elseif (j <= 1.26e-157) tmp = (z * x) * y; elseif (j <= 4.4e-56) tmp = t_1; else tmp = (j * c) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[j, -1.22e+113], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, -5.8e-59], t$95$1, If[LessEqual[j, -8.2e-141], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 1.26e-157], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 4.4e-56], t$95$1, N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\
\mathbf{if}\;j \leq -1.22 \cdot 10^{+113}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\end{array}
\end{array}
if j < -1.2199999999999999e113Initial program 70.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.4
Applied rewrites66.4%
Taylor expanded in c around 0
Applied rewrites49.7%
if -1.2199999999999999e113 < j < -5.80000000000000033e-59 or 1.26000000000000003e-157 < j < 4.40000000000000008e-56Initial program 78.8%
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
lower-*.f6460.5
Applied rewrites60.5%
Taylor expanded in b around 0
Applied rewrites50.2%
if -5.80000000000000033e-59 < j < -8.20000000000000005e-141Initial program 70.2%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites74.8%
Taylor expanded in t around inf
Applied rewrites44.9%
if -8.20000000000000005e-141 < j < 1.26000000000000003e-157Initial program 69.8%
Taylor expanded in a around 0
Applied rewrites85.2%
Applied rewrites85.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.3
Applied rewrites61.3%
Taylor expanded in c around 0
Applied rewrites38.3%
if 4.40000000000000008e-56 < j Initial program 70.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
Taylor expanded in c around inf
Applied rewrites44.5%
Final simplification44.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- y) i) j)))
(if (<= y -3.7e+149)
(* (* z x) y)
(if (<= y -1.7e-62)
t_1
(if (<= y 6.8e-118)
(* (* j c) a)
(if (<= y 5.8e+62)
(* (* i t) b)
(if (<= y 6.2e+117) (* (* 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 = (-y * i) * j;
double tmp;
if (y <= -3.7e+149) {
tmp = (z * x) * y;
} else if (y <= -1.7e-62) {
tmp = t_1;
} else if (y <= 6.8e-118) {
tmp = (j * c) * a;
} else if (y <= 5.8e+62) {
tmp = (i * t) * b;
} else if (y <= 6.2e+117) {
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 = (-y * i) * j
if (y <= (-3.7d+149)) then
tmp = (z * x) * y
else if (y <= (-1.7d-62)) then
tmp = t_1
else if (y <= 6.8d-118) then
tmp = (j * c) * a
else if (y <= 5.8d+62) then
tmp = (i * t) * b
else if (y <= 6.2d+117) 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 = (-y * i) * j;
double tmp;
if (y <= -3.7e+149) {
tmp = (z * x) * y;
} else if (y <= -1.7e-62) {
tmp = t_1;
} else if (y <= 6.8e-118) {
tmp = (j * c) * a;
} else if (y <= 5.8e+62) {
tmp = (i * t) * b;
} else if (y <= 6.2e+117) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-y * i) * j tmp = 0 if y <= -3.7e+149: tmp = (z * x) * y elif y <= -1.7e-62: tmp = t_1 elif y <= 6.8e-118: tmp = (j * c) * a elif y <= 5.8e+62: tmp = (i * t) * b elif y <= 6.2e+117: 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(Float64(-y) * i) * j) tmp = 0.0 if (y <= -3.7e+149) tmp = Float64(Float64(z * x) * y); elseif (y <= -1.7e-62) tmp = t_1; elseif (y <= 6.8e-118) tmp = Float64(Float64(j * c) * a); elseif (y <= 5.8e+62) tmp = Float64(Float64(i * t) * b); elseif (y <= 6.2e+117) 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 = (-y * i) * j; tmp = 0.0; if (y <= -3.7e+149) tmp = (z * x) * y; elseif (y <= -1.7e-62) tmp = t_1; elseif (y <= 6.8e-118) tmp = (j * c) * a; elseif (y <= 5.8e+62) tmp = (i * t) * b; elseif (y <= 6.2e+117) 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[((-y) * i), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[y, -3.7e+149], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, -1.7e-62], t$95$1, If[LessEqual[y, 6.8e-118], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 5.8e+62], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, 6.2e+117], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-y\right) \cdot i\right) \cdot j\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+149}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{-62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+117}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.69999999999999978e149Initial program 58.2%
Taylor expanded in a around 0
Applied rewrites80.1%
Applied rewrites82.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in c around 0
Applied rewrites63.9%
if -3.69999999999999978e149 < y < -1.69999999999999994e-62 or 6.1999999999999995e117 < y Initial program 68.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.9
Applied rewrites52.9%
Taylor expanded in c around 0
Applied rewrites46.2%
if -1.69999999999999994e-62 < y < 6.79999999999999981e-118Initial program 78.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6437.5
Applied rewrites37.5%
Taylor expanded in c around inf
Applied rewrites36.3%
if 6.79999999999999981e-118 < y < 5.79999999999999968e62Initial program 80.0%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites60.8%
Taylor expanded in t around inf
Applied rewrites35.5%
if 5.79999999999999968e62 < y < 6.1999999999999995e117Initial program 62.0%
Taylor expanded in a around 0
Applied rewrites77.2%
Applied rewrites69.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.4
Applied rewrites77.4%
Taylor expanded in c around 0
Applied rewrites63.2%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -1.86e+59)
t_1
(if (<= a 4.6e-192)
(* (fma (- j) i (* z x)) y)
(if (<= a 0.011)
(* (fma (- x) a (* i b)) t)
(if (<= a 5.2e+124) (* (fma y x (* (- c) b)) 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 = fma(-x, t, (j * c)) * a;
double tmp;
if (a <= -1.86e+59) {
tmp = t_1;
} else if (a <= 4.6e-192) {
tmp = fma(-j, i, (z * x)) * y;
} else if (a <= 0.011) {
tmp = fma(-x, a, (i * b)) * t;
} else if (a <= 5.2e+124) {
tmp = fma(y, x, (-c * b)) * z;
} 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 <= -1.86e+59) tmp = t_1; elseif (a <= 4.6e-192) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (a <= 0.011) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (a <= 5.2e+124) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); 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, -1.86e+59], t$95$1, If[LessEqual[a, 4.6e-192], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 0.011], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 5.2e+124], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $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 -1.86 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{-192}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 0.011:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.85999999999999995e59 or 5.2000000000000001e124 < a Initial program 51.8%
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
lower-*.f6473.9
Applied rewrites73.9%
if -1.85999999999999995e59 < a < 4.60000000000000037e-192Initial program 82.1%
Taylor expanded in y 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-*.f6461.8
Applied rewrites61.8%
if 4.60000000000000037e-192 < a < 0.010999999999999999Initial program 90.2%
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
lower-*.f6458.9
Applied rewrites58.9%
if 0.010999999999999999 < a < 5.2000000000000001e124Initial program 80.5%
Taylor expanded in a around 0
Applied rewrites77.1%
Applied rewrites77.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.3
Applied rewrites66.3%
Applied rewrites66.3%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.5e+70)
(* (fma (- j) i (* z x)) y)
(if (<= j -3.7e-56)
(* (* (- x) a) t)
(if (<= j -6.5e-141)
(* (fma (- c) z (* i t)) b)
(if (<= j 2.5e-98)
(* (fma y x (* (- c) b)) z)
(* (fma (- i) y (* c a)) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e+70) {
tmp = fma(-j, i, (z * x)) * y;
} else if (j <= -3.7e-56) {
tmp = (-x * a) * t;
} else if (j <= -6.5e-141) {
tmp = fma(-c, z, (i * t)) * b;
} else if (j <= 2.5e-98) {
tmp = fma(y, x, (-c * b)) * z;
} else {
tmp = fma(-i, y, (c * a)) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.5e+70) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (j <= -3.7e-56) tmp = Float64(Float64(Float64(-x) * a) * t); elseif (j <= -6.5e-141) tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b); elseif (j <= 2.5e-98) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); else tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.5e+70], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, -3.7e-56], N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, -6.5e-141], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 2.5e-98], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-56}:\\
\;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\end{array}
\end{array}
if j < -7.50000000000000031e70Initial program 70.8%
Taylor expanded in y 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.2
Applied rewrites67.2%
if -7.50000000000000031e70 < j < -3.7000000000000002e-56Initial program 81.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
lower-*.f6471.7
Applied rewrites71.7%
Taylor expanded in b around 0
Applied rewrites57.8%
if -3.7000000000000002e-56 < j < -6.4999999999999995e-141Initial program 70.2%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
remove-double-negN/A
distribute-neg-inN/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.1
Applied rewrites49.1%
if -6.4999999999999995e-141 < j < 2.50000000000000009e-98Initial program 69.6%
Taylor expanded in a around 0
Applied rewrites86.3%
Applied rewrites86.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.4
Applied rewrites61.4%
Applied rewrites62.7%
if 2.50000000000000009e-98 < j Initial program 72.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites64.5%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c a)) j)))
(if (<= j -7.8e+142)
t_1
(if (<= j -4.3e-63)
(* (fma (- a) t (* z y)) x)
(if (<= j -6.5e-141)
(* (fma (- c) z (* i t)) b)
(if (<= j 2.5e-98) (* (fma y x (* (- c) b)) 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 = fma(-i, y, (c * a)) * j;
double tmp;
if (j <= -7.8e+142) {
tmp = t_1;
} else if (j <= -4.3e-63) {
tmp = fma(-a, t, (z * y)) * x;
} else if (j <= -6.5e-141) {
tmp = fma(-c, z, (i * t)) * b;
} else if (j <= 2.5e-98) {
tmp = fma(y, x, (-c * b)) * z;
} 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 <= -7.8e+142) tmp = t_1; elseif (j <= -4.3e-63) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (j <= -6.5e-141) tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b); elseif (j <= 2.5e-98) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); 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, -7.8e+142], t$95$1, If[LessEqual[j, -4.3e-63], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, -6.5e-141], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 2.5e-98], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $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 -7.8 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -7.8000000000000001e142 or 2.50000000000000009e-98 < j Initial program 73.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
if -7.8000000000000001e142 < j < -4.2999999999999999e-63Initial program 73.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.7
Applied rewrites53.7%
if -4.2999999999999999e-63 < j < -6.4999999999999995e-141Initial program 68.8%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
remove-double-negN/A
distribute-neg-inN/A
+-commutativeN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.2
Applied rewrites51.2%
if -6.4999999999999995e-141 < j < 2.50000000000000009e-98Initial program 69.6%
Taylor expanded in a around 0
Applied rewrites86.3%
Applied rewrites86.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.4
Applied rewrites61.4%
Applied rewrites62.7%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma y x (* (- c) b)) z)))
(if (<= z -3.2e+54)
t_1
(if (<= z 6.8e-217)
(* (fma (- a) t (* z y)) x)
(if (<= z 8.6e-79)
(* (* i t) b)
(if (<= z 2.8e+14) (* (* (- y) i) j) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(y, x, (-c * b)) * z;
double tmp;
if (z <= -3.2e+54) {
tmp = t_1;
} else if (z <= 6.8e-217) {
tmp = fma(-a, t, (z * y)) * x;
} else if (z <= 8.6e-79) {
tmp = (i * t) * b;
} else if (z <= 2.8e+14) {
tmp = (-y * i) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(y, x, Float64(Float64(-c) * b)) * z) tmp = 0.0 if (z <= -3.2e+54) tmp = t_1; elseif (z <= 6.8e-217) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (z <= 8.6e-79) tmp = Float64(Float64(i * t) * b); elseif (z <= 2.8e+14) tmp = Float64(Float64(Float64(-y) * i) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.2e+54], t$95$1, If[LessEqual[z, 6.8e-217], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 8.6e-79], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 2.8e+14], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-217}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{-79}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+14}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.2e54 or 2.8e14 < z Initial program 60.2%
Taylor expanded in a around 0
Applied rewrites69.8%
Applied rewrites69.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.4
Applied rewrites66.4%
Applied rewrites67.3%
if -3.2e54 < z < 6.80000000000000032e-217Initial program 83.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
if 6.80000000000000032e-217 < z < 8.59999999999999963e-79Initial program 82.0%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites65.3%
Taylor expanded in t around inf
Applied rewrites48.4%
if 8.59999999999999963e-79 < z < 2.8e14Initial program 72.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.5
Applied rewrites59.5%
Taylor expanded in c around 0
Applied rewrites41.4%
Final simplification54.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -6.1e-16)
(* (* j c) a)
(if (<= c -1.45e-257)
(* (* z x) y)
(if (<= c 13.5)
(* (* b t) i)
(if (<= c 8.5e+251) (* (* (- z) c) b) (* (* j a) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.1e-16) {
tmp = (j * c) * a;
} else if (c <= -1.45e-257) {
tmp = (z * x) * y;
} else if (c <= 13.5) {
tmp = (b * t) * i;
} else if (c <= 8.5e+251) {
tmp = (-z * c) * b;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-6.1d-16)) then
tmp = (j * c) * a
else if (c <= (-1.45d-257)) then
tmp = (z * x) * y
else if (c <= 13.5d0) then
tmp = (b * t) * i
else if (c <= 8.5d+251) then
tmp = (-z * c) * b
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.1e-16) {
tmp = (j * c) * a;
} else if (c <= -1.45e-257) {
tmp = (z * x) * y;
} else if (c <= 13.5) {
tmp = (b * t) * i;
} else if (c <= 8.5e+251) {
tmp = (-z * c) * b;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -6.1e-16: tmp = (j * c) * a elif c <= -1.45e-257: tmp = (z * x) * y elif c <= 13.5: tmp = (b * t) * i elif c <= 8.5e+251: tmp = (-z * c) * b else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -6.1e-16) tmp = Float64(Float64(j * c) * a); elseif (c <= -1.45e-257) tmp = Float64(Float64(z * x) * y); elseif (c <= 13.5) tmp = Float64(Float64(b * t) * i); elseif (c <= 8.5e+251) tmp = Float64(Float64(Float64(-z) * c) * b); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -6.1e-16) tmp = (j * c) * a; elseif (c <= -1.45e-257) tmp = (z * x) * y; elseif (c <= 13.5) tmp = (b * t) * i; elseif (c <= 8.5e+251) tmp = (-z * c) * b; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -6.1e-16], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[c, -1.45e-257], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[c, 13.5], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[c, 8.5e+251], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.1 \cdot 10^{-16}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-257}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;c \leq 13.5:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{+251}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if c < -6.09999999999999953e-16Initial program 61.7%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.0
Applied rewrites51.0%
Taylor expanded in c around inf
Applied rewrites46.5%
if -6.09999999999999953e-16 < c < -1.4500000000000001e-257Initial program 74.4%
Taylor expanded in a around 0
Applied rewrites84.7%
Applied rewrites84.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.2
Applied rewrites42.2%
Taylor expanded in c around 0
Applied rewrites40.4%
if -1.4500000000000001e-257 < c < 13.5Initial program 80.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
distribute-lft-neg-inN/A
cancel-sign-subN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6453.4
Applied rewrites53.4%
Taylor expanded in b around inf
Applied rewrites35.6%
if 13.5 < c < 8.5e251Initial program 73.4%
Taylor expanded in a around 0
Applied rewrites78.3%
Applied rewrites76.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.7
Applied rewrites50.7%
Taylor expanded in c around inf
Applied rewrites36.6%
if 8.5e251 < c Initial program 42.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64100.0
Applied rewrites100.0%
Taylor expanded in c around inf
Applied rewrites85.7%
Applied rewrites85.7%
Final simplification41.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.5e+70)
(* (fma (- j) i (* z x)) y)
(if (<= j -1.2e-123)
(* (fma (- x) a (* i b)) t)
(if (<= j 2.5e-98)
(* (fma y x (* (- c) b)) z)
(* (fma (- i) y (* c a)) j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e+70) {
tmp = fma(-j, i, (z * x)) * y;
} else if (j <= -1.2e-123) {
tmp = fma(-x, a, (i * b)) * t;
} else if (j <= 2.5e-98) {
tmp = fma(y, x, (-c * b)) * z;
} else {
tmp = fma(-i, y, (c * a)) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.5e+70) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); elseif (j <= -1.2e-123) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (j <= 2.5e-98) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); else tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.5e+70], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, -1.2e-123], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, 2.5e-98], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{+70}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-123}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\end{array}
\end{array}
if j < -7.50000000000000031e70Initial program 70.8%
Taylor expanded in y 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.2
Applied rewrites67.2%
if -7.50000000000000031e70 < j < -1.2e-123Initial program 72.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
lower-*.f6462.2
Applied rewrites62.2%
if -1.2e-123 < j < 2.50000000000000009e-98Initial program 71.4%
Taylor expanded in a around 0
Applied rewrites86.0%
Applied rewrites86.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.3
Applied rewrites60.3%
Applied rewrites61.5%
if 2.50000000000000009e-98 < j Initial program 72.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.5
Applied rewrites64.5%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.16e+70)
(* (* j c) a)
(if (<= a 2.1e-256)
(* (* z x) y)
(if (<= a 5e-5)
(* (* i t) b)
(if (<= a 3.8e+96) (* (* z y) x) (* (* j a) c))))))
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.16e+70) {
tmp = (j * c) * a;
} else if (a <= 2.1e-256) {
tmp = (z * x) * y;
} else if (a <= 5e-5) {
tmp = (i * t) * b;
} else if (a <= 3.8e+96) {
tmp = (z * y) * x;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.16d+70)) then
tmp = (j * c) * a
else if (a <= 2.1d-256) then
tmp = (z * x) * y
else if (a <= 5d-5) then
tmp = (i * t) * b
else if (a <= 3.8d+96) then
tmp = (z * y) * x
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.16e+70) {
tmp = (j * c) * a;
} else if (a <= 2.1e-256) {
tmp = (z * x) * y;
} else if (a <= 5e-5) {
tmp = (i * t) * b;
} else if (a <= 3.8e+96) {
tmp = (z * y) * x;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.16e+70: tmp = (j * c) * a elif a <= 2.1e-256: tmp = (z * x) * y elif a <= 5e-5: tmp = (i * t) * b elif a <= 3.8e+96: tmp = (z * y) * x else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.16e+70) tmp = Float64(Float64(j * c) * a); elseif (a <= 2.1e-256) tmp = Float64(Float64(z * x) * y); elseif (a <= 5e-5) tmp = Float64(Float64(i * t) * b); elseif (a <= 3.8e+96) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.16e+70) tmp = (j * c) * a; elseif (a <= 2.1e-256) tmp = (z * x) * y; elseif (a <= 5e-5) tmp = (i * t) * b; elseif (a <= 3.8e+96) tmp = (z * y) * x; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.16e+70], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 2.1e-256], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 5e-5], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 3.8e+96], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-256}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-5}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+96}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if a < -1.1599999999999999e70Initial program 52.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.2
Applied rewrites53.2%
Taylor expanded in c around inf
Applied rewrites55.0%
if -1.1599999999999999e70 < a < 2.10000000000000003e-256Initial program 81.9%
Taylor expanded in a around 0
Applied rewrites83.9%
Applied rewrites82.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.6
Applied rewrites48.6%
Taylor expanded in c around 0
Applied rewrites32.9%
if 2.10000000000000003e-256 < a < 5.00000000000000024e-5Initial program 88.6%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites70.2%
Taylor expanded in t around inf
Applied rewrites37.7%
if 5.00000000000000024e-5 < a < 3.8000000000000002e96Initial program 80.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.6
Applied rewrites58.6%
Taylor expanded in a around 0
Applied rewrites49.0%
if 3.8000000000000002e96 < a Initial program 53.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.1
Applied rewrites44.1%
Taylor expanded in c around inf
Applied rewrites42.3%
Applied rewrites42.5%
Final simplification40.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z x) y)))
(if (<= a -1.16e+70)
(* (* j c) a)
(if (<= a 2.1e-256)
t_1
(if (<= a 0.00038)
(* (* i t) b)
(if (<= a 7.2e+177) t_1 (* (* j a) c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (a <= -1.16e+70) {
tmp = (j * c) * a;
} else if (a <= 2.1e-256) {
tmp = t_1;
} else if (a <= 0.00038) {
tmp = (i * t) * b;
} else if (a <= 7.2e+177) {
tmp = t_1;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * x) * y
if (a <= (-1.16d+70)) then
tmp = (j * c) * a
else if (a <= 2.1d-256) then
tmp = t_1
else if (a <= 0.00038d0) then
tmp = (i * t) * b
else if (a <= 7.2d+177) then
tmp = t_1
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (a <= -1.16e+70) {
tmp = (j * c) * a;
} else if (a <= 2.1e-256) {
tmp = t_1;
} else if (a <= 0.00038) {
tmp = (i * t) * b;
} else if (a <= 7.2e+177) {
tmp = t_1;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if a <= -1.16e+70: tmp = (j * c) * a elif a <= 2.1e-256: tmp = t_1 elif a <= 0.00038: tmp = (i * t) * b elif a <= 7.2e+177: tmp = t_1 else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (a <= -1.16e+70) tmp = Float64(Float64(j * c) * a); elseif (a <= 2.1e-256) tmp = t_1; elseif (a <= 0.00038) tmp = Float64(Float64(i * t) * b); elseif (a <= 7.2e+177) tmp = t_1; else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (a <= -1.16e+70) tmp = (j * c) * a; elseif (a <= 2.1e-256) tmp = t_1; elseif (a <= 0.00038) tmp = (i * t) * b; elseif (a <= 7.2e+177) tmp = t_1; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[a, -1.16e+70], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 2.1e-256], t$95$1, If[LessEqual[a, 0.00038], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 7.2e+177], t$95$1, N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-256}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 0.00038:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if a < -1.1599999999999999e70Initial program 52.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.2
Applied rewrites53.2%
Taylor expanded in c around inf
Applied rewrites55.0%
if -1.1599999999999999e70 < a < 2.10000000000000003e-256 or 3.8000000000000002e-4 < a < 7.20000000000000005e177Initial program 82.0%
Taylor expanded in a around 0
Applied rewrites82.8%
Applied rewrites82.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in c around 0
Applied rewrites34.1%
if 2.10000000000000003e-256 < a < 3.8000000000000002e-4Initial program 88.6%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites70.2%
Taylor expanded in t around inf
Applied rewrites37.7%
if 7.20000000000000005e177 < a Initial program 38.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in c around inf
Applied rewrites48.7%
Applied rewrites51.3%
Final simplification40.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1.32e-94)
t_1
(if (<= x 6e+121) (* (fma (- b) z (* 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(-a, t, (z * y)) * x;
double tmp;
if (x <= -1.32e-94) {
tmp = t_1;
} else if (x <= 6e+121) {
tmp = fma(-b, z, (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(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1.32e-94) tmp = t_1; elseif (x <= 6e+121) tmp = Float64(fma(Float64(-b), z, 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.32e-94], t$95$1, If[LessEqual[x, 6e+121], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1.32 \cdot 10^{-94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+121}:\\
\;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.32e-94 or 6.0000000000000005e121 < x Initial program 70.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.8
Applied rewrites63.8%
if -1.32e-94 < x < 6.0000000000000005e121Initial program 72.5%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6448.3
Applied rewrites48.3%
Final simplification55.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -6.8e+145) (* (* (- y) i) j) (if (<= j 1.85e+49) (* (fma y x (* (- c) b)) z) (* (* j c) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -6.8e+145) {
tmp = (-y * i) * j;
} else if (j <= 1.85e+49) {
tmp = fma(y, x, (-c * b)) * z;
} else {
tmp = (j * c) * a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -6.8e+145) tmp = Float64(Float64(Float64(-y) * i) * j); elseif (j <= 1.85e+49) tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z); else tmp = Float64(Float64(j * c) * a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -6.8e+145], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 1.85e+49], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.8 \cdot 10^{+145}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{+49}:\\
\;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\end{array}
\end{array}
if j < -6.7999999999999998e145Initial program 74.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.4
Applied rewrites71.4%
Taylor expanded in c around 0
Applied rewrites58.7%
if -6.7999999999999998e145 < j < 1.85000000000000009e49Initial program 72.0%
Taylor expanded in a around 0
Applied rewrites83.8%
Applied rewrites83.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.5
Applied rewrites46.5%
Applied rewrites47.1%
if 1.85000000000000009e49 < j Initial program 69.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Taylor expanded in c around inf
Applied rewrites52.1%
Final simplification49.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3.1e+195)
(* (* (- c) b) z)
(if (<= z 2.2e-224)
(* (* (- t) a) x)
(if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.1e+195) {
tmp = (-c * b) * z;
} else if (z <= 2.2e-224) {
tmp = (-t * a) * x;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-3.1d+195)) then
tmp = (-c * b) * z
else if (z <= 2.2d-224) then
tmp = (-t * a) * x
else if (z <= 75000000000.0d0) then
tmp = (i * t) * b
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.1e+195) {
tmp = (-c * b) * z;
} else if (z <= 2.2e-224) {
tmp = (-t * a) * x;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.1e+195: tmp = (-c * b) * z elif z <= 2.2e-224: tmp = (-t * a) * x elif z <= 75000000000.0: tmp = (i * t) * b else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.1e+195) tmp = Float64(Float64(Float64(-c) * b) * z); elseif (z <= 2.2e-224) tmp = Float64(Float64(Float64(-t) * a) * x); elseif (z <= 75000000000.0) tmp = Float64(Float64(i * t) * b); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.1e+195) tmp = (-c * b) * z; elseif (z <= 2.2e-224) tmp = (-t * a) * x; elseif (z <= 75000000000.0) tmp = (i * t) * b; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.1e+195], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 2.2e-224], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\
\;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-224}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{elif}\;z \leq 75000000000:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if z < -3.1000000000000002e195Initial program 52.4%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites56.7%
Taylor expanded in c around inf
Applied rewrites53.2%
if -3.1000000000000002e195 < z < 2.2000000000000001e-224Initial program 78.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.7
Applied rewrites40.7%
Taylor expanded in a around inf
Applied rewrites33.0%
if 2.2000000000000001e-224 < z < 7.5e10Initial program 80.4%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites62.9%
Taylor expanded in t around inf
Applied rewrites37.1%
if 7.5e10 < z Initial program 61.5%
Taylor expanded in a around 0
Applied rewrites70.8%
Applied rewrites70.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.8
Applied rewrites69.8%
Taylor expanded in c around 0
Applied rewrites51.7%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3.1e+195)
(* (* (- c) b) z)
(if (<= z 2.1e-224)
(* (* (- x) t) a)
(if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.1e+195) {
tmp = (-c * b) * z;
} else if (z <= 2.1e-224) {
tmp = (-x * t) * a;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-3.1d+195)) then
tmp = (-c * b) * z
else if (z <= 2.1d-224) then
tmp = (-x * t) * a
else if (z <= 75000000000.0d0) then
tmp = (i * t) * b
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.1e+195) {
tmp = (-c * b) * z;
} else if (z <= 2.1e-224) {
tmp = (-x * t) * a;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.1e+195: tmp = (-c * b) * z elif z <= 2.1e-224: tmp = (-x * t) * a elif z <= 75000000000.0: tmp = (i * t) * b else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.1e+195) tmp = Float64(Float64(Float64(-c) * b) * z); elseif (z <= 2.1e-224) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (z <= 75000000000.0) tmp = Float64(Float64(i * t) * b); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.1e+195) tmp = (-c * b) * z; elseif (z <= 2.1e-224) tmp = (-x * t) * a; elseif (z <= 75000000000.0) tmp = (i * t) * b; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.1e+195], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 2.1e-224], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\
\;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;z \leq 75000000000:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if z < -3.1000000000000002e195Initial program 52.4%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites56.7%
Taylor expanded in c around inf
Applied rewrites53.2%
if -3.1000000000000002e195 < z < 2.10000000000000006e-224Initial program 78.2%
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
lower-*.f6442.7
Applied rewrites42.7%
Taylor expanded in b around 0
Applied rewrites31.2%
if 2.10000000000000006e-224 < z < 7.5e10Initial program 80.4%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites62.9%
Taylor expanded in t around inf
Applied rewrites37.1%
if 7.5e10 < z Initial program 61.5%
Taylor expanded in a around 0
Applied rewrites70.8%
Applied rewrites70.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.8
Applied rewrites69.8%
Taylor expanded in c around 0
Applied rewrites51.7%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.5e+80)
(* (* (- z) c) b)
(if (<= z 2.1e-224)
(* (* (- x) t) a)
(if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.5e+80) {
tmp = (-z * c) * b;
} else if (z <= 2.1e-224) {
tmp = (-x * t) * a;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.5d+80)) then
tmp = (-z * c) * b
else if (z <= 2.1d-224) then
tmp = (-x * t) * a
else if (z <= 75000000000.0d0) then
tmp = (i * t) * b
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.5e+80) {
tmp = (-z * c) * b;
} else if (z <= 2.1e-224) {
tmp = (-x * t) * a;
} else if (z <= 75000000000.0) {
tmp = (i * t) * b;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.5e+80: tmp = (-z * c) * b elif z <= 2.1e-224: tmp = (-x * t) * a elif z <= 75000000000.0: tmp = (i * t) * b else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.5e+80) tmp = Float64(Float64(Float64(-z) * c) * b); elseif (z <= 2.1e-224) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (z <= 75000000000.0) tmp = Float64(Float64(i * t) * b); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.5e+80) tmp = (-z * c) * b; elseif (z <= 2.1e-224) tmp = (-x * t) * a; elseif (z <= 75000000000.0) tmp = (i * t) * b; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.5e+80], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 2.1e-224], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+80}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;z \leq 75000000000:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if z < -1.49999999999999993e80Initial program 55.5%
Taylor expanded in a around 0
Applied rewrites66.4%
Applied rewrites66.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.5
Applied rewrites65.5%
Taylor expanded in c around inf
Applied rewrites41.9%
if -1.49999999999999993e80 < z < 2.10000000000000006e-224Initial program 81.7%
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
lower-*.f6445.2
Applied rewrites45.2%
Taylor expanded in b around 0
Applied rewrites32.5%
if 2.10000000000000006e-224 < z < 7.5e10Initial program 80.4%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites62.9%
Taylor expanded in t around inf
Applied rewrites37.1%
if 7.5e10 < z Initial program 61.5%
Taylor expanded in a around 0
Applied rewrites70.8%
Applied rewrites70.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.8
Applied rewrites69.8%
Taylor expanded in c around 0
Applied rewrites51.7%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -6.2e+147)
(* (* z x) y)
(if (<= y 6.8e-118)
(* (* j c) a)
(if (<= y 5.8e+62) (* (* i t) b) (* (* 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 (y <= -6.2e+147) {
tmp = (z * x) * y;
} else if (y <= 6.8e-118) {
tmp = (j * c) * a;
} else if (y <= 5.8e+62) {
tmp = (i * t) * b;
} 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 (y <= (-6.2d+147)) then
tmp = (z * x) * y
else if (y <= 6.8d-118) then
tmp = (j * c) * a
else if (y <= 5.8d+62) then
tmp = (i * t) * b
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 (y <= -6.2e+147) {
tmp = (z * x) * y;
} else if (y <= 6.8e-118) {
tmp = (j * c) * a;
} else if (y <= 5.8e+62) {
tmp = (i * t) * b;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -6.2e+147: tmp = (z * x) * y elif y <= 6.8e-118: tmp = (j * c) * a elif y <= 5.8e+62: tmp = (i * t) * b else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -6.2e+147) tmp = Float64(Float64(z * x) * y); elseif (y <= 6.8e-118) tmp = Float64(Float64(j * c) * a); elseif (y <= 5.8e+62) tmp = Float64(Float64(i * t) * b); 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 (y <= -6.2e+147) tmp = (z * x) * y; elseif (y <= 6.8e-118) tmp = (j * c) * a; elseif (y <= 5.8e+62) tmp = (i * t) * b; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6.2e+147], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 6.8e-118], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 5.8e+62], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+147}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -6.2000000000000001e147Initial program 58.2%
Taylor expanded in a around 0
Applied rewrites80.1%
Applied rewrites82.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in c around 0
Applied rewrites63.9%
if -6.2000000000000001e147 < y < 6.79999999999999981e-118Initial program 76.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.0
Applied rewrites43.0%
Taylor expanded in c around inf
Applied rewrites31.5%
if 6.79999999999999981e-118 < y < 5.79999999999999968e62Initial program 80.0%
Taylor expanded in a around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites60.8%
Taylor expanded in t around inf
Applied rewrites35.5%
if 5.79999999999999968e62 < y Initial program 62.5%
Taylor expanded in a around 0
Applied rewrites76.6%
Applied rewrites74.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.1
Applied rewrites46.1%
Taylor expanded in c around 0
Applied rewrites42.2%
Final simplification39.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -1.16e+70) (* (* j c) a) (if (<= a 7.2e+177) (* (* z x) y) (* (* j a) c))))
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.16e+70) {
tmp = (j * c) * a;
} else if (a <= 7.2e+177) {
tmp = (z * x) * y;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.16d+70)) then
tmp = (j * c) * a
else if (a <= 7.2d+177) then
tmp = (z * x) * y
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.16e+70) {
tmp = (j * c) * a;
} else if (a <= 7.2e+177) {
tmp = (z * x) * y;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.16e+70: tmp = (j * c) * a elif a <= 7.2e+177: tmp = (z * x) * y else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.16e+70) tmp = Float64(Float64(j * c) * a); elseif (a <= 7.2e+177) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.16e+70) tmp = (j * c) * a; elseif (a <= 7.2e+177) tmp = (z * x) * y; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.16e+70], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 7.2e+177], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
\;\;\;\;\left(j \cdot c\right) \cdot a\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if a < -1.1599999999999999e70Initial program 52.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.2
Applied rewrites53.2%
Taylor expanded in c around inf
Applied rewrites55.0%
if -1.1599999999999999e70 < a < 7.20000000000000005e177Initial program 83.6%
Taylor expanded in a around 0
Applied rewrites83.1%
Applied rewrites82.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.6
Applied rewrites46.6%
Taylor expanded in c around 0
Applied rewrites29.7%
if 7.20000000000000005e177 < a Initial program 38.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.5
Applied rewrites48.5%
Taylor expanded in c around inf
Applied rewrites48.7%
Applied rewrites51.3%
Final simplification36.9%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* j c) a))) (if (<= a -1.16e+70) t_1 (if (<= a 3.8e+96) (* (* 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 = (j * c) * a;
double tmp;
if (a <= -1.16e+70) {
tmp = t_1;
} else if (a <= 3.8e+96) {
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 = (j * c) * a
if (a <= (-1.16d+70)) then
tmp = t_1
else if (a <= 3.8d+96) 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 = (j * c) * a;
double tmp;
if (a <= -1.16e+70) {
tmp = t_1;
} else if (a <= 3.8e+96) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * c) * a tmp = 0 if a <= -1.16e+70: tmp = t_1 elif a <= 3.8e+96: 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(j * c) * a) tmp = 0.0 if (a <= -1.16e+70) tmp = t_1; elseif (a <= 3.8e+96) 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 = (j * c) * a; tmp = 0.0; if (a <= -1.16e+70) tmp = t_1; elseif (a <= 3.8e+96) 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[(j * c), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.16e+70], t$95$1, If[LessEqual[a, 3.8e+96], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+96}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.1599999999999999e70 or 3.8000000000000002e96 < a Initial program 52.7%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.7
Applied rewrites47.7%
Taylor expanded in c around inf
Applied rewrites47.4%
if -1.1599999999999999e70 < a < 3.8000000000000002e96Initial program 83.6%
Taylor expanded in a around 0
Applied rewrites82.9%
Applied rewrites82.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.0
Applied rewrites47.0%
Taylor expanded in c around 0
Applied rewrites29.8%
Final simplification36.5%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * x) * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
def code(x, y, z, t, a, b, c, i, j): return (z * x) * y
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * x) * y) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * x) * y; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot x\right) \cdot y
\end{array}
Initial program 71.8%
Taylor expanded in a around 0
Applied rewrites80.1%
Applied rewrites79.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.6
Applied rewrites40.6%
Taylor expanded in c around 0
Applied rewrites25.4%
(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 2024250
(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)))))