
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (* a (- (* b (/ i t)) x))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * (a * ((b * (i / t)) - x));
}
return tmp;
}
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 * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * (a * ((b * (i / t)) - x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * (a * ((b * (i / t)) - x)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(a * Float64(Float64(b * Float64(i / t)) - x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * (a * ((b * (i / t)) - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(a * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0 31.5%
Taylor expanded in a around -inf 50.8%
associate-*r*50.8%
neg-mul-150.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in t around 0 39.7%
+-commutative39.7%
mul-1-neg39.7%
unsub-neg39.7%
associate-*r*37.9%
*-commutative37.9%
associate-*r*35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in t around inf 46.9%
associate-/l*50.5%
distribute-lft-out--57.9%
associate-/l*58.0%
Simplified58.0%
Final simplification84.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.12e-50)
(* a (* t (- (* b (/ i t)) x)))
(if (<= a 2900000000.0)
(+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))
(if (<= a 6.2e+183)
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(* a (- (* b i) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.12e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2900000000.0) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else if (a <= 6.2e+183) {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.12d-50)) then
tmp = a * (t * ((b * (i / t)) - x))
else if (a <= 2900000000.0d0) then
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
else if (a <= 6.2d+183) then
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.12e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2900000000.0) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else if (a <= 6.2e+183) {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.12e-50: tmp = a * (t * ((b * (i / t)) - x)) elif a <= 2900000000.0: tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) elif a <= 6.2e+183: tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.12e-50) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); elseif (a <= 2900000000.0) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (a <= 6.2e+183) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.12e-50) tmp = a * (t * ((b * (i / t)) - x)); elseif (a <= 2900000000.0) tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); elseif (a <= 6.2e+183) tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.12e-50], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2900000000.0], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+183], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.12 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{elif}\;a \leq 2900000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+183}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.12e-50Initial program 56.6%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around -inf 65.8%
associate-*r*65.8%
neg-mul-165.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*68.8%
Simplified68.8%
if -1.12e-50 < a < 2.9e9Initial program 81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
fmm-def81.4%
distribute-lft-neg-out81.4%
*-commutative81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in z around inf 76.4%
if 2.9e9 < a < 6.1999999999999997e183Initial program 82.4%
Taylor expanded in j around 0 76.3%
if 6.1999999999999997e183 < a Initial program 54.4%
Taylor expanded in c around 0 58.6%
Taylor expanded in a around -inf 91.8%
associate-*r*91.8%
neg-mul-191.8%
*-commutative91.8%
Simplified91.8%
Taylor expanded in t around 0 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
associate-*r*71.0%
*-commutative71.0%
associate-*r*63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in b around 0 71.0%
distribute-lft-out--91.8%
Simplified91.8%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- (* b (/ i t)) x)))))
(if (<= a -1.2e-50)
t_1
(if (<= a -1.2e-255)
(* y (+ (* x z) (- (* c (* j (/ t y))) (* i j))))
(if (<= a 1.9e+133)
(- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y 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 = a * (t * ((b * (i / t)) - x));
double tmp;
if (a <= -1.2e-50) {
tmp = t_1;
} else if (a <= -1.2e-255) {
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)));
} else if (a <= 1.9e+133) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * 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 = a * (t * ((b * (i / t)) - x))
if (a <= (-1.2d-50)) then
tmp = t_1
else if (a <= (-1.2d-255)) then
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)))
else if (a <= 1.9d+133) then
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * 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 = a * (t * ((b * (i / t)) - x));
double tmp;
if (a <= -1.2e-50) {
tmp = t_1;
} else if (a <= -1.2e-255) {
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)));
} else if (a <= 1.9e+133) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * ((b * (i / t)) - x)) tmp = 0 if a <= -1.2e-50: tmp = t_1 elif a <= -1.2e-255: tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j))) elif a <= 1.9e+133: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))) tmp = 0.0 if (a <= -1.2e-50) tmp = t_1; elseif (a <= -1.2e-255) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(c * Float64(j * Float64(t / y))) - Float64(i * j)))); elseif (a <= 1.9e+133) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * ((b * (i / t)) - x)); tmp = 0.0; if (a <= -1.2e-50) tmp = t_1; elseif (a <= -1.2e-255) tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j))); elseif (a <= 1.9e+133) tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * 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[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-50], t$95$1, If[LessEqual[a, -1.2e-255], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(c * N[(j * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e+133], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-255}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(c \cdot \left(j \cdot \frac{t}{y}\right) - i \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+133}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.20000000000000001e-50 or 1.9000000000000001e133 < a Initial program 57.1%
Taylor expanded in c around 0 60.9%
Taylor expanded in a around -inf 70.0%
associate-*r*70.0%
neg-mul-170.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around inf 73.4%
mul-1-neg73.4%
unsub-neg73.4%
associate-/l*72.6%
Simplified72.6%
if -1.20000000000000001e-50 < a < -1.1999999999999999e-255Initial program 71.0%
Taylor expanded in b around 0 51.3%
Taylor expanded in y around inf 49.0%
associate-*r*58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in y around -inf 64.5%
mul-1-neg64.5%
distribute-rgt-neg-in64.5%
+-commutative64.5%
mul-1-neg64.5%
unsub-neg64.5%
Simplified63.5%
if -1.1999999999999999e-255 < a < 1.9000000000000001e133Initial program 88.1%
Taylor expanded in b around 0 72.4%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))) (t_2 (* t (* x (- a)))))
(if (<= a -1.3e+131)
t_2
(if (<= a -1.3e-30)
t_1
(if (<= a 5.2e-295)
(* t (* c j))
(if (<= a 1.8e-53)
(* (* i j) (- y))
(if (<= a 1.9e+130) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double t_2 = t * (x * -a);
double tmp;
if (a <= -1.3e+131) {
tmp = t_2;
} else if (a <= -1.3e-30) {
tmp = t_1;
} else if (a <= 5.2e-295) {
tmp = t * (c * j);
} else if (a <= 1.8e-53) {
tmp = (i * j) * -y;
} else if (a <= 1.9e+130) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * i)
t_2 = t * (x * -a)
if (a <= (-1.3d+131)) then
tmp = t_2
else if (a <= (-1.3d-30)) then
tmp = t_1
else if (a <= 5.2d-295) then
tmp = t * (c * j)
else if (a <= 1.8d-53) then
tmp = (i * j) * -y
else if (a <= 1.9d+130) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double t_2 = t * (x * -a);
double tmp;
if (a <= -1.3e+131) {
tmp = t_2;
} else if (a <= -1.3e-30) {
tmp = t_1;
} else if (a <= 5.2e-295) {
tmp = t * (c * j);
} else if (a <= 1.8e-53) {
tmp = (i * j) * -y;
} else if (a <= 1.9e+130) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) t_2 = t * (x * -a) tmp = 0 if a <= -1.3e+131: tmp = t_2 elif a <= -1.3e-30: tmp = t_1 elif a <= 5.2e-295: tmp = t * (c * j) elif a <= 1.8e-53: tmp = (i * j) * -y elif a <= 1.9e+130: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) t_2 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -1.3e+131) tmp = t_2; elseif (a <= -1.3e-30) tmp = t_1; elseif (a <= 5.2e-295) tmp = Float64(t * Float64(c * j)); elseif (a <= 1.8e-53) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (a <= 1.9e+130) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); t_2 = t * (x * -a); tmp = 0.0; if (a <= -1.3e+131) tmp = t_2; elseif (a <= -1.3e-30) tmp = t_1; elseif (a <= 5.2e-295) tmp = t * (c * j); elseif (a <= 1.8e-53) tmp = (i * j) * -y; elseif (a <= 1.9e+130) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.3e+131], t$95$2, If[LessEqual[a, -1.3e-30], t$95$1, If[LessEqual[a, 5.2e-295], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-53], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[a, 1.9e+130], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-295}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-53}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+130}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.3e131 or 1.7999999999999999e-53 < a < 1.9000000000000001e130Initial program 68.5%
Taylor expanded in c around 0 61.1%
Taylor expanded in a around -inf 53.1%
associate-*r*53.1%
neg-mul-153.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in t around 0 51.9%
+-commutative51.9%
mul-1-neg51.9%
unsub-neg51.9%
associate-*r*49.4%
*-commutative49.4%
associate-*r*48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in b around 0 39.6%
mul-1-neg39.6%
associate-*r*38.3%
*-commutative38.3%
associate-*r*45.7%
distribute-rgt-neg-in45.7%
distribute-rgt-neg-in45.7%
Simplified45.7%
if -1.3e131 < a < -1.29999999999999993e-30 or 1.9000000000000001e130 < a Initial program 62.6%
+-commutative62.6%
fma-define65.6%
*-commutative65.6%
*-commutative65.6%
cancel-sign-sub-inv65.6%
cancel-sign-sub65.6%
sub-neg65.6%
sub-neg65.6%
*-commutative65.6%
fmm-def65.6%
*-commutative65.6%
distribute-rgt-neg-out65.6%
remove-double-neg65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in i around inf 62.4%
distribute-lft-out--62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 51.2%
*-commutative51.2%
associate-*r*52.7%
*-commutative52.7%
Simplified52.7%
if -1.29999999999999993e-30 < a < 5.1999999999999997e-295Initial program 74.1%
+-commutative74.1%
fma-define75.7%
*-commutative75.7%
*-commutative75.7%
cancel-sign-sub-inv75.7%
cancel-sign-sub75.7%
sub-neg75.7%
sub-neg75.7%
*-commutative75.7%
fmm-def75.7%
*-commutative75.7%
distribute-rgt-neg-out75.7%
remove-double-neg75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in c around inf 49.8%
*-commutative49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in t around inf 29.2%
associate-*r*33.0%
*-commutative33.0%
Simplified33.0%
if 5.1999999999999997e-295 < a < 1.7999999999999999e-53Initial program 89.9%
Taylor expanded in b around 0 74.4%
Taylor expanded in y around inf 74.5%
associate-*r*68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in y around -inf 72.2%
mul-1-neg72.2%
distribute-rgt-neg-in72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
Simplified74.0%
Taylor expanded in i around inf 40.4%
*-commutative40.4%
Simplified40.4%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.2e-50)
(* a (* t (- (* b (/ i t)) x)))
(if (<= a 2.6e-42)
(* y (+ (* x z) (- (* c (* j (/ t y))) (* i j))))
(if (<= a 2.45e+182)
(- (* a (* b i)) (* x (- (* t a) (* y z))))
(* a (- (* b i) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.2e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2.6e-42) {
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)));
} else if (a <= 2.45e+182) {
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.2d-50)) then
tmp = a * (t * ((b * (i / t)) - x))
else if (a <= 2.6d-42) then
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)))
else if (a <= 2.45d+182) then
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.2e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2.6e-42) {
tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j)));
} else if (a <= 2.45e+182) {
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.2e-50: tmp = a * (t * ((b * (i / t)) - x)) elif a <= 2.6e-42: tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j))) elif a <= 2.45e+182: tmp = (a * (b * i)) - (x * ((t * a) - (y * z))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.2e-50) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); elseif (a <= 2.6e-42) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(c * Float64(j * Float64(t / y))) - Float64(i * j)))); elseif (a <= 2.45e+182) tmp = Float64(Float64(a * Float64(b * i)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.2e-50) tmp = a * (t * ((b * (i / t)) - x)); elseif (a <= 2.6e-42) tmp = y * ((x * z) + ((c * (j * (t / y))) - (i * j))); elseif (a <= 2.45e+182) tmp = (a * (b * i)) - (x * ((t * a) - (y * z))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.2e-50], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e-42], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(c * N[(j * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.45e+182], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-42}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(c \cdot \left(j \cdot \frac{t}{y}\right) - i \cdot j\right)\right)\\
\mathbf{elif}\;a \leq 2.45 \cdot 10^{+182}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.20000000000000001e-50Initial program 56.6%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around -inf 65.8%
associate-*r*65.8%
neg-mul-165.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*68.8%
Simplified68.8%
if -1.20000000000000001e-50 < a < 2.6e-42Initial program 81.9%
Taylor expanded in b around 0 64.9%
Taylor expanded in y around inf 63.7%
associate-*r*64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in y around -inf 66.6%
mul-1-neg66.6%
distribute-rgt-neg-in66.6%
+-commutative66.6%
mul-1-neg66.6%
unsub-neg66.6%
Simplified67.9%
if 2.6e-42 < a < 2.45e182Initial program 81.3%
Taylor expanded in c around 0 72.2%
Taylor expanded in j around 0 65.2%
if 2.45e182 < a Initial program 54.4%
Taylor expanded in c around 0 58.6%
Taylor expanded in a around -inf 91.8%
associate-*r*91.8%
neg-mul-191.8%
*-commutative91.8%
Simplified91.8%
Taylor expanded in t around 0 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
associate-*r*71.0%
*-commutative71.0%
associate-*r*63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in b around 0 71.0%
distribute-lft-out--91.8%
Simplified91.8%
Final simplification69.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -5e-51)
(* a (* t (- (* b (/ i t)) x)))
(if (<= a 7.5e-45)
(+ (* j (- (* t c) (* y i))) (* z (* x y)))
(if (<= a 3.9e+181)
(- (* a (* b i)) (* x (- (* t a) (* y z))))
(* a (- (* b i) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -5e-51) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 7.5e-45) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else if (a <= 3.9e+181) {
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-5d-51)) then
tmp = a * (t * ((b * (i / t)) - x))
else if (a <= 7.5d-45) then
tmp = (j * ((t * c) - (y * i))) + (z * (x * y))
else if (a <= 3.9d+181) then
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -5e-51) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 7.5e-45) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else if (a <= 3.9e+181) {
tmp = (a * (b * i)) - (x * ((t * a) - (y * z)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -5e-51: tmp = a * (t * ((b * (i / t)) - x)) elif a <= 7.5e-45: tmp = (j * ((t * c) - (y * i))) + (z * (x * y)) elif a <= 3.9e+181: tmp = (a * (b * i)) - (x * ((t * a) - (y * z))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -5e-51) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); elseif (a <= 7.5e-45) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))); elseif (a <= 3.9e+181) tmp = Float64(Float64(a * Float64(b * i)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -5e-51) tmp = a * (t * ((b * (i / t)) - x)); elseif (a <= 7.5e-45) tmp = (j * ((t * c) - (y * i))) + (z * (x * y)); elseif (a <= 3.9e+181) tmp = (a * (b * i)) - (x * ((t * a) - (y * z))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -5e-51], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-45], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.9e+181], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{-51}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-45}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+181}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -5.00000000000000004e-51Initial program 56.6%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around -inf 65.8%
associate-*r*65.8%
neg-mul-165.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*68.8%
Simplified68.8%
if -5.00000000000000004e-51 < a < 7.5000000000000006e-45Initial program 81.9%
Taylor expanded in b around 0 64.9%
Taylor expanded in y around inf 63.7%
associate-*r*64.6%
*-commutative64.6%
Simplified64.6%
if 7.5000000000000006e-45 < a < 3.9e181Initial program 81.3%
Taylor expanded in c around 0 72.2%
Taylor expanded in j around 0 65.2%
if 3.9e181 < a Initial program 54.4%
Taylor expanded in c around 0 58.6%
Taylor expanded in a around -inf 91.8%
associate-*r*91.8%
neg-mul-191.8%
*-commutative91.8%
Simplified91.8%
Taylor expanded in t around 0 71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
associate-*r*71.0%
*-commutative71.0%
associate-*r*63.0%
*-commutative63.0%
Simplified63.0%
Taylor expanded in b around 0 71.0%
distribute-lft-out--91.8%
Simplified91.8%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -2.05e-41)
t_1
(if (<= a 8e-304)
(* c (- (* t j) (* z b)))
(if (<= a 6.5e-41)
(* j (- (* t c) (* y i)))
(if (<= a 3.5e+129) (* x (- (* y z) (* t a))) 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 * ((b * i) - (x * t));
double tmp;
if (a <= -2.05e-41) {
tmp = t_1;
} else if (a <= 8e-304) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.5e-41) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 3.5e+129) {
tmp = x * ((y * z) - (t * a));
} 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 * ((b * i) - (x * t))
if (a <= (-2.05d-41)) then
tmp = t_1
else if (a <= 8d-304) then
tmp = c * ((t * j) - (z * b))
else if (a <= 6.5d-41) then
tmp = j * ((t * c) - (y * i))
else if (a <= 3.5d+129) then
tmp = x * ((y * z) - (t * a))
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 * ((b * i) - (x * t));
double tmp;
if (a <= -2.05e-41) {
tmp = t_1;
} else if (a <= 8e-304) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.5e-41) {
tmp = j * ((t * c) - (y * i));
} else if (a <= 3.5e+129) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.05e-41: tmp = t_1 elif a <= 8e-304: tmp = c * ((t * j) - (z * b)) elif a <= 6.5e-41: tmp = j * ((t * c) - (y * i)) elif a <= 3.5e+129: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.05e-41) tmp = t_1; elseif (a <= 8e-304) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 6.5e-41) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (a <= 3.5e+129) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.05e-41) tmp = t_1; elseif (a <= 8e-304) tmp = c * ((t * j) - (z * b)); elseif (a <= 6.5e-41) tmp = j * ((t * c) - (y * i)); elseif (a <= 3.5e+129) tmp = x * ((y * z) - (t * a)); 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[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.05e-41], t$95$1, If[LessEqual[a, 8e-304], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-41], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.5e+129], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.05 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-41}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{+129}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.05000000000000007e-41 or 3.4999999999999998e129 < a Initial program 57.6%
Taylor expanded in c around 0 61.5%
Taylor expanded in a around -inf 69.7%
associate-*r*69.7%
neg-mul-169.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in t around 0 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
associate-*r*60.1%
*-commutative60.1%
associate-*r*56.4%
*-commutative56.4%
Simplified56.4%
Taylor expanded in b around 0 64.0%
distribute-lft-out--69.7%
Simplified69.7%
if -2.05000000000000007e-41 < a < 7.99999999999999977e-304Initial program 73.1%
+-commutative73.1%
fma-define74.9%
*-commutative74.9%
*-commutative74.9%
cancel-sign-sub-inv74.9%
cancel-sign-sub74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
fmm-def74.9%
*-commutative74.9%
distribute-rgt-neg-out74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in c around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 7.99999999999999977e-304 < a < 6.5000000000000004e-41Initial program 89.2%
+-commutative89.2%
fma-define89.2%
*-commutative89.2%
*-commutative89.2%
cancel-sign-sub-inv89.2%
cancel-sign-sub89.2%
sub-neg89.2%
sub-neg89.2%
*-commutative89.2%
fmm-def89.2%
*-commutative89.2%
distribute-rgt-neg-out89.2%
remove-double-neg89.2%
*-commutative89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in j around inf 58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
if 6.5000000000000004e-41 < a < 3.4999999999999998e129Initial program 87.4%
+-commutative87.4%
fma-define87.4%
*-commutative87.4%
*-commutative87.4%
cancel-sign-sub-inv87.4%
cancel-sign-sub87.4%
sub-neg87.4%
sub-neg87.4%
*-commutative87.4%
fmm-def87.4%
*-commutative87.4%
distribute-rgt-neg-out87.4%
remove-double-neg87.4%
*-commutative87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in x around inf 85.1%
fma-define85.1%
fma-define85.3%
associate-/l*82.9%
*-commutative82.9%
*-commutative82.9%
fmm-def82.9%
associate-/l*82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in x around inf 58.1%
+-commutative58.1%
neg-mul-158.1%
sub-neg58.1%
*-commutative58.1%
Simplified58.1%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= a -1.2e-50)
(* a (* t (- (* b (/ i t)) x)))
(if (<= a 1.85e+36)
(+ t_1 (* z (- (* x y) (* b c))))
(+ t_1 (* a (- (* b i) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (a <= -1.2e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 1.85e+36) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + (a * ((b * i) - (x * t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (a <= (-1.2d-50)) then
tmp = a * (t * ((b * (i / t)) - x))
else if (a <= 1.85d+36) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else
tmp = t_1 + (a * ((b * i) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (a <= -1.2e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 1.85e+36) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + (a * ((b * i) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if a <= -1.2e-50: tmp = a * (t * ((b * (i / t)) - x)) elif a <= 1.85e+36: tmp = t_1 + (z * ((x * y) - (b * c))) else: tmp = t_1 + (a * ((b * i) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (a <= -1.2e-50) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); elseif (a <= 1.85e+36) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(t_1 + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (a <= -1.2e-50) tmp = a * (t * ((b * (i / t)) - x)); elseif (a <= 1.85e+36) tmp = t_1 + (z * ((x * y) - (b * c))); else tmp = t_1 + (a * ((b * i) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e-50], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e+36], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+36}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.20000000000000001e-50Initial program 56.6%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around -inf 65.8%
associate-*r*65.8%
neg-mul-165.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*68.8%
Simplified68.8%
if -1.20000000000000001e-50 < a < 1.85000000000000014e36Initial program 82.3%
cancel-sign-sub-inv82.3%
cancel-sign-sub82.3%
fmm-def82.3%
distribute-lft-neg-out82.3%
*-commutative82.3%
remove-double-neg82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in z around inf 75.9%
if 1.85000000000000014e36 < a Initial program 70.3%
cancel-sign-sub-inv70.3%
cancel-sign-sub70.3%
fmm-def70.3%
distribute-lft-neg-out70.3%
*-commutative70.3%
remove-double-neg70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in a around -inf 79.7%
Final simplification75.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.12e-50)
(* a (* t (- (* b (/ i t)) x)))
(if (<= a 2e+141)
(+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))
(* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.12e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2e+141) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-1.12d-50)) then
tmp = a * (t * ((b * (i / t)) - x))
else if (a <= 2d+141) then
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1.12e-50) {
tmp = a * (t * ((b * (i / t)) - x));
} else if (a <= 2e+141) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.12e-50: tmp = a * (t * ((b * (i / t)) - x)) elif a <= 2e+141: tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.12e-50) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); elseif (a <= 2e+141) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.12e-50) tmp = a * (t * ((b * (i / t)) - x)); elseif (a <= 2e+141) tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.12e-50], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e+141], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.12 \cdot 10^{-50}:\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+141}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.12e-50Initial program 56.6%
Taylor expanded in c around 0 59.6%
Taylor expanded in a around -inf 65.8%
associate-*r*65.8%
neg-mul-165.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in t around inf 71.4%
mul-1-neg71.4%
unsub-neg71.4%
associate-/l*68.8%
Simplified68.8%
if -1.12e-50 < a < 2.00000000000000003e141Initial program 82.4%
cancel-sign-sub-inv82.4%
cancel-sign-sub82.4%
fmm-def82.4%
distribute-lft-neg-out82.4%
*-commutative82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in z around inf 73.2%
if 2.00000000000000003e141 < a Initial program 60.0%
Taylor expanded in c around 0 62.9%
Taylor expanded in a around -inf 81.1%
associate-*r*81.1%
neg-mul-181.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in t around 0 66.8%
+-commutative66.8%
mul-1-neg66.8%
unsub-neg66.8%
associate-*r*63.3%
*-commutative63.3%
associate-*r*57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in b around 0 66.8%
distribute-lft-out--81.1%
Simplified81.1%
Final simplification73.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -320000000.0)
(* b (* a i))
(if (<= i 4.8e-250)
(* a (* x (- t)))
(if (<= i 75000000000000.0)
(* z (* b (- c)))
(if (<= i 2.05e+154) (* i (* a b)) (* (* 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 (i <= -320000000.0) {
tmp = b * (a * i);
} else if (i <= 4.8e-250) {
tmp = a * (x * -t);
} else if (i <= 75000000000000.0) {
tmp = z * (b * -c);
} else if (i <= 2.05e+154) {
tmp = i * (a * b);
} else {
tmp = (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 (i <= (-320000000.0d0)) then
tmp = b * (a * i)
else if (i <= 4.8d-250) then
tmp = a * (x * -t)
else if (i <= 75000000000000.0d0) then
tmp = z * (b * -c)
else if (i <= 2.05d+154) then
tmp = i * (a * b)
else
tmp = (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 (i <= -320000000.0) {
tmp = b * (a * i);
} else if (i <= 4.8e-250) {
tmp = a * (x * -t);
} else if (i <= 75000000000000.0) {
tmp = z * (b * -c);
} else if (i <= 2.05e+154) {
tmp = i * (a * b);
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -320000000.0: tmp = b * (a * i) elif i <= 4.8e-250: tmp = a * (x * -t) elif i <= 75000000000000.0: tmp = z * (b * -c) elif i <= 2.05e+154: tmp = i * (a * b) else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -320000000.0) tmp = Float64(b * Float64(a * i)); elseif (i <= 4.8e-250) tmp = Float64(a * Float64(x * Float64(-t))); elseif (i <= 75000000000000.0) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= 2.05e+154) tmp = Float64(i * Float64(a * b)); else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -320000000.0) tmp = b * (a * i); elseif (i <= 4.8e-250) tmp = a * (x * -t); elseif (i <= 75000000000000.0) tmp = z * (b * -c); elseif (i <= 2.05e+154) tmp = i * (a * b); else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -320000000.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e-250], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 75000000000000.0], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.05e+154], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -320000000:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-250}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;i \leq 75000000000000:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 2.05 \cdot 10^{+154}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if i < -3.2e8Initial program 69.2%
+-commutative69.2%
fma-define69.2%
*-commutative69.2%
*-commutative69.2%
cancel-sign-sub-inv69.2%
cancel-sign-sub69.2%
sub-neg69.2%
sub-neg69.2%
*-commutative69.2%
fmm-def69.2%
*-commutative69.2%
distribute-rgt-neg-out69.2%
remove-double-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in i around inf 65.6%
distribute-lft-out--65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in y around 0 46.0%
*-commutative46.0%
associate-*r*46.2%
*-commutative46.2%
Simplified46.2%
if -3.2e8 < i < 4.7999999999999998e-250Initial program 82.0%
Taylor expanded in c around 0 48.5%
Taylor expanded in a around -inf 39.5%
associate-*r*39.5%
neg-mul-139.5%
*-commutative39.5%
Simplified39.5%
Taylor expanded in t around inf 35.3%
associate-*r*35.3%
mul-1-neg35.3%
Simplified35.3%
if 4.7999999999999998e-250 < i < 7.5e13Initial program 72.9%
+-commutative72.9%
fma-define74.5%
*-commutative74.5%
*-commutative74.5%
cancel-sign-sub-inv74.5%
cancel-sign-sub74.5%
sub-neg74.5%
sub-neg74.5%
*-commutative74.5%
fmm-def74.5%
*-commutative74.5%
distribute-rgt-neg-out74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in c around inf 46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in t around 0 35.9%
associate-*r*35.9%
neg-mul-135.9%
*-commutative35.9%
Simplified35.9%
Taylor expanded in b around 0 35.9%
mul-1-neg35.9%
associate-*r*41.6%
distribute-lft-neg-in41.6%
Simplified41.6%
if 7.5e13 < i < 2.05e154Initial program 63.5%
+-commutative63.5%
fma-define63.5%
*-commutative63.5%
*-commutative63.5%
cancel-sign-sub-inv63.5%
cancel-sign-sub63.5%
sub-neg63.5%
sub-neg63.5%
*-commutative63.5%
fmm-def63.5%
*-commutative63.5%
distribute-rgt-neg-out63.5%
remove-double-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around inf 57.8%
distribute-lft-out--57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around 0 39.5%
if 2.05e154 < i Initial program 63.8%
Taylor expanded in b around 0 60.1%
Taylor expanded in y around inf 57.5%
associate-*r*54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in y around -inf 62.9%
mul-1-neg62.9%
distribute-rgt-neg-in62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
Simplified62.9%
Taylor expanded in i around inf 55.1%
*-commutative55.1%
Simplified55.1%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))) (t_2 (* t (* x (- a)))))
(if (<= a -7.5e+132)
t_2
(if (<= a -6e-36)
t_1
(if (<= a 9.2e-35) (* t (* c j)) (if (<= a 1.6e+132) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double t_2 = t * (x * -a);
double tmp;
if (a <= -7.5e+132) {
tmp = t_2;
} else if (a <= -6e-36) {
tmp = t_1;
} else if (a <= 9.2e-35) {
tmp = t * (c * j);
} else if (a <= 1.6e+132) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * i)
t_2 = t * (x * -a)
if (a <= (-7.5d+132)) then
tmp = t_2
else if (a <= (-6d-36)) then
tmp = t_1
else if (a <= 9.2d-35) then
tmp = t * (c * j)
else if (a <= 1.6d+132) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double t_2 = t * (x * -a);
double tmp;
if (a <= -7.5e+132) {
tmp = t_2;
} else if (a <= -6e-36) {
tmp = t_1;
} else if (a <= 9.2e-35) {
tmp = t * (c * j);
} else if (a <= 1.6e+132) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) t_2 = t * (x * -a) tmp = 0 if a <= -7.5e+132: tmp = t_2 elif a <= -6e-36: tmp = t_1 elif a <= 9.2e-35: tmp = t * (c * j) elif a <= 1.6e+132: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) t_2 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (a <= -7.5e+132) tmp = t_2; elseif (a <= -6e-36) tmp = t_1; elseif (a <= 9.2e-35) tmp = Float64(t * Float64(c * j)); elseif (a <= 1.6e+132) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); t_2 = t * (x * -a); tmp = 0.0; if (a <= -7.5e+132) tmp = t_2; elseif (a <= -6e-36) tmp = t_1; elseif (a <= 9.2e-35) tmp = t * (c * j); elseif (a <= 1.6e+132) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.5e+132], t$95$2, If[LessEqual[a, -6e-36], t$95$1, If[LessEqual[a, 9.2e-35], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+132], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
t_2 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;a \leq -7.5 \cdot 10^{+132}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9.2 \cdot 10^{-35}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+132}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.50000000000000017e132 or 9.1999999999999996e-35 < a < 1.5999999999999999e132Initial program 68.5%
Taylor expanded in c around 0 62.0%
Taylor expanded in a around -inf 55.1%
associate-*r*55.1%
neg-mul-155.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in t around 0 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
associate-*r*51.2%
*-commutative51.2%
associate-*r*49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in b around 0 41.0%
mul-1-neg41.0%
associate-*r*39.6%
*-commutative39.6%
associate-*r*47.3%
distribute-rgt-neg-in47.3%
distribute-rgt-neg-in47.3%
Simplified47.3%
if -7.50000000000000017e132 < a < -6.0000000000000003e-36 or 1.5999999999999999e132 < a Initial program 62.6%
+-commutative62.6%
fma-define65.6%
*-commutative65.6%
*-commutative65.6%
cancel-sign-sub-inv65.6%
cancel-sign-sub65.6%
sub-neg65.6%
sub-neg65.6%
*-commutative65.6%
fmm-def65.6%
*-commutative65.6%
distribute-rgt-neg-out65.6%
remove-double-neg65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in i around inf 62.4%
distribute-lft-out--62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 51.2%
*-commutative51.2%
associate-*r*52.7%
*-commutative52.7%
Simplified52.7%
if -6.0000000000000003e-36 < a < 9.1999999999999996e-35Initial program 80.8%
+-commutative80.8%
fma-define81.7%
*-commutative81.7%
*-commutative81.7%
cancel-sign-sub-inv81.7%
cancel-sign-sub81.7%
sub-neg81.7%
sub-neg81.7%
*-commutative81.7%
fmm-def81.7%
*-commutative81.7%
distribute-rgt-neg-out81.7%
remove-double-neg81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in c around inf 46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 29.1%
associate-*r*31.1%
*-commutative31.1%
Simplified31.1%
Final simplification41.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.2e-50) (not (<= a 2.8e+49))) (* a (* t (- (* b (/ i t)) x))) (+ (* j (- (* t c) (* y i))) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.2e-50) || !(a <= 2.8e+49)) {
tmp = a * (t * ((b * (i / t)) - x));
} else {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.2d-50)) .or. (.not. (a <= 2.8d+49))) then
tmp = a * (t * ((b * (i / t)) - x))
else
tmp = (j * ((t * c) - (y * i))) + (z * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.2e-50) || !(a <= 2.8e+49)) {
tmp = a * (t * ((b * (i / t)) - x));
} else {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.2e-50) or not (a <= 2.8e+49): tmp = a * (t * ((b * (i / t)) - x)) else: tmp = (j * ((t * c) - (y * i))) + (z * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.2e-50) || !(a <= 2.8e+49)) tmp = Float64(a * Float64(t * Float64(Float64(b * Float64(i / t)) - x))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.2e-50) || ~((a <= 2.8e+49))) tmp = a * (t * ((b * (i / t)) - x)); else tmp = (j * ((t * c) - (y * i))) + (z * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.2e-50], N[Not[LessEqual[a, 2.8e+49]], $MachinePrecision]], N[(a * N[(t * N[(N[(b * N[(i / t), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.2 \cdot 10^{-50} \lor \neg \left(a \leq 2.8 \cdot 10^{+49}\right):\\
\;\;\;\;a \cdot \left(t \cdot \left(b \cdot \frac{i}{t} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if a < -1.20000000000000001e-50 or 2.7999999999999998e49 < a Initial program 61.5%
Taylor expanded in c around 0 63.1%
Taylor expanded in a around -inf 67.9%
associate-*r*67.9%
neg-mul-167.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in t around inf 70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-/l*70.0%
Simplified70.0%
if -1.20000000000000001e-50 < a < 2.7999999999999998e49Initial program 83.1%
Taylor expanded in b around 0 66.0%
Taylor expanded in y around inf 62.1%
associate-*r*62.1%
*-commutative62.1%
Simplified62.1%
Final simplification66.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -5.4e-14)
(* (* x y) (- z (* i (/ j x))))
(if (<= y -1.4e-92)
(* c (- (* t j) (* z b)))
(if (<= y 3600000000000.0)
(* a (- (* b i) (* x t)))
(* y (- (* x z) (* i j)))))))
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-14) {
tmp = (x * y) * (z - (i * (j / x)));
} else if (y <= -1.4e-92) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3600000000000.0) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-5.4d-14)) then
tmp = (x * y) * (z - (i * (j / x)))
else if (y <= (-1.4d-92)) then
tmp = c * ((t * j) - (z * b))
else if (y <= 3600000000000.0d0) then
tmp = a * ((b * i) - (x * t))
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -5.4e-14) {
tmp = (x * y) * (z - (i * (j / x)));
} else if (y <= -1.4e-92) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3600000000000.0) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -5.4e-14: tmp = (x * y) * (z - (i * (j / x))) elif y <= -1.4e-92: tmp = c * ((t * j) - (z * b)) elif y <= 3600000000000.0: tmp = a * ((b * i) - (x * t)) else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -5.4e-14) tmp = Float64(Float64(x * y) * Float64(z - Float64(i * Float64(j / x)))); elseif (y <= -1.4e-92) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 3600000000000.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -5.4e-14) tmp = (x * y) * (z - (i * (j / x))); elseif (y <= -1.4e-92) tmp = c * ((t * j) - (z * b)); elseif (y <= 3600000000000.0) tmp = a * ((b * i) - (x * t)); else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -5.4e-14], N[(N[(x * y), $MachinePrecision] * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.4e-92], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3600000000000.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{-14}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - i \cdot \frac{j}{x}\right)\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-92}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3600000000000:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -5.3999999999999997e-14Initial program 70.1%
+-commutative70.1%
fma-define71.8%
*-commutative71.8%
*-commutative71.8%
cancel-sign-sub-inv71.8%
cancel-sign-sub71.8%
sub-neg71.8%
sub-neg71.8%
*-commutative71.8%
fmm-def71.8%
*-commutative71.8%
distribute-rgt-neg-out71.8%
remove-double-neg71.8%
*-commutative71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 65.0%
fma-define65.0%
fma-define70.0%
associate-/l*66.8%
*-commutative66.8%
*-commutative66.8%
fmm-def66.8%
associate-/l*63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in y around inf 74.1%
associate-*r*75.6%
*-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
associate-/l*75.6%
Simplified75.6%
if -5.3999999999999997e-14 < y < -1.4e-92Initial program 82.4%
+-commutative82.4%
fma-define82.4%
*-commutative82.4%
*-commutative82.4%
cancel-sign-sub-inv82.4%
cancel-sign-sub82.4%
sub-neg82.4%
sub-neg82.4%
*-commutative82.4%
fmm-def82.4%
*-commutative82.4%
distribute-rgt-neg-out82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in c around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
if -1.4e-92 < y < 3.6e12Initial program 77.1%
Taylor expanded in c around 0 59.0%
Taylor expanded in a around -inf 58.2%
associate-*r*58.2%
neg-mul-158.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around 0 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
associate-*r*52.3%
*-commutative52.3%
associate-*r*49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in b around 0 53.9%
distribute-lft-out--58.2%
Simplified58.2%
if 3.6e12 < y Initial program 60.8%
+-commutative60.8%
fma-define60.8%
*-commutative60.8%
*-commutative60.8%
cancel-sign-sub-inv60.8%
cancel-sign-sub60.8%
sub-neg60.8%
sub-neg60.8%
*-commutative60.8%
fmm-def62.6%
*-commutative62.6%
distribute-rgt-neg-out62.6%
remove-double-neg62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in y around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
Simplified63.5%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -6.5e-14)
t_1
(if (<= y -1.45e-92)
(* c (- (* t j) (* z b)))
(if (<= y 72000000000000.0) (* a (- (* b i) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.5e-14) {
tmp = t_1;
} else if (y <= -1.45e-92) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 72000000000000.0) {
tmp = a * ((b * i) - (x * t));
} 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) - (i * j))
if (y <= (-6.5d-14)) then
tmp = t_1
else if (y <= (-1.45d-92)) then
tmp = c * ((t * j) - (z * b))
else if (y <= 72000000000000.0d0) then
tmp = a * ((b * i) - (x * t))
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) - (i * j));
double tmp;
if (y <= -6.5e-14) {
tmp = t_1;
} else if (y <= -1.45e-92) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 72000000000000.0) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -6.5e-14: tmp = t_1 elif y <= -1.45e-92: tmp = c * ((t * j) - (z * b)) elif y <= 72000000000000.0: tmp = a * ((b * i) - (x * t)) 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(i * j))) tmp = 0.0 if (y <= -6.5e-14) tmp = t_1; elseif (y <= -1.45e-92) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 72000000000000.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); 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) - (i * j)); tmp = 0.0; if (y <= -6.5e-14) tmp = t_1; elseif (y <= -1.45e-92) tmp = c * ((t * j) - (z * b)); elseif (y <= 72000000000000.0) tmp = a * ((b * i) - (x * t)); 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[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e-14], t$95$1, If[LessEqual[y, -1.45e-92], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 72000000000000.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-92}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 72000000000000:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.5000000000000001e-14 or 7.2e13 < y Initial program 65.6%
+-commutative65.6%
fma-define66.5%
*-commutative66.5%
*-commutative66.5%
cancel-sign-sub-inv66.5%
cancel-sign-sub66.5%
sub-neg66.5%
sub-neg66.5%
*-commutative66.5%
fmm-def67.3%
*-commutative67.3%
distribute-rgt-neg-out67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
Simplified67.3%
if -6.5000000000000001e-14 < y < -1.44999999999999992e-92Initial program 82.4%
+-commutative82.4%
fma-define82.4%
*-commutative82.4%
*-commutative82.4%
cancel-sign-sub-inv82.4%
cancel-sign-sub82.4%
sub-neg82.4%
sub-neg82.4%
*-commutative82.4%
fmm-def82.4%
*-commutative82.4%
distribute-rgt-neg-out82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in c around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
if -1.44999999999999992e-92 < y < 7.2e13Initial program 77.1%
Taylor expanded in c around 0 59.0%
Taylor expanded in a around -inf 58.2%
associate-*r*58.2%
neg-mul-158.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around 0 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
associate-*r*52.3%
*-commutative52.3%
associate-*r*49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in b around 0 53.9%
distribute-lft-out--58.2%
Simplified58.2%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -2.3e-40)
t_1
(if (<= a 5.4e-304)
(* c (- (* t j) (* z b)))
(if (<= a 9e-39) (* j (- (* t c) (* y 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 * ((b * i) - (x * t));
double tmp;
if (a <= -2.3e-40) {
tmp = t_1;
} else if (a <= 5.4e-304) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 9e-39) {
tmp = j * ((t * c) - (y * 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 * ((b * i) - (x * t))
if (a <= (-2.3d-40)) then
tmp = t_1
else if (a <= 5.4d-304) then
tmp = c * ((t * j) - (z * b))
else if (a <= 9d-39) then
tmp = j * ((t * c) - (y * 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 * ((b * i) - (x * t));
double tmp;
if (a <= -2.3e-40) {
tmp = t_1;
} else if (a <= 5.4e-304) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 9e-39) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.3e-40: tmp = t_1 elif a <= 5.4e-304: tmp = c * ((t * j) - (z * b)) elif a <= 9e-39: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.3e-40) tmp = t_1; elseif (a <= 5.4e-304) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 9e-39) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * 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 * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.3e-40) tmp = t_1; elseif (a <= 5.4e-304) tmp = c * ((t * j) - (z * b)); elseif (a <= 9e-39) tmp = j * ((t * c) - (y * 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[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e-40], t$95$1, If[LessEqual[a, 5.4e-304], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e-39], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{-40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.4 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{-39}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.3e-40 or 9.0000000000000002e-39 < a Initial program 65.6%
Taylor expanded in c around 0 64.3%
Taylor expanded in a around -inf 63.8%
associate-*r*63.8%
neg-mul-163.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in t around 0 59.7%
+-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
associate-*r*56.8%
*-commutative56.8%
associate-*r*54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in b around 0 59.7%
distribute-lft-out--63.8%
Simplified63.8%
if -2.3e-40 < a < 5.40000000000000021e-304Initial program 73.1%
+-commutative73.1%
fma-define74.9%
*-commutative74.9%
*-commutative74.9%
cancel-sign-sub-inv74.9%
cancel-sign-sub74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
fmm-def74.9%
*-commutative74.9%
distribute-rgt-neg-out74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in c around inf 53.1%
*-commutative53.1%
*-commutative53.1%
Simplified53.1%
if 5.40000000000000021e-304 < a < 9.0000000000000002e-39Initial program 89.4%
+-commutative89.4%
fma-define89.4%
*-commutative89.4%
*-commutative89.4%
cancel-sign-sub-inv89.4%
cancel-sign-sub89.4%
sub-neg89.4%
sub-neg89.4%
*-commutative89.4%
fmm-def89.4%
*-commutative89.4%
distribute-rgt-neg-out89.4%
remove-double-neg89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in j around inf 57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Final simplification60.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= a -5.6e-34)
t_1
(if (<= a 1.8e-51)
(* t (* c j))
(if (<= a 7.8e+60) (* c (* z (- 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 = b * (a * i);
double tmp;
if (a <= -5.6e-34) {
tmp = t_1;
} else if (a <= 1.8e-51) {
tmp = t * (c * j);
} else if (a <= 7.8e+60) {
tmp = c * (z * -b);
} 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 * (a * i)
if (a <= (-5.6d-34)) then
tmp = t_1
else if (a <= 1.8d-51) then
tmp = t * (c * j)
else if (a <= 7.8d+60) then
tmp = c * (z * -b)
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 * (a * i);
double tmp;
if (a <= -5.6e-34) {
tmp = t_1;
} else if (a <= 1.8e-51) {
tmp = t * (c * j);
} else if (a <= 7.8e+60) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if a <= -5.6e-34: tmp = t_1 elif a <= 1.8e-51: tmp = t * (c * j) elif a <= 7.8e+60: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (a <= -5.6e-34) tmp = t_1; elseif (a <= 1.8e-51) tmp = Float64(t * Float64(c * j)); elseif (a <= 7.8e+60) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (a <= -5.6e-34) tmp = t_1; elseif (a <= 1.8e-51) tmp = t * (c * j); elseif (a <= 7.8e+60) tmp = c * (z * -b); 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[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.6e-34], t$95$1, If[LessEqual[a, 1.8e-51], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+60], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -5.6 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-51}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 7.8 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.59999999999999994e-34 or 7.8000000000000006e60 < a Initial program 61.9%
+-commutative61.9%
fma-define63.5%
*-commutative63.5%
*-commutative63.5%
cancel-sign-sub-inv63.5%
cancel-sign-sub63.5%
sub-neg63.5%
sub-neg63.5%
*-commutative63.5%
fmm-def64.3%
*-commutative64.3%
distribute-rgt-neg-out64.3%
remove-double-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in i around inf 51.3%
distribute-lft-out--51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in y around 0 40.0%
*-commutative40.0%
associate-*r*42.4%
*-commutative42.4%
Simplified42.4%
if -5.59999999999999994e-34 < a < 1.8e-51Initial program 81.3%
+-commutative81.3%
fma-define82.2%
*-commutative82.2%
*-commutative82.2%
cancel-sign-sub-inv82.2%
cancel-sign-sub82.2%
sub-neg82.2%
sub-neg82.2%
*-commutative82.2%
fmm-def82.2%
*-commutative82.2%
distribute-rgt-neg-out82.2%
remove-double-neg82.2%
*-commutative82.2%
*-commutative82.2%
Simplified82.2%
Taylor expanded in c around inf 45.2%
*-commutative45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in t around inf 29.5%
associate-*r*31.6%
*-commutative31.6%
Simplified31.6%
if 1.8e-51 < a < 7.8000000000000006e60Initial program 86.4%
+-commutative86.4%
fma-define86.4%
*-commutative86.4%
*-commutative86.4%
cancel-sign-sub-inv86.4%
cancel-sign-sub86.4%
sub-neg86.4%
sub-neg86.4%
*-commutative86.4%
fmm-def86.4%
*-commutative86.4%
distribute-rgt-neg-out86.4%
remove-double-neg86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
Taylor expanded in c around inf 38.0%
*-commutative38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in t around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-rgt-neg-in37.7%
Simplified37.7%
Final simplification37.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= a -4.6e-28)
t_1
(if (<= a 4.5e-98)
(* t (* c j))
(if (<= a 4.4e+131) (* x (* y 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 = b * (a * i);
double tmp;
if (a <= -4.6e-28) {
tmp = t_1;
} else if (a <= 4.5e-98) {
tmp = t * (c * j);
} else if (a <= 4.4e+131) {
tmp = x * (y * 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 = b * (a * i)
if (a <= (-4.6d-28)) then
tmp = t_1
else if (a <= 4.5d-98) then
tmp = t * (c * j)
else if (a <= 4.4d+131) then
tmp = x * (y * 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 = b * (a * i);
double tmp;
if (a <= -4.6e-28) {
tmp = t_1;
} else if (a <= 4.5e-98) {
tmp = t * (c * j);
} else if (a <= 4.4e+131) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if a <= -4.6e-28: tmp = t_1 elif a <= 4.5e-98: tmp = t * (c * j) elif a <= 4.4e+131: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (a <= -4.6e-28) tmp = t_1; elseif (a <= 4.5e-98) tmp = Float64(t * Float64(c * j)); elseif (a <= 4.4e+131) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (a <= -4.6e-28) tmp = t_1; elseif (a <= 4.5e-98) tmp = t * (c * j); elseif (a <= 4.4e+131) tmp = x * (y * 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.6e-28], t$95$1, If[LessEqual[a, 4.5e-98], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+131], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-98}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+131}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.59999999999999971e-28 or 4.3999999999999998e131 < a Initial program 57.8%
+-commutative57.8%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fmm-def60.7%
*-commutative60.7%
distribute-rgt-neg-out60.7%
remove-double-neg60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in i around inf 54.1%
distribute-lft-out--54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y around 0 43.1%
*-commutative43.1%
associate-*r*45.9%
*-commutative45.9%
Simplified45.9%
if -4.59999999999999971e-28 < a < 4.49999999999999997e-98Initial program 80.2%
+-commutative80.2%
fma-define81.2%
*-commutative81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
cancel-sign-sub81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
fmm-def81.2%
*-commutative81.2%
distribute-rgt-neg-out81.2%
remove-double-neg81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in c around inf 47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in t around inf 28.6%
associate-*r*31.0%
*-commutative31.0%
Simplified31.0%
if 4.49999999999999997e-98 < a < 4.3999999999999998e131Initial program 86.6%
Taylor expanded in b around 0 74.1%
Taylor expanded in y around inf 57.6%
associate-*r*57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around -inf 52.0%
mul-1-neg52.0%
distribute-rgt-neg-in52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
Simplified55.7%
Taylor expanded in j around 0 32.3%
Final simplification37.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= a -1.9e-29)
t_1
(if (<= a 2.2e-98)
(* c (* t j))
(if (<= a 3.8e+130) (* x (* y 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 = b * (a * i);
double tmp;
if (a <= -1.9e-29) {
tmp = t_1;
} else if (a <= 2.2e-98) {
tmp = c * (t * j);
} else if (a <= 3.8e+130) {
tmp = x * (y * 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 = b * (a * i)
if (a <= (-1.9d-29)) then
tmp = t_1
else if (a <= 2.2d-98) then
tmp = c * (t * j)
else if (a <= 3.8d+130) then
tmp = x * (y * 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 = b * (a * i);
double tmp;
if (a <= -1.9e-29) {
tmp = t_1;
} else if (a <= 2.2e-98) {
tmp = c * (t * j);
} else if (a <= 3.8e+130) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if a <= -1.9e-29: tmp = t_1 elif a <= 2.2e-98: tmp = c * (t * j) elif a <= 3.8e+130: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (a <= -1.9e-29) tmp = t_1; elseif (a <= 2.2e-98) tmp = Float64(c * Float64(t * j)); elseif (a <= 3.8e+130) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (a <= -1.9e-29) tmp = t_1; elseif (a <= 2.2e-98) tmp = c * (t * j); elseif (a <= 3.8e+130) tmp = x * (y * 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e-29], t$95$1, If[LessEqual[a, 2.2e-98], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+130], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-98}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+130}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.89999999999999988e-29 or 3.8000000000000002e130 < a Initial program 57.8%
+-commutative57.8%
fma-define59.7%
*-commutative59.7%
*-commutative59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
sub-neg59.7%
sub-neg59.7%
*-commutative59.7%
fmm-def60.7%
*-commutative60.7%
distribute-rgt-neg-out60.7%
remove-double-neg60.7%
*-commutative60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in i around inf 54.1%
distribute-lft-out--54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in y around 0 43.1%
*-commutative43.1%
associate-*r*45.9%
*-commutative45.9%
Simplified45.9%
if -1.89999999999999988e-29 < a < 2.19999999999999996e-98Initial program 80.2%
+-commutative80.2%
fma-define81.2%
*-commutative81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
cancel-sign-sub81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
fmm-def81.2%
*-commutative81.2%
distribute-rgt-neg-out81.2%
remove-double-neg81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in c around inf 47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in t around inf 28.6%
if 2.19999999999999996e-98 < a < 3.8000000000000002e130Initial program 86.6%
Taylor expanded in b around 0 74.1%
Taylor expanded in y around inf 57.6%
associate-*r*57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around -inf 52.0%
mul-1-neg52.0%
distribute-rgt-neg-in52.0%
+-commutative52.0%
mul-1-neg52.0%
unsub-neg52.0%
Simplified55.7%
Taylor expanded in j around 0 32.3%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.05e-42) (not (<= a 2.65e+39))) (* a (- (* b i) (* x t))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.05e-42) || !(a <= 2.65e+39)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-2.05d-42)) .or. (.not. (a <= 2.65d+39))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.05e-42) || !(a <= 2.65e+39)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.05e-42) or not (a <= 2.65e+39): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.05e-42) || !(a <= 2.65e+39)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.05e-42) || ~((a <= 2.65e+39))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.05e-42], N[Not[LessEqual[a, 2.65e+39]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.05 \cdot 10^{-42} \lor \neg \left(a \leq 2.65 \cdot 10^{+39}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -2.0500000000000001e-42 or 2.64999999999999989e39 < a Initial program 63.4%
Taylor expanded in c around 0 64.3%
Taylor expanded in a around -inf 66.6%
associate-*r*66.6%
neg-mul-166.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in t around 0 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
associate-*r*58.9%
*-commutative58.9%
associate-*r*55.9%
*-commutative55.9%
Simplified55.9%
Taylor expanded in b around 0 62.0%
distribute-lft-out--66.6%
Simplified66.6%
if -2.0500000000000001e-42 < a < 2.64999999999999989e39Initial program 81.8%
+-commutative81.8%
fma-define82.6%
*-commutative82.6%
*-commutative82.6%
cancel-sign-sub-inv82.6%
cancel-sign-sub82.6%
sub-neg82.6%
sub-neg82.6%
*-commutative82.6%
fmm-def82.6%
*-commutative82.6%
distribute-rgt-neg-out82.6%
remove-double-neg82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Taylor expanded in c around inf 46.6%
*-commutative46.6%
*-commutative46.6%
Simplified46.6%
Final simplification56.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -9.5e+172) (* t (* c j)) (if (<= j 1.12e+141) (* a (- (* b i) (* x t))) (* i (* y (- j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+172) {
tmp = t * (c * j);
} else if (j <= 1.12e+141) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d+172)) then
tmp = t * (c * j)
else if (j <= 1.12d+141) then
tmp = a * ((b * i) - (x * t))
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e+172) {
tmp = t * (c * j);
} else if (j <= 1.12e+141) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e+172: tmp = t * (c * j) elif j <= 1.12e+141: tmp = a * ((b * i) - (x * t)) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e+172) tmp = Float64(t * Float64(c * j)); elseif (j <= 1.12e+141) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e+172) tmp = t * (c * j); elseif (j <= 1.12e+141) tmp = a * ((b * i) - (x * t)); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e+172], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.12e+141], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+172}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+141}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -9.50000000000000027e172Initial program 64.3%
+-commutative64.3%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fmm-def75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in c around inf 54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in t around inf 40.6%
associate-*r*47.0%
*-commutative47.0%
Simplified47.0%
if -9.50000000000000027e172 < j < 1.11999999999999993e141Initial program 75.6%
Taylor expanded in c around 0 63.9%
Taylor expanded in a around -inf 50.2%
associate-*r*50.2%
neg-mul-150.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in t around 0 47.1%
+-commutative47.1%
mul-1-neg47.1%
unsub-neg47.1%
associate-*r*44.5%
*-commutative44.5%
associate-*r*42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in b around 0 47.1%
distribute-lft-out--50.2%
Simplified50.2%
if 1.11999999999999993e141 < j Initial program 60.5%
+-commutative60.5%
fma-define60.5%
*-commutative60.5%
*-commutative60.5%
cancel-sign-sub-inv60.5%
cancel-sign-sub60.5%
sub-neg60.5%
sub-neg60.5%
*-commutative60.5%
fmm-def60.5%
*-commutative60.5%
distribute-rgt-neg-out60.5%
remove-double-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in i around inf 54.5%
distribute-lft-out--54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in y around inf 54.3%
associate-*r*54.3%
*-commutative54.3%
mul-1-neg54.3%
Simplified54.3%
Final simplification50.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3.4e+219) (not (<= z 2.5e+45))) (* x (* y z)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.4e+219) || !(z <= 2.5e+45)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-3.4d+219)) .or. (.not. (z <= 2.5d+45))) then
tmp = x * (y * z)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.4e+219) || !(z <= 2.5e+45)) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -3.4e+219) or not (z <= 2.5e+45): tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3.4e+219) || !(z <= 2.5e+45)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -3.4e+219) || ~((z <= 2.5e+45))) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.4e+219], N[Not[LessEqual[z, 2.5e+45]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+219} \lor \neg \left(z \leq 2.5 \cdot 10^{+45}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -3.40000000000000016e219 or 2.5e45 < z Initial program 64.2%
Taylor expanded in b around 0 57.4%
Taylor expanded in y around inf 54.6%
associate-*r*59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in y around -inf 58.5%
mul-1-neg58.5%
distribute-rgt-neg-in58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified57.2%
Taylor expanded in j around 0 42.9%
if -3.40000000000000016e219 < z < 2.5e45Initial program 76.3%
+-commutative76.3%
fma-define78.0%
*-commutative78.0%
*-commutative78.0%
cancel-sign-sub-inv78.0%
cancel-sign-sub78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
fmm-def78.0%
*-commutative78.0%
distribute-rgt-neg-out78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in i around inf 47.7%
distribute-lft-out--47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in y around 0 29.7%
Final simplification34.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.25e+175) (not (<= j 1.35e+29))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.25e+175) || !(j <= 1.35e+29)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
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 ((j <= (-1.25d+175)) .or. (.not. (j <= 1.35d+29))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
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 ((j <= -1.25e+175) || !(j <= 1.35e+29)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.25e+175) or not (j <= 1.35e+29): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.25e+175) || !(j <= 1.35e+29)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.25e+175) || ~((j <= 1.35e+29))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.25e+175], N[Not[LessEqual[j, 1.35e+29]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.25 \cdot 10^{+175} \lor \neg \left(j \leq 1.35 \cdot 10^{+29}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if j < -1.25e175 or 1.35e29 < j Initial program 69.2%
+-commutative69.2%
fma-define72.5%
*-commutative72.5%
*-commutative72.5%
cancel-sign-sub-inv72.5%
cancel-sign-sub72.5%
sub-neg72.5%
sub-neg72.5%
*-commutative72.5%
fmm-def72.5%
*-commutative72.5%
distribute-rgt-neg-out72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in c around inf 47.1%
*-commutative47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in t around inf 38.5%
if -1.25e175 < j < 1.35e29Initial program 74.2%
+-commutative74.2%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
sub-neg74.2%
sub-neg74.2%
*-commutative74.2%
fmm-def74.8%
*-commutative74.8%
distribute-rgt-neg-out74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in i around inf 38.6%
distribute-lft-out--38.6%
*-commutative38.6%
Simplified38.6%
Taylor expanded in y around 0 29.7%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 72.4%
+-commutative72.4%
fma-define73.6%
*-commutative73.6%
*-commutative73.6%
cancel-sign-sub-inv73.6%
cancel-sign-sub73.6%
sub-neg73.6%
sub-neg73.6%
*-commutative73.6%
fmm-def74.0%
*-commutative74.0%
distribute-rgt-neg-out74.0%
remove-double-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in i around inf 40.8%
distribute-lft-out--40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in y around 0 24.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024149
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))