
(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 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) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 INFINITY) t_1 (* (fma c a (* (- (/ (* b t) j) y) i)) j))))
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(c, a, ((((b * t) / j) - y) * i)) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(c, a, Float64(Float64(Float64(Float64(b * t) / j) - y) * i)) * j); 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[(c * a + N[(N[(N[(N[(b * t), $MachinePrecision] / j), $MachinePrecision] - y), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * j), $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(c, a, \left(\frac{b \cdot t}{j} - y\right) \cdot i\right) \cdot j\\
\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 88.9%
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 j around -inf
Applied rewrites37.0%
Taylor expanded in i around inf
Applied rewrites61.2%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- y) j (* b t)) i (* (fma (- a) t (* z y)) x))))
(if (<= i -1.12e+89)
t_1
(if (<= i 2.55e+154)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- c) b (* y x)) z (* (fma (- x) a (* i b)) t)))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-y, j, (b * t)), i, (fma(-a, t, (z * y)) * x));
double tmp;
if (i <= -1.12e+89) {
tmp = t_1;
} else if (i <= 2.55e+154) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-c, b, (y * x)), z, (fma(-x, a, (i * b)) * t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)) tmp = 0.0 if (i <= -1.12e+89) tmp = t_1; elseif (i <= 2.55e+154) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.12e+89], t$95$1, If[LessEqual[i, 2.55e+154], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{if}\;i \leq -1.12 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.55 \cdot 10^{+154}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.11999999999999995e89 or 2.55e154 < i Initial program 64.8%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites80.3%
if -1.11999999999999995e89 < i < 2.55e154Initial program 76.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites84.5%
Final simplification83.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- c) b (* y x)) z (* (fma (- i) y (* c a)) j))))
(if (<= z -2.55e+135)
t_1
(if (<= z 2.3e-25)
(+
(fma (* b t) i (* (fma (- a) t (* z y)) x))
(* (- (* c a) (* i y)) j))
(if (<= z 1.7e+122)
(fma (fma (- b) c (* y x)) z (* (fma (- x) a (* i b)) t))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-c, b, (y * x)), z, (fma(-i, y, (c * a)) * j));
double tmp;
if (z <= -2.55e+135) {
tmp = t_1;
} else if (z <= 2.3e-25) {
tmp = fma((b * t), i, (fma(-a, t, (z * y)) * x)) + (((c * a) - (i * y)) * j);
} else if (z <= 1.7e+122) {
tmp = fma(fma(-b, c, (y * x)), z, (fma(-x, a, (i * b)) * t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(fma(Float64(-i), y, Float64(c * a)) * j)) tmp = 0.0 if (z <= -2.55e+135) tmp = t_1; elseif (z <= 2.3e-25) tmp = Float64(fma(Float64(b * t), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j)); elseif (z <= 1.7e+122) tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.55e+135], t$95$1, If[LessEqual[z, 2.3e-25], N[(N[(N[(b * t), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+122], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{if}\;z \leq -2.55 \cdot 10^{+135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right) + \left(c \cdot a - i \cdot y\right) \cdot j\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+122}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.54999999999999991e135 or 1.7e122 < z Initial program 67.4%
Taylor expanded in t around 0
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites87.4%
if -2.54999999999999991e135 < z < 2.2999999999999999e-25Initial program 77.6%
Taylor expanded in c around 0
associate-*r*N/A
neg-mul-1N/A
cancel-sign-subN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
*-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-*.f6477.1
Applied rewrites77.1%
if 2.2999999999999999e-25 < z < 1.7e122Initial program 65.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.4%
Taylor expanded in j around 0
Applied rewrites78.3%
Final simplification80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.22e+135)
(* (/ (fma (- b) c (* y x)) j) (* j z))
(if (<= z 1.25e-75)
(fma (fma (- i) y (* c a)) j (* (* i t) b))
(if (<= z 1e+35)
(fma (fma (- y) j (* b t)) i (* (* (- a) t) x))
(* (fma (- c) 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 (z <= -1.22e+135) {
tmp = (fma(-b, c, (y * x)) / j) * (j * z);
} else if (z <= 1.25e-75) {
tmp = fma(fma(-i, y, (c * a)), j, ((i * t) * b));
} else if (z <= 1e+35) {
tmp = fma(fma(-y, j, (b * t)), i, ((-a * t) * x));
} else {
tmp = fma(-c, b, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.22e+135) tmp = Float64(Float64(fma(Float64(-b), c, Float64(y * x)) / j) * Float64(j * z)); elseif (z <= 1.25e-75) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(Float64(i * t) * b)); elseif (z <= 1e+35) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(Float64(Float64(-a) * t) * x)); else tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.22e+135], N[(N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision] * N[(j * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-75], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+35], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.22 \cdot 10^{+135}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-b, c, y \cdot x\right)}{j} \cdot \left(j \cdot z\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-75}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;z \leq 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if z < -1.21999999999999996e135Initial program 66.3%
Taylor expanded in j around -inf
Applied rewrites66.5%
Taylor expanded in z around inf
Applied rewrites74.0%
if -1.21999999999999996e135 < z < 1.24999999999999995e-75Initial program 77.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites75.7%
Taylor expanded in i around inf
Applied rewrites64.8%
if 1.24999999999999995e-75 < z < 9.9999999999999997e34Initial program 68.4%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites72.2%
Taylor expanded in a around inf
Applied rewrites68.8%
if 9.9999999999999997e34 < z Initial program 68.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6475.2
Applied rewrites75.2%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- c) b (* y x)) z)))
(if (<= z -4.8e+134)
t_1
(if (<= z 1.25e-75)
(fma (fma (- i) y (* c a)) j (* (* i t) b))
(if (<= z 1e+35)
(fma (fma (- y) j (* b t)) i (* (* (- a) t) 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(-c, b, (y * x)) * z;
double tmp;
if (z <= -4.8e+134) {
tmp = t_1;
} else if (z <= 1.25e-75) {
tmp = fma(fma(-i, y, (c * a)), j, ((i * t) * b));
} else if (z <= 1e+35) {
tmp = fma(fma(-y, j, (b * t)), i, ((-a * t) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-c), b, Float64(y * x)) * z) tmp = 0.0 if (z <= -4.8e+134) tmp = t_1; elseif (z <= 1.25e-75) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(Float64(i * t) * b)); elseif (z <= 1e+35) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(Float64(Float64(-a) * t) * 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[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.8e+134], t$95$1, If[LessEqual[z, 1.25e-75], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+35], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-75}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(i \cdot t\right) \cdot b\right)\\
\mathbf{elif}\;z \leq 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.80000000000000011e134 or 9.9999999999999997e34 < z Initial program 67.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6474.1
Applied rewrites74.1%
if -4.80000000000000011e134 < z < 1.24999999999999995e-75Initial program 77.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites75.7%
Taylor expanded in i around inf
Applied rewrites64.8%
if 1.24999999999999995e-75 < z < 9.9999999999999997e34Initial program 68.4%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
+-commutativeN/A
Applied rewrites72.2%
Taylor expanded in a around inf
Applied rewrites68.8%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- (/ (* b t) j) y) i)) j)))
(if (<= j -3.1e+66)
t_1
(if (<= j 2.7e+57)
(fma (fma (- b) c (* y x)) z (* (fma (- x) a (* i b)) t))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(c, a, ((((b * t) / j) - y) * i)) * j;
double tmp;
if (j <= -3.1e+66) {
tmp = t_1;
} else if (j <= 2.7e+57) {
tmp = fma(fma(-b, c, (y * x)), z, (fma(-x, a, (i * b)) * t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(Float64(Float64(b * t) / j) - y) * i)) * j) tmp = 0.0 if (j <= -3.1e+66) tmp = t_1; elseif (j <= 2.7e+57) tmp = fma(fma(Float64(-b), c, Float64(y * x)), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * a + N[(N[(N[(N[(b * t), $MachinePrecision] / j), $MachinePrecision] - y), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -3.1e+66], t$95$1, If[LessEqual[j, 2.7e+57], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(\frac{b \cdot t}{j} - y\right) \cdot i\right) \cdot j\\
\mathbf{if}\;j \leq -3.1 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.7 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, c, y \cdot x\right), z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.10000000000000019e66 or 2.6999999999999998e57 < j Initial program 74.6%
Taylor expanded in j around -inf
Applied rewrites77.5%
Taylor expanded in i around inf
Applied rewrites80.7%
if -3.10000000000000019e66 < j < 2.6999999999999998e57Initial program 71.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.9%
Taylor expanded in j around 0
Applied rewrites71.7%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)) (t_2 (* (fma (- c) b (* y x)) z)))
(if (<= z -1.25e+134)
t_2
(if (<= z -6.6e-145)
(* (fma (- x) t (* j c)) a)
(if (<= z 1.01e-277)
t_1
(if (<= z 1.4e-120)
(* (fma c a (* (- i) y)) j)
(if (<= z 8e+34) 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(-x, a, (i * b)) * t;
double t_2 = fma(-c, b, (y * x)) * z;
double tmp;
if (z <= -1.25e+134) {
tmp = t_2;
} else if (z <= -6.6e-145) {
tmp = fma(-x, t, (j * c)) * a;
} else if (z <= 1.01e-277) {
tmp = t_1;
} else if (z <= 1.4e-120) {
tmp = fma(c, a, (-i * y)) * j;
} else if (z <= 8e+34) {
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(-x), a, Float64(i * b)) * t) t_2 = Float64(fma(Float64(-c), b, Float64(y * x)) * z) tmp = 0.0 if (z <= -1.25e+134) tmp = t_2; elseif (z <= -6.6e-145) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); elseif (z <= 1.01e-277) tmp = t_1; elseif (z <= 1.4e-120) tmp = Float64(fma(c, a, Float64(Float64(-i) * y)) * j); elseif (z <= 8e+34) 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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.25e+134], t$95$2, If[LessEqual[z, -6.6e-145], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.01e-277], t$95$1, If[LessEqual[z, 1.4e-120], N[(N[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 8e+34], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
t_2 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+134}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-145}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{elif}\;z \leq 1.01 \cdot 10^{-277}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-120}:\\
\;\;\;\;\mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.24999999999999995e134 or 7.99999999999999956e34 < z Initial program 68.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6473.4
Applied rewrites73.4%
if -1.24999999999999995e134 < z < -6.59999999999999962e-145Initial program 68.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
if -6.59999999999999962e-145 < z < 1.01e-277 or 1.39999999999999997e-120 < z < 7.99999999999999956e34Initial program 76.9%
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.2
Applied rewrites58.2%
if 1.01e-277 < z < 1.39999999999999997e-120Initial program 83.3%
Taylor expanded in j around -inf
Applied rewrites75.7%
Taylor expanded in j around inf
Applied rewrites58.8%
Final simplification64.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- i) y)) j)))
(if (<= j -1.45e+71)
t_1
(if (<= j -6e-159)
(* (fma (- x) a (* i b)) t)
(if (<= j 2.9e-159)
(* (fma (- c) b (* y x)) z)
(if (<= j 1.6e+57) (* (fma (- a) t (* 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(c, a, (-i * y)) * j;
double tmp;
if (j <= -1.45e+71) {
tmp = t_1;
} else if (j <= -6e-159) {
tmp = fma(-x, a, (i * b)) * t;
} else if (j <= 2.9e-159) {
tmp = fma(-c, b, (y * x)) * z;
} else if (j <= 1.6e+57) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(-i) * y)) * j) tmp = 0.0 if (j <= -1.45e+71) tmp = t_1; elseif (j <= -6e-159) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (j <= 2.9e-159) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); elseif (j <= 1.6e+57) tmp = Float64(fma(Float64(-a), t, 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[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -1.45e+71], t$95$1, If[LessEqual[j, -6e-159], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, 2.9e-159], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 1.6e+57], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -1.45 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6 \cdot 10^{-159}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{-159}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.45000000000000004e71 or 1.60000000000000015e57 < j Initial program 75.0%
Taylor expanded in j around -inf
Applied rewrites78.0%
Taylor expanded in j around inf
Applied rewrites67.9%
if -1.45000000000000004e71 < j < -6.00000000000000018e-159Initial program 74.0%
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-*.f6446.2
Applied rewrites46.2%
if -6.00000000000000018e-159 < j < 2.8999999999999999e-159Initial program 63.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6460.9
Applied rewrites60.9%
if 2.8999999999999999e-159 < j < 1.60000000000000015e57Initial program 79.8%
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-*.f6460.4
Applied rewrites60.4%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- c) b (* y x)) z)))
(if (<= z -4.8e+134)
t_1
(if (<= z 3.1e+33) (fma (fma (- i) y (* c a)) j (* (* 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(-c, b, (y * x)) * z;
double tmp;
if (z <= -4.8e+134) {
tmp = t_1;
} else if (z <= 3.1e+33) {
tmp = fma(fma(-i, y, (c * a)), j, ((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(-c), b, Float64(y * x)) * z) tmp = 0.0 if (z <= -4.8e+134) tmp = t_1; elseif (z <= 3.1e+33) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(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[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -4.8e+134], t$95$1, If[LessEqual[z, 3.1e+33], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \left(i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.80000000000000011e134 or 3.1e33 < z Initial program 67.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6473.4
Applied rewrites73.4%
if -4.80000000000000011e134 < z < 3.1e33Initial program 76.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.3%
Taylor expanded in i around inf
Applied rewrites62.2%
Final simplification66.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- c) b (* y x)) z)))
(if (<= z -1.25e+134)
t_1
(if (<= z -1.58e-245)
(* (fma (- x) t (* j c)) a)
(if (<= z 5.8e-10) (* (fma (- y) j (* b t)) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-c, b, (y * x)) * z;
double tmp;
if (z <= -1.25e+134) {
tmp = t_1;
} else if (z <= -1.58e-245) {
tmp = fma(-x, t, (j * c)) * a;
} else if (z <= 5.8e-10) {
tmp = fma(-y, j, (b * t)) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-c), b, Float64(y * x)) * z) tmp = 0.0 if (z <= -1.25e+134) tmp = t_1; elseif (z <= -1.58e-245) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); elseif (z <= 5.8e-10) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.25e+134], t$95$1, If[LessEqual[z, -1.58e-245], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 5.8e-10], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.58 \cdot 10^{-245}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-10}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.24999999999999995e134 or 5.79999999999999962e-10 < z Initial program 67.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6469.7
Applied rewrites69.7%
if -1.24999999999999995e134 < z < -1.58e-245Initial program 77.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6458.3
Applied rewrites58.3%
if -1.58e-245 < z < 5.79999999999999962e-10Initial program 76.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.6
Applied rewrites55.6%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- i) y)) j)))
(if (<= j -0.175)
t_1
(if (<= j 3.1e-159)
(* (fma (- c) z (* i t)) b)
(if (<= j 1.6e+57) (* (fma (- a) t (* 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(c, a, (-i * y)) * j;
double tmp;
if (j <= -0.175) {
tmp = t_1;
} else if (j <= 3.1e-159) {
tmp = fma(-c, z, (i * t)) * b;
} else if (j <= 1.6e+57) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(-i) * y)) * j) tmp = 0.0 if (j <= -0.175) tmp = t_1; elseif (j <= 3.1e-159) tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b); elseif (j <= 1.6e+57) tmp = Float64(fma(Float64(-a), t, 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[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -0.175], t$95$1, If[LessEqual[j, 3.1e-159], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 1.6e+57], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -0.175:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-159}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -0.17499999999999999 or 1.60000000000000015e57 < j Initial program 75.1%
Taylor expanded in j around -inf
Applied rewrites78.5%
Taylor expanded in j around inf
Applied rewrites63.1%
if -0.17499999999999999 < j < 3.1e-159Initial program 66.5%
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
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.0
Applied rewrites54.0%
if 3.1e-159 < j < 1.60000000000000015e57Initial program 79.8%
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-*.f6460.4
Applied rewrites60.4%
Final simplification59.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- i) y)) j)))
(if (<= j -0.38)
t_1
(if (<= j 2.9e-159)
(* (fma (- c) b (* y x)) z)
(if (<= j 1.6e+57) (* (fma (- a) t (* 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(c, a, (-i * y)) * j;
double tmp;
if (j <= -0.38) {
tmp = t_1;
} else if (j <= 2.9e-159) {
tmp = fma(-c, b, (y * x)) * z;
} else if (j <= 1.6e+57) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(-i) * y)) * j) tmp = 0.0 if (j <= -0.38) tmp = t_1; elseif (j <= 2.9e-159) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); elseif (j <= 1.6e+57) tmp = Float64(fma(Float64(-a), t, 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[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -0.38], t$95$1, If[LessEqual[j, 2.9e-159], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 1.6e+57], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -0.38:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{-159}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -0.38 or 1.60000000000000015e57 < j Initial program 75.1%
Taylor expanded in j around -inf
Applied rewrites78.5%
Taylor expanded in j around inf
Applied rewrites63.1%
if -0.38 < j < 2.8999999999999999e-159Initial program 66.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6454.0
Applied rewrites54.0%
if 2.8999999999999999e-159 < j < 1.60000000000000015e57Initial program 79.8%
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-*.f6460.4
Applied rewrites60.4%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- i) y)) j)))
(if (<= j -0.38)
t_1
(if (<= j -4.2e-243)
(* (fma (- b) z (* j a)) c)
(if (<= j 1.6e+57) (* (fma (- a) t (* 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(c, a, (-i * y)) * j;
double tmp;
if (j <= -0.38) {
tmp = t_1;
} else if (j <= -4.2e-243) {
tmp = fma(-b, z, (j * a)) * c;
} else if (j <= 1.6e+57) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(-i) * y)) * j) tmp = 0.0 if (j <= -0.38) tmp = t_1; elseif (j <= -4.2e-243) tmp = Float64(fma(Float64(-b), z, Float64(j * a)) * c); elseif (j <= 1.6e+57) tmp = Float64(fma(Float64(-a), t, 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[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -0.38], t$95$1, If[LessEqual[j, -4.2e-243], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[j, 1.6e+57], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -0.38:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-243}:\\
\;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -0.38 or 1.60000000000000015e57 < j Initial program 75.1%
Taylor expanded in j around -inf
Applied rewrites78.5%
Taylor expanded in j around inf
Applied rewrites63.1%
if -0.38 < j < -4.2000000000000002e-243Initial program 71.6%
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-*.f6447.6
Applied rewrites47.6%
if -4.2000000000000002e-243 < j < 1.60000000000000015e57Initial program 71.0%
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-*.f6452.3
Applied rewrites52.3%
Final simplification56.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.7e+152)
(* (* z x) y)
(if (<= z -1.7e-278)
(* (* (- t) x) a)
(if (<= z 2.55e-25) (* (* (- i) j) y) (* (* (- c) z) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.55e-25) {
tmp = (-i * j) * y;
} else {
tmp = (-c * z) * 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 (z <= (-6.7d+152)) then
tmp = (z * x) * y
else if (z <= (-1.7d-278)) then
tmp = (-t * x) * a
else if (z <= 2.55d-25) then
tmp = (-i * j) * y
else
tmp = (-c * z) * 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 (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.55e-25) {
tmp = (-i * j) * y;
} else {
tmp = (-c * z) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.7e+152: tmp = (z * x) * y elif z <= -1.7e-278: tmp = (-t * x) * a elif z <= 2.55e-25: tmp = (-i * j) * y else: tmp = (-c * z) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.7e+152) tmp = Float64(Float64(z * x) * y); elseif (z <= -1.7e-278) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (z <= 2.55e-25) tmp = Float64(Float64(Float64(-i) * j) * y); else tmp = Float64(Float64(Float64(-c) * z) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.7e+152) tmp = (z * x) * y; elseif (z <= -1.7e-278) tmp = (-t * x) * a; elseif (z <= 2.55e-25) tmp = (-i * j) * y; else tmp = (-c * z) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.7e+152], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -1.7e-278], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 2.55e-25], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+152}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-278}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-25}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
\end{array}
\end{array}
if z < -6.69999999999999987e152Initial program 66.2%
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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in x around inf
Applied rewrites57.9%
if -6.69999999999999987e152 < z < -1.7e-278Initial program 77.5%
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-*.f6435.9
Applied rewrites35.9%
Taylor expanded in a around inf
Applied rewrites31.2%
if -1.7e-278 < z < 2.5500000000000001e-25Initial program 76.3%
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-*.f6442.9
Applied rewrites42.9%
Taylor expanded in x around 0
Applied rewrites37.2%
if 2.5500000000000001e-25 < z Initial program 67.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites71.1%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/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-*.f6458.8
Applied rewrites58.8%
Taylor expanded in c around inf
Applied rewrites39.5%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.7e+152)
(* (* z x) y)
(if (<= z -1.7e-278)
(* (* (- t) x) a)
(if (<= z 2.55e-25) (* (* (- i) j) y) (* (* (- b) c) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.55e-25) {
tmp = (-i * j) * y;
} else {
tmp = (-b * c) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.7d+152)) then
tmp = (z * x) * y
else if (z <= (-1.7d-278)) then
tmp = (-t * x) * a
else if (z <= 2.55d-25) then
tmp = (-i * j) * y
else
tmp = (-b * c) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.55e-25) {
tmp = (-i * j) * y;
} else {
tmp = (-b * c) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.7e+152: tmp = (z * x) * y elif z <= -1.7e-278: tmp = (-t * x) * a elif z <= 2.55e-25: tmp = (-i * j) * y else: tmp = (-b * c) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.7e+152) tmp = Float64(Float64(z * x) * y); elseif (z <= -1.7e-278) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (z <= 2.55e-25) tmp = Float64(Float64(Float64(-i) * j) * y); else tmp = Float64(Float64(Float64(-b) * c) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.7e+152) tmp = (z * x) * y; elseif (z <= -1.7e-278) tmp = (-t * x) * a; elseif (z <= 2.55e-25) tmp = (-i * j) * y; else tmp = (-b * c) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.7e+152], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -1.7e-278], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 2.55e-25], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+152}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-278}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-25}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\end{array}
\end{array}
if z < -6.69999999999999987e152Initial program 66.2%
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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in x around inf
Applied rewrites57.9%
if -6.69999999999999987e152 < z < -1.7e-278Initial program 77.5%
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-*.f6435.9
Applied rewrites35.9%
Taylor expanded in a around inf
Applied rewrites31.2%
if -1.7e-278 < z < 2.5500000000000001e-25Initial program 76.3%
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-*.f6442.9
Applied rewrites42.9%
Taylor expanded in x around 0
Applied rewrites37.2%
if 2.5500000000000001e-25 < z Initial program 67.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites71.1%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/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-*.f6458.8
Applied rewrites58.8%
Taylor expanded in c around inf
Applied rewrites39.4%
Final simplification38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.7e+152)
(* (* z x) y)
(if (<= z -1.7e-278)
(* (* (- t) x) a)
(if (<= z 2.4e-25) (* (* (- y) j) i) (* (* (- b) c) z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.4e-25) {
tmp = (-y * j) * i;
} else {
tmp = (-b * c) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.7d+152)) then
tmp = (z * x) * y
else if (z <= (-1.7d-278)) then
tmp = (-t * x) * a
else if (z <= 2.4d-25) then
tmp = (-y * j) * i
else
tmp = (-b * c) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 2.4e-25) {
tmp = (-y * j) * i;
} else {
tmp = (-b * c) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.7e+152: tmp = (z * x) * y elif z <= -1.7e-278: tmp = (-t * x) * a elif z <= 2.4e-25: tmp = (-y * j) * i else: tmp = (-b * c) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.7e+152) tmp = Float64(Float64(z * x) * y); elseif (z <= -1.7e-278) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (z <= 2.4e-25) tmp = Float64(Float64(Float64(-y) * j) * i); else tmp = Float64(Float64(Float64(-b) * c) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.7e+152) tmp = (z * x) * y; elseif (z <= -1.7e-278) tmp = (-t * x) * a; elseif (z <= 2.4e-25) tmp = (-y * j) * i; else tmp = (-b * c) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.7e+152], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -1.7e-278], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 2.4e-25], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+152}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-278}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-25}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\end{array}
\end{array}
if z < -6.69999999999999987e152Initial program 66.2%
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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in x around inf
Applied rewrites57.9%
if -6.69999999999999987e152 < z < -1.7e-278Initial program 77.5%
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-*.f6435.9
Applied rewrites35.9%
Taylor expanded in a around inf
Applied rewrites31.2%
if -1.7e-278 < z < 2.40000000000000009e-25Initial program 76.3%
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-*.f6442.9
Applied rewrites42.9%
Taylor expanded in x around 0
Applied rewrites35.9%
if 2.40000000000000009e-25 < z Initial program 67.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites71.1%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/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-*.f6458.8
Applied rewrites58.8%
Taylor expanded in c around inf
Applied rewrites39.4%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.7e+152)
(* (* z x) y)
(if (<= z -1.7e-278)
(* (* (- t) x) a)
(if (<= z 5.2e-10) (* (* (- y) j) i) (* (* z y) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 5.2e-10) {
tmp = (-y * j) * i;
} else {
tmp = (z * y) * x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.7d+152)) then
tmp = (z * x) * y
else if (z <= (-1.7d-278)) then
tmp = (-t * x) * a
else if (z <= 5.2d-10) then
tmp = (-y * j) * i
else
tmp = (z * y) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -1.7e-278) {
tmp = (-t * x) * a;
} else if (z <= 5.2e-10) {
tmp = (-y * j) * i;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.7e+152: tmp = (z * x) * y elif z <= -1.7e-278: tmp = (-t * x) * a elif z <= 5.2e-10: tmp = (-y * j) * i else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.7e+152) tmp = Float64(Float64(z * x) * y); elseif (z <= -1.7e-278) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (z <= 5.2e-10) tmp = Float64(Float64(Float64(-y) * j) * i); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.7e+152) tmp = (z * x) * y; elseif (z <= -1.7e-278) tmp = (-t * x) * a; elseif (z <= 5.2e-10) tmp = (-y * j) * i; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.7e+152], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -1.7e-278], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 5.2e-10], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+152}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-278}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-10}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if z < -6.69999999999999987e152Initial program 66.2%
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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in x around inf
Applied rewrites57.9%
if -6.69999999999999987e152 < z < -1.7e-278Initial program 77.5%
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-*.f6435.9
Applied rewrites35.9%
Taylor expanded in a around inf
Applied rewrites31.2%
if -1.7e-278 < z < 5.19999999999999962e-10Initial program 74.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-*.f6440.6
Applied rewrites40.6%
Taylor expanded in x around 0
Applied rewrites34.0%
if 5.19999999999999962e-10 < z Initial program 68.1%
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-*.f6445.0
Applied rewrites45.0%
Taylor expanded in a around 0
Applied rewrites40.2%
Final simplification37.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma c a (* (- i) y)) j)))
(if (<= j -7.8e+68)
t_1
(if (<= j 1.6e+57) (* (fma (- a) t (* 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(c, a, (-i * y)) * j;
double tmp;
if (j <= -7.8e+68) {
tmp = t_1;
} else if (j <= 1.6e+57) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(c, a, Float64(Float64(-i) * y)) * j) tmp = 0.0 if (j <= -7.8e+68) tmp = t_1; elseif (j <= 1.6e+57) tmp = Float64(fma(Float64(-a), t, 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[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -7.8e+68], t$95$1, If[LessEqual[j, 1.6e+57], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -7.8 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -7.80000000000000037e68 or 1.60000000000000015e57 < j Initial program 75.3%
Taylor expanded in j around -inf
Applied rewrites78.2%
Taylor expanded in j around inf
Applied rewrites68.2%
if -7.80000000000000037e68 < j < 1.60000000000000015e57Initial program 71.4%
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-*.f6445.5
Applied rewrites45.5%
Final simplification54.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.7e+152)
(* (* z x) y)
(if (<= z -2.5e-142)
(* (* (- t) x) a)
(if (<= z 4.8e+41) (* (* i t) b) (* (* z y) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -2.5e-142) {
tmp = (-t * x) * a;
} else if (z <= 4.8e+41) {
tmp = (i * t) * b;
} else {
tmp = (z * y) * x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.7d+152)) then
tmp = (z * x) * y
else if (z <= (-2.5d-142)) then
tmp = (-t * x) * a
else if (z <= 4.8d+41) then
tmp = (i * t) * b
else
tmp = (z * y) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.7e+152) {
tmp = (z * x) * y;
} else if (z <= -2.5e-142) {
tmp = (-t * x) * a;
} else if (z <= 4.8e+41) {
tmp = (i * t) * b;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.7e+152: tmp = (z * x) * y elif z <= -2.5e-142: tmp = (-t * x) * a elif z <= 4.8e+41: tmp = (i * t) * b else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.7e+152) tmp = Float64(Float64(z * x) * y); elseif (z <= -2.5e-142) tmp = Float64(Float64(Float64(-t) * x) * a); elseif (z <= 4.8e+41) tmp = Float64(Float64(i * t) * b); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.7e+152) tmp = (z * x) * y; elseif (z <= -2.5e-142) tmp = (-t * x) * a; elseif (z <= 4.8e+41) tmp = (i * t) * b; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.7e+152], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, -2.5e-142], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 4.8e+41], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.7 \cdot 10^{+152}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-142}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+41}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if z < -6.69999999999999987e152Initial program 66.2%
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-*.f6470.4
Applied rewrites70.4%
Taylor expanded in x around inf
Applied rewrites57.9%
if -6.69999999999999987e152 < z < -2.5000000000000001e-142Initial program 70.0%
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-*.f6437.5
Applied rewrites37.5%
Taylor expanded in a around inf
Applied rewrites31.9%
if -2.5000000000000001e-142 < z < 4.8000000000000003e41Initial program 78.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites81.2%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/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-*.f6435.7
Applied rewrites35.7%
Taylor expanded in c around 0
Applied rewrites30.5%
if 4.8000000000000003e41 < z Initial program 68.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-*.f6447.3
Applied rewrites47.3%
Taylor expanded in a around 0
Applied rewrites45.4%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 8.5e+75) (* (fma c a (* (- i) y)) j) (* (* z x) y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 8.5e+75) {
tmp = fma(c, a, (-i * y)) * j;
} else {
tmp = (z * x) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 8.5e+75) tmp = Float64(fma(c, a, Float64(Float64(-i) * y)) * j); else tmp = Float64(Float64(z * x) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 8.5e+75], N[(N[(c * a + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 8.5 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(c, a, \left(-i\right) \cdot y\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if x < 8.4999999999999993e75Initial program 72.7%
Taylor expanded in j around -inf
Applied rewrites71.2%
Taylor expanded in j around inf
Applied rewrites44.7%
if 8.4999999999999993e75 < x Initial program 73.7%
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-*.f6456.7
Applied rewrites56.7%
Taylor expanded in x around inf
Applied rewrites52.2%
Final simplification46.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -4.8e+134) (* (* z x) y) (if (<= z 6.5e+38) (* (* b t) i) (* (* z y) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.8e+134) {
tmp = (z * x) * y;
} else if (z <= 6.5e+38) {
tmp = (b * t) * i;
} else {
tmp = (z * y) * x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-4.8d+134)) then
tmp = (z * x) * y
else if (z <= 6.5d+38) then
tmp = (b * t) * i
else
tmp = (z * y) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.8e+134) {
tmp = (z * x) * y;
} else if (z <= 6.5e+38) {
tmp = (b * t) * i;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.8e+134: tmp = (z * x) * y elif z <= 6.5e+38: tmp = (b * t) * i else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.8e+134) tmp = Float64(Float64(z * x) * y); elseif (z <= 6.5e+38) tmp = Float64(Float64(b * t) * i); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4.8e+134) tmp = (z * x) * y; elseif (z <= 6.5e+38) tmp = (b * t) * i; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.8e+134], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 6.5e+38], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+134}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+38}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if z < -4.80000000000000011e134Initial program 66.3%
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.1
Applied rewrites61.1%
Taylor expanded in x around inf
Applied rewrites51.1%
if -4.80000000000000011e134 < z < 6.5e38Initial program 76.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6446.2
Applied rewrites46.2%
Taylor expanded in b around inf
Applied rewrites27.6%
if 6.5e38 < z Initial program 68.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-*.f6447.3
Applied rewrites47.3%
Taylor expanded in a around 0
Applied rewrites45.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x 2.1e+123) (* (* z y) x) (* (* z x) y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.1e+123) {
tmp = (z * y) * x;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= 2.1d+123) then
tmp = (z * y) * x
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= 2.1e+123) {
tmp = (z * y) * x;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= 2.1e+123: tmp = (z * y) * x else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= 2.1e+123) tmp = Float64(Float64(z * y) * x); 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 (x <= 2.1e+123) tmp = (z * y) * x; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 2.1e+123], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.1 \cdot 10^{+123}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if x < 2.09999999999999994e123Initial program 73.5%
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-*.f6429.9
Applied rewrites29.9%
Taylor expanded in a around 0
Applied rewrites17.6%
if 2.09999999999999994e123 < x Initial program 70.3%
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-*.f6460.0
Applied rewrites60.0%
Taylor expanded in x around inf
Applied rewrites56.6%
(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 72.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-*.f6437.9
Applied rewrites37.9%
Taylor expanded in a around 0
Applied rewrites22.9%
(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 2024268
(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)))))