
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c t) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i a) (* c z)) b)))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- y) j (* b a)) i (* (fma (- t) a (* z y)) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-y, j, (b * a)), i, (fma(-t, a, (z * y)) * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * t) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * a) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * t), $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 * a), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot a - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Applied rewrites62.2%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)) (t_2 (* (fma (- y) j (* b a)) i)))
(if (<= i -3e+96)
t_2
(if (<= i -1.75e-222)
(fma (* j t) c t_1)
(if (<= i 3.5e+100) (fma (* (- b) z) c t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double t_2 = fma(-y, j, (b * a)) * i;
double tmp;
if (i <= -3e+96) {
tmp = t_2;
} else if (i <= -1.75e-222) {
tmp = fma((j * t), c, t_1);
} else if (i <= 3.5e+100) {
tmp = fma((-b * z), c, t_1);
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) t_2 = Float64(fma(Float64(-y), j, Float64(b * a)) * i) tmp = 0.0 if (i <= -3e+96) tmp = t_2; elseif (i <= -1.75e-222) tmp = fma(Float64(j * t), c, t_1); elseif (i <= 3.5e+100) tmp = fma(Float64(Float64(-b) * z), c, t_1); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -3e+96], t$95$2, If[LessEqual[i, -1.75e-222], N[(N[(j * t), $MachinePrecision] * c + t$95$1), $MachinePrecision], If[LessEqual[i, 3.5e+100], N[(N[((-b) * z), $MachinePrecision] * c + t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
t_2 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{if}\;i \leq -3 \cdot 10^{+96}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.75 \cdot 10^{-222}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t, c, t\_1\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+100}:\\
\;\;\;\;\mathsf{fma}\left(\left(-b\right) \cdot z, c, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -3e96 or 3.49999999999999976e100 < i Initial program 56.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
if -3e96 < i < -1.75000000000000012e-222Initial program 79.2%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites67.8%
Taylor expanded in z around 0
Applied rewrites67.8%
if -1.75000000000000012e-222 < i < 3.49999999999999976e100Initial program 75.0%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites65.2%
Taylor expanded in z around inf
Applied rewrites58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- z) b (* j t))) (t_2 (* (fma (- t) a (* z y)) x)))
(if (<= c -3.3e+101)
(* t_1 c)
(if (<= c 4.7e-21) (fma (fma (- y) j (* b a)) i t_2) (fma t_1 c t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-z, b, (j * t));
double t_2 = fma(-t, a, (z * y)) * x;
double tmp;
if (c <= -3.3e+101) {
tmp = t_1 * c;
} else if (c <= 4.7e-21) {
tmp = fma(fma(-y, j, (b * a)), i, t_2);
} else {
tmp = fma(t_1, c, t_2);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-z), b, Float64(j * t)) t_2 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (c <= -3.3e+101) tmp = Float64(t_1 * c); elseif (c <= 4.7e-21) tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, t_2); else tmp = fma(t_1, c, t_2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[c, -3.3e+101], N[(t$95$1 * c), $MachinePrecision], If[LessEqual[c, 4.7e-21], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + t$95$2), $MachinePrecision], N[(t$95$1 * c + t$95$2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, b, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;c \leq -3.3 \cdot 10^{+101}:\\
\;\;\;\;t\_1 \cdot c\\
\mathbf{elif}\;c \leq 4.7 \cdot 10^{-21}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, c, t\_2\right)\\
\end{array}
\end{array}
if c < -3.30000000000000011e101Initial program 68.8%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6478.0
Applied rewrites78.0%
if -3.30000000000000011e101 < c < 4.7000000000000003e-21Initial program 71.0%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Applied rewrites80.9%
if 4.7000000000000003e-21 < c Initial program 65.6%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) b (* j t)) c)))
(if (<= c -3.3e+101)
t_1
(if (<= c 4e+127)
(fma (fma (- y) j (* b a)) i (* (fma (- t) a (* z y)) x))
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(-z, b, (j * t)) * c;
double tmp;
if (c <= -3.3e+101) {
tmp = t_1;
} else if (c <= 4e+127) {
tmp = fma(fma(-y, j, (b * a)), i, (fma(-t, a, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), b, Float64(j * t)) * c) tmp = 0.0 if (c <= -3.3e+101) tmp = t_1; elseif (c <= 4e+127) tmp = fma(fma(Float64(-y), j, Float64(b * a)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -3.3e+101], t$95$1, If[LessEqual[c, 4e+127], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\\
\mathbf{if}\;c \leq -3.3 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 4 \cdot 10^{+127}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot a\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.30000000000000011e101 or 3.99999999999999982e127 < c Initial program 60.3%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6476.6
Applied rewrites76.6%
if -3.30000000000000011e101 < c < 3.99999999999999982e127Initial program 72.8%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
Applied rewrites77.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1.26e+61)
t_1
(if (<= x -1.2e-27)
(* (fma (- b) c (* y x)) z)
(if (<= x 4e-44)
(* (fma (- y) j (* b a)) i)
(if (<= x 3.25e+103) (* (fma (- z) b (* j t)) c) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1.26e+61) {
tmp = t_1;
} else if (x <= -1.2e-27) {
tmp = fma(-b, c, (y * x)) * z;
} else if (x <= 4e-44) {
tmp = fma(-y, j, (b * a)) * i;
} else if (x <= 3.25e+103) {
tmp = fma(-z, b, (j * t)) * 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.26e+61) tmp = t_1; elseif (x <= -1.2e-27) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (x <= 4e-44) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); elseif (x <= 3.25e+103) tmp = Float64(fma(Float64(-z), b, Float64(j * t)) * 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.26e+61], t$95$1, If[LessEqual[x, -1.2e-27], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, 4e-44], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 3.25e+103], N[(N[((-z) * b + N[(j * t), $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.26 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{elif}\;x \leq 3.25 \cdot 10^{+103}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.2600000000000001e61 or 3.25000000000000001e103 < x Initial program 68.6%
Taylor expanded in x around -inf
Applied rewrites76.8%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6469.1
Applied rewrites69.1%
if -1.2600000000000001e61 < x < -1.20000000000000001e-27Initial program 65.0%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6470.8
Applied rewrites70.8%
if -1.20000000000000001e-27 < x < 3.99999999999999981e-44Initial program 66.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.4
Applied rewrites61.4%
if 3.99999999999999981e-44 < x < 3.25000000000000001e103Initial program 83.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.4
Applied rewrites54.4%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)) (t_2 (* (fma (- a) t (* z y)) x)))
(if (<= x -1.26e+61)
t_2
(if (<= x -1.2e-27)
t_1
(if (<= x 2.5e-36)
(* (fma (- y) j (* b a)) i)
(if (<= x 26500000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double t_2 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1.26e+61) {
tmp = t_2;
} else if (x <= -1.2e-27) {
tmp = t_1;
} else if (x <= 2.5e-36) {
tmp = fma(-y, j, (b * a)) * i;
} else if (x <= 26500000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) t_2 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1.26e+61) tmp = t_2; elseif (x <= -1.2e-27) tmp = t_1; elseif (x <= 2.5e-36) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); elseif (x <= 26500000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.26e+61], t$95$2, If[LessEqual[x, -1.2e-27], t$95$1, If[LessEqual[x, 2.5e-36], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 26500000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
t_2 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1.26 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{elif}\;x \leq 26500000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.2600000000000001e61 or 2.65e13 < x Initial program 72.1%
Taylor expanded in x around -inf
Applied rewrites80.0%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6464.5
Applied rewrites64.5%
if -1.2600000000000001e61 < x < -1.20000000000000001e-27 or 2.50000000000000002e-36 < x < 2.65e13Initial program 70.1%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6470.5
Applied rewrites70.5%
if -1.20000000000000001e-27 < x < 2.50000000000000002e-36Initial program 65.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.9
Applied rewrites60.9%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c t)) j)))
(if (<= a -1.16e+110)
(* (fma i b (* (- x) t)) a)
(if (<= a -1.3e-68)
t_1
(if (<= a 3.3e-94)
(* (fma (- b) c (* y x)) z)
(if (<= a 1.45e+51) t_1 (* (fma (- x) t (* i b)) a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, y, (c * t)) * j;
double tmp;
if (a <= -1.16e+110) {
tmp = fma(i, b, (-x * t)) * a;
} else if (a <= -1.3e-68) {
tmp = t_1;
} else if (a <= 3.3e-94) {
tmp = fma(-b, c, (y * x)) * z;
} else if (a <= 1.45e+51) {
tmp = t_1;
} else {
tmp = fma(-x, t, (i * b)) * a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), y, Float64(c * t)) * j) tmp = 0.0 if (a <= -1.16e+110) tmp = Float64(fma(i, b, Float64(Float64(-x) * t)) * a); elseif (a <= -1.3e-68) tmp = t_1; elseif (a <= 3.3e-94) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (a <= 1.45e+51) tmp = t_1; else tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[a, -1.16e+110], N[(N[(i * b + N[((-x) * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -1.3e-68], t$95$1, If[LessEqual[a, 3.3e-94], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 1.45e+51], t$95$1, N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{if}\;a \leq -1.16 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(i, b, \left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-94}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;a \leq 1.45 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\end{array}
\end{array}
if a < -1.16e110Initial program 61.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
Applied rewrites67.8%
if -1.16e110 < a < -1.2999999999999999e-68 or 3.3000000000000001e-94 < a < 1.4499999999999999e51Initial program 69.5%
Taylor expanded in x around -inf
Applied rewrites77.4%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6461.1
Applied rewrites61.1%
if -1.2999999999999999e-68 < a < 3.3000000000000001e-94Initial program 80.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6457.4
Applied rewrites57.4%
if 1.4499999999999999e51 < a Initial program 56.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.1
Applied rewrites65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) j (* z x)) y)) (t_2 (* (fma i b (* (- x) t)) a)))
(if (<= a -1.28e+110)
t_2
(if (<= a -3.05e-24)
t_1
(if (<= a 2.3e-83)
(* (fma (- b) c (* y x)) z)
(if (<= a 1.9e+83) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-i, j, (z * x)) * y;
double t_2 = fma(i, b, (-x * t)) * a;
double tmp;
if (a <= -1.28e+110) {
tmp = t_2;
} else if (a <= -3.05e-24) {
tmp = t_1;
} else if (a <= 2.3e-83) {
tmp = fma(-b, c, (y * x)) * z;
} else if (a <= 1.9e+83) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y) t_2 = Float64(fma(i, b, Float64(Float64(-x) * t)) * a) tmp = 0.0 if (a <= -1.28e+110) tmp = t_2; elseif (a <= -3.05e-24) tmp = t_1; elseif (a <= 2.3e-83) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (a <= 1.9e+83) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * b + N[((-x) * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.28e+110], t$95$2, If[LessEqual[a, -3.05e-24], t$95$1, If[LessEqual[a, 2.3e-83], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 1.9e+83], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
t_2 := \mathsf{fma}\left(i, b, \left(-x\right) \cdot t\right) \cdot a\\
\mathbf{if}\;a \leq -1.28 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.05 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-83}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.28e110 or 1.9000000000000001e83 < a Initial program 56.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6466.9
Applied rewrites66.9%
Applied rewrites66.9%
if -1.28e110 < a < -3.05000000000000018e-24 or 2.2999999999999999e-83 < a < 1.9000000000000001e83Initial program 70.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.8
Applied rewrites56.8%
if -3.05000000000000018e-24 < a < 2.2999999999999999e-83Initial program 79.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6454.9
Applied rewrites54.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- y) j (* b a)) i)))
(if (<= i -3e+96)
t_1
(if (<= i 9e+100) (fma (* j t) c (* (fma (- t) a (* z y)) x)) 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, j, (b * a)) * i;
double tmp;
if (i <= -3e+96) {
tmp = t_1;
} else if (i <= 9e+100) {
tmp = fma((j * t), c, (fma(-t, a, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-y), j, Float64(b * a)) * i) tmp = 0.0 if (i <= -3e+96) tmp = t_1; elseif (i <= 9e+100) tmp = fma(Float64(j * t), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); 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) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -3e+96], t$95$1, If[LessEqual[i, 9e+100], N[(N[(j * t), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{if}\;i \leq -3 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9 \cdot 10^{+100}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t, c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3e96 or 9.00000000000000073e100 < i Initial program 56.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
if -3e96 < i < 9.00000000000000073e100Initial program 76.5%
Taylor expanded in i around 0
associate--l+N/A
sub-negN/A
+-commutativeN/A
associate-+r+N/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites66.1%
Taylor expanded in z around 0
Applied rewrites57.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1.85e-28)
t_1
(if (<= x 1.25e-40)
(* (* (- y) j) i)
(if (<= x 2000000000000.0) (* (* (- b) c) 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(-a, t, (z * y)) * x;
double tmp;
if (x <= -1.85e-28) {
tmp = t_1;
} else if (x <= 1.25e-40) {
tmp = (-y * j) * i;
} else if (x <= 2000000000000.0) {
tmp = (-b * c) * z;
} 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.85e-28) tmp = t_1; elseif (x <= 1.25e-40) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (x <= 2000000000000.0) tmp = Float64(Float64(Float64(-b) * c) * 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.85e-28], t$95$1, If[LessEqual[x, 1.25e-40], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 2000000000000.0], N[(N[((-b) * c), $MachinePrecision] * z), $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.85 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-40}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;x \leq 2000000000000:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.8500000000000001e-28 or 2e12 < x Initial program 71.0%
Taylor expanded in x around -inf
Applied rewrites79.2%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6461.9
Applied rewrites61.9%
if -1.8500000000000001e-28 < x < 1.24999999999999991e-40Initial program 65.8%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6465.8
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6466.7
Applied rewrites66.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.9
Applied rewrites60.9%
Taylor expanded in y around inf
Applied rewrites40.9%
if 1.24999999999999991e-40 < x < 2e12Initial program 77.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6470.1
Applied rewrites70.1%
Taylor expanded in x around 0
Applied rewrites62.6%
Final simplification53.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma i b (* (- x) t)) a)))
(if (<= a -9.8e+70)
t_1
(if (<= a -4e-254)
(* (* (- y) j) i)
(if (<= a 1.95e-100) (* (* 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 = fma(i, b, (-x * t)) * a;
double tmp;
if (a <= -9.8e+70) {
tmp = t_1;
} else if (a <= -4e-254) {
tmp = (-y * j) * i;
} else if (a <= 1.95e-100) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(i, b, Float64(Float64(-x) * t)) * a) tmp = 0.0 if (a <= -9.8e+70) tmp = t_1; elseif (a <= -4e-254) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (a <= 1.95e-100) tmp = Float64(Float64(y * x) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b + N[((-x) * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -9.8e+70], t$95$1, If[LessEqual[a, -4e-254], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 1.95e-100], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(i, b, \left(-x\right) \cdot t\right) \cdot a\\
\mathbf{if}\;a \leq -9.8 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-254}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;a \leq 1.95 \cdot 10^{-100}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.80000000000000056e70 or 1.94999999999999989e-100 < a Initial program 62.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.8
Applied rewrites54.8%
Applied rewrites54.8%
if -9.80000000000000056e70 < a < -3.9999999999999996e-254Initial program 72.9%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6473.0
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6473.0
Applied rewrites73.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.5
Applied rewrites45.5%
Taylor expanded in y around inf
Applied rewrites38.5%
if -3.9999999999999996e-254 < a < 1.94999999999999989e-100Initial program 81.7%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6461.2
Applied rewrites61.2%
Taylor expanded in x around inf
Applied rewrites42.7%
Final simplification48.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z x) y)))
(if (<= z -1.3e+198)
t_1
(if (<= z -1.95e+16)
(* (* (- b) c) z)
(if (<= z 3.4e-100)
(* (* (- y) j) i)
(if (<= z 1.35e+17) (* (* c t) j) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (z <= -1.3e+198) {
tmp = t_1;
} else if (z <= -1.95e+16) {
tmp = (-b * c) * z;
} else if (z <= 3.4e-100) {
tmp = (-y * j) * i;
} else if (z <= 1.35e+17) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * x) * y
if (z <= (-1.3d+198)) then
tmp = t_1
else if (z <= (-1.95d+16)) then
tmp = (-b * c) * z
else if (z <= 3.4d-100) then
tmp = (-y * j) * i
else if (z <= 1.35d+17) then
tmp = (c * t) * j
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (z <= -1.3e+198) {
tmp = t_1;
} else if (z <= -1.95e+16) {
tmp = (-b * c) * z;
} else if (z <= 3.4e-100) {
tmp = (-y * j) * i;
} else if (z <= 1.35e+17) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if z <= -1.3e+198: tmp = t_1 elif z <= -1.95e+16: tmp = (-b * c) * z elif z <= 3.4e-100: tmp = (-y * j) * i elif z <= 1.35e+17: tmp = (c * t) * j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (z <= -1.3e+198) tmp = t_1; elseif (z <= -1.95e+16) tmp = Float64(Float64(Float64(-b) * c) * z); elseif (z <= 3.4e-100) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (z <= 1.35e+17) tmp = Float64(Float64(c * t) * j); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (z <= -1.3e+198) tmp = t_1; elseif (z <= -1.95e+16) tmp = (-b * c) * z; elseif (z <= 3.4e-100) tmp = (-y * j) * i; elseif (z <= 1.35e+17) tmp = (c * t) * j; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[z, -1.3e+198], t$95$1, If[LessEqual[z, -1.95e+16], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 3.4e-100], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 1.35e+17], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-100}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+17}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.2999999999999999e198 or 1.35e17 < z Initial program 61.4%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
Taylor expanded in x around inf
Applied rewrites47.4%
Applied rewrites51.9%
if -1.2999999999999999e198 < z < -1.95e16Initial program 73.3%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6455.0
Applied rewrites55.0%
Taylor expanded in x around 0
Applied rewrites40.6%
if -1.95e16 < z < 3.39999999999999976e-100Initial program 74.3%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6474.3
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6475.2
Applied rewrites75.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.8
Applied rewrites55.8%
Taylor expanded in y around inf
Applied rewrites39.2%
if 3.39999999999999976e-100 < z < 1.35e17Initial program 66.8%
Taylor expanded in x around -inf
Applied rewrites79.6%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.7
Applied rewrites55.7%
Taylor expanded in y around 0
Applied rewrites42.8%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z x) y)))
(if (<= z -1.3e+198)
t_1
(if (<= z -1.95e+16)
(* (* (- b) c) z)
(if (<= z 3.4e-100)
(* (* (- i) y) j)
(if (<= z 1.35e+17) (* (* c t) j) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (z <= -1.3e+198) {
tmp = t_1;
} else if (z <= -1.95e+16) {
tmp = (-b * c) * z;
} else if (z <= 3.4e-100) {
tmp = (-i * y) * j;
} else if (z <= 1.35e+17) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * x) * y
if (z <= (-1.3d+198)) then
tmp = t_1
else if (z <= (-1.95d+16)) then
tmp = (-b * c) * z
else if (z <= 3.4d-100) then
tmp = (-i * y) * j
else if (z <= 1.35d+17) then
tmp = (c * t) * j
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (z <= -1.3e+198) {
tmp = t_1;
} else if (z <= -1.95e+16) {
tmp = (-b * c) * z;
} else if (z <= 3.4e-100) {
tmp = (-i * y) * j;
} else if (z <= 1.35e+17) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if z <= -1.3e+198: tmp = t_1 elif z <= -1.95e+16: tmp = (-b * c) * z elif z <= 3.4e-100: tmp = (-i * y) * j elif z <= 1.35e+17: tmp = (c * t) * j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (z <= -1.3e+198) tmp = t_1; elseif (z <= -1.95e+16) tmp = Float64(Float64(Float64(-b) * c) * z); elseif (z <= 3.4e-100) tmp = Float64(Float64(Float64(-i) * y) * j); elseif (z <= 1.35e+17) tmp = Float64(Float64(c * t) * j); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (z <= -1.3e+198) tmp = t_1; elseif (z <= -1.95e+16) tmp = (-b * c) * z; elseif (z <= 3.4e-100) tmp = (-i * y) * j; elseif (z <= 1.35e+17) tmp = (c * t) * j; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[z, -1.3e+198], t$95$1, If[LessEqual[z, -1.95e+16], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 3.4e-100], N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 1.35e+17], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-100}:\\
\;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+17}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.2999999999999999e198 or 1.35e17 < z Initial program 61.4%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6466.8
Applied rewrites66.8%
Taylor expanded in x around inf
Applied rewrites47.4%
Applied rewrites51.9%
if -1.2999999999999999e198 < z < -1.95e16Initial program 73.3%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6455.0
Applied rewrites55.0%
Taylor expanded in x around 0
Applied rewrites40.6%
if -1.95e16 < z < 3.39999999999999976e-100Initial program 74.3%
Taylor expanded in x around -inf
Applied rewrites68.3%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6453.0
Applied rewrites53.0%
Taylor expanded in y around inf
Applied rewrites36.7%
if 3.39999999999999976e-100 < z < 1.35e17Initial program 66.8%
Taylor expanded in x around -inf
Applied rewrites79.6%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.7
Applied rewrites55.7%
Taylor expanded in y around 0
Applied rewrites42.8%
Final simplification42.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -9e+132)
(* (* b a) i)
(if (<= b -1.8e-183)
(* (* y x) z)
(if (<= b 8.6e-157)
(* (* c t) j)
(if (<= b 3.9e-44) (* (* z x) y) (* (* i a) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -9e+132) {
tmp = (b * a) * i;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
tmp = (z * x) * y;
} else {
tmp = (i * a) * b;
}
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 (b <= (-9d+132)) then
tmp = (b * a) * i
else if (b <= (-1.8d-183)) then
tmp = (y * x) * z
else if (b <= 8.6d-157) then
tmp = (c * t) * j
else if (b <= 3.9d-44) then
tmp = (z * x) * y
else
tmp = (i * a) * b
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 (b <= -9e+132) {
tmp = (b * a) * i;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
tmp = (z * x) * y;
} else {
tmp = (i * a) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -9e+132: tmp = (b * a) * i elif b <= -1.8e-183: tmp = (y * x) * z elif b <= 8.6e-157: tmp = (c * t) * j elif b <= 3.9e-44: tmp = (z * x) * y else: tmp = (i * a) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -9e+132) tmp = Float64(Float64(b * a) * i); elseif (b <= -1.8e-183) tmp = Float64(Float64(y * x) * z); elseif (b <= 8.6e-157) tmp = Float64(Float64(c * t) * j); elseif (b <= 3.9e-44) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(i * a) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -9e+132) tmp = (b * a) * i; elseif (b <= -1.8e-183) tmp = (y * x) * z; elseif (b <= 8.6e-157) tmp = (c * t) * j; elseif (b <= 3.9e-44) tmp = (z * x) * y; else tmp = (i * a) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -9e+132], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -1.8e-183], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 8.6e-157], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, 3.9e-44], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+132}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-183}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-157}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-44}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot a\right) \cdot b\\
\end{array}
\end{array}
if b < -8.99999999999999944e132Initial program 66.6%
lift-*.f64N/A
lift--.f64N/A
flip--N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-/.f6466.6
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f6466.6
Applied rewrites66.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.5
Applied rewrites67.5%
Taylor expanded in y around 0
Applied rewrites60.6%
if -8.99999999999999944e132 < b < -1.8000000000000001e-183Initial program 68.5%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6449.8
Applied rewrites49.8%
Taylor expanded in x around inf
Applied rewrites33.0%
if -1.8000000000000001e-183 < b < 8.5999999999999995e-157Initial program 64.9%
Taylor expanded in x around -inf
Applied rewrites66.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6463.7
Applied rewrites63.7%
Taylor expanded in y around 0
Applied rewrites33.7%
if 8.5999999999999995e-157 < b < 3.9000000000000002e-44Initial program 84.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6456.6
Applied rewrites56.6%
Taylor expanded in x around inf
Applied rewrites52.1%
Applied rewrites56.9%
if 3.9000000000000002e-44 < b Initial program 70.1%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.7
Applied rewrites56.7%
Taylor expanded in z around 0
Applied rewrites36.7%
Final simplification39.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i a) b)))
(if (<= b -9e+132)
t_1
(if (<= b -1.8e-183)
(* (* y x) z)
(if (<= b 8.6e-157)
(* (* c t) j)
(if (<= b 3.9e-44) (* (* 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 = (i * a) * b;
double tmp;
if (b <= -9e+132) {
tmp = t_1;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
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 = (i * a) * b
if (b <= (-9d+132)) then
tmp = t_1
else if (b <= (-1.8d-183)) then
tmp = (y * x) * z
else if (b <= 8.6d-157) then
tmp = (c * t) * j
else if (b <= 3.9d-44) 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 = (i * a) * b;
double tmp;
if (b <= -9e+132) {
tmp = t_1;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * a) * b tmp = 0 if b <= -9e+132: tmp = t_1 elif b <= -1.8e-183: tmp = (y * x) * z elif b <= 8.6e-157: tmp = (c * t) * j elif b <= 3.9e-44: 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(i * a) * b) tmp = 0.0 if (b <= -9e+132) tmp = t_1; elseif (b <= -1.8e-183) tmp = Float64(Float64(y * x) * z); elseif (b <= 8.6e-157) tmp = Float64(Float64(c * t) * j); elseif (b <= 3.9e-44) 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 = (i * a) * b; tmp = 0.0; if (b <= -9e+132) tmp = t_1; elseif (b <= -1.8e-183) tmp = (y * x) * z; elseif (b <= 8.6e-157) tmp = (c * t) * j; elseif (b <= 3.9e-44) 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[(i * a), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -9e+132], t$95$1, If[LessEqual[b, -1.8e-183], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 8.6e-157], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, 3.9e-44], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot a\right) \cdot b\\
\mathbf{if}\;b \leq -9 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-183}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-157}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-44}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.99999999999999944e132 or 3.9000000000000002e-44 < b Initial program 69.1%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.7
Applied rewrites63.7%
Taylor expanded in z around 0
Applied rewrites42.0%
if -8.99999999999999944e132 < b < -1.8000000000000001e-183Initial program 68.5%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6449.8
Applied rewrites49.8%
Taylor expanded in x around inf
Applied rewrites33.0%
if -1.8000000000000001e-183 < b < 8.5999999999999995e-157Initial program 64.9%
Taylor expanded in x around -inf
Applied rewrites66.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6463.7
Applied rewrites63.7%
Taylor expanded in y around 0
Applied rewrites33.7%
if 8.5999999999999995e-157 < b < 3.9000000000000002e-44Initial program 84.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6456.6
Applied rewrites56.6%
Taylor expanded in x around inf
Applied rewrites52.1%
Applied rewrites56.9%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* i b) a)))
(if (<= b -9e+132)
t_1
(if (<= b -1.8e-183)
(* (* y x) z)
(if (<= b 8.6e-157)
(* (* c t) j)
(if (<= b 3.9e-44) (* (* 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 = (i * b) * a;
double tmp;
if (b <= -9e+132) {
tmp = t_1;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
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 = (i * b) * a
if (b <= (-9d+132)) then
tmp = t_1
else if (b <= (-1.8d-183)) then
tmp = (y * x) * z
else if (b <= 8.6d-157) then
tmp = (c * t) * j
else if (b <= 3.9d-44) 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 = (i * b) * a;
double tmp;
if (b <= -9e+132) {
tmp = t_1;
} else if (b <= -1.8e-183) {
tmp = (y * x) * z;
} else if (b <= 8.6e-157) {
tmp = (c * t) * j;
} else if (b <= 3.9e-44) {
tmp = (z * x) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * b) * a tmp = 0 if b <= -9e+132: tmp = t_1 elif b <= -1.8e-183: tmp = (y * x) * z elif b <= 8.6e-157: tmp = (c * t) * j elif b <= 3.9e-44: 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(i * b) * a) tmp = 0.0 if (b <= -9e+132) tmp = t_1; elseif (b <= -1.8e-183) tmp = Float64(Float64(y * x) * z); elseif (b <= 8.6e-157) tmp = Float64(Float64(c * t) * j); elseif (b <= 3.9e-44) 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 = (i * b) * a; tmp = 0.0; if (b <= -9e+132) tmp = t_1; elseif (b <= -1.8e-183) tmp = (y * x) * z; elseif (b <= 8.6e-157) tmp = (c * t) * j; elseif (b <= 3.9e-44) 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[(i * b), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[b, -9e+132], t$95$1, If[LessEqual[b, -1.8e-183], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 8.6e-157], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, 3.9e-44], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot b\right) \cdot a\\
\mathbf{if}\;b \leq -9 \cdot 10^{+132}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-183}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;b \leq 8.6 \cdot 10^{-157}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{-44}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.99999999999999944e132 or 3.9000000000000002e-44 < b Initial program 69.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.3
Applied rewrites52.3%
Taylor expanded in x around 0
Applied rewrites38.3%
if -8.99999999999999944e132 < b < -1.8000000000000001e-183Initial program 68.5%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6449.8
Applied rewrites49.8%
Taylor expanded in x around inf
Applied rewrites33.0%
if -1.8000000000000001e-183 < b < 8.5999999999999995e-157Initial program 64.9%
Taylor expanded in x around -inf
Applied rewrites66.8%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6463.7
Applied rewrites63.7%
Taylor expanded in y around 0
Applied rewrites33.7%
if 8.5999999999999995e-157 < b < 3.9000000000000002e-44Initial program 84.9%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6456.6
Applied rewrites56.6%
Taylor expanded in x around inf
Applied rewrites52.1%
Applied rewrites56.9%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (fma (- b) c (* y x)) z))) (if (<= z -2.2e+18) t_1 (if (<= z 1.12) (* (fma (- i) y (* c t)) j) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -2.2e+18) {
tmp = t_1;
} else if (z <= 1.12) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -2.2e+18) tmp = t_1; elseif (z <= 1.12) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -2.2e+18], t$95$1, If[LessEqual[z, 1.12], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -2.2 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.12:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.2e18 or 1.1200000000000001 < z Initial program 65.8%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6463.3
Applied rewrites63.3%
if -2.2e18 < z < 1.1200000000000001Initial program 72.3%
Taylor expanded in x around -inf
Applied rewrites69.7%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6453.9
Applied rewrites53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma i b (* (- x) t)) a)))
(if (<= a -3.3e+86)
t_1
(if (<= a 2.05e+45) (* (fma (- b) c (* 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 = fma(i, b, (-x * t)) * a;
double tmp;
if (a <= -3.3e+86) {
tmp = t_1;
} else if (a <= 2.05e+45) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(i, b, Float64(Float64(-x) * t)) * a) tmp = 0.0 if (a <= -3.3e+86) tmp = t_1; elseif (a <= 2.05e+45) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b + N[((-x) * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -3.3e+86], t$95$1, If[LessEqual[a, 2.05e+45], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(i, b, \left(-x\right) \cdot t\right) \cdot a\\
\mathbf{if}\;a \leq -3.3 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.2999999999999999e86 or 2.05000000000000006e45 < a Initial program 56.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.7
Applied rewrites62.7%
Applied rewrites62.7%
if -3.2999999999999999e86 < a < 2.05000000000000006e45Initial program 77.5%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6449.2
Applied rewrites49.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.55e+64)
(* (* (- b) c) z)
(if (<= c 3.6e-291)
(* (* i a) b)
(if (<= c 2.55e+203) (* (* z x) y) (* (* c t) j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.55e+64) {
tmp = (-b * c) * z;
} else if (c <= 3.6e-291) {
tmp = (i * a) * b;
} else if (c <= 2.55e+203) {
tmp = (z * x) * y;
} else {
tmp = (c * t) * j;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-2.55d+64)) then
tmp = (-b * c) * z
else if (c <= 3.6d-291) then
tmp = (i * a) * b
else if (c <= 2.55d+203) then
tmp = (z * x) * y
else
tmp = (c * t) * j
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.55e+64) {
tmp = (-b * c) * z;
} else if (c <= 3.6e-291) {
tmp = (i * a) * b;
} else if (c <= 2.55e+203) {
tmp = (z * x) * y;
} else {
tmp = (c * t) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.55e+64: tmp = (-b * c) * z elif c <= 3.6e-291: tmp = (i * a) * b elif c <= 2.55e+203: tmp = (z * x) * y else: tmp = (c * t) * j return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.55e+64) tmp = Float64(Float64(Float64(-b) * c) * z); elseif (c <= 3.6e-291) tmp = Float64(Float64(i * a) * b); elseif (c <= 2.55e+203) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(c * t) * j); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.55e+64) tmp = (-b * c) * z; elseif (c <= 3.6e-291) tmp = (i * a) * b; elseif (c <= 2.55e+203) tmp = (z * x) * y; else tmp = (c * t) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.55e+64], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[c, 3.6e-291], N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[c, 2.55e+203], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.55 \cdot 10^{+64}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;c \leq 3.6 \cdot 10^{-291}:\\
\;\;\;\;\left(i \cdot a\right) \cdot b\\
\mathbf{elif}\;c \leq 2.55 \cdot 10^{+203}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\end{array}
\end{array}
if c < -2.55000000000000012e64Initial program 65.4%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6470.1
Applied rewrites70.1%
Taylor expanded in x around 0
Applied rewrites57.3%
if -2.55000000000000012e64 < c < 3.59999999999999965e-291Initial program 72.9%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6436.6
Applied rewrites36.6%
Taylor expanded in z around 0
Applied rewrites32.7%
if 3.59999999999999965e-291 < c < 2.5500000000000001e203Initial program 72.2%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6441.0
Applied rewrites41.0%
Taylor expanded in x around inf
Applied rewrites30.0%
Applied rewrites33.6%
if 2.5500000000000001e203 < c Initial program 50.7%
Taylor expanded in x around -inf
Applied rewrites67.3%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6464.3
Applied rewrites64.3%
Taylor expanded in y around 0
Applied rewrites56.4%
Final simplification39.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* c t) j))) (if (<= c -3.45e+102) t_1 (if (<= c 1.45e+203) (* (* y x) z) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * t) * j;
double tmp;
if (c <= -3.45e+102) {
tmp = t_1;
} else if (c <= 1.45e+203) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (c * t) * j
if (c <= (-3.45d+102)) then
tmp = t_1
else if (c <= 1.45d+203) then
tmp = (y * x) * z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * t) * j;
double tmp;
if (c <= -3.45e+102) {
tmp = t_1;
} else if (c <= 1.45e+203) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * t) * j tmp = 0 if c <= -3.45e+102: tmp = t_1 elif c <= 1.45e+203: tmp = (y * x) * z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * t) * j) tmp = 0.0 if (c <= -3.45e+102) tmp = t_1; elseif (c <= 1.45e+203) tmp = Float64(Float64(y * x) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * t) * j; tmp = 0.0; if (c <= -3.45e+102) tmp = t_1; elseif (c <= 1.45e+203) tmp = (y * x) * z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -3.45e+102], t$95$1, If[LessEqual[c, 1.45e+203], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t\right) \cdot j\\
\mathbf{if}\;c \leq -3.45 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.45 \cdot 10^{+203}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.44999999999999983e102 or 1.45000000000000005e203 < c Initial program 61.5%
Taylor expanded in x around -inf
Applied rewrites68.7%
Taylor expanded in j around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.5
Applied rewrites55.5%
Taylor expanded in y around 0
Applied rewrites48.9%
if -3.44999999999999983e102 < c < 1.45000000000000005e203Initial program 71.5%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6437.9
Applied rewrites37.9%
Taylor expanded in x around inf
Applied rewrites28.8%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (* (* y x) z))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (y * x) * z;
}
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 = (y * x) * z
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 (y * x) * z;
}
def code(x, y, z, t, a, b, c, i, j): return (y * x) * z
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(y * x) * z) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (y * x) * z; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]
\begin{array}{l}
\\
\left(y \cdot x\right) \cdot z
\end{array}
Initial program 69.2%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6441.1
Applied rewrites41.1%
Taylor expanded in x around inf
Applied rewrites24.5%
Final simplification24.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 69.2%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6441.1
Applied rewrites41.1%
Taylor expanded in x around inf
Applied rewrites22.0%
Applied rewrites23.8%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * y) * x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
def code(x, y, z, t, a, b, c, i, j): return (z * y) * x
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * y) * x) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * y) * x; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot y\right) \cdot x
\end{array}
Initial program 69.2%
Taylor expanded in z 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
*-commutativeN/A
lower-*.f6441.1
Applied rewrites41.1%
Taylor expanded in x around inf
Applied rewrites22.0%
Final simplification22.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024332
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))