
(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 25 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
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
(* j (- (* c a) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- z) b (* j a)) c (* (fma (- a) t (* 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-a, t, (z * y)) * x));
}
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-a), t, 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[(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]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]
\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 - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-a, t, 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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 89.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites50.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* i b)) t)))
(if (<= t -1.8e+153)
t_1
(if (<= t 1.7e-70)
(fma (fma (- i) y (* c a)) j (* (fma (- b) c (* y x)) z))
(if (<= t 2.8e+66)
(fma (fma (- z) b (* j a)) c (* (* (- a) t) x))
(if (<= t 4.5e+104)
(fma (fma (- y) i (* a c)) j (* (fma (- c) z (* t i)) 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(-a, x, (i * b)) * t;
double tmp;
if (t <= -1.8e+153) {
tmp = t_1;
} else if (t <= 1.7e-70) {
tmp = fma(fma(-i, y, (c * a)), j, (fma(-b, c, (y * x)) * z));
} else if (t <= 2.8e+66) {
tmp = fma(fma(-z, b, (j * a)), c, ((-a * t) * x));
} else if (t <= 4.5e+104) {
tmp = fma(fma(-y, i, (a * c)), j, (fma(-c, z, (t * i)) * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(i * b)) * t) tmp = 0.0 if (t <= -1.8e+153) tmp = t_1; elseif (t <= 1.7e-70) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); elseif (t <= 2.8e+66) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(Float64(-a) * t) * x)); elseif (t <= 4.5e+104) tmp = fma(fma(Float64(-y), i, Float64(a * c)), j, Float64(fma(Float64(-c), z, Float64(t * i)) * 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[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.8e+153], t$95$1, If[LessEqual[t, 1.7e-70], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+66], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+104], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(t * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-70}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, a \cdot c\right), j, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.8e153 or 4.4999999999999998e104 < t Initial program 60.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6480.0
Applied rewrites80.0%
if -1.8e153 < t < 1.69999999999999998e-70Initial program 77.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites75.9%
if 1.69999999999999998e-70 < t < 2.8000000000000001e66Initial program 74.2%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites84.5%
Taylor expanded in y around 0
Applied rewrites79.1%
if 2.8000000000000001e66 < t < 4.4999999999999998e104Initial program 83.2%
Taylor expanded in j around -inf
Applied rewrites83.6%
Taylor expanded in x around 0
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites99.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- z) b (* j a)) c (* (* z y) x)))
(t_2 (* (fma (- a) x (* i b)) t)))
(if (<= t -6.5e+141)
t_2
(if (<= t -5.4e+67)
t_1
(if (<= t 1.45e-161)
(+ (* (* z x) y) (* j (- (* c a) (* y i))))
(if (<= t 2.15e+74) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-z, b, (j * a)), c, ((z * y) * x));
double t_2 = fma(-a, x, (i * b)) * t;
double tmp;
if (t <= -6.5e+141) {
tmp = t_2;
} else if (t <= -5.4e+67) {
tmp = t_1;
} else if (t <= 1.45e-161) {
tmp = ((z * x) * y) + (j * ((c * a) - (y * i)));
} else if (t <= 2.15e+74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(z * y) * x)) t_2 = Float64(fma(Float64(-a), x, Float64(i * b)) * t) tmp = 0.0 if (t <= -6.5e+141) tmp = t_2; elseif (t <= -5.4e+67) tmp = t_1; elseif (t <= 1.45e-161) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))); elseif (t <= 2.15e+74) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$2, If[LessEqual[t, -5.4e+67], t$95$1, If[LessEqual[t, 1.45e-161], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+74], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\
t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-161}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -6.50000000000000053e141 or 2.15e74 < t Initial program 63.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -6.50000000000000053e141 < t < -5.3999999999999998e67 or 1.45e-161 < t < 2.15e74Initial program 73.0%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites78.0%
Taylor expanded in y around inf
Applied rewrites69.9%
if -5.3999999999999998e67 < t < 1.45e-161Initial program 79.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6470.8
Applied rewrites70.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- z) b (* j a)) c (* (* z y) x)))
(t_2 (* (fma (- a) x (* i b)) t)))
(if (<= t -6.5e+141)
t_2
(if (<= t -1.1e+120)
t_1
(if (<= t -1e-289)
(* (fma (- y) i (* a c)) j)
(if (<= t 2.15e+74) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-z, b, (j * a)), c, ((z * y) * x));
double t_2 = fma(-a, x, (i * b)) * t;
double tmp;
if (t <= -6.5e+141) {
tmp = t_2;
} else if (t <= -1.1e+120) {
tmp = t_1;
} else if (t <= -1e-289) {
tmp = fma(-y, i, (a * c)) * j;
} else if (t <= 2.15e+74) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(z * y) * x)) t_2 = Float64(fma(Float64(-a), x, Float64(i * b)) * t) tmp = 0.0 if (t <= -6.5e+141) tmp = t_2; elseif (t <= -1.1e+120) tmp = t_1; elseif (t <= -1e-289) tmp = Float64(fma(Float64(-y), i, Float64(a * c)) * j); elseif (t <= 2.15e+74) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$2, If[LessEqual[t, -1.1e+120], t$95$1, If[LessEqual[t, -1e-289], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 2.15e+74], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\
t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-289}:\\
\;\;\;\;\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -6.50000000000000053e141 or 2.15e74 < t Initial program 63.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -6.50000000000000053e141 < t < -1.1000000000000001e120 or -1e-289 < t < 2.15e74Initial program 75.1%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites75.2%
Taylor expanded in y around inf
Applied rewrites71.7%
if -1.1000000000000001e120 < t < -1e-289Initial program 79.4%
Taylor expanded in j around -inf
Applied rewrites77.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.4
Applied rewrites57.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.2e+54) (not (<= x 4.5e-102))) (fma (fma (- z) b (* j a)) c (* (fma (- a) t (* z y)) x)) (fma (fma (- y) i (* a c)) j (* (fma (- c) z (* t i)) b))))
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.2e+54) || !(x <= 4.5e-102)) {
tmp = fma(fma(-z, b, (j * a)), c, (fma(-a, t, (z * y)) * x));
} else {
tmp = fma(fma(-y, i, (a * c)), j, (fma(-c, z, (t * i)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.2e+54) || !(x <= 4.5e-102)) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = fma(fma(Float64(-y), i, Float64(a * c)), j, Float64(fma(Float64(-c), z, Float64(t * i)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.2e+54], N[Not[LessEqual[x, 4.5e-102]], $MachinePrecision]], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(t * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+54} \lor \neg \left(x \leq 4.5 \cdot 10^{-102}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, a \cdot c\right), j, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -2.1999999999999999e54 or 4.49999999999999999e-102 < x Initial program 71.3%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites74.0%
if -2.1999999999999999e54 < x < 4.49999999999999999e-102Initial program 75.1%
Taylor expanded in j around -inf
Applied rewrites74.7%
Taylor expanded in x around 0
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites82.2%
Final simplification77.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.8e+153) (not (<= t 5.3e+87))) (* (fma (- a) x (* i b)) t) (fma (fma (- i) y (* c a)) j (* (fma (- b) c (* 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 ((t <= -1.8e+153) || !(t <= 5.3e+87)) {
tmp = fma(-a, x, (i * b)) * t;
} else {
tmp = fma(fma(-i, y, (c * a)), j, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.8e+153) || !(t <= 5.3e+87)) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); else tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.8e+153], N[Not[LessEqual[t, 5.3e+87]], $MachinePrecision]], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+153} \lor \neg \left(t \leq 5.3 \cdot 10^{+87}\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if t < -1.8e153 or 5.30000000000000005e87 < t Initial program 62.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.2
Applied rewrites77.2%
if -1.8e153 < t < 5.30000000000000005e87Initial program 77.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.0%
Final simplification75.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.1e+56)
(* (fma (- t) a (* y z)) x)
(if (<= x 0.00022)
(fma (fma (- y) i (* a c)) j (* (fma (- c) z (* t i)) b))
(fma (fma (- y) j (* b t)) i (* (fma (- a) t (* 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 (x <= -2.1e+56) {
tmp = fma(-t, a, (y * z)) * x;
} else if (x <= 0.00022) {
tmp = fma(fma(-y, i, (a * c)), j, (fma(-c, z, (t * i)) * b));
} else {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-a, t, (z * y)) * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.1e+56) tmp = Float64(fma(Float64(-t), a, Float64(y * z)) * x); elseif (x <= 0.00022) tmp = fma(fma(Float64(-y), i, Float64(a * c)), j, Float64(fma(Float64(-c), z, Float64(t * i)) * b)); else tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.1e+56], N[(N[((-t) * a + N[(y * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, 0.00022], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(t * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+56}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, y \cdot z\right) \cdot x\\
\mathbf{elif}\;x \leq 0.00022:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, a \cdot c\right), j, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\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)\\
\end{array}
\end{array}
if x < -2.10000000000000017e56Initial program 61.5%
Taylor expanded in j around -inf
Applied rewrites67.6%
Taylor expanded in x around inf
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/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
lower-*.f6468.1
Applied rewrites68.1%
if -2.10000000000000017e56 < x < 2.20000000000000008e-4Initial program 75.8%
Taylor expanded in j around -inf
Applied rewrites74.8%
Taylor expanded in x around 0
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
distribute-lft-neg-inN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites79.9%
if 2.20000000000000008e-4 < x Initial program 77.8%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- y) j (* b t))) (t_2 (fma (- z) b (* j a))))
(if (<= i -2.2e+20)
(fma t_1 i (* (* (- t) a) x))
(if (<= i -7e-117)
(fma t_2 c (* (* (- a) t) x))
(if (<= i 5.5e+196) (fma t_2 c (* (* z y) x)) (* t_1 i))))))
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 * t));
double t_2 = fma(-z, b, (j * a));
double tmp;
if (i <= -2.2e+20) {
tmp = fma(t_1, i, ((-t * a) * x));
} else if (i <= -7e-117) {
tmp = fma(t_2, c, ((-a * t) * x));
} else if (i <= 5.5e+196) {
tmp = fma(t_2, c, ((z * y) * x));
} else {
tmp = t_1 * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-y), j, Float64(b * t)) t_2 = fma(Float64(-z), b, Float64(j * a)) tmp = 0.0 if (i <= -2.2e+20) tmp = fma(t_1, i, Float64(Float64(Float64(-t) * a) * x)); elseif (i <= -7e-117) tmp = fma(t_2, c, Float64(Float64(Float64(-a) * t) * x)); elseif (i <= 5.5e+196) tmp = fma(t_2, c, Float64(Float64(z * y) * x)); else tmp = Float64(t_1 * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.2e+20], N[(t$95$1 * i + N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7e-117], N[(t$95$2 * c + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e+196], N[(t$95$2 * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * i), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right)\\
t_2 := \mathsf{fma}\left(-z, b, j \cdot a\right)\\
\mathbf{if}\;i \leq -2.2 \cdot 10^{+20}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, i, \left(\left(-t\right) \cdot a\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -7 \cdot 10^{-117}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, c, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{+196}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, c, \left(z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot i\\
\end{array}
\end{array}
if i < -2.2e20Initial program 67.6%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites79.8%
Taylor expanded in y around 0
Applied rewrites81.9%
if -2.2e20 < i < -6.9999999999999997e-117Initial program 77.5%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites75.7%
Taylor expanded in y around 0
Applied rewrites69.0%
if -6.9999999999999997e-117 < i < 5.49999999999999973e196Initial program 72.9%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites69.4%
Taylor expanded in y around inf
Applied rewrites61.1%
if 5.49999999999999973e196 < i Initial program 76.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6481.4
Applied rewrites81.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- y) j (* b t))))
(if (<= i -1.08e-69)
(fma t_1 i (* (* (- t) a) x))
(if (<= i 5.5e+196)
(fma (fma (- z) b (* j a)) c (* (* z y) x))
(* t_1 i)))))
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 * t));
double tmp;
if (i <= -1.08e-69) {
tmp = fma(t_1, i, ((-t * a) * x));
} else if (i <= 5.5e+196) {
tmp = fma(fma(-z, b, (j * a)), c, ((z * y) * x));
} else {
tmp = t_1 * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-y), j, Float64(b * t)) tmp = 0.0 if (i <= -1.08e-69) tmp = fma(t_1, i, Float64(Float64(Float64(-t) * a) * x)); elseif (i <= 5.5e+196) tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(z * y) * x)); else tmp = Float64(t_1 * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.08e-69], N[(t$95$1 * i + N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.5e+196], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right)\\
\mathbf{if}\;i \leq -1.08 \cdot 10^{-69}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, i, \left(\left(-t\right) \cdot a\right) \cdot x\right)\\
\mathbf{elif}\;i \leq 5.5 \cdot 10^{+196}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 \cdot i\\
\end{array}
\end{array}
if i < -1.0800000000000001e-69Initial program 68.7%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites74.0%
Taylor expanded in y around 0
Applied rewrites72.7%
if -1.0800000000000001e-69 < i < 5.49999999999999973e196Initial program 74.6%
Taylor expanded in i around 0
fp-cancel-sub-sign-invN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
distribute-rgt-inN/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
*-commutativeN/A
Applied rewrites72.2%
Taylor expanded in y around inf
Applied rewrites61.6%
if 5.49999999999999973e196 < i Initial program 76.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6481.4
Applied rewrites81.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* t i) b)))
(if (<= t -6.8e+205)
t_1
(if (<= t -2.45e+165)
(* (* (- a) x) t)
(if (<= t 2.6e+84)
(* (* c a) j)
(if (<= t 5.1e+157) t_1 (* (* (- t) x) a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) * b;
double tmp;
if (t <= -6.8e+205) {
tmp = t_1;
} else if (t <= -2.45e+165) {
tmp = (-a * x) * t;
} else if (t <= 2.6e+84) {
tmp = (c * a) * j;
} else if (t <= 5.1e+157) {
tmp = t_1;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (t * i) * b
if (t <= (-6.8d+205)) then
tmp = t_1
else if (t <= (-2.45d+165)) then
tmp = (-a * x) * t
else if (t <= 2.6d+84) then
tmp = (c * a) * j
else if (t <= 5.1d+157) then
tmp = t_1
else
tmp = (-t * x) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) * b;
double tmp;
if (t <= -6.8e+205) {
tmp = t_1;
} else if (t <= -2.45e+165) {
tmp = (-a * x) * t;
} else if (t <= 2.6e+84) {
tmp = (c * a) * j;
} else if (t <= 5.1e+157) {
tmp = t_1;
} else {
tmp = (-t * x) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * i) * b tmp = 0 if t <= -6.8e+205: tmp = t_1 elif t <= -2.45e+165: tmp = (-a * x) * t elif t <= 2.6e+84: tmp = (c * a) * j elif t <= 5.1e+157: tmp = t_1 else: tmp = (-t * x) * a return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) * b) tmp = 0.0 if (t <= -6.8e+205) tmp = t_1; elseif (t <= -2.45e+165) tmp = Float64(Float64(Float64(-a) * x) * t); elseif (t <= 2.6e+84) tmp = Float64(Float64(c * a) * j); elseif (t <= 5.1e+157) tmp = t_1; else tmp = Float64(Float64(Float64(-t) * x) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * i) * b; tmp = 0.0; if (t <= -6.8e+205) tmp = t_1; elseif (t <= -2.45e+165) tmp = (-a * x) * t; elseif (t <= 2.6e+84) tmp = (c * a) * j; elseif (t <= 5.1e+157) tmp = t_1; else tmp = (-t * x) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -6.8e+205], t$95$1, If[LessEqual[t, -2.45e+165], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 2.6e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 5.1e+157], t$95$1, N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t \cdot i\right) \cdot b\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\
\;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
\end{array}
\end{array}
if t < -6.8e205 or 2.6000000000000001e84 < t < 5.09999999999999999e157Initial program 65.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6464.3
Applied rewrites64.3%
Taylor expanded in z around 0
Applied rewrites56.4%
if -6.8e205 < t < -2.44999999999999993e165Initial program 86.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6499.8
Applied rewrites99.8%
Taylor expanded in x around inf
Applied rewrites85.6%
if -2.44999999999999993e165 < t < 2.6000000000000001e84Initial program 77.7%
Taylor expanded in j around -inf
Applied rewrites76.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6450.4
Applied rewrites50.4%
Taylor expanded in y around 0
Applied rewrites33.7%
if 5.09999999999999999e157 < t Initial program 53.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- a) x) t)) (t_2 (* (* t i) b)))
(if (<= t -6.8e+205)
t_2
(if (<= t -2.45e+165)
t_1
(if (<= t 2.6e+84) (* (* c a) j) (if (<= t 5.1e+157) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-a * x) * t;
double t_2 = (t * i) * b;
double tmp;
if (t <= -6.8e+205) {
tmp = t_2;
} else if (t <= -2.45e+165) {
tmp = t_1;
} else if (t <= 2.6e+84) {
tmp = (c * a) * j;
} else if (t <= 5.1e+157) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (-a * x) * t
t_2 = (t * i) * b
if (t <= (-6.8d+205)) then
tmp = t_2
else if (t <= (-2.45d+165)) then
tmp = t_1
else if (t <= 2.6d+84) then
tmp = (c * a) * j
else if (t <= 5.1d+157) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-a * x) * t;
double t_2 = (t * i) * b;
double tmp;
if (t <= -6.8e+205) {
tmp = t_2;
} else if (t <= -2.45e+165) {
tmp = t_1;
} else if (t <= 2.6e+84) {
tmp = (c * a) * j;
} else if (t <= 5.1e+157) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-a * x) * t t_2 = (t * i) * b tmp = 0 if t <= -6.8e+205: tmp = t_2 elif t <= -2.45e+165: tmp = t_1 elif t <= 2.6e+84: tmp = (c * a) * j elif t <= 5.1e+157: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-a) * x) * t) t_2 = Float64(Float64(t * i) * b) tmp = 0.0 if (t <= -6.8e+205) tmp = t_2; elseif (t <= -2.45e+165) tmp = t_1; elseif (t <= 2.6e+84) tmp = Float64(Float64(c * a) * j); elseif (t <= 5.1e+157) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-a * x) * t; t_2 = (t * i) * b; tmp = 0.0; if (t <= -6.8e+205) tmp = t_2; elseif (t <= -2.45e+165) tmp = t_1; elseif (t <= 2.6e+84) tmp = (c * a) * j; elseif (t <= 5.1e+157) tmp = t_2; 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[((-a) * x), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -6.8e+205], t$95$2, If[LessEqual[t, -2.45e+165], t$95$1, If[LessEqual[t, 2.6e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 5.1e+157], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-a\right) \cdot x\right) \cdot t\\
t_2 := \left(t \cdot i\right) \cdot b\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.8e205 or 2.6000000000000001e84 < t < 5.09999999999999999e157Initial program 65.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6464.3
Applied rewrites64.3%
Taylor expanded in z around 0
Applied rewrites56.4%
if -6.8e205 < t < -2.44999999999999993e165 or 5.09999999999999999e157 < t Initial program 59.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6482.3
Applied rewrites82.3%
Taylor expanded in x around inf
Applied rewrites63.1%
if -2.44999999999999993e165 < t < 2.6000000000000001e84Initial program 77.7%
Taylor expanded in j around -inf
Applied rewrites76.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6450.4
Applied rewrites50.4%
Taylor expanded in y around 0
Applied rewrites33.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* i b)) t)))
(if (<= t -5.8e+144)
t_1
(if (<= t 5.6e-190)
(* (fma (- y) i (* a c)) j)
(if (<= t 1.8e+74) (* (fma (- z) b (* j a)) c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (i * b)) * t;
double tmp;
if (t <= -5.8e+144) {
tmp = t_1;
} else if (t <= 5.6e-190) {
tmp = fma(-y, i, (a * c)) * j;
} else if (t <= 1.8e+74) {
tmp = fma(-z, b, (j * a)) * c;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(i * b)) * t) tmp = 0.0 if (t <= -5.8e+144) tmp = t_1; elseif (t <= 5.6e-190) tmp = Float64(fma(Float64(-y), i, Float64(a * c)) * j); elseif (t <= 1.8e+74) tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.8e+144], t$95$1, If[LessEqual[t, 5.6e-190], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 1.8e+74], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+144}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-190}:\\
\;\;\;\;\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+74}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.79999999999999996e144 or 1.79999999999999994e74 < t Initial program 63.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.6
Applied rewrites76.6%
if -5.79999999999999996e144 < t < 5.60000000000000011e-190Initial program 80.1%
Taylor expanded in j around -inf
Applied rewrites77.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6455.5
Applied rewrites55.5%
if 5.60000000000000011e-190 < t < 1.79999999999999994e74Initial program 69.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.5
Applied rewrites57.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* i b)) t)))
(if (<= t -6.5e+141)
t_1
(if (<= t -1.66e+109)
(* (fma (- b) c (* y x)) z)
(if (<= t 4.3e+88) (* (fma (- j) i (* 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 = fma(-a, x, (i * b)) * t;
double tmp;
if (t <= -6.5e+141) {
tmp = t_1;
} else if (t <= -1.66e+109) {
tmp = fma(-b, c, (y * x)) * z;
} else if (t <= 4.3e+88) {
tmp = fma(-j, i, (z * x)) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(i * b)) * t) tmp = 0.0 if (t <= -6.5e+141) tmp = t_1; elseif (t <= -1.66e+109) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (t <= 4.3e+88) tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); 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) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$1, If[LessEqual[t, -1.66e+109], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 4.3e+88], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.66 \cdot 10^{+109}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+88}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.50000000000000053e141 or 4.29999999999999974e88 < t Initial program 63.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.2
Applied rewrites78.2%
if -6.50000000000000053e141 < t < -1.6599999999999999e109Initial program 75.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.2
Applied rewrites75.2%
if -1.6599999999999999e109 < t < 4.29999999999999974e88Initial program 77.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6443.5
Applied rewrites43.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -5.8e+144) (not (<= t 4.3e+88))) (* (fma (- a) x (* i b)) t) (* (fma (- y) i (* a c)) j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5.8e+144) || !(t <= 4.3e+88)) {
tmp = fma(-a, x, (i * b)) * t;
} else {
tmp = fma(-y, i, (a * c)) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -5.8e+144) || !(t <= 4.3e+88)) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); else tmp = Float64(fma(Float64(-y), i, Float64(a * c)) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -5.8e+144], N[Not[LessEqual[t, 4.3e+88]], $MachinePrecision]], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{+144} \lor \neg \left(t \leq 4.3 \cdot 10^{+88}\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j\\
\end{array}
\end{array}
if t < -5.79999999999999996e144 or 4.29999999999999974e88 < t Initial program 63.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.2
Applied rewrites78.2%
if -5.79999999999999996e144 < t < 4.29999999999999974e88Initial program 77.1%
Taylor expanded in j around -inf
Applied rewrites75.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6451.4
Applied rewrites51.4%
Final simplification59.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.36e+73) (not (<= a 8.2e-30))) (* (fma (- x) t (* j c)) a) (* (fma (- j) i (* z x)) y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.36e+73) || !(a <= 8.2e-30)) {
tmp = fma(-x, t, (j * c)) * a;
} else {
tmp = fma(-j, i, (z * x)) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.36e+73) || !(a <= 8.2e-30)) tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); else tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.36e+73], N[Not[LessEqual[a, 8.2e-30]], $MachinePrecision]], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.36 \cdot 10^{+73} \lor \neg \left(a \leq 8.2 \cdot 10^{-30}\right):\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if a < -2.36000000000000008e73 or 8.2000000000000007e-30 < a Initial program 69.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.9
Applied rewrites65.9%
if -2.36000000000000008e73 < a < 8.2000000000000007e-30Initial program 76.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.0
Applied rewrites52.0%
Final simplification58.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -6.5e+141) (not (<= t 1.35e+40))) (* (fma (- a) x (* i b)) t) (* (fma (- b) c (* 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 ((t <= -6.5e+141) || !(t <= 1.35e+40)) {
tmp = fma(-a, x, (i * b)) * t;
} else {
tmp = fma(-b, c, (y * x)) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -6.5e+141) || !(t <= 1.35e+40)) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); else tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -6.5e+141], N[Not[LessEqual[t, 1.35e+40]], $MachinePrecision]], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+141} \lor \neg \left(t \leq 1.35 \cdot 10^{+40}\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if t < -6.50000000000000053e141 or 1.35000000000000005e40 < t Initial program 64.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6474.5
Applied rewrites74.5%
if -6.50000000000000053e141 < t < 1.35000000000000005e40Initial program 77.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.8
Applied rewrites39.8%
Final simplification51.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.95e+141) (not (<= t 2100000.0))) (* (fma (- a) x (* i b)) t) (* (* c a) j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.95e+141) || !(t <= 2100000.0)) {
tmp = fma(-a, x, (i * b)) * t;
} else {
tmp = (c * a) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.95e+141) || !(t <= 2100000.0)) tmp = Float64(fma(Float64(-a), x, Float64(i * b)) * t); else tmp = Float64(Float64(c * a) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.95e+141], N[Not[LessEqual[t, 2100000.0]], $MachinePrecision]], N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+141} \lor \neg \left(t \leq 2100000\right):\\
\;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\end{array}
\end{array}
if t < -1.94999999999999996e141 or 2.1e6 < t Initial program 63.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.1
Applied rewrites73.1%
if -1.94999999999999996e141 < t < 2.1e6Initial program 78.0%
Taylor expanded in j around -inf
Applied rewrites76.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6452.1
Applied rewrites52.1%
Taylor expanded in y around 0
Applied rewrites34.4%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.06e+122)
(* (* y x) z)
(if (<= y -2.6e-82)
(* (* i b) t)
(if (<= y 6e-15) (* (* c j) 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 tmp;
if (y <= -1.06e+122) {
tmp = (y * x) * z;
} else if (y <= -2.6e-82) {
tmp = (i * b) * t;
} else if (y <= 6e-15) {
tmp = (c * j) * a;
} 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 (y <= (-1.06d+122)) then
tmp = (y * x) * z
else if (y <= (-2.6d-82)) then
tmp = (i * b) * t
else if (y <= 6d-15) then
tmp = (c * j) * a
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 (y <= -1.06e+122) {
tmp = (y * x) * z;
} else if (y <= -2.6e-82) {
tmp = (i * b) * t;
} else if (y <= 6e-15) {
tmp = (c * j) * a;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.06e+122: tmp = (y * x) * z elif y <= -2.6e-82: tmp = (i * b) * t elif y <= 6e-15: tmp = (c * j) * a else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.06e+122) tmp = Float64(Float64(y * x) * z); elseif (y <= -2.6e-82) tmp = Float64(Float64(i * b) * t); elseif (y <= 6e-15) tmp = Float64(Float64(c * j) * a); 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 (y <= -1.06e+122) tmp = (y * x) * z; elseif (y <= -2.6e-82) tmp = (i * b) * t; elseif (y <= 6e-15) tmp = (c * j) * a; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.06e+122], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y, -2.6e-82], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 6e-15], N[(N[(c * j), $MachinePrecision] * a), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.06 \cdot 10^{+122}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-82}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-15}:\\
\;\;\;\;\left(c \cdot j\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if y < -1.06000000000000002e122Initial program 63.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.5
Applied rewrites51.5%
Taylor expanded in x around inf
Applied rewrites48.7%
if -1.06000000000000002e122 < y < -2.6e-82Initial program 78.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.3
Applied rewrites45.3%
Taylor expanded in x around 0
Applied rewrites28.8%
if -2.6e-82 < y < 6e-15Initial program 82.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.7
Applied rewrites53.7%
Taylor expanded in x around 0
Applied rewrites34.9%
if 6e-15 < y Initial program 58.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.9
Applied rewrites50.9%
Taylor expanded in x around inf
Applied rewrites41.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -80.0) (* (* c a) j) (if (<= a 7.8e-70) (* (- i) (* y j)) (* (* j a) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -80.0) {
tmp = (c * a) * j;
} else if (a <= 7.8e-70) {
tmp = -i * (y * j);
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-80.0d0)) then
tmp = (c * a) * j
else if (a <= 7.8d-70) then
tmp = -i * (y * j)
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -80.0) {
tmp = (c * a) * j;
} else if (a <= 7.8e-70) {
tmp = -i * (y * j);
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -80.0: tmp = (c * a) * j elif a <= 7.8e-70: tmp = -i * (y * j) else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -80.0) tmp = Float64(Float64(c * a) * j); elseif (a <= 7.8e-70) tmp = Float64(Float64(-i) * Float64(y * j)); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -80.0) tmp = (c * a) * j; elseif (a <= 7.8e-70) tmp = -i * (y * j); else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -80.0], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 7.8e-70], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -80:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{-70}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if a < -80Initial program 69.0%
Taylor expanded in j around -inf
Applied rewrites79.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6456.0
Applied rewrites56.0%
Taylor expanded in y around 0
Applied rewrites46.0%
if -80 < a < 7.80000000000000038e-70Initial program 78.3%
Taylor expanded in c around 0
+-commutativeN/A
associate--l+N/A
mul-1-negN/A
distribute-lft-neg-inN/A
fp-cancel-sign-subN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lft-identityN/A
metadata-evalN/A
distribute-lft-inN/A
fp-cancel-sub-sign-invN/A
Applied rewrites65.6%
Taylor expanded in j around inf
Applied rewrites31.6%
if 7.80000000000000038e-70 < a Initial program 69.2%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.0
Applied rewrites53.0%
Taylor expanded in z around 0
Applied rewrites38.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -1.3e+53) (not (<= x 1.45e+113))) (* (* z y) x) (* (* i b) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.3e+53) || !(x <= 1.45e+113)) {
tmp = (z * y) * x;
} else {
tmp = (i * b) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-1.3d+53)) .or. (.not. (x <= 1.45d+113))) then
tmp = (z * y) * x
else
tmp = (i * b) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -1.3e+53) || !(x <= 1.45e+113)) {
tmp = (z * y) * x;
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -1.3e+53) or not (x <= 1.45e+113): tmp = (z * y) * x else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -1.3e+53) || !(x <= 1.45e+113)) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -1.3e+53) || ~((x <= 1.45e+113))) tmp = (z * y) * x; else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -1.3e+53], N[Not[LessEqual[x, 1.45e+113]], $MachinePrecision]], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+53} \lor \neg \left(x \leq 1.45 \cdot 10^{+113}\right):\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if x < -1.29999999999999999e53 or 1.44999999999999992e113 < x Initial program 67.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.0
Applied rewrites46.0%
Taylor expanded in x around inf
Applied rewrites38.0%
if -1.29999999999999999e53 < x < 1.44999999999999992e113Initial program 76.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6434.8
Applied rewrites34.8%
Taylor expanded in x around 0
Applied rewrites27.1%
Final simplification31.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.95e+169) (* (* t i) b) (if (<= t 2.2e+84) (* (* c a) j) (* (* i b) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.95e+169) {
tmp = (t * i) * b;
} else if (t <= 2.2e+84) {
tmp = (c * a) * j;
} else {
tmp = (i * b) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.95d+169)) then
tmp = (t * i) * b
else if (t <= 2.2d+84) then
tmp = (c * a) * j
else
tmp = (i * b) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.95e+169) {
tmp = (t * i) * b;
} else if (t <= 2.2e+84) {
tmp = (c * a) * j;
} else {
tmp = (i * b) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.95e+169: tmp = (t * i) * b elif t <= 2.2e+84: tmp = (c * a) * j else: tmp = (i * b) * t return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.95e+169) tmp = Float64(Float64(t * i) * b); elseif (t <= 2.2e+84) tmp = Float64(Float64(c * a) * j); else tmp = Float64(Float64(i * b) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.95e+169) tmp = (t * i) * b; elseif (t <= 2.2e+84) tmp = (c * a) * j; else tmp = (i * b) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.95e+169], N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 2.2e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+169}:\\
\;\;\;\;\left(t \cdot i\right) \cdot b\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+84}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\end{array}
\end{array}
if t < -1.94999999999999991e169Initial program 56.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
+-commutativeN/A
distribute-lft-neg-outN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6456.8
Applied rewrites56.8%
Taylor expanded in z around 0
Applied rewrites57.0%
if -1.94999999999999991e169 < t < 2.1999999999999998e84Initial program 77.9%
Taylor expanded in j around -inf
Applied rewrites76.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in y around 0
Applied rewrites33.4%
if 2.1999999999999998e84 < t Initial program 62.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.6
Applied rewrites75.6%
Taylor expanded in x around 0
Applied rewrites39.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -6.5e-15) (* (* c a) j) (if (<= a 4.4e-30) (* (* y x) z) (* (* j a) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.5e-15) {
tmp = (c * a) * j;
} else if (a <= 4.4e-30) {
tmp = (y * x) * z;
} else {
tmp = (j * a) * c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-6.5d-15)) then
tmp = (c * a) * j
else if (a <= 4.4d-30) then
tmp = (y * x) * z
else
tmp = (j * a) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.5e-15) {
tmp = (c * a) * j;
} else if (a <= 4.4e-30) {
tmp = (y * x) * z;
} else {
tmp = (j * a) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.5e-15: tmp = (c * a) * j elif a <= 4.4e-30: tmp = (y * x) * z else: tmp = (j * a) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.5e-15) tmp = Float64(Float64(c * a) * j); elseif (a <= 4.4e-30) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(j * a) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -6.5e-15) tmp = (c * a) * j; elseif (a <= 4.4e-30) tmp = (y * x) * z; else tmp = (j * a) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.5e-15], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.4e-30], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if a < -6.49999999999999991e-15Initial program 70.0%
Taylor expanded in j around -inf
Applied rewrites80.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6456.2
Applied rewrites56.2%
Taylor expanded in y around 0
Applied rewrites45.1%
if -6.49999999999999991e-15 < a < 4.39999999999999967e-30Initial program 76.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.5
Applied rewrites44.5%
Taylor expanded in x around inf
Applied rewrites27.6%
if 4.39999999999999967e-30 < a Initial program 70.0%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.3
Applied rewrites55.3%
Taylor expanded in z around 0
Applied rewrites41.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -6.5e-15) (* (* c a) j) (if (<= a 4.4e-30) (* (* y x) z) (* (* c j) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.5e-15) {
tmp = (c * a) * j;
} else if (a <= 4.4e-30) {
tmp = (y * x) * z;
} else {
tmp = (c * j) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-6.5d-15)) then
tmp = (c * a) * j
else if (a <= 4.4d-30) then
tmp = (y * x) * z
else
tmp = (c * j) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.5e-15) {
tmp = (c * a) * j;
} else if (a <= 4.4e-30) {
tmp = (y * x) * z;
} else {
tmp = (c * j) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.5e-15: tmp = (c * a) * j elif a <= 4.4e-30: tmp = (y * x) * z else: tmp = (c * j) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.5e-15) tmp = Float64(Float64(c * a) * j); elseif (a <= 4.4e-30) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(c * j) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -6.5e-15) tmp = (c * a) * j; elseif (a <= 4.4e-30) tmp = (y * x) * z; else tmp = (c * j) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.5e-15], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.4e-30], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(c * j), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot j\right) \cdot a\\
\end{array}
\end{array}
if a < -6.49999999999999991e-15Initial program 70.0%
Taylor expanded in j around -inf
Applied rewrites80.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6456.2
Applied rewrites56.2%
Taylor expanded in y around 0
Applied rewrites45.1%
if -6.49999999999999991e-15 < a < 4.39999999999999967e-30Initial program 76.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.5
Applied rewrites44.5%
Taylor expanded in x around inf
Applied rewrites27.6%
if 4.39999999999999967e-30 < a Initial program 70.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.1
Applied rewrites64.1%
Taylor expanded in x around 0
Applied rewrites41.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= x -1.3e+53) (* (* z y) x) (if (<= x 1.45e+113) (* (* i b) t) (* (* 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 (x <= -1.3e+53) {
tmp = (z * y) * x;
} else if (x <= 1.45e+113) {
tmp = (i * b) * t;
} else {
tmp = (y * x) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.3d+53)) then
tmp = (z * y) * x
else if (x <= 1.45d+113) then
tmp = (i * b) * t
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.3e+53) {
tmp = (z * y) * x;
} else if (x <= 1.45e+113) {
tmp = (i * b) * t;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.3e+53: tmp = (z * y) * x elif x <= 1.45e+113: tmp = (i * b) * t else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.3e+53) tmp = Float64(Float64(z * y) * x); elseif (x <= 1.45e+113) tmp = Float64(Float64(i * b) * t); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.3e+53) tmp = (z * y) * x; elseif (x <= 1.45e+113) tmp = (i * b) * t; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.3e+53], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, 1.45e+113], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+53}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if x < -1.29999999999999999e53Initial program 62.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.4
Applied rewrites45.4%
Taylor expanded in x around inf
Applied rewrites38.6%
if -1.29999999999999999e53 < x < 1.44999999999999992e113Initial program 76.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6434.8
Applied rewrites34.8%
Taylor expanded in x around 0
Applied rewrites27.1%
if 1.44999999999999992e113 < x Initial program 75.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.7
Applied rewrites46.7%
Taylor expanded in x around inf
Applied rewrites39.4%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * y) * x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * y) * x;
}
def code(x, y, z, t, a, b, c, i, j): return (z * y) * x
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * y) * x) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * y) * x; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot y\right) \cdot x
\end{array}
Initial program 73.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6435.9
Applied rewrites35.9%
Taylor expanded in x around inf
Applied rewrites20.0%
(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 2024339
(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)))))