
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* c (* b (- (/ (* t i) c) z))))))
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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * (b * (((t * i) / c) - z));
}
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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * (b * (((t * i) / c) - z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * (b * (((t * i) / c) - z)) 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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(b * Float64(Float64(Float64(t * i) / c) - z))); 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * (b * (((t * i) / c) - z)); 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(b * N[(N[(N[(t * i), $MachinePrecision] / c), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(b \cdot \left(\frac{t \cdot i}{c} - z\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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in y around 0
Simplified33.3%
Taylor expanded in c around -inf
Simplified49.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6457.5%
Simplified57.5%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -8.2e+68)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
(if (<= z 2.6e+249)
(+
(* a (- (* c j) (* x t)))
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c)))))
(- (* j (* a c)) (* z (* y (- (/ (* b c) y) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8.2e+68) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else if (z <= 2.6e+249) {
tmp = (a * ((c * j) - (x * t))) + ((y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))));
} else {
tmp = (j * (a * c)) - (z * (y * (((b * c) / y) - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-8.2d+68)) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
else if (z <= 2.6d+249) then
tmp = (a * ((c * j) - (x * t))) + ((y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))))
else
tmp = (j * (a * c)) - (z * (y * (((b * c) / y) - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -8.2e+68) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else if (z <= 2.6e+249) {
tmp = (a * ((c * j) - (x * t))) + ((y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))));
} else {
tmp = (j * (a * c)) - (z * (y * (((b * c) / y) - x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -8.2e+68: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) elif z <= 2.6e+249: tmp = (a * ((c * j) - (x * t))) + ((y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))) else: tmp = (j * (a * c)) - (z * (y * (((b * c) / y) - x))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -8.2e+68) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (z <= 2.6e+249) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))))); else tmp = Float64(Float64(j * Float64(a * c)) - Float64(z * Float64(y * Float64(Float64(Float64(b * c) / y) - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -8.2e+68) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); elseif (z <= 2.6e+249) tmp = (a * ((c * j) - (x * t))) + ((y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))); else tmp = (j * (a * c)) - (z * (y * (((b * c) / y) - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -8.2e+68], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+249], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] - N[(z * N[(y * N[(N[(N[(b * c), $MachinePrecision] / y), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+68}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+249}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + \left(y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) - z \cdot \left(y \cdot \left(\frac{b \cdot c}{y} - x\right)\right)\\
\end{array}
\end{array}
if z < -8.1999999999999998e68Initial program 65.4%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6473.7%
Simplified73.7%
if -8.1999999999999998e68 < z < 2.60000000000000019e249Initial program 76.5%
Taylor expanded in y around 0
Simplified80.8%
if 2.60000000000000019e249 < z Initial program 59.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.2%
Simplified76.2%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6488.3%
Simplified88.3%
Taylor expanded in y around inf
*-lowering-*.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6494.3%
Simplified94.3%
Final simplification79.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= t -6.5e+193)
(+ t_2 t_1)
(if (<= t -8e+35)
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c))))
(if (<= t 1.35e+141) (+ t_2 (* z (- (* x y) (* b c)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (t <= -6.5e+193) {
tmp = t_2 + t_1;
} else if (t <= -8e+35) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else if (t <= 1.35e+141) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
t_2 = j * ((a * c) - (y * i))
if (t <= (-6.5d+193)) then
tmp = t_2 + t_1
else if (t <= (-8d+35)) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
else if (t <= 1.35d+141) then
tmp = t_2 + (z * ((x * y) - (b * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (t <= -6.5e+193) {
tmp = t_2 + t_1;
} else if (t <= -8e+35) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else if (t <= 1.35e+141) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if t <= -6.5e+193: tmp = t_2 + t_1 elif t <= -8e+35: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) elif t <= 1.35e+141: tmp = t_2 + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (t <= -6.5e+193) tmp = Float64(t_2 + t_1); elseif (t <= -8e+35) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (t <= 1.35e+141) tmp = Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (t <= -6.5e+193) tmp = t_2 + t_1; elseif (t <= -8e+35) tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); elseif (t <= 1.35e+141) tmp = t_2 + (z * ((x * y) - (b * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.5e+193], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[t, -8e+35], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+141], N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+193}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;t \leq -8 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+141}:\\
\;\;\;\;t\_2 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.4999999999999997e193Initial program 60.7%
Taylor expanded in z around 0
sub-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified77.9%
if -6.4999999999999997e193 < t < -7.9999999999999997e35Initial program 65.5%
Taylor expanded in a around 0
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.2%
Simplified76.2%
if -7.9999999999999997e35 < t < 1.35e141Initial program 78.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.3%
Simplified76.3%
if 1.35e141 < t Initial program 63.7%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.2%
Simplified76.2%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* t (- (* b i) (* x a)))))
(if (<= t -9e+193)
(+ t_2 t_1)
(if (<= t -7.6e+36)
(+ t_1 (* b (- (* t i) (* z c))))
(if (<= t 1.3e+144)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -9e+193) {
tmp = t_2 + t_1;
} else if (t <= -7.6e+36) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (t <= 1.3e+144) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} 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 = y * ((x * z) - (i * j))
t_2 = t * ((b * i) - (x * a))
if (t <= (-9d+193)) then
tmp = t_2 + t_1
else if (t <= (-7.6d+36)) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else if (t <= 1.3d+144) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
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 = y * ((x * z) - (i * j));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -9e+193) {
tmp = t_2 + t_1;
} else if (t <= -7.6e+36) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (t <= 1.3e+144) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -9e+193: tmp = t_2 + t_1 elif t <= -7.6e+36: tmp = t_1 + (b * ((t * i) - (z * c))) elif t <= 1.3e+144: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -9e+193) tmp = Float64(t_2 + t_1); elseif (t <= -7.6e+36) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (t <= 1.3e+144) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -9e+193) tmp = t_2 + t_1; elseif (t <= -7.6e+36) tmp = t_1 + (b * ((t * i) - (z * c))); elseif (t <= 1.3e+144) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = t_2; 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]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e+193], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[t, -7.6e+36], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e+144], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -9 \cdot 10^{+193}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;t \leq -7.6 \cdot 10^{+36}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+144}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -8.99999999999999999e193Initial program 60.7%
Taylor expanded in y around 0
Simplified48.0%
Taylor expanded in c around -inf
Simplified70.6%
Taylor expanded in c around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6477.6%
Simplified77.6%
if -8.99999999999999999e193 < t < -7.6000000000000005e36Initial program 65.5%
Taylor expanded in a around 0
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.2%
Simplified76.2%
if -7.6000000000000005e36 < t < 1.2999999999999999e144Initial program 78.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.3%
Simplified76.3%
if 1.2999999999999999e144 < t Initial program 63.7%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.2%
Simplified76.2%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.06e+183)
(* t (- (* b i) (* x a)))
(if (<= t -2.9e-148)
(- (* j (- (* a c) (* y i))) (* c (* z b)))
(if (<= t 2.15e+49)
(+ (* z (- (* x y) (* b c))) (* j (* a c)))
(* (* x t) (- (/ (* b i) x) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.06e+183) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -2.9e-148) {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
} else if (t <= 2.15e+49) {
tmp = (z * ((x * y) - (b * c))) + (j * (a * c));
} else {
tmp = (x * t) * (((b * i) / x) - a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.06d+183)) then
tmp = t * ((b * i) - (x * a))
else if (t <= (-2.9d-148)) then
tmp = (j * ((a * c) - (y * i))) - (c * (z * b))
else if (t <= 2.15d+49) then
tmp = (z * ((x * y) - (b * c))) + (j * (a * c))
else
tmp = (x * t) * (((b * i) / x) - a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.06e+183) {
tmp = t * ((b * i) - (x * a));
} else if (t <= -2.9e-148) {
tmp = (j * ((a * c) - (y * i))) - (c * (z * b));
} else if (t <= 2.15e+49) {
tmp = (z * ((x * y) - (b * c))) + (j * (a * c));
} else {
tmp = (x * t) * (((b * i) / x) - a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.06e+183: tmp = t * ((b * i) - (x * a)) elif t <= -2.9e-148: tmp = (j * ((a * c) - (y * i))) - (c * (z * b)) elif t <= 2.15e+49: tmp = (z * ((x * y) - (b * c))) + (j * (a * c)) else: tmp = (x * t) * (((b * i) / x) - a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.06e+183) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= -2.9e-148) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(c * Float64(z * b))); elseif (t <= 2.15e+49) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(a * c))); else tmp = Float64(Float64(x * t) * Float64(Float64(Float64(b * i) / x) - a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.06e+183) tmp = t * ((b * i) - (x * a)); elseif (t <= -2.9e-148) tmp = (j * ((a * c) - (y * i))) - (c * (z * b)); elseif (t <= 2.15e+49) tmp = (z * ((x * y) - (b * c))) + (j * (a * c)); else tmp = (x * t) * (((b * i) / x) - a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.06e+183], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e-148], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+49], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * N[(N[(N[(b * i), $MachinePrecision] / x), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.06 \cdot 10^{+183}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{-148}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{+49}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(\frac{b \cdot i}{x} - a\right)\\
\end{array}
\end{array}
if t < -1.06e183Initial program 62.6%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.9%
Simplified76.9%
if -1.06e183 < t < -2.8999999999999998e-148Initial program 74.4%
Taylor expanded in c around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.3%
Simplified64.3%
if -2.8999999999999998e-148 < t < 2.15e49Initial program 81.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6477.5%
Simplified77.5%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6472.0%
Simplified72.0%
if 2.15e49 < t Initial program 60.8%
Taylor expanded in y around 0
Simplified73.0%
Taylor expanded in c around -inf
Simplified60.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified48.6%
Taylor expanded in t around -inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6466.8%
Simplified66.8%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -4.8e+35)
(+ t_1 (* y (- (* x z) (* i j))))
(if (<= t 1.2e+139)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4.8e+35) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else if (t <= 1.2e+139) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-4.8d+35)) then
tmp = t_1 + (y * ((x * z) - (i * j)))
else if (t <= 1.2d+139) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4.8e+35) {
tmp = t_1 + (y * ((x * z) - (i * j)));
} else if (t <= 1.2e+139) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -4.8e+35: tmp = t_1 + (y * ((x * z) - (i * j))) elif t <= 1.2e+139: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -4.8e+35) tmp = Float64(t_1 + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (t <= 1.2e+139) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -4.8e+35) tmp = t_1 + (y * ((x * z) - (i * j))); elseif (t <= 1.2e+139) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+35], N[(t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e+139], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+35}:\\
\;\;\;\;t\_1 + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{+139}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.80000000000000029e35Initial program 62.8%
Taylor expanded in y around 0
Simplified59.7%
Taylor expanded in c around -inf
Simplified65.9%
Taylor expanded in c around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6470.2%
Simplified70.2%
if -4.80000000000000029e35 < t < 1.20000000000000004e139Initial program 78.6%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.3%
Simplified76.3%
if 1.20000000000000004e139 < t Initial program 63.7%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6476.2%
Simplified76.2%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -4e+65)
t_1
(if (<= t 2e+144)
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4e+65) {
tmp = t_1;
} else if (t <= 2e+144) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-4d+65)) then
tmp = t_1
else if (t <= 2d+144) then
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -4e+65) {
tmp = t_1;
} else if (t <= 2e+144) {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -4e+65: tmp = t_1 elif t <= 2e+144: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -4e+65) tmp = t_1; elseif (t <= 2e+144) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -4e+65) tmp = t_1; elseif (t <= 2e+144) tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4e+65], t$95$1, If[LessEqual[t, 2e+144], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -4 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+144}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4e65 or 2.00000000000000005e144 < t Initial program 63.2%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6469.7%
Simplified69.7%
if -4e65 < t < 2.00000000000000005e144Initial program 78.1%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6475.8%
Simplified75.8%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1.9e+72)
t_1
(if (<= b 1.1e+114)
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.9e+72) {
tmp = t_1;
} else if (b <= 1.1e+114) {
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-1.9d+72)) then
tmp = t_1
else if (b <= 1.1d+114) then
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.9e+72) {
tmp = t_1;
} else if (b <= 1.1e+114) {
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1.9e+72: tmp = t_1 elif b <= 1.1e+114: tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.9e+72) tmp = t_1; elseif (b <= 1.1e+114) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1.9e+72) tmp = t_1; elseif (b <= 1.1e+114) tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+72], t$95$1, If[LessEqual[b, 1.1e+114], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+114}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.90000000000000003e72 or 1.1e114 < b Initial program 68.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6476.4%
Simplified76.4%
if -1.90000000000000003e72 < b < 1.1e114Initial program 74.8%
Taylor expanded in y around 0
Simplified73.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6467.8%
Simplified67.8%
Final simplification70.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5e+64)
(* t (- (* b i) (* x a)))
(if (<= t 1.4e+49)
(+ (* z (- (* x y) (* b c))) (* j (* a c)))
(* (* x t) (- (/ (* b i) x) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+64) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 1.4e+49) {
tmp = (z * ((x * y) - (b * c))) + (j * (a * c));
} else {
tmp = (x * t) * (((b * i) / x) - a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-5d+64)) then
tmp = t * ((b * i) - (x * a))
else if (t <= 1.4d+49) then
tmp = (z * ((x * y) - (b * c))) + (j * (a * c))
else
tmp = (x * t) * (((b * i) / x) - a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5e+64) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 1.4e+49) {
tmp = (z * ((x * y) - (b * c))) + (j * (a * c));
} else {
tmp = (x * t) * (((b * i) / x) - a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5e+64: tmp = t * ((b * i) - (x * a)) elif t <= 1.4e+49: tmp = (z * ((x * y) - (b * c))) + (j * (a * c)) else: tmp = (x * t) * (((b * i) / x) - a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5e+64) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= 1.4e+49) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(a * c))); else tmp = Float64(Float64(x * t) * Float64(Float64(Float64(b * i) / x) - a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5e+64) tmp = t * ((b * i) - (x * a)); elseif (t <= 1.4e+49) tmp = (z * ((x * y) - (b * c))) + (j * (a * c)); else tmp = (x * t) * (((b * i) / x) - a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5e+64], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+49], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * N[(N[(N[(b * i), $MachinePrecision] / x), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+64}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+49}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(\frac{b \cdot i}{x} - a\right)\\
\end{array}
\end{array}
if t < -5e64Initial program 62.9%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6466.7%
Simplified66.7%
if -5e64 < t < 1.3999999999999999e49Initial program 80.8%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6478.2%
Simplified78.2%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6469.0%
Simplified69.0%
if 1.3999999999999999e49 < t Initial program 60.8%
Taylor expanded in y around 0
Simplified73.0%
Taylor expanded in c around -inf
Simplified60.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
Simplified48.6%
Taylor expanded in t around -inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6466.8%
Simplified66.8%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -2.45e+69)
t_1
(if (<= b 1.35e+102) (+ (* j (- (* a c) (* y i))) (* y (* x z))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.45e+69) {
tmp = t_1;
} else if (b <= 1.35e+102) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-2.45d+69)) then
tmp = t_1
else if (b <= 1.35d+102) then
tmp = (j * ((a * c) - (y * i))) + (y * (x * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.45e+69) {
tmp = t_1;
} else if (b <= 1.35e+102) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.45e+69: tmp = t_1 elif b <= 1.35e+102: tmp = (j * ((a * c) - (y * i))) + (y * (x * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.45e+69) tmp = t_1; elseif (b <= 1.35e+102) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.45e+69) tmp = t_1; elseif (b <= 1.35e+102) tmp = (j * ((a * c) - (y * i))) + (y * (x * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.45e+69], t$95$1, If[LessEqual[b, 1.35e+102], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.45 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.45e69 or 1.3500000000000001e102 < b Initial program 68.3%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6475.0%
Simplified75.0%
if -2.45e69 < b < 1.3500000000000001e102Initial program 74.9%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6460.4%
Simplified60.4%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -360.0)
t_1
(if (<= a -1.64e-105)
(+ (* j (* a c)) (* z (* x y)))
(if (<= a 4.8e+56) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -360.0) {
tmp = t_1;
} else if (a <= -1.64e-105) {
tmp = (j * (a * c)) + (z * (x * y));
} else if (a <= 4.8e+56) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-360.0d0)) then
tmp = t_1
else if (a <= (-1.64d-105)) then
tmp = (j * (a * c)) + (z * (x * y))
else if (a <= 4.8d+56) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -360.0) {
tmp = t_1;
} else if (a <= -1.64e-105) {
tmp = (j * (a * c)) + (z * (x * y));
} else if (a <= 4.8e+56) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -360.0: tmp = t_1 elif a <= -1.64e-105: tmp = (j * (a * c)) + (z * (x * y)) elif a <= 4.8e+56: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -360.0) tmp = t_1; elseif (a <= -1.64e-105) tmp = Float64(Float64(j * Float64(a * c)) + Float64(z * Float64(x * y))); elseif (a <= 4.8e+56) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -360.0) tmp = t_1; elseif (a <= -1.64e-105) tmp = (j * (a * c)) + (z * (x * y)); elseif (a <= 4.8e+56) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -360.0], t$95$1, If[LessEqual[a, -1.64e-105], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e+56], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -360:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.64 \cdot 10^{-105}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -360 or 4.80000000000000027e56 < a Initial program 65.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6467.4%
Simplified67.4%
if -360 < a < -1.64e-105Initial program 79.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6478.9%
Simplified78.9%
Taylor expanded in c around inf
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6476.1%
Simplified76.1%
Taylor expanded in y around inf
*-lowering-*.f6465.0%
Simplified65.0%
if -1.64e-105 < a < 4.80000000000000027e56Initial program 77.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.55e-20)
t_1
(if (<= a 1.3e-303)
(* z (- (* x y) (* b c)))
(if (<= a 1.55e+57) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.55e-20) {
tmp = t_1;
} else if (a <= 1.3e-303) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 1.55e+57) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-2.55d-20)) then
tmp = t_1
else if (a <= 1.3d-303) then
tmp = z * ((x * y) - (b * c))
else if (a <= 1.55d+57) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.55e-20) {
tmp = t_1;
} else if (a <= 1.3e-303) {
tmp = z * ((x * y) - (b * c));
} else if (a <= 1.55e+57) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.55e-20: tmp = t_1 elif a <= 1.3e-303: tmp = z * ((x * y) - (b * c)) elif a <= 1.55e+57: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.55e-20) tmp = t_1; elseif (a <= 1.3e-303) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (a <= 1.55e+57) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.55e-20) tmp = t_1; elseif (a <= 1.3e-303) tmp = z * ((x * y) - (b * c)); elseif (a <= 1.55e+57) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.55e-20], t$95$1, If[LessEqual[a, 1.3e-303], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+57], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.55 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-303}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+57}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.55000000000000009e-20 or 1.55000000000000007e57 < a Initial program 67.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6466.6%
Simplified66.6%
if -2.55000000000000009e-20 < a < 1.30000000000000002e-303Initial program 75.7%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6453.5%
Simplified53.5%
if 1.30000000000000002e-303 < a < 1.55000000000000007e57Initial program 78.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6464.2%
Simplified64.2%
Final simplification62.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (- (* c j) (* x t))))) (if (<= a -9.2e-43) t_1 (if (<= a 8e+61) (* b (- (* t i) (* z c))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e-43) {
tmp = t_1;
} else if (a <= 8e+61) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-9.2d-43)) then
tmp = t_1
else if (a <= 8d+61) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -9.2e-43) {
tmp = t_1;
} else if (a <= 8e+61) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -9.2e-43: tmp = t_1 elif a <= 8e+61: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -9.2e-43) tmp = t_1; elseif (a <= 8e+61) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -9.2e-43) tmp = t_1; elseif (a <= 8e+61) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e-43], t$95$1, If[LessEqual[a, 8e+61], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8 \cdot 10^{+61}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.1999999999999995e-43 or 7.9999999999999996e61 < a Initial program 68.2%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6465.1%
Simplified65.1%
if -9.1999999999999995e-43 < a < 7.9999999999999996e61Initial program 76.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6455.0%
Simplified55.0%
Final simplification60.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -880000000.0) (* y (- 0.0 (* i j))) (if (<= i 5.2e+106) (* a (- (* c j) (* x t))) (* b (* t i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -880000000.0) {
tmp = y * (0.0 - (i * j));
} else if (i <= 5.2e+106) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * (t * 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 (i <= (-880000000.0d0)) then
tmp = y * (0.0d0 - (i * j))
else if (i <= 5.2d+106) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * (t * 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 (i <= -880000000.0) {
tmp = y * (0.0 - (i * j));
} else if (i <= 5.2e+106) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -880000000.0: tmp = y * (0.0 - (i * j)) elif i <= 5.2e+106: tmp = a * ((c * j) - (x * t)) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -880000000.0) tmp = Float64(y * Float64(0.0 - Float64(i * j))); elseif (i <= 5.2e+106) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -880000000.0) tmp = y * (0.0 - (i * j)); elseif (i <= 5.2e+106) tmp = a * ((c * j) - (x * t)); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -880000000.0], N[(y * N[(0.0 - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+106], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -880000000:\\
\;\;\;\;y \cdot \left(0 - i \cdot j\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+106}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if i < -8.8e8Initial program 69.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.9%
Simplified58.9%
Taylor expanded in i around inf
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6444.0%
Simplified44.0%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6444.0%
Applied egg-rr44.0%
if -8.8e8 < i < 5.20000000000000039e106Initial program 77.3%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6450.2%
Simplified50.2%
if 5.20000000000000039e106 < i Initial program 59.8%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6464.3%
Simplified64.3%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.7%
Simplified54.7%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.6%
Applied egg-rr58.6%
Final simplification50.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -7500000.0) (* y (- 0.0 (* i j))) (if (<= i 1.12e+14) (* a (* c j)) (* t (* 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 (i <= -7500000.0) {
tmp = y * (0.0 - (i * j));
} else if (i <= 1.12e+14) {
tmp = a * (c * j);
} else {
tmp = t * (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 (i <= (-7500000.0d0)) then
tmp = y * (0.0d0 - (i * j))
else if (i <= 1.12d+14) then
tmp = a * (c * j)
else
tmp = t * (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 (i <= -7500000.0) {
tmp = y * (0.0 - (i * j));
} else if (i <= 1.12e+14) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -7500000.0: tmp = y * (0.0 - (i * j)) elif i <= 1.12e+14: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -7500000.0) tmp = Float64(y * Float64(0.0 - Float64(i * j))); elseif (i <= 1.12e+14) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -7500000.0) tmp = y * (0.0 - (i * j)); elseif (i <= 1.12e+14) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -7500000.0], N[(y * N[(0.0 - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.12e+14], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7500000:\\
\;\;\;\;y \cdot \left(0 - i \cdot j\right)\\
\mathbf{elif}\;i \leq 1.12 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -7.5e6Initial program 69.9%
Taylor expanded in z around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6458.9%
Simplified58.9%
Taylor expanded in i around inf
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
*-lowering-*.f6444.0%
Simplified44.0%
sub0-negN/A
neg-lowering-neg.f64N/A
*-lowering-*.f6444.0%
Applied egg-rr44.0%
if -7.5e6 < i < 1.12e14Initial program 77.9%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6452.3%
Simplified52.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f6436.0%
Simplified36.0%
if 1.12e14 < i Initial program 62.6%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6458.0%
Simplified58.0%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.4%
Simplified47.4%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6448.8%
Applied egg-rr48.8%
Final simplification40.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -3.85e+176) (* b (* t i)) (if (<= i 7e+15) (* a (* c j)) (* t (* 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 (i <= -3.85e+176) {
tmp = b * (t * i);
} else if (i <= 7e+15) {
tmp = a * (c * j);
} else {
tmp = t * (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 (i <= (-3.85d+176)) then
tmp = b * (t * i)
else if (i <= 7d+15) then
tmp = a * (c * j)
else
tmp = t * (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 (i <= -3.85e+176) {
tmp = b * (t * i);
} else if (i <= 7e+15) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -3.85e+176: tmp = b * (t * i) elif i <= 7e+15: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -3.85e+176) tmp = Float64(b * Float64(t * i)); elseif (i <= 7e+15) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -3.85e+176) tmp = b * (t * i); elseif (i <= 7e+15) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3.85e+176], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7e+15], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.85 \cdot 10^{+176}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq 7 \cdot 10^{+15}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -3.8500000000000002e176Initial program 68.7%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6453.4%
Simplified53.4%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6443.4%
Simplified43.4%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6448.4%
Applied egg-rr48.4%
if -3.8500000000000002e176 < i < 7e15Initial program 76.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.3%
Simplified49.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f6433.4%
Simplified33.4%
if 7e15 < i Initial program 62.6%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6458.0%
Simplified58.0%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.4%
Simplified47.4%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6448.8%
Applied egg-rr48.8%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* t (* b i)))) (if (<= i -1.85e+176) t_1 (if (<= i 2.66e+14) (* a (* c j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -1.85e+176) {
tmp = t_1;
} else if (i <= 2.66e+14) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (i <= (-1.85d+176)) then
tmp = t_1
else if (i <= 2.66d+14) then
tmp = a * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -1.85e+176) {
tmp = t_1;
} else if (i <= 2.66e+14) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -1.85e+176: tmp = t_1 elif i <= 2.66e+14: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -1.85e+176) tmp = t_1; elseif (i <= 2.66e+14) tmp = Float64(a * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (b * i); tmp = 0.0; if (i <= -1.85e+176) tmp = t_1; elseif (i <= 2.66e+14) tmp = a * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.85e+176], t$95$1, If[LessEqual[i, 2.66e+14], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -1.85 \cdot 10^{+176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.66 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.8499999999999999e176 or 2.66e14 < i Initial program 64.0%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6456.9%
Simplified56.9%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6446.4%
Simplified46.4%
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6448.7%
Applied egg-rr48.7%
if -1.8499999999999999e176 < i < 2.66e14Initial program 76.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.3%
Simplified49.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f6433.4%
Simplified33.4%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* i (* t b)))) (if (<= i -1.75e+175) t_1 (if (<= i 3.9e+14) (* a (* c j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (i <= -1.75e+175) {
tmp = t_1;
} else if (i <= 3.9e+14) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (i <= (-1.75d+175)) then
tmp = t_1
else if (i <= 3.9d+14) then
tmp = a * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (t * b);
double tmp;
if (i <= -1.75e+175) {
tmp = t_1;
} else if (i <= 3.9e+14) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if i <= -1.75e+175: tmp = t_1 elif i <= 3.9e+14: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (i <= -1.75e+175) tmp = t_1; elseif (i <= 3.9e+14) tmp = Float64(a * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (i <= -1.75e+175) tmp = t_1; elseif (i <= 3.9e+14) tmp = a * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.75e+175], t$95$1, If[LessEqual[i, 3.9e+14], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -1.75 \cdot 10^{+175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.7500000000000002e175 or 3.9e14 < i Initial program 64.0%
Taylor expanded in t around inf
distribute-lft-out--N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-sub0N/A
--lowering--.f6456.9%
Simplified56.9%
Taylor expanded in a around 0
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6446.4%
Simplified46.4%
if -1.7500000000000002e175 < i < 3.9e14Initial program 76.5%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6449.3%
Simplified49.3%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f6433.4%
Simplified33.4%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 72.6%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6442.5%
Simplified42.5%
Taylor expanded in j around inf
*-commutativeN/A
*-lowering-*.f6427.8%
Simplified27.8%
Final simplification27.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024161
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))