
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* j t) (* k y)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (- (* c y4) (* a y5)))
(t_6 (* y2 (- (fma k t_4 (* x t_1)) (* t t_5)))))
(if (<= y2 -2.5e+246)
t_6
(if (<= y2 -7.3e+74)
(* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
(if (<= y2 -3.4e-109)
(* y4 (- (fma b t_3 (* y1 t_2)) (* c (- (* t y2) (* y y3)))))
(if (<= y2 9.8e-251)
(*
(- i)
(-
(fma c (- (* x y) (* t z)) (* y5 t_3))
(* y1 (- (* j x) (* k z)))))
(if (<= y2 5.8e-38)
(* (- y3) (- (fma j t_4 (* z t_1)) (* y t_5)))
(if (<= y2 6.4e+71)
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_1))
(* j (- (* b y0) (* i y1)))))
t_6))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (k * y2) - (j * y3);
double t_3 = (j * t) - (k * y);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = (c * y4) - (a * y5);
double t_6 = y2 * (fma(k, t_4, (x * t_1)) - (t * t_5));
double tmp;
if (y2 <= -2.5e+246) {
tmp = t_6;
} else if (y2 <= -7.3e+74) {
tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
} else if (y2 <= -3.4e-109) {
tmp = y4 * (fma(b, t_3, (y1 * t_2)) - (c * ((t * y2) - (y * y3))));
} else if (y2 <= 9.8e-251) {
tmp = -i * (fma(c, ((x * y) - (t * z)), (y5 * t_3)) - (y1 * ((j * x) - (k * z))));
} else if (y2 <= 5.8e-38) {
tmp = -y3 * (fma(j, t_4, (z * t_1)) - (y * t_5));
} else if (y2 <= 6.4e+71) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else {
tmp = t_6;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(j * t) - Float64(k * y)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(Float64(c * y4) - Float64(a * y5)) t_6 = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_5))) tmp = 0.0 if (y2 <= -2.5e+246) tmp = t_6; elseif (y2 <= -7.3e+74) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y2 <= -3.4e-109) tmp = Float64(y4 * Float64(fma(b, t_3, Float64(y1 * t_2)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y2 <= 9.8e-251) tmp = Float64(Float64(-i) * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_3)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z))))); elseif (y2 <= 5.8e-38) tmp = Float64(Float64(-y3) * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_5))); elseif (y2 <= 6.4e+71) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); else tmp = t_6; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.5e+246], t$95$6, If[LessEqual[y2, -7.3e+74], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.4e-109], N[(y4 * N[(N[(b * t$95$3 + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.8e-251], N[((-i) * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e-38], N[((-y3) * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.4e+71], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := j \cdot t - k \cdot y\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := c \cdot y4 - a \cdot y5\\
t_6 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_5\right)\\
\mathbf{if}\;y2 \leq -2.5 \cdot 10^{+246}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y2 \leq -7.3 \cdot 10^{+74}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq -3.4 \cdot 10^{-109}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_3, y1 \cdot t\_2\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{-251}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-38}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_5\right)\\
\mathbf{elif}\;y2 \leq 6.4 \cdot 10^{+71}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
\end{array}
if y2 < -2.49999999999999988e246 or 6.40000000000000046e71 < y2 Initial program 26.3%
Taylor expanded in y2 around inf
Applied rewrites66.8%
if -2.49999999999999988e246 < y2 < -7.3000000000000005e74Initial program 28.5%
Taylor expanded in y0 around inf
Applied rewrites52.6%
Taylor expanded in b around 0
Applied rewrites54.9%
if -7.3000000000000005e74 < y2 < -3.40000000000000012e-109Initial program 30.5%
Taylor expanded in y4 around inf
Applied rewrites64.2%
if -3.40000000000000012e-109 < y2 < 9.7999999999999994e-251Initial program 31.9%
Taylor expanded in i around -inf
Applied rewrites55.8%
if 9.7999999999999994e-251 < y2 < 5.79999999999999988e-38Initial program 41.3%
Taylor expanded in y3 around -inf
Applied rewrites56.8%
if 5.79999999999999988e-38 < y2 < 6.40000000000000046e71Initial program 39.4%
Taylor expanded in x around inf
Applied rewrites66.4%
Final simplification60.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t y2) (* y y3)))
(t_2 (- (* k y2) (* j y3)))
(t_3
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* t_1 (- (* y4 c) (* y5 a))))
(* t_2 (- (* y4 y1) (* y5 y0))))))
(if (<= t_3 INFINITY)
t_3
(* (- y5) (- (fma i (- (* j t) (* k y)) (* y0 t_2)) (* a t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * y2) - (y * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (t_1 * ((y4 * c) - (y5 * a)))) + (t_2 * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = -y5 * (fma(i, ((j * t) - (k * y)), (y0 * t_2)) - (a * t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(t_1 * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(Float64(-y5) * Float64(fma(i, Float64(Float64(j * t) - Float64(k * y)), Float64(y0 * t_2)) - Float64(a * t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[((-y5) * N[(N[(i * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - t\_1 \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, j \cdot t - k \cdot y, y0 \cdot t\_2\right) - a \cdot t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 95.5%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y5 around -inf
Applied rewrites41.0%
Final simplification59.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (- (* j t) (* k y)))) (t_2 (- (* k y2) (* j y3))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 t_2))
(if (<= y4 -2.9e-12)
(* b t_1)
(if (<= y4 1.75e-214)
(* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 1.55e-37)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= y4 5e+28)
(* i (* t (fma -1.0 (* j y5) (* c z))))
(*
b
(-
(fma a (- (* x y) (* t z)) t_1)
(* y0 (- (* j x) (* k z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * ((j * t) - (k * y));
double t_2 = (k * y2) - (j * y3);
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * t_2);
} else if (y4 <= -2.9e-12) {
tmp = b * t_1;
} else if (y4 <= 1.75e-214) {
tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 1.55e-37) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (y4 <= 5e+28) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else {
tmp = b * (fma(a, ((x * y) - (t * z)), t_1) - (y0 * ((j * x) - (k * z))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(j * t) - Float64(k * y))) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * t_2)); elseif (y4 <= -2.9e-12) tmp = Float64(b * t_1); elseif (y4 <= 1.75e-214) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 1.55e-37) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (y4 <= 5e+28) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); else tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), t_1) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y4, 1.75e-214], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e-37], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5e+28], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\
t_2 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
\;\;\;\;b \cdot t\_1\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 5 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12Initial program 25.6%
Taylor expanded in b around inf
Applied rewrites49.4%
Taylor expanded in y4 around inf
Applied rewrites52.4%
if -2.9000000000000002e-12 < y4 < 1.75e-214Initial program 42.6%
Taylor expanded in y0 around inf
Applied rewrites50.0%
Taylor expanded in b around 0
Applied rewrites52.3%
if 1.75e-214 < y4 < 1.54999999999999997e-37Initial program 26.6%
Taylor expanded in y2 around inf
Applied rewrites60.5%
if 1.54999999999999997e-37 < y4 < 4.99999999999999957e28Initial program 23.1%
Taylor expanded in i around -inf
Applied rewrites46.5%
Taylor expanded in t around -inf
Applied rewrites62.7%
if 4.99999999999999957e28 < y4 Initial program 29.1%
Taylor expanded in b around inf
Applied rewrites55.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2
(*
y4
(-
(fma b (- (* j t) (* k y)) (* y1 t_1))
(* c (- (* t y2) (* y y3)))))))
(if (<= y4 -2.6e-26)
t_2
(if (<= y4 1.75e-214)
(* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 1.55e-37)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= y4 3.25e+40) (* i (* t (fma -1.0 (* j y5) (* c z)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = y4 * (fma(b, ((j * t) - (k * y)), (y1 * t_1)) - (c * ((t * y2) - (y * y3))));
double tmp;
if (y4 <= -2.6e-26) {
tmp = t_2;
} else if (y4 <= 1.75e-214) {
tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 1.55e-37) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (y4 <= 3.25e+40) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(y4 * Float64(fma(b, Float64(Float64(j * t) - Float64(k * y)), Float64(y1 * t_1)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))) tmp = 0.0 if (y4 <= -2.6e-26) tmp = t_2; elseif (y4 <= 1.75e-214) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 1.55e-37) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (y4 <= 3.25e+40) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * N[(N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$2, If[LessEqual[y4, 1.75e-214], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e-37], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.25e+40], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-214}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-37}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 3.25 \cdot 10^{+40}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y4 < -2.6000000000000001e-26 or 3.2500000000000001e40 < y4 Initial program 29.2%
Taylor expanded in y4 around inf
Applied rewrites58.9%
if -2.6000000000000001e-26 < y4 < 1.75e-214Initial program 41.2%
Taylor expanded in y0 around inf
Applied rewrites50.0%
Taylor expanded in b around 0
Applied rewrites52.4%
if 1.75e-214 < y4 < 1.54999999999999997e-37Initial program 26.6%
Taylor expanded in y2 around inf
Applied rewrites60.5%
if 1.54999999999999997e-37 < y4 < 3.2500000000000001e40Initial program 21.4%
Taylor expanded in i around -inf
Applied rewrites50.4%
Taylor expanded in t around -inf
Applied rewrites58.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (- (* j t) (* k y)))) (t_2 (- (* k y2) (* j y3))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 t_2))
(if (<= y4 -2.9e-12)
(* b t_1)
(if (<= y4 6.5e-137)
(* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 3.2e+34)
(* (- y5) (* y2 (- (* k y0) (* a t))))
(*
b
(-
(fma a (- (* x y) (* t z)) t_1)
(* y0 (- (* j x) (* k z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * ((j * t) - (k * y));
double t_2 = (k * y2) - (j * y3);
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * t_2);
} else if (y4 <= -2.9e-12) {
tmp = b * t_1;
} else if (y4 <= 6.5e-137) {
tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 3.2e+34) {
tmp = -y5 * (y2 * ((k * y0) - (a * t)));
} else {
tmp = b * (fma(a, ((x * y) - (t * z)), t_1) - (y0 * ((j * x) - (k * z))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(j * t) - Float64(k * y))) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * t_2)); elseif (y4 <= -2.9e-12) tmp = Float64(b * t_1); elseif (y4 <= 6.5e-137) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 3.2e+34) tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))); else tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), t_1) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], N[(b * t$95$1), $MachinePrecision], If[LessEqual[y4, 6.5e-137], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.2e+34], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(j \cdot t - k \cdot y\right)\\
t_2 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
\;\;\;\;b \cdot t\_1\\
\mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 3.2 \cdot 10^{+34}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12Initial program 25.6%
Taylor expanded in b around inf
Applied rewrites49.4%
Taylor expanded in y4 around inf
Applied rewrites52.4%
if -2.9000000000000002e-12 < y4 < 6.49999999999999991e-137Initial program 41.3%
Taylor expanded in y0 around inf
Applied rewrites49.0%
Taylor expanded in b around 0
Applied rewrites52.1%
if 6.49999999999999991e-137 < y4 < 3.1999999999999998e34Initial program 24.2%
Taylor expanded in y5 around -inf
Applied rewrites58.0%
Taylor expanded in y2 around inf
Applied rewrites49.8%
if 3.1999999999999998e34 < y4 Initial program 29.1%
Taylor expanded in b around inf
Applied rewrites55.1%
Final simplification53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* t y2) (* y y3)))
(t_4 (* y4 (- (fma b t_2 (* y1 t_1)) (* c t_3)))))
(if (<= y4 -2.6e-26)
t_4
(if (<= y4 6.8e-245)
(* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 9.6e+89)
(* (- y5) (- (fma i t_2 (* y0 t_1)) (* a t_3)))
t_4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (j * t) - (k * y);
double t_3 = (t * y2) - (y * y3);
double t_4 = y4 * (fma(b, t_2, (y1 * t_1)) - (c * t_3));
double tmp;
if (y4 <= -2.6e-26) {
tmp = t_4;
} else if (y4 <= 6.8e-245) {
tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 9.6e+89) {
tmp = -y5 * (fma(i, t_2, (y0 * t_1)) - (a * t_3));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(Float64(t * y2) - Float64(y * y3)) t_4 = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_1)) - Float64(c * t_3))) tmp = 0.0 if (y4 <= -2.6e-26) tmp = t_4; elseif (y4 <= 6.8e-245) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 9.6e+89) tmp = Float64(Float64(-y5) * Float64(fma(i, t_2, Float64(y0 * t_1)) - Float64(a * t_3))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$4, If[LessEqual[y4, 6.8e-245], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.6e+89], N[((-y5) * N[(N[(i * t$95$2 + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := j \cdot t - k \cdot y\\
t_3 := t \cdot y2 - y \cdot y3\\
t_4 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot t\_3\right)\\
\mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y4 \leq 6.8 \cdot 10^{-245}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 9.6 \cdot 10^{+89}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot t\_1\right) - a \cdot t\_3\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y4 < -2.6000000000000001e-26 or 9.60000000000000018e89 < y4 Initial program 28.1%
Taylor expanded in y4 around inf
Applied rewrites61.1%
if -2.6000000000000001e-26 < y4 < 6.7999999999999999e-245Initial program 42.4%
Taylor expanded in y0 around inf
Applied rewrites51.9%
Taylor expanded in b around 0
Applied rewrites53.1%
if 6.7999999999999999e-245 < y4 < 9.60000000000000018e89Initial program 28.1%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Final simplification58.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2 (- (* j t) (* k y)))
(t_3 (* y4 (- (fma b t_2 (* y1 t_1)) (* c (- (* t y2) (* y y3)))))))
(if (<= y4 -2.6e-26)
t_3
(if (<= y4 4e-185)
(* y0 (fma -1.0 (* y5 t_1) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 2.2e+48)
(*
(- i)
(-
(fma c (- (* x y) (* t z)) (* y5 t_2))
(* y1 (- (* j x) (* k z)))))
t_3)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (j * t) - (k * y);
double t_3 = y4 * (fma(b, t_2, (y1 * t_1)) - (c * ((t * y2) - (y * y3))));
double tmp;
if (y4 <= -2.6e-26) {
tmp = t_3;
} else if (y4 <= 4e-185) {
tmp = y0 * fma(-1.0, (y5 * t_1), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 2.2e+48) {
tmp = -i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z))));
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_1)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))) tmp = 0.0 if (y4 <= -2.6e-26) tmp = t_3; elseif (y4 <= 4e-185) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_1), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 2.2e+48) tmp = Float64(Float64(-i) * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_2)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z))))); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.6e-26], t$95$3, If[LessEqual[y4, 4e-185], N[(y0 * N[(-1.0 * N[(y5 * t$95$1), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.2e+48], N[((-i) * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := j \cdot t - k \cdot y\\
t_3 := y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y4 \leq -2.6 \cdot 10^{-26}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y4 \leq 4 \cdot 10^{-185}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_1, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 2.2 \cdot 10^{+48}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y4 < -2.6000000000000001e-26 or 2.1999999999999999e48 < y4 Initial program 29.2%
Taylor expanded in y4 around inf
Applied rewrites58.9%
if -2.6000000000000001e-26 < y4 < 4e-185Initial program 39.6%
Taylor expanded in y0 around inf
Applied rewrites47.9%
Taylor expanded in b around 0
Applied rewrites52.2%
if 4e-185 < y4 < 2.1999999999999999e48Initial program 26.3%
Taylor expanded in i around -inf
Applied rewrites53.0%
Final simplification55.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))))
(if (<= x -1.6e+165)
t_1
(if (<= x -7e+46)
(* i (* z (- (* c t) (* k y1))))
(if (<= x 5.6e-21)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
double tmp;
if (x <= -1.6e+165) {
tmp = t_1;
} else if (x <= -7e+46) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (x <= 5.6e-21) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))) tmp = 0.0 if (x <= -1.6e+165) tmp = t_1; elseif (x <= -7e+46) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (x <= 5.6e-21) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.6e+165], t$95$1, If[LessEqual[x, -7e+46], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e-21], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{if}\;x \leq -1.6 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -7 \cdot 10^{+46}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-21}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.6e165 or 5.60000000000000008e-21 < x Initial program 28.0%
Taylor expanded in x around inf
Applied rewrites59.3%
if -1.6e165 < x < -6.9999999999999997e46Initial program 20.3%
Taylor expanded in i around -inf
Applied rewrites60.3%
Taylor expanded in z around -inf
Applied rewrites49.3%
if -6.9999999999999997e46 < x < 5.60000000000000008e-21Initial program 37.7%
Taylor expanded in b around inf
Applied rewrites47.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))) (t_2 (- (* k y2) (* j y3))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 t_2))
(if (<= y4 -2.9e-12)
t_1
(if (<= y4 6.5e-137)
(* y0 (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))))
(if (<= y4 1.3e+21) (* (- y5) (* y2 (- (* k y0) (* a t)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = (k * y2) - (j * y3);
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * t_2);
} else if (y4 <= -2.9e-12) {
tmp = t_1;
} else if (y4 <= 6.5e-137) {
tmp = y0 * fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z))));
} else if (y4 <= 1.3e+21) {
tmp = -y5 * (y2 * ((k * y0) - (a * t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * t_2)); elseif (y4 <= -2.9e-12) tmp = t_1; elseif (y4 <= 6.5e-137) tmp = Float64(y0 * fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (y4 <= 1.3e+21) tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-12], t$95$1, If[LessEqual[y4, 6.5e-137], N[(y0 * N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e+21], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
t_2 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 6.5 \cdot 10^{-137}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -2.9000000000000002e-12 or 1.3e21 < y4 Initial program 28.8%
Taylor expanded in b around inf
Applied rewrites51.2%
Taylor expanded in y4 around inf
Applied rewrites51.6%
if -2.9000000000000002e-12 < y4 < 6.49999999999999991e-137Initial program 41.3%
Taylor expanded in y0 around inf
Applied rewrites49.0%
Taylor expanded in b around 0
Applied rewrites52.1%
if 6.49999999999999991e-137 < y4 < 1.3e21Initial program 19.9%
Taylor expanded in y5 around -inf
Applied rewrites53.8%
Taylor expanded in y2 around inf
Applied rewrites51.3%
Final simplification52.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y4 -3.5e+17)
t_1
(if (<= y4 -2.6e-278)
(* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
(if (<= y4 1.95e-244)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= y4 6.8e+28)
(* i (* t (fma -1.0 (* j y5) (* c z))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y4 <= -3.5e+17) {
tmp = t_1;
} else if (y4 <= -2.6e-278) {
tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
} else if (y4 <= 1.95e-244) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (y4 <= 6.8e+28) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y4 <= -3.5e+17) tmp = t_1; elseif (y4 <= -2.6e-278) tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y)))); elseif (y4 <= 1.95e-244) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y4 <= 6.8e+28) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.5e+17], t$95$1, If[LessEqual[y4, -2.6e-278], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.95e-244], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.8e+28], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\
\;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -3.5e17 or 6.8e28 < y4 Initial program 26.9%
Taylor expanded in b around inf
Applied rewrites54.5%
Taylor expanded in y4 around inf
Applied rewrites53.8%
if -3.5e17 < y4 < -2.5999999999999999e-278Initial program 45.0%
Taylor expanded in y5 around -inf
Applied rewrites42.2%
Taylor expanded in k around -inf
Applied rewrites37.7%
if -2.5999999999999999e-278 < y4 < 1.9499999999999999e-244Initial program 40.1%
Taylor expanded in y0 around inf
Applied rewrites56.7%
Taylor expanded in c around inf
Applied rewrites56.7%
if 1.9499999999999999e-244 < y4 < 6.8e28Initial program 26.0%
Taylor expanded in i around -inf
Applied rewrites42.4%
Taylor expanded in t around -inf
Applied rewrites43.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y)))))
(t_2 (* i (* t (fma -1.0 (* j y5) (* c z))))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y4 -5.5e+63)
t_1
(if (<= y4 -3.8e-32)
t_2
(if (<= y4 1.95e-244)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= y4 6.8e+28) 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = i * (t * fma(-1.0, (j * y5), (c * z)));
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y4 <= -5.5e+63) {
tmp = t_1;
} else if (y4 <= -3.8e-32) {
tmp = t_2;
} else if (y4 <= 1.95e-244) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (y4 <= 6.8e+28) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) t_2 = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y4 <= -5.5e+63) tmp = t_1; elseif (y4 <= -3.8e-32) tmp = t_2; elseif (y4 <= 1.95e-244) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y4 <= 6.8e+28) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e+63], t$95$1, If[LessEqual[y4, -3.8e-32], t$95$2, If[LessEqual[y4, 1.95e-244], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.8e+28], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
t_2 := i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -5.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -3.8 \cdot 10^{-32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+28}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -5.50000000000000004e63 or 6.8e28 < y4 Initial program 26.9%
Taylor expanded in b around inf
Applied rewrites53.1%
Taylor expanded in y4 around inf
Applied rewrites54.8%
if -5.50000000000000004e63 < y4 < -3.80000000000000008e-32 or 1.9499999999999999e-244 < y4 < 6.8e28Initial program 30.4%
Taylor expanded in i around -inf
Applied rewrites48.2%
Taylor expanded in t around -inf
Applied rewrites47.3%
if -3.80000000000000008e-32 < y4 < 1.9499999999999999e-244Initial program 41.6%
Taylor expanded in y0 around inf
Applied rewrites51.3%
Taylor expanded in c around inf
Applied rewrites36.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
(if (<= y4 -1.55e+165)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y4 -3.5e+17)
t_1
(if (<= y4 -2.6e-278)
(* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
(if (<= y4 1.9e-241)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= y4 1.3e+21)
(* (- y5) (* y2 (- (* k y0) (* a t))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y4 <= -1.55e+165) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y4 <= -3.5e+17) {
tmp = t_1;
} else if (y4 <= -2.6e-278) {
tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
} else if (y4 <= 1.9e-241) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (y4 <= 1.3e+21) {
tmp = -y5 * (y2 * ((k * y0) - (a * t)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) tmp = 0.0 if (y4 <= -1.55e+165) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y4 <= -3.5e+17) tmp = t_1; elseif (y4 <= -2.6e-278) tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y)))); elseif (y4 <= 1.9e-241) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y4 <= 1.3e+21) tmp = Float64(Float64(-y5) * Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.55e+165], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.5e+17], t$95$1, If[LessEqual[y4, -2.6e-278], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.9e-241], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e+21], N[((-y5) * N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{if}\;y4 \leq -1.55 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.6 \cdot 10^{-278}:\\
\;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
\mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-241}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 1.3 \cdot 10^{+21}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.5500000000000001e165Initial program 28.4%
Taylor expanded in y1 around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites57.7%
if -1.5500000000000001e165 < y4 < -3.5e17 or 1.3e21 < y4 Initial program 28.2%
Taylor expanded in b around inf
Applied rewrites52.8%
Taylor expanded in y4 around inf
Applied rewrites53.2%
if -3.5e17 < y4 < -2.5999999999999999e-278Initial program 45.0%
Taylor expanded in y5 around -inf
Applied rewrites42.2%
Taylor expanded in k around -inf
Applied rewrites37.7%
if -2.5999999999999999e-278 < y4 < 1.8999999999999999e-241Initial program 38.6%
Taylor expanded in y0 around inf
Applied rewrites54.5%
Taylor expanded in c around inf
Applied rewrites54.5%
if 1.8999999999999999e-241 < y4 < 1.3e21Initial program 23.9%
Taylor expanded in y5 around -inf
Applied rewrites56.8%
Taylor expanded in y2 around inf
Applied rewrites47.0%
Final simplification49.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -2.8e+78)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= a -3e-115)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= a 6.8e-164)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (or (<= a 2.05e-16) (not (<= a 2.45e+166)))
(* i (* z (- (* c t) (* k y1))))
(* a (* b (- (* x y) (* t z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -2.8e+78) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= -3e-115) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= 6.8e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-2.8d+78)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (a <= (-3d-115)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (a <= 6.8d-164) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if ((a <= 2.05d-16) .or. (.not. (a <= 2.45d+166))) then
tmp = i * (z * ((c * t) - (k * y1)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -2.8e+78) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= -3e-115) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (a <= 6.8e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -2.8e+78: tmp = a * (y5 * ((t * y2) - (y * y3))) elif a <= -3e-115: tmp = c * (y4 * ((y * y3) - (t * y2))) elif a <= 6.8e-164: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif (a <= 2.05e-16) or not (a <= 2.45e+166): tmp = i * (z * ((c * t) - (k * y1))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -2.8e+78) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (a <= -3e-115) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (a <= 6.8e-164) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif ((a <= 2.05e-16) || !(a <= 2.45e+166)) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -2.8e+78) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (a <= -3e-115) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (a <= 6.8e-164) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif ((a <= 2.05e-16) || ~((a <= 2.45e+166))) tmp = i * (z * ((c * t) - (k * y1))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -2.8e+78], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3e-115], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 2.05e-16], N[Not[LessEqual[a, 2.45e+166]], $MachinePrecision]], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{+78}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -3 \cdot 10^{-115}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if a < -2.8000000000000001e78Initial program 26.1%
Taylor expanded in y5 around -inf
Applied rewrites47.8%
Taylor expanded in a around -inf
Applied rewrites48.4%
if -2.8000000000000001e78 < a < -3.0000000000000002e-115Initial program 31.6%
Taylor expanded in y4 around inf
Applied rewrites58.0%
Taylor expanded in c around inf
Applied rewrites45.3%
if -3.0000000000000002e-115 < a < 6.8e-164Initial program 47.9%
Taylor expanded in y0 around inf
Applied rewrites48.5%
Taylor expanded in c around inf
Applied rewrites39.7%
if 6.8e-164 < a < 2.05000000000000003e-16 or 2.44999999999999985e166 < a Initial program 19.1%
Taylor expanded in i around -inf
Applied rewrites52.4%
Taylor expanded in z around -inf
Applied rewrites49.1%
if 2.05000000000000003e-16 < a < 2.44999999999999985e166Initial program 32.4%
Taylor expanded in b around inf
Applied rewrites54.1%
Taylor expanded in a around inf
Applied rewrites44.0%
Final simplification45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))) (t_2 (- (* x y2) (* y3 z))))
(if (<= y4 -1.7e-18)
t_1
(if (<= y4 -1.95e-176)
(* y0 (* c t_2))
(if (<= y4 -9e-278)
(* y0 (* y2 (* (- k) y5)))
(if (<= y4 9.2e-164)
(* c (* y0 t_2))
(if (<= y4 1.05e+41) (* i (* z (- (* c t) (* k y1)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (y4 <= -1.7e-18) {
tmp = t_1;
} else if (y4 <= -1.95e-176) {
tmp = y0 * (c * t_2);
} else if (y4 <= -9e-278) {
tmp = y0 * (y2 * (-k * y5));
} else if (y4 <= 9.2e-164) {
tmp = c * (y0 * t_2);
} else if (y4 <= 1.05e+41) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y4 * ((j * t) - (k * y)))
t_2 = (x * y2) - (y3 * z)
if (y4 <= (-1.7d-18)) then
tmp = t_1
else if (y4 <= (-1.95d-176)) then
tmp = y0 * (c * t_2)
else if (y4 <= (-9d-278)) then
tmp = y0 * (y2 * (-k * y5))
else if (y4 <= 9.2d-164) then
tmp = c * (y0 * t_2)
else if (y4 <= 1.05d+41) then
tmp = i * (z * ((c * t) - (k * y1)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (y4 <= -1.7e-18) {
tmp = t_1;
} else if (y4 <= -1.95e-176) {
tmp = y0 * (c * t_2);
} else if (y4 <= -9e-278) {
tmp = y0 * (y2 * (-k * y5));
} else if (y4 <= 9.2e-164) {
tmp = c * (y0 * t_2);
} else if (y4 <= 1.05e+41) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((j * t) - (k * y))) t_2 = (x * y2) - (y3 * z) tmp = 0 if y4 <= -1.7e-18: tmp = t_1 elif y4 <= -1.95e-176: tmp = y0 * (c * t_2) elif y4 <= -9e-278: tmp = y0 * (y2 * (-k * y5)) elif y4 <= 9.2e-164: tmp = c * (y0 * t_2) elif y4 <= 1.05e+41: tmp = i * (z * ((c * t) - (k * y1))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) t_2 = Float64(Float64(x * y2) - Float64(y3 * z)) tmp = 0.0 if (y4 <= -1.7e-18) tmp = t_1; elseif (y4 <= -1.95e-176) tmp = Float64(y0 * Float64(c * t_2)); elseif (y4 <= -9e-278) tmp = Float64(y0 * Float64(y2 * Float64(Float64(-k) * y5))); elseif (y4 <= 9.2e-164) tmp = Float64(c * Float64(y0 * t_2)); elseif (y4 <= 1.05e+41) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((j * t) - (k * y))); t_2 = (x * y2) - (y3 * z); tmp = 0.0; if (y4 <= -1.7e-18) tmp = t_1; elseif (y4 <= -1.95e-176) tmp = y0 * (c * t_2); elseif (y4 <= -9e-278) tmp = y0 * (y2 * (-k * y5)); elseif (y4 <= 9.2e-164) tmp = c * (y0 * t_2); elseif (y4 <= 1.05e+41) tmp = i * (z * ((c * t) - (k * y1))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.7e-18], t$95$1, If[LessEqual[y4, -1.95e-176], N[(y0 * N[(c * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-278], N[(y0 * N[(y2 * N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.2e-164], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+41], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
t_2 := x \cdot y2 - y3 \cdot z\\
\mathbf{if}\;y4 \leq -1.7 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.95 \cdot 10^{-176}:\\
\;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.70000000000000001e-18 or 1.05e41 < y4 Initial program 29.2%
Taylor expanded in b around inf
Applied rewrites46.8%
Taylor expanded in y4 around inf
Applied rewrites49.0%
if -1.70000000000000001e-18 < y4 < -1.9499999999999999e-176Initial program 38.9%
Taylor expanded in y0 around inf
Applied rewrites52.2%
Taylor expanded in c around inf
Applied rewrites39.9%
if -1.9499999999999999e-176 < y4 < -8.9999999999999996e-278Initial program 49.8%
Taylor expanded in y0 around inf
Applied rewrites45.9%
Taylor expanded in y2 around inf
Applied rewrites50.6%
Taylor expanded in x around 0
Applied rewrites45.7%
if -8.9999999999999996e-278 < y4 < 9.19999999999999942e-164Initial program 33.4%
Taylor expanded in y0 around inf
Applied rewrites44.2%
Taylor expanded in c around inf
Applied rewrites47.0%
if 9.19999999999999942e-164 < y4 < 1.05e41Initial program 27.0%
Taylor expanded in i around -inf
Applied rewrites51.7%
Taylor expanded in z around -inf
Applied rewrites44.3%
Final simplification46.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
(if (<= y4 -3.7e-74)
t_1
(if (<= y4 -1.7e-141)
(* a (* b (- (* x y) (* t z))))
(if (<= y4 -9e-278)
(* y0 (* y2 (* (- k) y5)))
(if (<= y4 9.2e-164)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= y4 1.05e+41) (* i (* z (- (* c t) (* k y1)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y4 <= -3.7e-74) {
tmp = t_1;
} else if (y4 <= -1.7e-141) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y4 <= -9e-278) {
tmp = y0 * (y2 * (-k * y5));
} else if (y4 <= 9.2e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (y4 <= 1.05e+41) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y4 * ((j * t) - (k * y)))
if (y4 <= (-3.7d-74)) then
tmp = t_1
else if (y4 <= (-1.7d-141)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y4 <= (-9d-278)) then
tmp = y0 * (y2 * (-k * y5))
else if (y4 <= 9.2d-164) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if (y4 <= 1.05d+41) then
tmp = i * (z * ((c * t) - (k * y1)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y4 <= -3.7e-74) {
tmp = t_1;
} else if (y4 <= -1.7e-141) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y4 <= -9e-278) {
tmp = y0 * (y2 * (-k * y5));
} else if (y4 <= 9.2e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (y4 <= 1.05e+41) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((j * t) - (k * y))) tmp = 0 if y4 <= -3.7e-74: tmp = t_1 elif y4 <= -1.7e-141: tmp = a * (b * ((x * y) - (t * z))) elif y4 <= -9e-278: tmp = y0 * (y2 * (-k * y5)) elif y4 <= 9.2e-164: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif y4 <= 1.05e+41: tmp = i * (z * ((c * t) - (k * y1))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) tmp = 0.0 if (y4 <= -3.7e-74) tmp = t_1; elseif (y4 <= -1.7e-141) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y4 <= -9e-278) tmp = Float64(y0 * Float64(y2 * Float64(Float64(-k) * y5))); elseif (y4 <= 9.2e-164) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y4 <= 1.05e+41) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((j * t) - (k * y))); tmp = 0.0; if (y4 <= -3.7e-74) tmp = t_1; elseif (y4 <= -1.7e-141) tmp = a * (b * ((x * y) - (t * z))); elseif (y4 <= -9e-278) tmp = y0 * (y2 * (-k * y5)); elseif (y4 <= 9.2e-164) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif (y4 <= 1.05e+41) tmp = i * (z * ((c * t) - (k * y1))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.7e-74], t$95$1, If[LessEqual[y4, -1.7e-141], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-278], N[(y0 * N[(y2 * N[((-k) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.2e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+41], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{if}\;y4 \leq -3.7 \cdot 10^{-74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.7 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-278}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(\left(-k\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 9.2 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+41}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -3.69999999999999994e-74 or 1.05e41 < y4 Initial program 30.2%
Taylor expanded in b around inf
Applied rewrites47.4%
Taylor expanded in y4 around inf
Applied rewrites48.7%
if -3.69999999999999994e-74 < y4 < -1.6999999999999999e-141Initial program 33.6%
Taylor expanded in b around inf
Applied rewrites39.9%
Taylor expanded in a around inf
Applied rewrites39.7%
if -1.6999999999999999e-141 < y4 < -8.9999999999999996e-278Initial program 49.8%
Taylor expanded in y0 around inf
Applied rewrites50.4%
Taylor expanded in y2 around inf
Applied rewrites50.6%
Taylor expanded in x around 0
Applied rewrites42.6%
if -8.9999999999999996e-278 < y4 < 9.19999999999999942e-164Initial program 33.4%
Taylor expanded in y0 around inf
Applied rewrites44.2%
Taylor expanded in c around inf
Applied rewrites47.0%
if 9.19999999999999942e-164 < y4 < 1.05e41Initial program 27.0%
Taylor expanded in i around -inf
Applied rewrites51.7%
Taylor expanded in z around -inf
Applied rewrites44.3%
Final simplification46.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -7900000000.0)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= a 6.8e-164)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (or (<= a 2.05e-16) (not (<= a 2.45e+166)))
(* i (* z (- (* c t) (* k y1))))
(* a (* b (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -7900000000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= 6.8e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-7900000000.0d0)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (a <= 6.8d-164) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if ((a <= 2.05d-16) .or. (.not. (a <= 2.45d+166))) then
tmp = i * (z * ((c * t) - (k * y1)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -7900000000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= 6.8e-164) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if ((a <= 2.05e-16) || !(a <= 2.45e+166)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -7900000000.0: tmp = a * (y5 * ((t * y2) - (y * y3))) elif a <= 6.8e-164: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif (a <= 2.05e-16) or not (a <= 2.45e+166): tmp = i * (z * ((c * t) - (k * y1))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -7900000000.0) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (a <= 6.8e-164) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif ((a <= 2.05e-16) || !(a <= 2.45e+166)) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -7900000000.0) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (a <= 6.8e-164) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif ((a <= 2.05e-16) || ~((a <= 2.45e+166))) tmp = i * (z * ((c * t) - (k * y1))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -7900000000.0], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-164], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, 2.05e-16], N[Not[LessEqual[a, 2.45e+166]], $MachinePrecision]], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7900000000:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-16} \lor \neg \left(a \leq 2.45 \cdot 10^{+166}\right):\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if a < -7.9e9Initial program 26.5%
Taylor expanded in y5 around -inf
Applied rewrites44.2%
Taylor expanded in a around -inf
Applied rewrites44.6%
if -7.9e9 < a < 6.8e-164Initial program 45.2%
Taylor expanded in y0 around inf
Applied rewrites49.0%
Taylor expanded in c around inf
Applied rewrites36.9%
if 6.8e-164 < a < 2.05000000000000003e-16 or 2.44999999999999985e166 < a Initial program 19.1%
Taylor expanded in i around -inf
Applied rewrites52.4%
Taylor expanded in z around -inf
Applied rewrites49.1%
if 2.05000000000000003e-16 < a < 2.44999999999999985e166Initial program 32.4%
Taylor expanded in b around inf
Applied rewrites54.1%
Taylor expanded in a around inf
Applied rewrites44.0%
Final simplification42.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -2.9e+179)
(* i (* t (* (- j) y5)))
(if (<= y5 -6.6e-208)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y5 1.5e+32)
(* y0 (* c (- (* x y2) (* y3 z))))
(if (<= y5 1.7e+215)
(* b (* y4 (- (* j t) (* k y))))
(* a (* y5 (- (* t y2) (* y y3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.9e+179) {
tmp = i * (t * (-j * y5));
} else if (y5 <= -6.6e-208) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y5 <= 1.5e+32) {
tmp = y0 * (c * ((x * y2) - (y3 * z)));
} else if (y5 <= 1.7e+215) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-2.9d+179)) then
tmp = i * (t * (-j * y5))
else if (y5 <= (-6.6d-208)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y5 <= 1.5d+32) then
tmp = y0 * (c * ((x * y2) - (y3 * z)))
else if (y5 <= 1.7d+215) then
tmp = b * (y4 * ((j * t) - (k * y)))
else
tmp = a * (y5 * ((t * y2) - (y * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.9e+179) {
tmp = i * (t * (-j * y5));
} else if (y5 <= -6.6e-208) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y5 <= 1.5e+32) {
tmp = y0 * (c * ((x * y2) - (y3 * z)));
} else if (y5 <= 1.7e+215) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -2.9e+179: tmp = i * (t * (-j * y5)) elif y5 <= -6.6e-208: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y5 <= 1.5e+32: tmp = y0 * (c * ((x * y2) - (y3 * z))) elif y5 <= 1.7e+215: tmp = b * (y4 * ((j * t) - (k * y))) else: tmp = a * (y5 * ((t * y2) - (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -2.9e+179) tmp = Float64(i * Float64(t * Float64(Float64(-j) * y5))); elseif (y5 <= -6.6e-208) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y5 <= 1.5e+32) tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y5 <= 1.7e+215) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -2.9e+179) tmp = i * (t * (-j * y5)); elseif (y5 <= -6.6e-208) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y5 <= 1.5e+32) tmp = y0 * (c * ((x * y2) - (y3 * z))); elseif (y5 <= 1.7e+215) tmp = b * (y4 * ((j * t) - (k * y))); else tmp = a * (y5 * ((t * y2) - (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.9e+179], N[(i * N[(t * N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6.6e-208], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.5e+32], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e+215], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.9 \cdot 10^{+179}:\\
\;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -6.6 \cdot 10^{-208}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y5 \leq 1.5 \cdot 10^{+32}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+215}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y5 < -2.90000000000000019e179Initial program 22.6%
Taylor expanded in i around -inf
Applied rewrites42.3%
Taylor expanded in t around -inf
Applied rewrites58.4%
Taylor expanded in z around 0
Applied rewrites61.6%
if -2.90000000000000019e179 < y5 < -6.60000000000000013e-208Initial program 44.3%
Taylor expanded in y1 around inf
Applied rewrites44.8%
Taylor expanded in y4 around inf
Applied rewrites41.6%
if -6.60000000000000013e-208 < y5 < 1.5e32Initial program 30.2%
Taylor expanded in y0 around inf
Applied rewrites47.0%
Taylor expanded in c around inf
Applied rewrites39.7%
if 1.5e32 < y5 < 1.70000000000000009e215Initial program 22.2%
Taylor expanded in b around inf
Applied rewrites56.7%
Taylor expanded in y4 around inf
Applied rewrites49.3%
if 1.70000000000000009e215 < y5 Initial program 25.0%
Taylor expanded in y5 around -inf
Applied rewrites68.8%
Taylor expanded in a around -inf
Applied rewrites69.0%
Final simplification45.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -6.5e+116)
(* c (* y4 (- (* y y3) (* t y2))))
(if (<= t -3e+77)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= t -7.2e-220)
(* b (* x (- (* a y) (* j y0))))
(if (<= t 8.6e+179)
(* c (* y0 (- (* x y2) (* y3 z))))
(* i (* z (- (* c t) (* k y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -6.5e+116) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= -3e+77) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (t <= -7.2e-220) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (t <= 8.6e+179) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-6.5d+116)) then
tmp = c * (y4 * ((y * y3) - (t * y2)))
else if (t <= (-3d+77)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (t <= (-7.2d-220)) then
tmp = b * (x * ((a * y) - (j * y0)))
else if (t <= 8.6d+179) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else
tmp = i * (z * ((c * t) - (k * y1)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -6.5e+116) {
tmp = c * (y4 * ((y * y3) - (t * y2)));
} else if (t <= -3e+77) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (t <= -7.2e-220) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (t <= 8.6e+179) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -6.5e+116: tmp = c * (y4 * ((y * y3) - (t * y2))) elif t <= -3e+77: tmp = y * (y5 * ((i * k) - (a * y3))) elif t <= -7.2e-220: tmp = b * (x * ((a * y) - (j * y0))) elif t <= 8.6e+179: tmp = c * (y0 * ((x * y2) - (y3 * z))) else: tmp = i * (z * ((c * t) - (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -6.5e+116) tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (t <= -3e+77) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (t <= -7.2e-220) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); elseif (t <= 8.6e+179) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); else tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -6.5e+116) tmp = c * (y4 * ((y * y3) - (t * y2))); elseif (t <= -3e+77) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (t <= -7.2e-220) tmp = b * (x * ((a * y) - (j * y0))); elseif (t <= 8.6e+179) tmp = c * (y0 * ((x * y2) - (y3 * z))); else tmp = i * (z * ((c * t) - (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -6.5e+116], N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3e+77], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e-220], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e+179], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq -3 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-220}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{+179}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\end{array}
\end{array}
if t < -6.4999999999999998e116Initial program 26.4%
Taylor expanded in y4 around inf
Applied rewrites57.4%
Taylor expanded in c around inf
Applied rewrites50.4%
if -6.4999999999999998e116 < t < -2.9999999999999998e77Initial program 0.0%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in y around -inf
Applied rewrites75.2%
if -2.9999999999999998e77 < t < -7.20000000000000042e-220Initial program 42.7%
Taylor expanded in b around inf
Applied rewrites47.3%
Taylor expanded in x around inf
Applied rewrites41.7%
if -7.20000000000000042e-220 < t < 8.5999999999999998e179Initial program 35.1%
Taylor expanded in y0 around inf
Applied rewrites49.5%
Taylor expanded in c around inf
Applied rewrites36.9%
if 8.5999999999999998e179 < t Initial program 25.1%
Taylor expanded in i around -inf
Applied rewrites35.1%
Taylor expanded in z around -inf
Applied rewrites50.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= i -8.5e+65)
(* i (* z (- (* c t) (* k y1))))
(if (<= i -1.7e-128)
t_1
(if (<= i 9e-84)
(* a (* b (- (* x y) (* t z))))
(if (<= i 5.6e+69) t_1 (* y (* y5 (- (* i k) (* a y3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (i <= -8.5e+65) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (i <= -1.7e-128) {
tmp = t_1;
} else if (i <= 9e-84) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (i <= 5.6e+69) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
if (i <= (-8.5d+65)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (i <= (-1.7d-128)) then
tmp = t_1
else if (i <= 9d-84) then
tmp = a * (b * ((x * y) - (t * z)))
else if (i <= 5.6d+69) then
tmp = t_1
else
tmp = y * (y5 * ((i * k) - (a * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (i <= -8.5e+65) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (i <= -1.7e-128) {
tmp = t_1;
} else if (i <= 9e-84) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (i <= 5.6e+69) {
tmp = t_1;
} else {
tmp = y * (y5 * ((i * k) - (a * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if i <= -8.5e+65: tmp = i * (z * ((c * t) - (k * y1))) elif i <= -1.7e-128: tmp = t_1 elif i <= 9e-84: tmp = a * (b * ((x * y) - (t * z))) elif i <= 5.6e+69: tmp = t_1 else: tmp = y * (y5 * ((i * k) - (a * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (i <= -8.5e+65) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (i <= -1.7e-128) tmp = t_1; elseif (i <= 9e-84) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (i <= 5.6e+69) tmp = t_1; else tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (i <= -8.5e+65) tmp = i * (z * ((c * t) - (k * y1))); elseif (i <= -1.7e-128) tmp = t_1; elseif (i <= 9e-84) tmp = a * (b * ((x * y) - (t * z))); elseif (i <= 5.6e+69) tmp = t_1; else tmp = y * (y5 * ((i * k) - (a * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.5e+65], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.7e-128], t$95$1, If[LessEqual[i, 9e-84], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.6e+69], t$95$1, N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;i \leq -8.5 \cdot 10^{+65}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;i \leq -1.7 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-84}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\end{array}
\end{array}
if i < -8.50000000000000075e65Initial program 26.5%
Taylor expanded in i around -inf
Applied rewrites53.8%
Taylor expanded in z around -inf
Applied rewrites38.3%
if -8.50000000000000075e65 < i < -1.69999999999999987e-128 or 9.00000000000000031e-84 < i < 5.59999999999999964e69Initial program 39.1%
Taylor expanded in y5 around -inf
Applied rewrites42.9%
Taylor expanded in a around -inf
Applied rewrites38.4%
if -1.69999999999999987e-128 < i < 9.00000000000000031e-84Initial program 36.1%
Taylor expanded in b around inf
Applied rewrites44.2%
Taylor expanded in a around inf
Applied rewrites39.5%
if 5.59999999999999964e69 < i Initial program 22.0%
Taylor expanded in y5 around -inf
Applied rewrites54.2%
Taylor expanded in y around -inf
Applied rewrites46.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* t y4)))))
(if (<= t -7.2e+77)
t_1
(if (<= t 4.2e-288)
(* a (* b (* x y)))
(if (<= t 8e-17)
(* y0 (* y2 (* c x)))
(if (<= t 3.6e+256) (* i (* z (* c t))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 4.2e-288) {
tmp = a * (b * (x * y));
} else if (t <= 8e-17) {
tmp = y0 * (y2 * (c * x));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * (t * y4))
if (t <= (-7.2d+77)) then
tmp = t_1
else if (t <= 4.2d-288) then
tmp = a * (b * (x * y))
else if (t <= 8d-17) then
tmp = y0 * (y2 * (c * x))
else if (t <= 3.6d+256) then
tmp = i * (z * (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 4.2e-288) {
tmp = a * (b * (x * y));
} else if (t <= 8e-17) {
tmp = y0 * (y2 * (c * x));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * (t * y4)) tmp = 0 if t <= -7.2e+77: tmp = t_1 elif t <= 4.2e-288: tmp = a * (b * (x * y)) elif t <= 8e-17: tmp = y0 * (y2 * (c * x)) elif t <= 3.6e+256: tmp = i * (z * (c * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (t <= -7.2e+77) tmp = t_1; elseif (t <= 4.2e-288) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (t <= 8e-17) tmp = Float64(y0 * Float64(y2 * Float64(c * x))); elseif (t <= 3.6e+256) tmp = Float64(i * Float64(z * Float64(c * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * (t * y4)); tmp = 0.0; if (t <= -7.2e+77) tmp = t_1; elseif (t <= 4.2e-288) tmp = a * (b * (x * y)); elseif (t <= 8e-17) tmp = y0 * (y2 * (c * x)); elseif (t <= 3.6e+256) tmp = i * (z * (c * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 4.2e-288], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e-17], N[(y0 * N[(y2 * N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-288}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-17}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(c \cdot x\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t Initial program 17.8%
Taylor expanded in b around inf
Applied rewrites37.2%
Taylor expanded in j around inf
Applied rewrites49.4%
Taylor expanded in x around 0
Applied rewrites43.8%
if -7.1999999999999996e77 < t < 4.19999999999999991e-288Initial program 34.1%
Taylor expanded in b around inf
Applied rewrites41.8%
Taylor expanded in a around inf
Applied rewrites31.4%
Taylor expanded in x around inf
Applied rewrites29.0%
if 4.19999999999999991e-288 < t < 8.00000000000000057e-17Initial program 48.0%
Taylor expanded in y0 around inf
Applied rewrites56.2%
Taylor expanded in y2 around inf
Applied rewrites38.8%
Taylor expanded in x around inf
Applied rewrites31.4%
if 8.00000000000000057e-17 < t < 3.59999999999999971e256Initial program 33.9%
Taylor expanded in i around -inf
Applied rewrites40.4%
Taylor expanded in z around -inf
Applied rewrites37.0%
Taylor expanded in t around inf
Applied rewrites37.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* t y4)))))
(if (<= t -7.2e+77)
t_1
(if (<= t 2.6e-288)
(* a (* b (* x y)))
(if (<= t 1.05e-16)
(* y0 (* c (* x y2)))
(if (<= t 3.6e+256) (* i (* z (* c t))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 2.6e-288) {
tmp = a * (b * (x * y));
} else if (t <= 1.05e-16) {
tmp = y0 * (c * (x * y2));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * (t * y4))
if (t <= (-7.2d+77)) then
tmp = t_1
else if (t <= 2.6d-288) then
tmp = a * (b * (x * y))
else if (t <= 1.05d-16) then
tmp = y0 * (c * (x * y2))
else if (t <= 3.6d+256) then
tmp = i * (z * (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 2.6e-288) {
tmp = a * (b * (x * y));
} else if (t <= 1.05e-16) {
tmp = y0 * (c * (x * y2));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * (t * y4)) tmp = 0 if t <= -7.2e+77: tmp = t_1 elif t <= 2.6e-288: tmp = a * (b * (x * y)) elif t <= 1.05e-16: tmp = y0 * (c * (x * y2)) elif t <= 3.6e+256: tmp = i * (z * (c * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (t <= -7.2e+77) tmp = t_1; elseif (t <= 2.6e-288) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (t <= 1.05e-16) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (t <= 3.6e+256) tmp = Float64(i * Float64(z * Float64(c * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * (t * y4)); tmp = 0.0; if (t <= -7.2e+77) tmp = t_1; elseif (t <= 2.6e-288) tmp = a * (b * (x * y)); elseif (t <= 1.05e-16) tmp = y0 * (c * (x * y2)); elseif (t <= 3.6e+256) tmp = i * (z * (c * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 2.6e-288], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e-16], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-288}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-16}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t Initial program 17.8%
Taylor expanded in b around inf
Applied rewrites37.2%
Taylor expanded in j around inf
Applied rewrites49.4%
Taylor expanded in x around 0
Applied rewrites43.8%
if -7.1999999999999996e77 < t < 2.59999999999999989e-288Initial program 34.1%
Taylor expanded in b around inf
Applied rewrites41.8%
Taylor expanded in a around inf
Applied rewrites31.4%
Taylor expanded in x around inf
Applied rewrites29.0%
if 2.59999999999999989e-288 < t < 1.0500000000000001e-16Initial program 48.0%
Taylor expanded in y0 around inf
Applied rewrites56.2%
Taylor expanded in y2 around inf
Applied rewrites38.8%
Taylor expanded in x around inf
Applied rewrites27.6%
if 1.0500000000000001e-16 < t < 3.59999999999999971e256Initial program 33.9%
Taylor expanded in i around -inf
Applied rewrites40.4%
Taylor expanded in z around -inf
Applied rewrites37.0%
Taylor expanded in t around inf
Applied rewrites37.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= z -1.45e+93) (not (<= z 9.6e+66))) (* i (* z (- (* c t) (* k y1)))) (* a (* y5 (- (* t y2) (* y y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.45e+93) || !(z <= 9.6e+66)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((z <= (-1.45d+93)) .or. (.not. (z <= 9.6d+66))) then
tmp = i * (z * ((c * t) - (k * y1)))
else
tmp = a * (y5 * ((t * y2) - (y * y3)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((z <= -1.45e+93) || !(z <= 9.6e+66)) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (z <= -1.45e+93) or not (z <= 9.6e+66): tmp = i * (z * ((c * t) - (k * y1))) else: tmp = a * (y5 * ((t * y2) - (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((z <= -1.45e+93) || !(z <= 9.6e+66)) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((z <= -1.45e+93) || ~((z <= 9.6e+66))) tmp = i * (z * ((c * t) - (k * y1))); else tmp = a * (y5 * ((t * y2) - (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[z, -1.45e+93], N[Not[LessEqual[z, 9.6e+66]], $MachinePrecision]], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+93} \lor \neg \left(z \leq 9.6 \cdot 10^{+66}\right):\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -1.4499999999999999e93 or 9.6000000000000007e66 < z Initial program 18.6%
Taylor expanded in i around -inf
Applied rewrites43.9%
Taylor expanded in z around -inf
Applied rewrites45.4%
if -1.4499999999999999e93 < z < 9.6000000000000007e66Initial program 40.2%
Taylor expanded in y5 around -inf
Applied rewrites47.7%
Taylor expanded in a around -inf
Applied rewrites32.0%
Final simplification36.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -6e-11)
(* i (* t (* (- j) y5)))
(if (<= y5 3.9e+183)
(* i (* z (- (* c t) (* k y1))))
(if (<= y5 2.7e+234) (* a (* b (* x y))) (* y0 (* (- k) (* y2 y5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -6e-11) {
tmp = i * (t * (-j * y5));
} else if (y5 <= 3.9e+183) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y5 <= 2.7e+234) {
tmp = a * (b * (x * y));
} else {
tmp = y0 * (-k * (y2 * y5));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-6d-11)) then
tmp = i * (t * (-j * y5))
else if (y5 <= 3.9d+183) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (y5 <= 2.7d+234) then
tmp = a * (b * (x * y))
else
tmp = y0 * (-k * (y2 * y5))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -6e-11) {
tmp = i * (t * (-j * y5));
} else if (y5 <= 3.9e+183) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y5 <= 2.7e+234) {
tmp = a * (b * (x * y));
} else {
tmp = y0 * (-k * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -6e-11: tmp = i * (t * (-j * y5)) elif y5 <= 3.9e+183: tmp = i * (z * ((c * t) - (k * y1))) elif y5 <= 2.7e+234: tmp = a * (b * (x * y)) else: tmp = y0 * (-k * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -6e-11) tmp = Float64(i * Float64(t * Float64(Float64(-j) * y5))); elseif (y5 <= 3.9e+183) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (y5 <= 2.7e+234) tmp = Float64(a * Float64(b * Float64(x * y))); else tmp = Float64(y0 * Float64(Float64(-k) * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -6e-11) tmp = i * (t * (-j * y5)); elseif (y5 <= 3.9e+183) tmp = i * (z * ((c * t) - (k * y1))); elseif (y5 <= 2.7e+234) tmp = a * (b * (x * y)); else tmp = y0 * (-k * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -6e-11], N[(i * N[(t * N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.9e+183], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.7e+234], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[((-k) * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -6 \cdot 10^{-11}:\\
\;\;\;\;i \cdot \left(t \cdot \left(\left(-j\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq 3.9 \cdot 10^{+183}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{+234}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -6e-11Initial program 32.8%
Taylor expanded in i around -inf
Applied rewrites35.1%
Taylor expanded in t around -inf
Applied rewrites36.8%
Taylor expanded in z around 0
Applied rewrites36.7%
if -6e-11 < y5 < 3.8999999999999999e183Initial program 34.0%
Taylor expanded in i around -inf
Applied rewrites39.8%
Taylor expanded in z around -inf
Applied rewrites32.7%
if 3.8999999999999999e183 < y5 < 2.7000000000000002e234Initial program 10.0%
Taylor expanded in b around inf
Applied rewrites30.5%
Taylor expanded in a around inf
Applied rewrites50.5%
Taylor expanded in x around inf
Applied rewrites51.2%
if 2.7000000000000002e234 < y5 Initial program 27.3%
Taylor expanded in y0 around inf
Applied rewrites54.9%
Taylor expanded in y2 around inf
Applied rewrites55.3%
Taylor expanded in x around 0
Applied rewrites64.3%
Final simplification36.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* t y4)))))
(if (<= t -7.2e+77)
t_1
(if (<= t 4.7e-10)
(* a (* b (* x y)))
(if (<= t 3.6e+256) (* i (* z (* c t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 4.7e-10) {
tmp = a * (b * (x * y));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * (t * y4))
if (t <= (-7.2d+77)) then
tmp = t_1
else if (t <= 4.7d-10) then
tmp = a * (b * (x * y))
else if (t <= 3.6d+256) then
tmp = i * (z * (c * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * (t * y4));
double tmp;
if (t <= -7.2e+77) {
tmp = t_1;
} else if (t <= 4.7e-10) {
tmp = a * (b * (x * y));
} else if (t <= 3.6e+256) {
tmp = i * (z * (c * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * (t * y4)) tmp = 0 if t <= -7.2e+77: tmp = t_1 elif t <= 4.7e-10: tmp = a * (b * (x * y)) elif t <= 3.6e+256: tmp = i * (z * (c * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(t * y4))) tmp = 0.0 if (t <= -7.2e+77) tmp = t_1; elseif (t <= 4.7e-10) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (t <= 3.6e+256) tmp = Float64(i * Float64(z * Float64(c * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * (t * y4)); tmp = 0.0; if (t <= -7.2e+77) tmp = t_1; elseif (t <= 4.7e-10) tmp = a * (b * (x * y)); elseif (t <= 3.6e+256) tmp = i * (z * (c * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+77], t$95$1, If[LessEqual[t, 4.7e-10], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+256], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+256}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.1999999999999996e77 or 3.59999999999999971e256 < t Initial program 17.8%
Taylor expanded in b around inf
Applied rewrites37.2%
Taylor expanded in j around inf
Applied rewrites49.4%
Taylor expanded in x around 0
Applied rewrites43.8%
if -7.1999999999999996e77 < t < 4.7000000000000003e-10Initial program 39.0%
Taylor expanded in b around inf
Applied rewrites41.2%
Taylor expanded in a around inf
Applied rewrites24.6%
Taylor expanded in x around inf
Applied rewrites22.4%
if 4.7000000000000003e-10 < t < 3.59999999999999971e256Initial program 34.6%
Taylor expanded in i around -inf
Applied rewrites41.1%
Taylor expanded in z around -inf
Applied rewrites37.6%
Taylor expanded in t around inf
Applied rewrites37.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= c -2.35e+14) (not (<= c 6e+119))) (* i (* t (* c z))) (* a (* b (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((c <= -2.35e+14) || !(c <= 6e+119)) {
tmp = i * (t * (c * z));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((c <= (-2.35d+14)) .or. (.not. (c <= 6d+119))) then
tmp = i * (t * (c * z))
else
tmp = a * (b * (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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((c <= -2.35e+14) || !(c <= 6e+119)) {
tmp = i * (t * (c * z));
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (c <= -2.35e+14) or not (c <= 6e+119): tmp = i * (t * (c * z)) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((c <= -2.35e+14) || !(c <= 6e+119)) tmp = Float64(i * Float64(t * Float64(c * z))); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((c <= -2.35e+14) || ~((c <= 6e+119))) tmp = i * (t * (c * z)); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[c, -2.35e+14], N[Not[LessEqual[c, 6e+119]], $MachinePrecision]], N[(i * N[(t * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.35 \cdot 10^{+14} \lor \neg \left(c \leq 6 \cdot 10^{+119}\right):\\
\;\;\;\;i \cdot \left(t \cdot \left(c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if c < -2.35e14 or 6.00000000000000002e119 < c Initial program 21.8%
Taylor expanded in i around -inf
Applied rewrites42.9%
Taylor expanded in t around -inf
Applied rewrites42.3%
Taylor expanded in z around inf
Applied rewrites38.2%
if -2.35e14 < c < 6.00000000000000002e119Initial program 38.4%
Taylor expanded in b around inf
Applied rewrites40.4%
Taylor expanded in a around inf
Applied rewrites27.9%
Taylor expanded in x around inf
Applied rewrites20.2%
Final simplification26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* t (* c z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (t * (c * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (t * (c * z))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (t * (c * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (t * (c * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(t * Float64(c * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (t * (c * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(t * N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(t \cdot \left(c \cdot z\right)\right)
\end{array}
Initial program 32.5%
Taylor expanded in i around -inf
Applied rewrites38.3%
Taylor expanded in t around -inf
Applied rewrites30.4%
Taylor expanded in z around inf
Applied rewrites19.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* c (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (c * (t * z))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (c * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(c * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (c * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(c \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 32.5%
Taylor expanded in i around -inf
Applied rewrites38.3%
Taylor expanded in z around -inf
Applied rewrites26.7%
Taylor expanded in t around inf
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* c (* i (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = c * (i * (t * z))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * (i * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(i * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * (i * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(i \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 32.5%
Taylor expanded in i around -inf
Applied rewrites38.3%
Taylor expanded in z around -inf
Applied rewrites26.7%
Taylor expanded in t around inf
Applied rewrites15.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2025026
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))