
(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 26 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
(fma
a
(fma j c (- 0.0 (* t x)))
(fma b (- (* t i) (* c z)) (* y (fma j (- 0.0 i) (* x z)))))))
(if (<= a -1050000000.0)
t_1
(if (<= a 4.8e+14)
(fma
j
(- (* a c) (* i y))
(fma z (fma c (- 0.0 b) (* x y)) (* t (fma a (- 0.0 x) (* b 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(a, fma(j, c, (0.0 - (t * x))), fma(b, ((t * i) - (c * z)), (y * fma(j, (0.0 - i), (x * z)))));
double tmp;
if (a <= -1050000000.0) {
tmp = t_1;
} else if (a <= 4.8e+14) {
tmp = fma(j, ((a * c) - (i * y)), fma(z, fma(c, (0.0 - b), (x * y)), (t * fma(a, (0.0 - x), (b * i)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))))) tmp = 0.0 if (a <= -1050000000.0) tmp = t_1; elseif (a <= 4.8e+14) tmp = fma(j, Float64(Float64(a * c) - Float64(i * y)), fma(z, fma(c, Float64(0.0 - b), Float64(x * y)), Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1050000000.0], t$95$1, If[LessEqual[a, 4.8e+14], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\right)\right)\\
\mathbf{if}\;a \leq -1050000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - i \cdot y, \mathsf{fma}\left(z, \mathsf{fma}\left(c, 0 - b, x \cdot y\right), t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.05e9 or 4.8e14 < a Initial program 64.1%
Taylor expanded in y around 0
Simplified86.5%
if -1.05e9 < a < 4.8e14Initial program 80.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
Simplified88.6%
Final simplification87.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t 6.5e-85)
(fma
a
(fma j c (- 0.0 (* t x)))
(fma b (- (* t i) (* c z)) (* y (fma j (- 0.0 i) (* x z)))))
(*
t
(-
(fma
j
(/ (- (* a c) (* i y)) t)
(+ (/ (* z (fma c (- 0.0 b) (* x y))) t) (* b i)))
(* a x)))))
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-85) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), fma(b, ((t * i) - (c * z)), (y * fma(j, (0.0 - i), (x * z)))));
} else {
tmp = t * (fma(j, (((a * c) - (i * y)) / t), (((z * fma(c, (0.0 - b), (x * y))) / t) + (b * i))) - (a * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 6.5e-85) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))))); else tmp = Float64(t * Float64(fma(j, Float64(Float64(Float64(a * c) - Float64(i * y)) / t), Float64(Float64(Float64(z * fma(c, Float64(0.0 - b), Float64(x * y))) / t) + Float64(b * i))) - Float64(a * x))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 6.5e-85], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(j * N[(N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6.5 \cdot 10^{-85}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\mathsf{fma}\left(j, \frac{a \cdot c - i \cdot y}{t}, \frac{z \cdot \mathsf{fma}\left(c, 0 - b, x \cdot y\right)}{t} + b \cdot i\right) - a \cdot x\right)\\
\end{array}
\end{array}
if t < 6.5e-85Initial program 73.5%
Taylor expanded in y around 0
Simplified85.2%
if 6.5e-85 < t Initial program 70.3%
Taylor expanded in t around inf
Simplified89.1%
Final simplification86.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t 6.5e-85)
(fma
a
(fma j c (- 0.0 (* t x)))
(fma b (- (* t i) (* c z)) (* y (fma j (- 0.0 i) (* x z)))))
(*
t
(-
(fma
j
(/ (- (* a c) (* i y)) t)
(fma z (/ (fma b (- 0.0 c) (* x y)) t) (* b i)))
(* a x)))))
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-85) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), fma(b, ((t * i) - (c * z)), (y * fma(j, (0.0 - i), (x * z)))));
} else {
tmp = t * (fma(j, (((a * c) - (i * y)) / t), fma(z, (fma(b, (0.0 - c), (x * y)) / t), (b * i))) - (a * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 6.5e-85) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))))); else tmp = Float64(t * Float64(fma(j, Float64(Float64(Float64(a * c) - Float64(i * y)) / t), fma(z, Float64(fma(b, Float64(0.0 - c), Float64(x * y)) / t), Float64(b * i))) - Float64(a * x))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 6.5e-85], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(j * N[(N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(z * N[(N[(b * N[(0.0 - c), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 6.5 \cdot 10^{-85}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(\mathsf{fma}\left(j, \frac{a \cdot c - i \cdot y}{t}, \mathsf{fma}\left(z, \frac{\mathsf{fma}\left(b, 0 - c, x \cdot y\right)}{t}, b \cdot i\right)\right) - a \cdot x\right)\\
\end{array}
\end{array}
if t < 6.5e-85Initial program 73.5%
Taylor expanded in y around 0
Simplified85.2%
if 6.5e-85 < t Initial program 70.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
Simplified86.4%
Taylor expanded in t around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified89.1%
Final simplification86.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z 4.7e+198)
(fma
a
(fma j c (- 0.0 (* t x)))
(fma b (- (* t i) (* c z)) (* y (fma j (- 0.0 i) (* x z)))))
(* z (fma c (- 0.0 b) (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 4.7e+198) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), fma(b, ((t * i) - (c * z)), (y * fma(j, (0.0 - i), (x * z)))));
} else {
tmp = z * fma(c, (0.0 - b), (x * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= 4.7e+198) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))))); else tmp = Float64(z * fma(c, Float64(0.0 - b), Float64(x * y))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, 4.7e+198], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 4.7 \cdot 10^{+198}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, 0 - b, x \cdot y\right)\\
\end{array}
\end{array}
if z < 4.7000000000000002e198Initial program 73.7%
Taylor expanded in y around 0
Simplified84.7%
if 4.7000000000000002e198 < z Initial program 63.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6489.2
Simplified89.2%
Final simplification85.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.7e+121)
(* y (- (* x z) (* j i)))
(if (<= y -1.12e+43)
(* z (fma c (- 0.0 b) (* x y)))
(if (<= y -1.1e-139)
(* t (fma a (- 0.0 x) (* b i)))
(if (<= y -9e-250)
(* c (- (* a j) (* b z)))
(if (<= y 600000000.0)
(* a (fma j c (- 0.0 (* t x))))
(* y (fma j (- 0.0 i) (* x z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.7e+121) {
tmp = y * ((x * z) - (j * i));
} else if (y <= -1.12e+43) {
tmp = z * fma(c, (0.0 - b), (x * y));
} else if (y <= -1.1e-139) {
tmp = t * fma(a, (0.0 - x), (b * i));
} else if (y <= -9e-250) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 600000000.0) {
tmp = a * fma(j, c, (0.0 - (t * x)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.7e+121) tmp = Float64(y * Float64(Float64(x * z) - Float64(j * i))); elseif (y <= -1.12e+43) tmp = Float64(z * fma(c, Float64(0.0 - b), Float64(x * y))); elseif (y <= -1.1e-139) tmp = Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))); elseif (y <= -9e-250) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (y <= 600000000.0) tmp = Float64(a * fma(j, c, Float64(0.0 - Float64(t * x)))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.7e+121], N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.12e+43], N[(z * N[(c * N[(0.0 - b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.1e-139], N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9e-250], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 600000000.0], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{+121}:\\
\;\;\;\;y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{elif}\;y \leq -1.12 \cdot 10^{+43}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, 0 - b, x \cdot y\right)\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-139}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-250}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;y \leq 600000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, 0 - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -1.70000000000000005e121Initial program 66.8%
Taylor expanded in y around 0
Simplified82.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6477.0
Simplified77.0%
if -1.70000000000000005e121 < y < -1.12e43Initial program 68.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6468.9
Simplified68.9%
if -1.12e43 < y < -1.10000000000000005e-139Initial program 64.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6468.3
Simplified68.3%
if -1.10000000000000005e-139 < y < -8.99999999999999987e-250Initial program 73.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6477.1
Simplified77.1%
if -8.99999999999999987e-250 < y < 6e8Initial program 76.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
if 6e8 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6477.4
Simplified77.4%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.55e+91)
(+ (* y (* x z)) (* j (- (* a c) (* i y))))
(if (<= y -5.3e-160)
(fma b (- (* t i) (* c z)) (* x (- (* z y) (* t a))))
(if (<= y 4.3e+63)
(fma a (fma j c (- 0.0 (* t x))) (* b (* t i)))
(* y (fma j (- 0.0 i) (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.55e+91) {
tmp = (y * (x * z)) + (j * ((a * c) - (i * y)));
} else if (y <= -5.3e-160) {
tmp = fma(b, ((t * i) - (c * z)), (x * ((z * y) - (t * a))));
} else if (y <= 4.3e+63) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), (b * (t * i)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.55e+91) tmp = Float64(Float64(y * Float64(x * z)) + Float64(j * Float64(Float64(a * c) - Float64(i * y)))); elseif (y <= -5.3e-160) tmp = fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(x * Float64(Float64(z * y) - Float64(t * a)))); elseif (y <= 4.3e+63) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), Float64(b * Float64(t * i))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.55e+91], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.3e-160], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+63], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+91}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;y \leq -5.3 \cdot 10^{-160}:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - c \cdot z, x \cdot \left(z \cdot y - t \cdot a\right)\right)\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), b \cdot \left(t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -1.54999999999999999e91Initial program 64.0%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6477.0
Simplified77.0%
if -1.54999999999999999e91 < y < -5.3000000000000001e-160Initial program 70.2%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
sub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6479.6
Simplified79.6%
if -5.3000000000000001e-160 < y < 4.3e63Initial program 75.8%
Taylor expanded in y around 0
Simplified76.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6470.1
Simplified70.1%
if 4.3e63 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.2
Simplified81.2%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -4.2e+32)
(fma j (- (* a c) (* i y)) (* x (* z y)))
(if (<= y -4.2e-139)
(* t (fma a (- 0.0 x) (* b i)))
(if (<= y -6.2e-251)
(* c (- (* a j) (* b z)))
(if (<= y 520000000000.0)
(* a (fma j c (- 0.0 (* t x))))
(* y (fma j (- 0.0 i) (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.2e+32) {
tmp = fma(j, ((a * c) - (i * y)), (x * (z * y)));
} else if (y <= -4.2e-139) {
tmp = t * fma(a, (0.0 - x), (b * i));
} else if (y <= -6.2e-251) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 520000000000.0) {
tmp = a * fma(j, c, (0.0 - (t * x)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.2e+32) tmp = fma(j, Float64(Float64(a * c) - Float64(i * y)), Float64(x * Float64(z * y))); elseif (y <= -4.2e-139) tmp = Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))); elseif (y <= -6.2e-251) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (y <= 520000000000.0) tmp = Float64(a * fma(j, c, Float64(0.0 - Float64(t * x)))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.2e+32], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4.2e-139], N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.2e-251], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 520000000000.0], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+32}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - i \cdot y, x \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;y \leq -4.2 \cdot 10^{-139}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\\
\mathbf{elif}\;y \leq -6.2 \cdot 10^{-251}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;y \leq 520000000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, 0 - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -4.2000000000000001e32Initial program 67.4%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
Simplified62.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.0
Simplified73.0%
if -4.2000000000000001e32 < y < -4.20000000000000016e-139Initial program 64.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6468.3
Simplified68.3%
if -4.20000000000000016e-139 < y < -6.20000000000000006e-251Initial program 73.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6477.1
Simplified77.1%
if -6.20000000000000006e-251 < y < 5.2e11Initial program 76.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
if 5.2e11 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6477.4
Simplified77.4%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.4e+47)
(* y (- (* x z) (* j i)))
(if (<= y -1.18e-138)
(* t (fma a (- 0.0 x) (* b i)))
(if (<= y -4e-251)
(* c (- (* a j) (* b z)))
(if (<= y 900000000000.0)
(* a (fma j c (- 0.0 (* t x))))
(* y (fma j (- 0.0 i) (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.4e+47) {
tmp = y * ((x * z) - (j * i));
} else if (y <= -1.18e-138) {
tmp = t * fma(a, (0.0 - x), (b * i));
} else if (y <= -4e-251) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 900000000000.0) {
tmp = a * fma(j, c, (0.0 - (t * x)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.4e+47) tmp = Float64(y * Float64(Float64(x * z) - Float64(j * i))); elseif (y <= -1.18e-138) tmp = Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))); elseif (y <= -4e-251) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (y <= 900000000000.0) tmp = Float64(a * fma(j, c, Float64(0.0 - Float64(t * x)))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.4e+47], N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.18e-138], N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4e-251], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 900000000000.0], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+47}:\\
\;\;\;\;y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{elif}\;y \leq -1.18 \cdot 10^{-138}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-251}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;y \leq 900000000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, 0 - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -2.40000000000000019e47Initial program 67.4%
Taylor expanded in y around 0
Simplified81.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6464.5
Simplified64.5%
if -2.40000000000000019e47 < y < -1.18e-138Initial program 64.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6468.3
Simplified68.3%
if -1.18e-138 < y < -4.00000000000000006e-251Initial program 73.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6477.1
Simplified77.1%
if -4.00000000000000006e-251 < y < 9e11Initial program 76.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
if 9e11 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6477.4
Simplified77.4%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* j i)))))
(if (<= y -2.5e+44)
t_1
(if (<= y -2.4e-138)
(* t (fma a (- 0.0 x) (* b i)))
(if (<= y -1.06e-250)
(* c (- (* a j) (* b z)))
(if (<= y 255000000000.0) (* a (fma j c (- 0.0 (* 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 = y * ((x * z) - (j * i));
double tmp;
if (y <= -2.5e+44) {
tmp = t_1;
} else if (y <= -2.4e-138) {
tmp = t * fma(a, (0.0 - x), (b * i));
} else if (y <= -1.06e-250) {
tmp = c * ((a * j) - (b * z));
} else if (y <= 255000000000.0) {
tmp = a * fma(j, c, (0.0 - (t * x)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(j * i))) tmp = 0.0 if (y <= -2.5e+44) tmp = t_1; elseif (y <= -2.4e-138) tmp = Float64(t * fma(a, Float64(0.0 - x), Float64(b * i))); elseif (y <= -1.06e-250) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (y <= 255000000000.0) tmp = Float64(a * fma(j, c, Float64(0.0 - Float64(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[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.5e+44], t$95$1, If[LessEqual[y, -2.4e-138], N[(t * N[(a * N[(0.0 - x), $MachinePrecision] + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.06e-250], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 255000000000.0], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-138}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, 0 - x, b \cdot i\right)\\
\mathbf{elif}\;y \leq -1.06 \cdot 10^{-250}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;y \leq 255000000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, 0 - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.4999999999999998e44 or 2.55e11 < y Initial program 72.3%
Taylor expanded in y around 0
Simplified86.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6471.6
Simplified71.6%
if -2.4999999999999998e44 < y < -2.3999999999999999e-138Initial program 64.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6468.3
Simplified68.3%
if -2.3999999999999999e-138 < y < -1.05999999999999993e-250Initial program 73.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6477.1
Simplified77.1%
if -1.05999999999999993e-250 < y < 2.55e11Initial program 76.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1e+52)
(+ (* y (* x z)) (* j (- (* a c) (* i y))))
(if (<= y 3.3e+61)
(fma a (fma j c (- 0.0 (* t x))) (* b (* t i)))
(* y (fma j (- 0.0 i) (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1e+52) {
tmp = (y * (x * z)) + (j * ((a * c) - (i * y)));
} else if (y <= 3.3e+61) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), (b * (t * i)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1e+52) tmp = Float64(Float64(y * Float64(x * z)) + Float64(j * Float64(Float64(a * c) - Float64(i * y)))); elseif (y <= 3.3e+61) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), Float64(b * Float64(t * i))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1e+52], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+61], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+61}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), b \cdot \left(t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -9.9999999999999999e51Initial program 66.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.1
Simplified76.1%
if -9.9999999999999999e51 < y < 3.2999999999999998e61Initial program 73.4%
Taylor expanded in y around 0
Simplified78.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6468.2
Simplified68.2%
if 3.2999999999999998e61 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.2
Simplified81.2%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.6e+49)
(fma j (- (* a c) (* i y)) (* x (* z y)))
(if (<= y 1.65e+61)
(fma a (fma j c (- 0.0 (* t x))) (* b (* t i)))
(* y (fma j (- 0.0 i) (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.6e+49) {
tmp = fma(j, ((a * c) - (i * y)), (x * (z * y)));
} else if (y <= 1.65e+61) {
tmp = fma(a, fma(j, c, (0.0 - (t * x))), (b * (t * i)));
} else {
tmp = y * fma(j, (0.0 - i), (x * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.6e+49) tmp = fma(j, Float64(Float64(a * c) - Float64(i * y)), Float64(x * Float64(z * y))); elseif (y <= 1.65e+61) tmp = fma(a, fma(j, c, Float64(0.0 - Float64(t * x))), Float64(b * Float64(t * i))); else tmp = Float64(y * fma(j, Float64(0.0 - i), Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.6e+49], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+61], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(j * N[(0.0 - i), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+49}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - i \cdot y, x \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+61}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, 0 - t \cdot x\right), b \cdot \left(t \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, 0 - i, x \cdot z\right)\\
\end{array}
\end{array}
if y < -2.59999999999999989e49Initial program 66.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
Simplified61.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6474.1
Simplified74.1%
if -2.59999999999999989e49 < y < 1.6499999999999999e61Initial program 73.4%
Taylor expanded in y around 0
Simplified78.9%
Taylor expanded in t around inf
*-lowering-*.f64N/A
*-lowering-*.f6468.2
Simplified68.2%
if 1.6499999999999999e61 < y Initial program 76.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6481.2
Simplified81.2%
Final simplification72.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j (- (* a c) (* i y)) (* x (* z y)))))
(if (<= j -1.26e-129)
t_1
(if (<= j 2.65e-17) (fma x (- (* z y) (* t a)) (* 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(j, ((a * c) - (i * y)), (x * (z * y)));
double tmp;
if (j <= -1.26e-129) {
tmp = t_1;
} else if (j <= 2.65e-17) {
tmp = fma(x, ((z * y) - (t * a)), (i * (t * b)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, Float64(Float64(a * c) - Float64(i * y)), Float64(x * Float64(z * y))) tmp = 0.0 if (j <= -1.26e-129) tmp = t_1; elseif (j <= 2.65e-17) tmp = fma(x, Float64(Float64(z * y) - Float64(t * a)), Float64(i * Float64(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[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] + N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.26e-129], t$95$1, If[LessEqual[j, 2.65e-17], N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, a \cdot c - i \cdot y, x \cdot \left(z \cdot y\right)\right)\\
\mathbf{if}\;j \leq -1.26 \cdot 10^{-129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.65 \cdot 10^{-17}:\\
\;\;\;\;\mathsf{fma}\left(x, z \cdot y - t \cdot a, i \cdot \left(t \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.2599999999999999e-129 or 2.6499999999999999e-17 < j Initial program 73.2%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
accelerator-lowering-fma.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
Simplified76.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6468.7
Simplified68.7%
if -1.2599999999999999e-129 < j < 2.6499999999999999e-17Initial program 71.8%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-lft-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
Simplified70.0%
Taylor expanded in j around 0
*-lowering-*.f6464.0
Simplified64.0%
Final simplification66.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* j i)))))
(if (<= y -1.7e+66)
t_1
(if (<= y -4.5e-250)
(* b (- (* t i) (* c z)))
(if (<= y 9000000000.0) (* a (fma j c (- 0.0 (* 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 = y * ((x * z) - (j * i));
double tmp;
if (y <= -1.7e+66) {
tmp = t_1;
} else if (y <= -4.5e-250) {
tmp = b * ((t * i) - (c * z));
} else if (y <= 9000000000.0) {
tmp = a * fma(j, c, (0.0 - (t * x)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(j * i))) tmp = 0.0 if (y <= -1.7e+66) tmp = t_1; elseif (y <= -4.5e-250) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); elseif (y <= 9000000000.0) tmp = Float64(a * fma(j, c, Float64(0.0 - Float64(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[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.7e+66], t$95$1, If[LessEqual[y, -4.5e-250], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9000000000.0], N[(a * N[(j * c + N[(0.0 - N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.5 \cdot 10^{-250}:\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{elif}\;y \leq 9000000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, 0 - t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.70000000000000015e66 or 9e9 < y Initial program 72.1%
Taylor expanded in y around 0
Simplified86.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.8
Simplified73.8%
if -1.70000000000000015e66 < y < -4.49999999999999993e-250Initial program 68.4%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified56.4%
if -4.49999999999999993e-250 < y < 9e9Initial program 76.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* j i)))))
(if (<= y -2e+66)
t_1
(if (<= y -3e-101)
(* b (- (* t i) (* c z)))
(if (<= y 3800000000.0) (* c (- (* a j) (* b z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (j * i));
double tmp;
if (y <= -2e+66) {
tmp = t_1;
} else if (y <= -3e-101) {
tmp = b * ((t * i) - (c * z));
} else if (y <= 3800000000.0) {
tmp = c * ((a * j) - (b * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (j * i))
if (y <= (-2d+66)) then
tmp = t_1
else if (y <= (-3d-101)) then
tmp = b * ((t * i) - (c * z))
else if (y <= 3800000000.0d0) then
tmp = c * ((a * j) - (b * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (j * i));
double tmp;
if (y <= -2e+66) {
tmp = t_1;
} else if (y <= -3e-101) {
tmp = b * ((t * i) - (c * z));
} else if (y <= 3800000000.0) {
tmp = c * ((a * j) - (b * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (j * i)) tmp = 0 if y <= -2e+66: tmp = t_1 elif y <= -3e-101: tmp = b * ((t * i) - (c * z)) elif y <= 3800000000.0: tmp = c * ((a * j) - (b * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(j * i))) tmp = 0.0 if (y <= -2e+66) tmp = t_1; elseif (y <= -3e-101) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); elseif (y <= 3800000000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (j * i)); tmp = 0.0; if (y <= -2e+66) tmp = t_1; elseif (y <= -3e-101) tmp = b * ((t * i) - (c * z)); elseif (y <= 3800000000.0) tmp = c * ((a * j) - (b * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+66], t$95$1, If[LessEqual[y, -3e-101], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3800000000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - j \cdot i\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{elif}\;y \leq 3800000000:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.99999999999999989e66 or 3.8e9 < y Initial program 72.1%
Taylor expanded in y around 0
Simplified86.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6473.8
Simplified73.8%
if -1.99999999999999989e66 < y < -3.0000000000000003e-101Initial program 58.2%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified54.6%
if -3.0000000000000003e-101 < y < 3.8e9Initial program 76.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.1
Simplified53.1%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* z y) (* t a)))))
(if (<= x -1.22e-71)
t_1
(if (<= x -3.9e-275)
(* c (- (* a j) (* b z)))
(if (<= x 1.02e+127) (* j (- (* a c) (* i 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 = x * ((z * y) - (t * a));
double tmp;
if (x <= -1.22e-71) {
tmp = t_1;
} else if (x <= -3.9e-275) {
tmp = c * ((a * j) - (b * z));
} else if (x <= 1.02e+127) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((z * y) - (t * a))
if (x <= (-1.22d-71)) then
tmp = t_1
else if (x <= (-3.9d-275)) then
tmp = c * ((a * j) - (b * z))
else if (x <= 1.02d+127) then
tmp = j * ((a * c) - (i * y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((z * y) - (t * a));
double tmp;
if (x <= -1.22e-71) {
tmp = t_1;
} else if (x <= -3.9e-275) {
tmp = c * ((a * j) - (b * z));
} else if (x <= 1.02e+127) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((z * y) - (t * a)) tmp = 0 if x <= -1.22e-71: tmp = t_1 elif x <= -3.9e-275: tmp = c * ((a * j) - (b * z)) elif x <= 1.02e+127: tmp = j * ((a * c) - (i * y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(z * y) - Float64(t * a))) tmp = 0.0 if (x <= -1.22e-71) tmp = t_1; elseif (x <= -3.9e-275) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); elseif (x <= 1.02e+127) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((z * y) - (t * a)); tmp = 0.0; if (x <= -1.22e-71) tmp = t_1; elseif (x <= -3.9e-275) tmp = c * ((a * j) - (b * z)); elseif (x <= 1.02e+127) tmp = j * ((a * c) - (i * y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.22e-71], t$95$1, If[LessEqual[x, -3.9e-275], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.02e+127], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.22 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.9 \cdot 10^{-275}:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{+127}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.21999999999999999e-71 or 1.02e127 < x Initial program 76.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6463.7
Simplified63.7%
if -1.21999999999999999e-71 < x < -3.89999999999999973e-275Initial program 78.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6457.7
Simplified57.7%
if -3.89999999999999973e-275 < x < 1.02e127Initial program 65.4%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.6
Simplified54.6%
Final simplification59.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -5.4e+70)
(* z (* x y))
(if (<= y -1.36e-103)
(* b (- (* t i) (* c z)))
(if (<= y 420000000000.0)
(* c (- (* a j) (* b z)))
(- 0.0 (* j (* i y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -5.4e+70) {
tmp = z * (x * y);
} else if (y <= -1.36e-103) {
tmp = b * ((t * i) - (c * z));
} else if (y <= 420000000000.0) {
tmp = c * ((a * j) - (b * z));
} else {
tmp = 0.0 - (j * (i * 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 (y <= (-5.4d+70)) then
tmp = z * (x * y)
else if (y <= (-1.36d-103)) then
tmp = b * ((t * i) - (c * z))
else if (y <= 420000000000.0d0) then
tmp = c * ((a * j) - (b * z))
else
tmp = 0.0d0 - (j * (i * 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 (y <= -5.4e+70) {
tmp = z * (x * y);
} else if (y <= -1.36e-103) {
tmp = b * ((t * i) - (c * z));
} else if (y <= 420000000000.0) {
tmp = c * ((a * j) - (b * z));
} else {
tmp = 0.0 - (j * (i * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -5.4e+70: tmp = z * (x * y) elif y <= -1.36e-103: tmp = b * ((t * i) - (c * z)) elif y <= 420000000000.0: tmp = c * ((a * j) - (b * z)) else: tmp = 0.0 - (j * (i * y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -5.4e+70) tmp = Float64(z * Float64(x * y)); elseif (y <= -1.36e-103) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); elseif (y <= 420000000000.0) tmp = Float64(c * Float64(Float64(a * j) - Float64(b * z))); else tmp = Float64(0.0 - Float64(j * Float64(i * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -5.4e+70) tmp = z * (x * y); elseif (y <= -1.36e-103) tmp = b * ((t * i) - (c * z)); elseif (y <= 420000000000.0) tmp = c * ((a * j) - (b * z)); else tmp = 0.0 - (j * (i * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -5.4e+70], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.36e-103], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 420000000000.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.0 - N[(j * N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{+70}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -1.36 \cdot 10^{-103}:\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{elif}\;y \leq 420000000000:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;0 - j \cdot \left(i \cdot y\right)\\
\end{array}
\end{array}
if y < -5.3999999999999999e70Initial program 66.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6456.3
Simplified56.3%
Taylor expanded in c around 0
*-commutativeN/A
*-lowering-*.f6449.4
Simplified49.4%
if -5.3999999999999999e70 < y < -1.36000000000000006e-103Initial program 58.2%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified54.6%
if -1.36000000000000006e-103 < y < 4.2e11Initial program 76.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.1
Simplified53.1%
if 4.2e11 < y Initial program 76.3%
Taylor expanded in y around 0
Simplified91.0%
Taylor expanded in j around inf
+-commutativeN/A
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.8
Simplified54.8%
Taylor expanded in c around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6449.5
Simplified49.5%
Final simplification51.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -7.2e+50)
(* z (* x y))
(if (<= y -2.1e-293)
(* i (* t b))
(if (<= y 3600000000.0) (* j (* a c)) (- 0.0 (* j (* i y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7.2e+50) {
tmp = z * (x * y);
} else if (y <= -2.1e-293) {
tmp = i * (t * b);
} else if (y <= 3600000000.0) {
tmp = j * (a * c);
} else {
tmp = 0.0 - (j * (i * 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 (y <= (-7.2d+50)) then
tmp = z * (x * y)
else if (y <= (-2.1d-293)) then
tmp = i * (t * b)
else if (y <= 3600000000.0d0) then
tmp = j * (a * c)
else
tmp = 0.0d0 - (j * (i * 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 (y <= -7.2e+50) {
tmp = z * (x * y);
} else if (y <= -2.1e-293) {
tmp = i * (t * b);
} else if (y <= 3600000000.0) {
tmp = j * (a * c);
} else {
tmp = 0.0 - (j * (i * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -7.2e+50: tmp = z * (x * y) elif y <= -2.1e-293: tmp = i * (t * b) elif y <= 3600000000.0: tmp = j * (a * c) else: tmp = 0.0 - (j * (i * y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -7.2e+50) tmp = Float64(z * Float64(x * y)); elseif (y <= -2.1e-293) tmp = Float64(i * Float64(t * b)); elseif (y <= 3600000000.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(0.0 - Float64(j * Float64(i * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -7.2e+50) tmp = z * (x * y); elseif (y <= -2.1e-293) tmp = i * (t * b); elseif (y <= 3600000000.0) tmp = j * (a * c); else tmp = 0.0 - (j * (i * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -7.2e+50], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.1e-293], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3600000000.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(0.0 - N[(j * N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+50}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-293}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 3600000000:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;0 - j \cdot \left(i \cdot y\right)\\
\end{array}
\end{array}
if y < -7.19999999999999972e50Initial program 66.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0
Simplified57.0%
Taylor expanded in c around 0
*-commutativeN/A
*-lowering-*.f6447.0
Simplified47.0%
if -7.19999999999999972e50 < y < -2.10000000000000005e-293Initial program 68.6%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified53.4%
Taylor expanded in i around inf
*-lowering-*.f6433.2
Simplified33.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.1
Applied egg-rr36.1%
if -2.10000000000000005e-293 < y < 3.6e9Initial program 77.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6454.0
Simplified54.0%
Taylor expanded in j around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.8
Simplified36.8%
if 3.6e9 < y Initial program 76.3%
Taylor expanded in y around 0
Simplified91.0%
Taylor expanded in j around inf
+-commutativeN/A
mul-1-negN/A
sub-negN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6454.8
Simplified54.8%
Taylor expanded in c around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6449.5
Simplified49.5%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))))
(if (<= c -1.4e+87)
t_1
(if (<= c 1.75e-49) (* i (fma b t (- 0.0 (* j y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -1.4e+87) {
tmp = t_1;
} else if (c <= 1.75e-49) {
tmp = i * fma(b, t, (0.0 - (j * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -1.4e+87) tmp = t_1; elseif (c <= 1.75e-49) tmp = Float64(i * fma(b, t, Float64(0.0 - Float64(j * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.4e+87], t$95$1, If[LessEqual[c, 1.75e-49], N[(i * N[(b * t + N[(0.0 - N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -1.4 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.75 \cdot 10^{-49}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(b, t, 0 - j \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.40000000000000008e87 or 1.75000000000000003e-49 < c Initial program 62.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6460.4
Simplified60.4%
if -1.40000000000000008e87 < c < 1.75000000000000003e-49Initial program 81.6%
Taylor expanded in i around -inf
Simplified72.7%
Taylor expanded in i around inf
*-lowering-*.f6451.0
Simplified51.0%
Final simplification55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* c z)))))
(if (<= b -1.4e+91)
t_1
(if (<= b 2.95e-74) (* j (- (* a c) (* i 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 = b * ((t * i) - (c * z));
double tmp;
if (b <= -1.4e+91) {
tmp = t_1;
} else if (b <= 2.95e-74) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (c * z))
if (b <= (-1.4d+91)) then
tmp = t_1
else if (b <= 2.95d-74) then
tmp = j * ((a * c) - (i * y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (c * z));
double tmp;
if (b <= -1.4e+91) {
tmp = t_1;
} else if (b <= 2.95e-74) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (c * z)) tmp = 0 if b <= -1.4e+91: tmp = t_1 elif b <= 2.95e-74: tmp = j * ((a * c) - (i * y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(c * z))) tmp = 0.0 if (b <= -1.4e+91) tmp = t_1; elseif (b <= 2.95e-74) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (c * z)); tmp = 0.0; if (b <= -1.4e+91) tmp = t_1; elseif (b <= 2.95e-74) tmp = j * ((a * c) - (i * y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+91], t$95$1, If[LessEqual[b, 2.95e-74], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+91}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.95 \cdot 10^{-74}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.3999999999999999e91 or 2.94999999999999983e-74 < b Initial program 64.5%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified61.3%
if -1.3999999999999999e91 < b < 2.94999999999999983e-74Initial program 78.9%
Taylor expanded in j around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6451.2
Simplified51.2%
Final simplification55.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -7e+63) (* z (* x y)) (if (<= y 9.5e+164) (* b (- (* t i) (* c z))) (* (- 0.0 i) (* j y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -7e+63) {
tmp = z * (x * y);
} else if (y <= 9.5e+164) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = (0.0 - i) * (j * 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 (y <= (-7d+63)) then
tmp = z * (x * y)
else if (y <= 9.5d+164) then
tmp = b * ((t * i) - (c * z))
else
tmp = (0.0d0 - i) * (j * 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 (y <= -7e+63) {
tmp = z * (x * y);
} else if (y <= 9.5e+164) {
tmp = b * ((t * i) - (c * z));
} else {
tmp = (0.0 - i) * (j * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -7e+63: tmp = z * (x * y) elif y <= 9.5e+164: tmp = b * ((t * i) - (c * z)) else: tmp = (0.0 - i) * (j * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -7e+63) tmp = Float64(z * Float64(x * y)); elseif (y <= 9.5e+164) tmp = Float64(b * Float64(Float64(t * i) - Float64(c * z))); else tmp = Float64(Float64(0.0 - i) * Float64(j * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -7e+63) tmp = z * (x * y); elseif (y <= 9.5e+164) tmp = b * ((t * i) - (c * z)); else tmp = (0.0 - i) * (j * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -7e+63], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e+164], N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.0 - i), $MachinePrecision] * N[(j * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+63}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+164}:\\
\;\;\;\;b \cdot \left(t \cdot i - c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(0 - i\right) \cdot \left(j \cdot y\right)\\
\end{array}
\end{array}
if y < -7.00000000000000059e63Initial program 66.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6456.3
Simplified56.3%
Taylor expanded in c around 0
*-commutativeN/A
*-lowering-*.f6449.4
Simplified49.4%
if -7.00000000000000059e63 < y < 9.49999999999999976e164Initial program 73.8%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified45.1%
if 9.49999999999999976e164 < y Initial program 75.4%
Taylor expanded in y around 0
Simplified86.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6486.5
Simplified86.5%
Taylor expanded in z around 0
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6461.6
Simplified61.6%
Final simplification48.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.52e+52)
(* z (* x y))
(if (<= y -2.15e-292)
(* i (* t b))
(if (<= y 560000000.0) (* j (* a c)) (* x (* z y))))))
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.52e+52) {
tmp = z * (x * y);
} else if (y <= -2.15e-292) {
tmp = i * (t * b);
} else if (y <= 560000000.0) {
tmp = j * (a * c);
} else {
tmp = x * (z * 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 (y <= (-1.52d+52)) then
tmp = z * (x * y)
else if (y <= (-2.15d-292)) then
tmp = i * (t * b)
else if (y <= 560000000.0d0) then
tmp = j * (a * c)
else
tmp = x * (z * 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 (y <= -1.52e+52) {
tmp = z * (x * y);
} else if (y <= -2.15e-292) {
tmp = i * (t * b);
} else if (y <= 560000000.0) {
tmp = j * (a * c);
} else {
tmp = x * (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.52e+52: tmp = z * (x * y) elif y <= -2.15e-292: tmp = i * (t * b) elif y <= 560000000.0: tmp = j * (a * c) else: tmp = x * (z * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.52e+52) tmp = Float64(z * Float64(x * y)); elseif (y <= -2.15e-292) tmp = Float64(i * Float64(t * b)); elseif (y <= 560000000.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(x * Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.52e+52) tmp = z * (x * y); elseif (y <= -2.15e-292) tmp = i * (t * b); elseif (y <= 560000000.0) tmp = j * (a * c); else tmp = x * (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.52e+52], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.15e-292], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 560000000.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.52 \cdot 10^{+52}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-292}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 560000000:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if y < -1.5199999999999999e52Initial program 66.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0
Simplified57.0%
Taylor expanded in c around 0
*-commutativeN/A
*-lowering-*.f6447.0
Simplified47.0%
if -1.5199999999999999e52 < y < -2.15e-292Initial program 68.6%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified53.4%
Taylor expanded in i around inf
*-lowering-*.f6433.2
Simplified33.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.1
Applied egg-rr36.1%
if -2.15e-292 < y < 5.6e8Initial program 77.4%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6454.0
Simplified54.0%
Taylor expanded in j around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.8
Simplified36.8%
if 5.6e8 < y Initial program 76.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9
Simplified46.9%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.1
Simplified37.1%
Final simplification39.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -4.4e+49)
(* z (* x y))
(if (<= y 1e-297)
(* t (* b i))
(if (<= y 2050000000.0) (* j (* a c)) (* x (* z y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.4e+49) {
tmp = z * (x * y);
} else if (y <= 1e-297) {
tmp = t * (b * i);
} else if (y <= 2050000000.0) {
tmp = j * (a * c);
} else {
tmp = x * (z * 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 (y <= (-4.4d+49)) then
tmp = z * (x * y)
else if (y <= 1d-297) then
tmp = t * (b * i)
else if (y <= 2050000000.0d0) then
tmp = j * (a * c)
else
tmp = x * (z * 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 (y <= -4.4e+49) {
tmp = z * (x * y);
} else if (y <= 1e-297) {
tmp = t * (b * i);
} else if (y <= 2050000000.0) {
tmp = j * (a * c);
} else {
tmp = x * (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -4.4e+49: tmp = z * (x * y) elif y <= 1e-297: tmp = t * (b * i) elif y <= 2050000000.0: tmp = j * (a * c) else: tmp = x * (z * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.4e+49) tmp = Float64(z * Float64(x * y)); elseif (y <= 1e-297) tmp = Float64(t * Float64(b * i)); elseif (y <= 2050000000.0) tmp = Float64(j * Float64(a * c)); else tmp = Float64(x * Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -4.4e+49) tmp = z * (x * y); elseif (y <= 1e-297) tmp = t * (b * i); elseif (y <= 2050000000.0) tmp = j * (a * c); else tmp = x * (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.4e+49], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e-297], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2050000000.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{+49}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 10^{-297}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 2050000000:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if y < -4.4000000000000001e49Initial program 66.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6457.0
Simplified57.0%
Taylor expanded in c around 0
*-commutativeN/A
*-lowering-*.f6447.0
Simplified47.0%
if -4.4000000000000001e49 < y < 1.00000000000000004e-297Initial program 67.5%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified53.2%
Taylor expanded in i around inf
*-lowering-*.f6434.3
Simplified34.3%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6435.5
Applied egg-rr35.5%
if 1.00000000000000004e-297 < y < 2.05e9Initial program 79.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6454.1
Simplified54.1%
Taylor expanded in j around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6436.9
Simplified36.9%
if 2.05e9 < y Initial program 76.3%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6446.9
Simplified46.9%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6437.1
Simplified37.1%
Final simplification38.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.6e+20) (* y (* x z)) (if (<= z 135000000.0) (* a (* j c)) (* x (* z y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.6e+20) {
tmp = y * (x * z);
} else if (z <= 135000000.0) {
tmp = a * (j * c);
} else {
tmp = x * (z * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.6d+20)) then
tmp = y * (x * z)
else if (z <= 135000000.0d0) then
tmp = a * (j * c)
else
tmp = x * (z * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.6e+20) {
tmp = y * (x * z);
} else if (z <= 135000000.0) {
tmp = a * (j * c);
} else {
tmp = x * (z * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.6e+20: tmp = y * (x * z) elif z <= 135000000.0: tmp = a * (j * c) else: tmp = x * (z * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.6e+20) tmp = Float64(y * Float64(x * z)); elseif (z <= 135000000.0) tmp = Float64(a * Float64(j * c)); else tmp = Float64(x * Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.6e+20) tmp = y * (x * z); elseif (z <= 135000000.0) tmp = a * (j * c); else tmp = x * (z * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.6e+20], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 135000000.0], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+20}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 135000000:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y\right)\\
\end{array}
\end{array}
if z < -1.6e20Initial program 69.7%
Taylor expanded in y around 0
Simplified81.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6453.7
Simplified53.7%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f6439.2
Simplified39.2%
if -1.6e20 < z < 1.35e8Initial program 73.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6450.8
Simplified50.8%
Taylor expanded in j around inf
*-lowering-*.f6433.0
Simplified33.0%
if 1.35e8 < z Initial program 72.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6473.7
Simplified73.7%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6445.0
Simplified45.0%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* z y)))) (if (<= z -8.2e+19) t_1 (if (<= z 1800000.0) (* a (* j 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 = x * (z * y);
double tmp;
if (z <= -8.2e+19) {
tmp = t_1;
} else if (z <= 1800000.0) {
tmp = a * (j * c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (z * y)
if (z <= (-8.2d+19)) then
tmp = t_1
else if (z <= 1800000.0d0) then
tmp = a * (j * c)
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 = x * (z * y);
double tmp;
if (z <= -8.2e+19) {
tmp = t_1;
} else if (z <= 1800000.0) {
tmp = a * (j * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (z * y) tmp = 0 if z <= -8.2e+19: tmp = t_1 elif z <= 1800000.0: tmp = a * (j * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(z * y)) tmp = 0.0 if (z <= -8.2e+19) tmp = t_1; elseif (z <= 1800000.0) tmp = Float64(a * Float64(j * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (z * y); tmp = 0.0; if (z <= -8.2e+19) tmp = t_1; elseif (z <= 1800000.0) tmp = a * (j * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.2e+19], t$95$1, If[LessEqual[z, 1800000.0], N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(z \cdot y\right)\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1800000:\\
\;\;\;\;a \cdot \left(j \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.2e19 or 1.8e6 < z Initial program 71.0%
Taylor expanded in z around inf
*-lowering-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
neg-mul-1N/A
neg-sub0N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6466.0
Simplified66.0%
Taylor expanded in c around 0
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.8
Simplified41.8%
if -8.2e19 < z < 1.8e6Initial program 73.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6450.8
Simplified50.8%
Taylor expanded in j around inf
*-lowering-*.f6433.0
Simplified33.0%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* j c)))) (if (<= c -4e-17) t_1 (if (<= c 2.95e+113) (* 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 = a * (j * c);
double tmp;
if (c <= -4e-17) {
tmp = t_1;
} else if (c <= 2.95e+113) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (j * c)
if (c <= (-4d-17)) then
tmp = t_1
else if (c <= 2.95d+113) then
tmp = b * (t * i)
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 * (j * c);
double tmp;
if (c <= -4e-17) {
tmp = t_1;
} else if (c <= 2.95e+113) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (j * c) tmp = 0 if c <= -4e-17: tmp = t_1 elif c <= 2.95e+113: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(j * c)) tmp = 0.0 if (c <= -4e-17) tmp = t_1; elseif (c <= 2.95e+113) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (j * c); tmp = 0.0; if (c <= -4e-17) tmp = t_1; elseif (c <= 2.95e+113) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4e-17], t$95$1, If[LessEqual[c, 2.95e+113], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(j \cdot c\right)\\
\mathbf{if}\;c \leq -4 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.95 \cdot 10^{+113}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.00000000000000029e-17 or 2.95000000000000011e113 < c Initial program 63.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6452.2
Simplified52.2%
Taylor expanded in j around inf
*-lowering-*.f6444.1
Simplified44.1%
if -4.00000000000000029e-17 < c < 2.95000000000000011e113Initial program 79.6%
Taylor expanded in b around inf
sub-negN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
mul-1-negN/A
sub-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
sub-negN/A
mul-1-negN/A
Simplified36.3%
Taylor expanded in i around inf
*-lowering-*.f6427.0
Simplified27.0%
Final simplification34.4%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* j c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (j * c);
}
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 = a * (j * c)
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 a * (j * c);
}
def code(x, y, z, t, a, b, c, i, j): return a * (j * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(j * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (j * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(j * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(j \cdot c\right)
\end{array}
Initial program 72.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6439.1
Simplified39.1%
Taylor expanded in j around inf
*-lowering-*.f6424.0
Simplified24.0%
Final simplification24.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 2024195
(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)))))