
(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 31 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 (fma y2 k (* (- j) y3)))
(t_2 (fma j x (* (- k) z)))
(t_3 (fma y x (* (- t) z)))
(t_4 (fma j t (* (- k) y)))
(t_5 (* (- (fma t_3 a (* t_4 y4)) (* t_2 y0)) b))
(t_6 (fma y2 t (* (- y) y3)))
(t_7 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_6 a)))))
(if (<= y5 -1.9e+101)
t_7
(if (<= y5 -6.2e-184)
(* (- (fma t_4 b (* t_1 y1)) (* t_6 c)) y4)
(if (<= y5 6.2e-288)
t_5
(if (<= y5 9e-199)
(*
(-
(fma (fma y0 c (* (- y1) a)) y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= y5 1.6e-117)
(* (* (fma (- y1) y2 (* b y)) x) a)
(if (<= y5 6.4e-71)
(* (- i) (- (fma t_3 c (* t_4 y5)) (* t_2 y1)))
(if (<= y5 2e+88) t_5 t_7)))))))))
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 = fma(y2, k, (-j * y3));
double t_2 = fma(j, x, (-k * z));
double t_3 = fma(y, x, (-t * z));
double t_4 = fma(j, t, (-k * y));
double t_5 = (fma(t_3, a, (t_4 * y4)) - (t_2 * y0)) * b;
double t_6 = fma(y2, t, (-y * y3));
double t_7 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_6 * a));
double tmp;
if (y5 <= -1.9e+101) {
tmp = t_7;
} else if (y5 <= -6.2e-184) {
tmp = (fma(t_4, b, (t_1 * y1)) - (t_6 * c)) * y4;
} else if (y5 <= 6.2e-288) {
tmp = t_5;
} else if (y5 <= 9e-199) {
tmp = (fma(fma(y0, c, (-y1 * a)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (y5 <= 1.6e-117) {
tmp = (fma(-y1, y2, (b * y)) * x) * a;
} else if (y5 <= 6.4e-71) {
tmp = -i * (fma(t_3, c, (t_4 * y5)) - (t_2 * y1));
} else if (y5 <= 2e+88) {
tmp = t_5;
} else {
tmp = t_7;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y2, k, Float64(Float64(-j) * y3)) t_2 = fma(j, x, Float64(Float64(-k) * z)) t_3 = fma(y, x, Float64(Float64(-t) * z)) t_4 = fma(j, t, Float64(Float64(-k) * y)) t_5 = Float64(Float64(fma(t_3, a, Float64(t_4 * y4)) - Float64(t_2 * y0)) * b) t_6 = fma(y2, t, Float64(Float64(-y) * y3)) t_7 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_6 * a))) tmp = 0.0 if (y5 <= -1.9e+101) tmp = t_7; elseif (y5 <= -6.2e-184) tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_6 * c)) * y4); elseif (y5 <= 6.2e-288) tmp = t_5; elseif (y5 <= 9e-199) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-y1) * a)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (y5 <= 1.6e-117) tmp = Float64(Float64(fma(Float64(-y1), y2, Float64(b * y)) * x) * a); elseif (y5 <= 6.4e-71) tmp = Float64(Float64(-i) * Float64(fma(t_3, c, Float64(t_4 * y5)) - Float64(t_2 * y1))); elseif (y5 <= 2e+88) tmp = t_5; else tmp = t_7; 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[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(t$95$3 * a + N[(t$95$4 * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$7, If[LessEqual[y5, -6.2e-184], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 6.2e-288], t$95$5, If[LessEqual[y5, 9e-199], N[(N[(N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.6e-117], N[(N[(N[((-y1) * y2 + N[(b * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, 6.4e-71], N[((-i) * N[(N[(t$95$3 * c + N[(t$95$4 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2e+88], t$95$5, t$95$7]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_3 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\
t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_5 := \left(\mathsf{fma}\left(t\_3, a, t\_4 \cdot y4\right) - t\_2 \cdot y0\right) \cdot b\\
t_6 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_7 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_6 \cdot a\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-184}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_6 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 6.2 \cdot 10^{-288}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y5 \leq 9 \cdot 10^{-199}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{-117}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, y2, b \cdot y\right) \cdot x\right) \cdot a\\
\mathbf{elif}\;y5 \leq 6.4 \cdot 10^{-71}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(t\_3, c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\
\mathbf{elif}\;y5 \leq 2 \cdot 10^{+88}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;t\_7\\
\end{array}
\end{array}
if y5 < -1.8999999999999999e101 or 1.99999999999999992e88 < y5 Initial program 22.9%
Taylor expanded in y5 around -inf
Applied rewrites67.4%
if -1.8999999999999999e101 < y5 < -6.2000000000000004e-184Initial program 48.4%
Taylor expanded in y4 around inf
Applied rewrites60.7%
if -6.2000000000000004e-184 < y5 < 6.19999999999999967e-288 or 6.3999999999999998e-71 < y5 < 1.99999999999999992e88Initial program 28.7%
Taylor expanded in b around inf
Applied rewrites56.7%
if 6.19999999999999967e-288 < y5 < 8.99999999999999995e-199Initial program 35.7%
Taylor expanded in x around inf
Applied rewrites71.6%
if 8.99999999999999995e-199 < y5 < 1.59999999999999998e-117Initial program 30.1%
Taylor expanded in a around inf
Applied rewrites31.0%
Taylor expanded in x around inf
Applied rewrites70.7%
Applied rewrites70.7%
if 1.59999999999999998e-117 < y5 < 6.3999999999999998e-71Initial program 39.0%
Taylor expanded in i around -inf
Applied rewrites63.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* 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))))))
(if (<= t_1 INFINITY)
t_1
(*
(- y5)
(-
(fma (fma j t (* (- k) y)) i (* (fma y2 k (* (- j) y3)) y0))
(* (fma y2 t (* (- y) y3)) a))))))
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 * 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 tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = -y5 * (fma(fma(j, t, (-k * y)), i, (fma(y2, k, (-j * y3)) * y0)) - (fma(y2, t, (-y * y3)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = 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)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(-y5) * Float64(fma(fma(j, t, Float64(Float64(-k) * y)), i, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y0)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); 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[(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]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[((-y5) * N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * i + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), i, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y0\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\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 rewrites42.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y2 k (* (- j) y3)))
(t_2 (fma j x (* (- k) z)))
(t_3 (fma y2 x (* (- y3) z)))
(t_4 (fma j t (* (- k) y)))
(t_5 (fma y2 t (* (- y) y3)))
(t_6 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_5 a)))))
(if (<= y5 -1.9e+101)
t_6
(if (<= y5 -2.05e-227)
(* (- (fma t_4 b (* t_1 y1)) (* t_5 c)) y4)
(if (<= y5 1.9e-121)
(* (+ (fma (- a) t_3 (* t_1 y4)) (* i t_2)) y1)
(if (<= y5 5.5e-85)
(* (- i) (- (fma (fma y x (* (- t) z)) c (* t_4 y5)) (* t_2 y1)))
(if (<= y5 4.6e-11)
(*
(+
(fma (- k) (fma y4 b (* (- i) y5)) (* (fma b a (* (- c) i)) x))
(* y3 (fma y4 c (* (- y5) a))))
y)
(if (<= y5 2.05e+89)
(* (- (fma (- y5) t_1 (* t_3 c)) (* t_2 b)) y0)
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 = fma(y2, k, (-j * y3));
double t_2 = fma(j, x, (-k * z));
double t_3 = fma(y2, x, (-y3 * z));
double t_4 = fma(j, t, (-k * y));
double t_5 = fma(y2, t, (-y * y3));
double t_6 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_5 * a));
double tmp;
if (y5 <= -1.9e+101) {
tmp = t_6;
} else if (y5 <= -2.05e-227) {
tmp = (fma(t_4, b, (t_1 * y1)) - (t_5 * c)) * y4;
} else if (y5 <= 1.9e-121) {
tmp = (fma(-a, t_3, (t_1 * y4)) + (i * t_2)) * y1;
} else if (y5 <= 5.5e-85) {
tmp = -i * (fma(fma(y, x, (-t * z)), c, (t_4 * y5)) - (t_2 * y1));
} else if (y5 <= 4.6e-11) {
tmp = (fma(-k, fma(y4, b, (-i * y5)), (fma(b, a, (-c * i)) * x)) + (y3 * fma(y4, c, (-y5 * a)))) * y;
} else if (y5 <= 2.05e+89) {
tmp = (fma(-y5, t_1, (t_3 * c)) - (t_2 * b)) * y0;
} 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 = fma(y2, k, Float64(Float64(-j) * y3)) t_2 = fma(j, x, Float64(Float64(-k) * z)) t_3 = fma(y2, x, Float64(Float64(-y3) * z)) t_4 = fma(j, t, Float64(Float64(-k) * y)) t_5 = fma(y2, t, Float64(Float64(-y) * y3)) t_6 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_5 * a))) tmp = 0.0 if (y5 <= -1.9e+101) tmp = t_6; elseif (y5 <= -2.05e-227) tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_5 * c)) * y4); elseif (y5 <= 1.9e-121) tmp = Float64(Float64(fma(Float64(-a), t_3, Float64(t_1 * y4)) + Float64(i * t_2)) * y1); elseif (y5 <= 5.5e-85) tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(t_4 * y5)) - Float64(t_2 * y1))); elseif (y5 <= 4.6e-11) tmp = Float64(Float64(fma(Float64(-k), fma(y4, b, Float64(Float64(-i) * y5)), Float64(fma(b, a, Float64(Float64(-c) * i)) * x)) + Float64(y3 * fma(y4, c, Float64(Float64(-y5) * a)))) * y); elseif (y5 <= 2.05e+89) tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(t_3 * c)) - Float64(t_2 * b)) * y0); 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[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$6, If[LessEqual[y5, -2.05e-227], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 1.9e-121], N[(N[(N[((-a) * t$95$3 + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 5.5e-85], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$4 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.6e-11], N[(N[(N[((-k) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y5, 2.05e+89], N[(N[(N[((-y5) * t$95$1 + N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$6]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\
t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-121}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 5.5 \cdot 10^{-85}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_4 \cdot y5\right) - t\_2 \cdot y1\right)\\
\mathbf{elif}\;y5 \leq 4.6 \cdot 10^{-11}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) + y3 \cdot \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right)\right) \cdot y\\
\mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
\end{array}
if y5 < -1.8999999999999999e101 or 2.04999999999999993e89 < y5 Initial program 22.9%
Taylor expanded in y5 around -inf
Applied rewrites67.4%
if -1.8999999999999999e101 < y5 < -2.05000000000000005e-227Initial program 46.2%
Taylor expanded in y4 around inf
Applied rewrites60.7%
if -2.05000000000000005e-227 < y5 < 1.9e-121Initial program 35.3%
Taylor expanded in y1 around inf
Applied rewrites62.9%
if 1.9e-121 < y5 < 5.4999999999999997e-85Initial program 23.6%
Taylor expanded in i around -inf
Applied rewrites63.1%
if 5.4999999999999997e-85 < y5 < 4.60000000000000027e-11Initial program 22.2%
Taylor expanded in y around inf
Applied rewrites66.9%
if 4.60000000000000027e-11 < y5 < 2.04999999999999993e89Initial program 34.5%
Taylor expanded in y0 around inf
Applied rewrites54.4%
Final simplification63.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y0 c (* (- y1) a)))
(t_2 (fma j t (* (- k) y)))
(t_3 (fma (- y0) y5 (* y1 y4))))
(if (<= y2 -1.4e+29)
(* k (* y2 t_3))
(if (<= y2 -1e-108)
(*
(-
(fma t_2 b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(if (<= y2 3.5e-249)
(*
(- i)
(-
(fma (fma y x (* (- t) z)) c (* t_2 y5))
(* (fma j x (* (- k) z)) y1)))
(if (<= y2 8.2e-38)
(*
(- y3)
(-
(fma (fma y4 y1 (* (- y0) y5)) j (* t_1 z))
(* (fma y4 c (* (- y5) a)) y)))
(if (<= y2 2.25e+70)
(*
(-
(fma t_1 y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(* (fma k t_3 (* x (fma -1.0 (* a y1) (* c y0)))) y2))))))))
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 = fma(y0, c, (-y1 * a));
double t_2 = fma(j, t, (-k * y));
double t_3 = fma(-y0, y5, (y1 * y4));
double tmp;
if (y2 <= -1.4e+29) {
tmp = k * (y2 * t_3);
} else if (y2 <= -1e-108) {
tmp = (fma(t_2, b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else if (y2 <= 3.5e-249) {
tmp = -i * (fma(fma(y, x, (-t * z)), c, (t_2 * y5)) - (fma(j, x, (-k * z)) * y1));
} else if (y2 <= 8.2e-38) {
tmp = -y3 * (fma(fma(y4, y1, (-y0 * y5)), j, (t_1 * z)) - (fma(y4, c, (-y5 * a)) * y));
} else if (y2 <= 2.25e+70) {
tmp = (fma(t_1, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else {
tmp = fma(k, t_3, (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y0, c, Float64(Float64(-y1) * a)) t_2 = fma(j, t, Float64(Float64(-k) * y)) t_3 = fma(Float64(-y0), y5, Float64(y1 * y4)) tmp = 0.0 if (y2 <= -1.4e+29) tmp = Float64(k * Float64(y2 * t_3)); elseif (y2 <= -1e-108) tmp = Float64(Float64(fma(t_2, b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); elseif (y2 <= 3.5e-249) tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(t_2 * y5)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y1))); elseif (y2 <= 8.2e-38) tmp = Float64(Float64(-y3) * Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), j, Float64(t_1 * z)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * y))); elseif (y2 <= 2.25e+70) tmp = Float64(Float64(fma(t_1, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); else tmp = Float64(fma(k, t_3, Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2); 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[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.4e+29], N[(k * N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1e-108], N[(N[(N[(t$95$2 * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y2, 3.5e-249], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$2 * y5), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.2e-38], N[((-y3) * N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * j + N[(t$95$1 * z), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.25e+70], N[(N[(N[(t$95$1 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(k * t$95$3 + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_3 := \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\\
\mathbf{if}\;y2 \leq -1.4 \cdot 10^{+29}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_3\right)\\
\mathbf{elif}\;y2 \leq -1 \cdot 10^{-108}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-249}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, t\_2 \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)\\
\mathbf{elif}\;y2 \leq 8.2 \cdot 10^{-38}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, t\_1 \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot y\right)\\
\mathbf{elif}\;y2 \leq 2.25 \cdot 10^{+70}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(k, t\_3, x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
\end{array}
\end{array}
if y2 < -1.4e29Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites50.6%
Taylor expanded in k around inf
Applied rewrites57.4%
if -1.4e29 < y2 < -1.00000000000000004e-108Initial program 28.5%
Taylor expanded in y4 around inf
Applied rewrites67.9%
if -1.00000000000000004e-108 < y2 < 3.50000000000000013e-249Initial program 31.9%
Taylor expanded in i around -inf
Applied rewrites57.9%
if 3.50000000000000013e-249 < y2 < 8.1999999999999996e-38Initial program 41.3%
Taylor expanded in y3 around -inf
Applied rewrites56.8%
if 8.1999999999999996e-38 < y2 < 2.25e70Initial program 39.4%
Taylor expanded in x around inf
Applied rewrites66.4%
if 2.25e70 < y2 Initial program 17.8%
Taylor expanded in y2 around inf
Applied rewrites57.9%
Taylor expanded in t around 0
Applied rewrites58.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.4e+123)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= y3 -9.5e-267)
(*
(fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
y2)
(if (<= y3 4.1e-154)
(* (* j (fma (- i) y5 (* b y4))) t)
(if (<= y3 6e-63)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* (fma y0 c (* (- y1) a)) x))
(* (fma y4 c (* (- y5) a)) t))
y2)
(if (<= y3 2.15e+240)
(*
(-
(fma (fma j t (* (- k) y)) b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(* y3 (* y5 (fma j y0 (* (- a) 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 (y3 <= -2.4e+123) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (y3 <= -9.5e-267) {
tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
} else if (y3 <= 4.1e-154) {
tmp = (j * fma(-i, y5, (b * y4))) * t;
} else if (y3 <= 6e-63) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (fma(y0, c, (-y1 * a)) * x)) - (fma(y4, c, (-y5 * a)) * t)) * y2;
} else if (y3 <= 2.15e+240) {
tmp = (fma(fma(j, t, (-k * y)), b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * 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 (y3 <= -2.4e+123) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (y3 <= -9.5e-267) tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2); elseif (y3 <= 4.1e-154) tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t); elseif (y3 <= 6e-63) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(fma(y0, c, Float64(Float64(-y1) * a)) * x)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * t)) * y2); elseif (y3 <= 2.15e+240) tmp = Float64(Float64(fma(fma(j, t, Float64(Float64(-k) * y)), b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 4.1e-154], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6e-63], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.15e+240], N[(N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
\;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 4.1 \cdot 10^{-154}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;y3 \leq 6 \cdot 10^{-63}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -2.39999999999999989e123Initial program 30.2%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in y3 around inf
Applied rewrites59.0%
if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites48.6%
Taylor expanded in t around 0
Applied rewrites57.3%
if -9.49999999999999985e-267 < y3 < 4.1e-154Initial program 28.2%
Taylor expanded in t around inf
Applied rewrites48.8%
Taylor expanded in j around inf
Applied rewrites54.7%
if 4.1e-154 < y3 < 5.99999999999999959e-63Initial program 49.9%
Taylor expanded in y2 around inf
Applied rewrites74.9%
if 5.99999999999999959e-63 < y3 < 2.15e240Initial program 31.4%
Taylor expanded in y4 around inf
Applied rewrites55.6%
if 2.15e240 < y3 Initial program 18.8%
Taylor expanded in y5 around -inf
Applied rewrites62.4%
Taylor expanded in y3 around -inf
Applied rewrites62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.4e+123)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= y3 -9.5e-267)
(*
(fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
y2)
(if (<= y3 2.6e-198)
(* (* j (fma (- i) y5 (* b y4))) t)
(if (<= y3 6.5e-63)
(* (- y5) (* y2 (fma k y0 (* (- a) t))))
(if (<= y3 2.15e+240)
(*
(-
(fma (fma j t (* (- k) y)) b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(* y3 (* y5 (fma j y0 (* (- a) 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 (y3 <= -2.4e+123) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (y3 <= -9.5e-267) {
tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
} else if (y3 <= 2.6e-198) {
tmp = (j * fma(-i, y5, (b * y4))) * t;
} else if (y3 <= 6.5e-63) {
tmp = -y5 * (y2 * fma(k, y0, (-a * t)));
} else if (y3 <= 2.15e+240) {
tmp = (fma(fma(j, t, (-k * y)), b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * 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 (y3 <= -2.4e+123) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (y3 <= -9.5e-267) tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2); elseif (y3 <= 2.6e-198) tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t); elseif (y3 <= 6.5e-63) tmp = Float64(Float64(-y5) * Float64(y2 * fma(k, y0, Float64(Float64(-a) * t)))); elseif (y3 <= 2.15e+240) tmp = Float64(Float64(fma(fma(j, t, Float64(Float64(-k) * y)), b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.6e-198], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6.5e-63], N[((-y5) * N[(y2 * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.15e+240], N[(N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
\;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\
\mathbf{elif}\;y3 \leq 2.15 \cdot 10^{+240}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -2.39999999999999989e123Initial program 30.2%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in y3 around inf
Applied rewrites59.0%
if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites48.6%
Taylor expanded in t around 0
Applied rewrites57.3%
if -9.49999999999999985e-267 < y3 < 2.60000000000000007e-198Initial program 27.6%
Taylor expanded in t around inf
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites59.4%
if 2.60000000000000007e-198 < y3 < 6.4999999999999998e-63Initial program 43.2%
Taylor expanded in y5 around -inf
Applied rewrites56.2%
Taylor expanded in y2 around inf
Applied rewrites56.9%
if 6.4999999999999998e-63 < y3 < 2.15e240Initial program 31.4%
Taylor expanded in y4 around inf
Applied rewrites55.6%
if 2.15e240 < y3 Initial program 18.8%
Taylor expanded in y5 around -inf
Applied rewrites62.4%
Taylor expanded in y3 around -inf
Applied rewrites62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y2 k (* (- j) y3)))
(t_2 (fma j x (* (- k) z)))
(t_3 (fma y2 x (* (- y3) z)))
(t_4 (fma j t (* (- k) y)))
(t_5 (fma y2 t (* (- y) y3)))
(t_6 (* (- y5) (- (fma t_4 i (* t_1 y0)) (* t_5 a)))))
(if (<= y5 -1.9e+101)
t_6
(if (<= y5 -2.05e-227)
(* (- (fma t_4 b (* t_1 y1)) (* t_5 c)) y4)
(if (<= y5 3.35e-108)
(* (+ (fma (- a) t_3 (* t_1 y4)) (* i t_2)) y1)
(if (<= y5 2.05e+89)
(* (- (fma (- y5) t_1 (* t_3 c)) (* t_2 b)) y0)
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 = fma(y2, k, (-j * y3));
double t_2 = fma(j, x, (-k * z));
double t_3 = fma(y2, x, (-y3 * z));
double t_4 = fma(j, t, (-k * y));
double t_5 = fma(y2, t, (-y * y3));
double t_6 = -y5 * (fma(t_4, i, (t_1 * y0)) - (t_5 * a));
double tmp;
if (y5 <= -1.9e+101) {
tmp = t_6;
} else if (y5 <= -2.05e-227) {
tmp = (fma(t_4, b, (t_1 * y1)) - (t_5 * c)) * y4;
} else if (y5 <= 3.35e-108) {
tmp = (fma(-a, t_3, (t_1 * y4)) + (i * t_2)) * y1;
} else if (y5 <= 2.05e+89) {
tmp = (fma(-y5, t_1, (t_3 * c)) - (t_2 * b)) * y0;
} 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 = fma(y2, k, Float64(Float64(-j) * y3)) t_2 = fma(j, x, Float64(Float64(-k) * z)) t_3 = fma(y2, x, Float64(Float64(-y3) * z)) t_4 = fma(j, t, Float64(Float64(-k) * y)) t_5 = fma(y2, t, Float64(Float64(-y) * y3)) t_6 = Float64(Float64(-y5) * Float64(fma(t_4, i, Float64(t_1 * y0)) - Float64(t_5 * a))) tmp = 0.0 if (y5 <= -1.9e+101) tmp = t_6; elseif (y5 <= -2.05e-227) tmp = Float64(Float64(fma(t_4, b, Float64(t_1 * y1)) - Float64(t_5 * c)) * y4); elseif (y5 <= 3.35e-108) tmp = Float64(Float64(fma(Float64(-a), t_3, Float64(t_1 * y4)) + Float64(i * t_2)) * y1); elseif (y5 <= 2.05e+89) tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(t_3 * c)) - Float64(t_2 * b)) * y0); 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[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[((-y5) * N[(N[(t$95$4 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+101], t$95$6, If[LessEqual[y5, -2.05e-227], N[(N[(N[(t$95$4 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 3.35e-108], N[(N[(N[((-a) * t$95$3 + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 2.05e+89], N[(N[(N[((-y5) * t$95$1 + N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$6]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_3 := \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right)\\
t_4 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_6 := \left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_4, i, t\_1 \cdot y0\right) - t\_5 \cdot a\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y5 \leq -2.05 \cdot 10^{-227}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_4, b, t\_1 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 3.35 \cdot 10^{-108}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, t\_3, t\_1 \cdot y4\right) + i \cdot t\_2\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 2.05 \cdot 10^{+89}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, t\_3 \cdot c\right) - t\_2 \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
\end{array}
if y5 < -1.8999999999999999e101 or 2.04999999999999993e89 < y5 Initial program 22.9%
Taylor expanded in y5 around -inf
Applied rewrites67.4%
if -1.8999999999999999e101 < y5 < -2.05000000000000005e-227Initial program 46.2%
Taylor expanded in y4 around inf
Applied rewrites60.7%
if -2.05000000000000005e-227 < y5 < 3.34999999999999991e-108Initial program 32.8%
Taylor expanded in y1 around inf
Applied rewrites60.2%
if 3.34999999999999991e-108 < y5 < 2.04999999999999993e89Initial program 30.3%
Taylor expanded in y0 around inf
Applied rewrites47.8%
Final simplification60.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y2 k (* (- j) y3)))
(t_2 (fma j t (* (- k) y)))
(t_3 (fma y2 t (* (- y) y3)))
(t_4 (* (- (fma t_2 b (* t_1 y1)) (* t_3 c)) y4)))
(if (<= y4 -6.8e-27)
t_4
(if (<= y4 2.1e-246)
(*
(-
(fma (- y5) t_1 (* (fma y2 x (* (- y3) z)) c))
(* (fma j x (* (- k) z)) b))
y0)
(if (<= y4 1.05e+89)
(* (- y5) (- (fma t_2 i (* t_1 y0)) (* t_3 a)))
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 = fma(y2, k, (-j * y3));
double t_2 = fma(j, t, (-k * y));
double t_3 = fma(y2, t, (-y * y3));
double t_4 = (fma(t_2, b, (t_1 * y1)) - (t_3 * c)) * y4;
double tmp;
if (y4 <= -6.8e-27) {
tmp = t_4;
} else if (y4 <= 2.1e-246) {
tmp = (fma(-y5, t_1, (fma(y2, x, (-y3 * z)) * c)) - (fma(j, x, (-k * z)) * b)) * y0;
} else if (y4 <= 1.05e+89) {
tmp = -y5 * (fma(t_2, i, (t_1 * y0)) - (t_3 * a));
} 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 = fma(y2, k, Float64(Float64(-j) * y3)) t_2 = fma(j, t, Float64(Float64(-k) * y)) t_3 = fma(y2, t, Float64(Float64(-y) * y3)) t_4 = Float64(Float64(fma(t_2, b, Float64(t_1 * y1)) - Float64(t_3 * c)) * y4) tmp = 0.0 if (y4 <= -6.8e-27) tmp = t_4; elseif (y4 <= 2.1e-246) tmp = Float64(Float64(fma(Float64(-y5), t_1, Float64(fma(y2, x, Float64(Float64(-y3) * z)) * c)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0); elseif (y4 <= 1.05e+89) tmp = Float64(Float64(-y5) * Float64(fma(t_2, i, Float64(t_1 * y0)) - Float64(t_3 * a))); 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[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(t$95$2 * b + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y4, -6.8e-27], t$95$4, If[LessEqual[y4, 2.1e-246], N[(N[(N[((-y5) * t$95$1 + N[(N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y4, 1.05e+89], N[((-y5) * N[(N[(t$95$2 * i + N[(t$95$1 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_3 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_4 := \left(\mathsf{fma}\left(t\_2, b, t\_1 \cdot y1\right) - t\_3 \cdot c\right) \cdot y4\\
\mathbf{if}\;y4 \leq -6.8 \cdot 10^{-27}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y4 \leq 2.1 \cdot 10^{-246}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y5, t\_1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+89}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, i, t\_1 \cdot y0\right) - t\_3 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y4 < -6.7999999999999994e-27 or 1.04999999999999993e89 < y4 Initial program 28.1%
Taylor expanded in y4 around inf
Applied rewrites61.1%
if -6.7999999999999994e-27 < y4 < 2.09999999999999995e-246Initial program 42.4%
Taylor expanded in y0 around inf
Applied rewrites51.9%
if 2.09999999999999995e-246 < y4 < 1.04999999999999993e89Initial program 28.1%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* (* k y2) y4)))
(t_2 (* y3 (* y5 (fma j y0 (* (- a) y))))))
(if (<= k -1.7e+104)
t_1
(if (<= k -1.85e-9)
t_2
(if (<= k -3e-113)
(* (* (* b x) y) a)
(if (<= k 2.1e-224)
(* (* i t) (fma c z (* (- j) y5)))
(if (<= k 1.55e-41)
t_2
(if (<= k 4.1e+135) (* (* i (fma j x (* (- k) z))) 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 = y1 * ((k * y2) * y4);
double t_2 = y3 * (y5 * fma(j, y0, (-a * y)));
double tmp;
if (k <= -1.7e+104) {
tmp = t_1;
} else if (k <= -1.85e-9) {
tmp = t_2;
} else if (k <= -3e-113) {
tmp = ((b * x) * y) * a;
} else if (k <= 2.1e-224) {
tmp = (i * t) * fma(c, z, (-j * y5));
} else if (k <= 1.55e-41) {
tmp = t_2;
} else if (k <= 4.1e+135) {
tmp = (i * fma(j, x, (-k * z))) * 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(y1 * Float64(Float64(k * y2) * y4)) t_2 = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))) tmp = 0.0 if (k <= -1.7e+104) tmp = t_1; elseif (k <= -1.85e-9) tmp = t_2; elseif (k <= -3e-113) tmp = Float64(Float64(Float64(b * x) * y) * a); elseif (k <= 2.1e-224) tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5))); elseif (k <= 1.55e-41) tmp = t_2; elseif (k <= 4.1e+135) tmp = Float64(Float64(i * fma(j, x, Float64(Float64(-k) * z))) * y1); 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[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.7e+104], t$95$1, If[LessEqual[k, -1.85e-9], t$95$2, If[LessEqual[k, -3e-113], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2.1e-224], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.55e-41], t$95$2, If[LessEqual[k, 4.1e+135], N[(N[(i * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
t_2 := y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\mathbf{if}\;k \leq -1.7 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -1.85 \cdot 10^{-9}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\
\;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{-224}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
\mathbf{elif}\;k \leq 1.55 \cdot 10^{-41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;k \leq 4.1 \cdot 10^{+135}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1.6999999999999998e104 or 4.1e135 < k Initial program 26.5%
Taylor expanded in y4 around inf
Applied rewrites49.8%
Taylor expanded in y1 around inf
Applied rewrites50.1%
Taylor expanded in j around 0
Applied rewrites45.3%
if -1.6999999999999998e104 < k < -1.85e-9 or 2.10000000000000006e-224 < k < 1.55e-41Initial program 32.8%
Taylor expanded in y5 around -inf
Applied rewrites49.9%
Taylor expanded in y3 around -inf
Applied rewrites42.7%
if -1.85e-9 < k < -3.0000000000000001e-113Initial program 18.3%
Taylor expanded in a around inf
Applied rewrites49.9%
Taylor expanded in y around inf
Applied rewrites55.0%
Taylor expanded in x around inf
Applied rewrites55.4%
if -3.0000000000000001e-113 < k < 2.10000000000000006e-224Initial program 46.2%
Taylor expanded in i around -inf
Applied rewrites35.4%
Taylor expanded in y1 around inf
Applied rewrites18.9%
Taylor expanded in t around -inf
Applied rewrites41.1%
if 1.55e-41 < k < 4.1e135Initial program 34.4%
Taylor expanded in i around -inf
Applied rewrites49.2%
Taylor expanded in y1 around inf
Applied rewrites38.3%
Applied rewrites40.8%
Final simplification44.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.4e+123)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= y3 -9.5e-267)
(*
(fma k (fma (- y0) y5 (* y1 y4)) (* x (fma -1.0 (* a y1) (* c y0))))
y2)
(if (<= y3 2.6e-198)
(* (* j (fma (- i) y5 (* b y4))) t)
(if (<= y3 6.5e-63)
(* (- y5) (* y2 (fma k y0 (* (- a) t))))
(if (<= y3 1.2e+238)
(* b (* y4 (fma (- k) y (* j t))))
(* y3 (* y5 (fma j y0 (* (- a) 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 (y3 <= -2.4e+123) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (y3 <= -9.5e-267) {
tmp = fma(k, fma(-y0, y5, (y1 * y4)), (x * fma(-1.0, (a * y1), (c * y0)))) * y2;
} else if (y3 <= 2.6e-198) {
tmp = (j * fma(-i, y5, (b * y4))) * t;
} else if (y3 <= 6.5e-63) {
tmp = -y5 * (y2 * fma(k, y0, (-a * t)));
} else if (y3 <= 1.2e+238) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * 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 (y3 <= -2.4e+123) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (y3 <= -9.5e-267) tmp = Float64(fma(k, fma(Float64(-y0), y5, Float64(y1 * y4)), Float64(x * fma(-1.0, Float64(a * y1), Float64(c * y0)))) * y2); elseif (y3 <= 2.6e-198) tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t); elseif (y3 <= 6.5e-63) tmp = Float64(Float64(-y5) * Float64(y2 * fma(k, y0, Float64(Float64(-a) * t)))); elseif (y3 <= 1.2e+238) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.4e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -9.5e-267], N[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.6e-198], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 6.5e-63], N[((-y5) * N[(y2 * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.4 \cdot 10^{+123}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-267}:\\
\;\;\;\;\mathsf{fma}\left(k, \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right), x \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 2.6 \cdot 10^{-198}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;y3 \leq 6.5 \cdot 10^{-63}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y2 \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right)\\
\mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -2.39999999999999989e123Initial program 30.2%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in y3 around inf
Applied rewrites59.0%
if -2.39999999999999989e123 < y3 < -9.49999999999999985e-267Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites48.6%
Taylor expanded in t around 0
Applied rewrites57.3%
if -9.49999999999999985e-267 < y3 < 2.60000000000000007e-198Initial program 27.6%
Taylor expanded in t around inf
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites59.4%
if 2.60000000000000007e-198 < y3 < 6.4999999999999998e-63Initial program 43.2%
Taylor expanded in y5 around -inf
Applied rewrites56.2%
Taylor expanded in y2 around inf
Applied rewrites56.9%
if 6.4999999999999998e-63 < y3 < 1.2e238Initial program 31.4%
Taylor expanded in y4 around inf
Applied rewrites55.6%
Taylor expanded in b around inf
Applied rewrites42.7%
if 1.2e238 < y3 Initial program 18.8%
Taylor expanded in y5 around -inf
Applied rewrites62.4%
Taylor expanded in y3 around -inf
Applied rewrites62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* k (fma (- y0) y5 (* y1 y4))) y2)))
(if (<= k -4.6e+110)
t_1
(if (<= k -4.4e-276)
(* (* x (fma a y (* (- j) y0))) b)
(if (<= k 3.4e-134)
(* (* y5 (fma (- y) y3 (* t y2))) a)
(if (<= k 1.15e+19)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= k 3e+133)
(* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * fma(-y0, y5, (y1 * y4))) * y2;
double tmp;
if (k <= -4.6e+110) {
tmp = t_1;
} else if (k <= -4.4e-276) {
tmp = (x * fma(a, y, (-j * y0))) * b;
} else if (k <= 3.4e-134) {
tmp = (y5 * fma(-y, y3, (t * y2))) * a;
} else if (k <= 1.15e+19) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (k <= 3e+133) {
tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
} 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(Float64(k * fma(Float64(-y0), y5, Float64(y1 * y4))) * y2) tmp = 0.0 if (k <= -4.6e+110) tmp = t_1; elseif (k <= -4.4e-276) tmp = Float64(Float64(x * fma(a, y, Float64(Float64(-j) * y0))) * b); elseif (k <= 3.4e-134) tmp = Float64(Float64(y5 * fma(Float64(-y), y3, Float64(t * y2))) * a); elseif (k <= 1.15e+19) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (k <= 3e+133) tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y)))); 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[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[k, -4.6e+110], t$95$1, If[LessEqual[k, -4.4e-276], N[(N[(x * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[k, 3.4e-134], N[(N[(y5 * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.15e+19], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, 3e+133], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\
\mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{+19}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;k \leq 3 \cdot 10^{+133}:\\
\;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -4.6e110 or 3.00000000000000007e133 < k Initial program 27.2%
Taylor expanded in y2 around inf
Applied rewrites49.6%
Taylor expanded in k around inf
Applied rewrites62.1%
if -4.6e110 < k < -4.39999999999999961e-276Initial program 34.3%
Taylor expanded in b around inf
Applied rewrites45.2%
Taylor expanded in x around inf
Applied rewrites47.2%
if -4.39999999999999961e-276 < k < 3.39999999999999977e-134Initial program 36.8%
Taylor expanded in a around inf
Applied rewrites48.9%
Taylor expanded in y5 around inf
Applied rewrites45.0%
if 3.39999999999999977e-134 < k < 1.15e19Initial program 38.8%
Taylor expanded in y2 around inf
Applied rewrites42.0%
Taylor expanded in c around inf
Applied rewrites50.9%
if 1.15e19 < k < 3.00000000000000007e133Initial program 26.4%
Taylor expanded in y5 around -inf
Applied rewrites43.7%
Taylor expanded in k around -inf
Applied rewrites44.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* k (fma (- y0) y5 (* y1 y4))) y2)))
(if (<= k -4.6e+110)
t_1
(if (<= k -4.4e-276)
(* (* x (fma a y (* (- j) y0))) b)
(if (<= k 3.4e-134)
(* (* y5 (fma (- y) y3 (* t y2))) a)
(if (<= k 1.95e+25)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= k 2.25e+133) (* i (* z (fma 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 = (k * fma(-y0, y5, (y1 * y4))) * y2;
double tmp;
if (k <= -4.6e+110) {
tmp = t_1;
} else if (k <= -4.4e-276) {
tmp = (x * fma(a, y, (-j * y0))) * b;
} else if (k <= 3.4e-134) {
tmp = (y5 * fma(-y, y3, (t * y2))) * a;
} else if (k <= 1.95e+25) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (k <= 2.25e+133) {
tmp = i * (z * fma(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(Float64(k * fma(Float64(-y0), y5, Float64(y1 * y4))) * y2) tmp = 0.0 if (k <= -4.6e+110) tmp = t_1; elseif (k <= -4.4e-276) tmp = Float64(Float64(x * fma(a, y, Float64(Float64(-j) * y0))) * b); elseif (k <= 3.4e-134) tmp = Float64(Float64(y5 * fma(Float64(-y), y3, Float64(t * y2))) * a); elseif (k <= 1.95e+25) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (k <= 2.25e+133) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); 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[(N[(k * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[k, -4.6e+110], t$95$1, If[LessEqual[k, -4.4e-276], N[(N[(x * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[k, 3.4e-134], N[(N[(y5 * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.95e+25], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, 2.25e+133], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(k \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot y2\\
\mathbf{if}\;k \leq -4.6 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -4.4 \cdot 10^{-276}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;k \leq 3.4 \cdot 10^{-134}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{+25}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;k \leq 2.25 \cdot 10^{+133}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -4.6e110 or 2.24999999999999992e133 < k Initial program 27.2%
Taylor expanded in y2 around inf
Applied rewrites49.6%
Taylor expanded in k around inf
Applied rewrites62.1%
if -4.6e110 < k < -4.39999999999999961e-276Initial program 34.3%
Taylor expanded in b around inf
Applied rewrites45.2%
Taylor expanded in x around inf
Applied rewrites47.2%
if -4.39999999999999961e-276 < k < 3.39999999999999977e-134Initial program 36.8%
Taylor expanded in a around inf
Applied rewrites48.9%
Taylor expanded in y5 around inf
Applied rewrites45.0%
if 3.39999999999999977e-134 < k < 1.9500000000000001e25Initial program 40.5%
Taylor expanded in y2 around inf
Applied rewrites40.9%
Taylor expanded in c around inf
Applied rewrites49.6%
if 1.9500000000000001e25 < k < 2.24999999999999992e133Initial program 23.1%
Taylor expanded in i around -inf
Applied rewrites55.1%
Taylor expanded in z around -inf
Applied rewrites46.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.3e+123)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= y3 -1.8e-267)
(* k (* y2 (fma (- y0) y5 (* y1 y4))))
(if (<= y3 2.15e-197)
(* (* j (fma (- i) y5 (* b y4))) t)
(if (<= y3 4.05e-63)
(* (* a y5) (fma (- y) y3 (* t y2)))
(if (<= y3 1.2e+238)
(* b (* y4 (fma (- k) y (* j t))))
(* y3 (* y5 (fma j y0 (* (- a) 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 (y3 <= -2.3e+123) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (y3 <= -1.8e-267) {
tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
} else if (y3 <= 2.15e-197) {
tmp = (j * fma(-i, y5, (b * y4))) * t;
} else if (y3 <= 4.05e-63) {
tmp = (a * y5) * fma(-y, y3, (t * y2));
} else if (y3 <= 1.2e+238) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * 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 (y3 <= -2.3e+123) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (y3 <= -1.8e-267) tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4)))); elseif (y3 <= 2.15e-197) tmp = Float64(Float64(j * fma(Float64(-i), y5, Float64(b * y4))) * t); elseif (y3 <= 4.05e-63) tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); elseif (y3 <= 1.2e+238) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.3e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -1.8e-267], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.15e-197], N[(N[(j * N[((-i) * y5 + N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y3, 4.05e-63], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq -1.8 \cdot 10^{-267}:\\
\;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.15 \cdot 10^{-197}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-i, y5, b \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -2.2999999999999999e123Initial program 30.2%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in y3 around inf
Applied rewrites59.0%
if -2.2999999999999999e123 < y3 < -1.8000000000000001e-267Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites48.6%
Taylor expanded in k around inf
Applied rewrites47.9%
if -1.8000000000000001e-267 < y3 < 2.15e-197Initial program 30.0%
Taylor expanded in t around inf
Applied rewrites50.0%
Taylor expanded in j around inf
Applied rewrites60.8%
if 2.15e-197 < y3 < 4.04999999999999975e-63Initial program 41.3%
Taylor expanded in a around inf
Applied rewrites56.3%
Taylor expanded in y around inf
Applied rewrites25.6%
Taylor expanded in y5 around inf
Applied rewrites49.2%
if 4.04999999999999975e-63 < y3 < 1.2e238Initial program 31.4%
Taylor expanded in y4 around inf
Applied rewrites55.6%
Taylor expanded in b around inf
Applied rewrites42.7%
if 1.2e238 < y3 Initial program 18.8%
Taylor expanded in y5 around -inf
Applied rewrites62.4%
Taylor expanded in y3 around -inf
Applied rewrites62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.3e+123)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= y3 4.4e-196)
(* k (* y2 (fma (- y0) y5 (* y1 y4))))
(if (<= y3 4.05e-63)
(* (* a y5) (fma (- y) y3 (* t y2)))
(if (<= y3 1.2e+238)
(* b (* y4 (fma (- k) y (* j t))))
(* y3 (* y5 (fma j y0 (* (- a) 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 (y3 <= -2.3e+123) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (y3 <= 4.4e-196) {
tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
} else if (y3 <= 4.05e-63) {
tmp = (a * y5) * fma(-y, y3, (t * y2));
} else if (y3 <= 1.2e+238) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * 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 (y3 <= -2.3e+123) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (y3 <= 4.4e-196) tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4)))); elseif (y3 <= 4.05e-63) tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); elseif (y3 <= 1.2e+238) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.3e+123], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, 4.4e-196], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.05e-63], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.2e+238], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.3 \cdot 10^{+123}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq 4.4 \cdot 10^{-196}:\\
\;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 4.05 \cdot 10^{-63}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\mathbf{elif}\;y3 \leq 1.2 \cdot 10^{+238}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y3 < -2.2999999999999999e123Initial program 30.2%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in y3 around inf
Applied rewrites59.0%
if -2.2999999999999999e123 < y3 < 4.4000000000000003e-196Initial program 33.8%
Taylor expanded in y2 around inf
Applied rewrites40.3%
Taylor expanded in k around inf
Applied rewrites44.8%
if 4.4000000000000003e-196 < y3 < 4.04999999999999975e-63Initial program 41.3%
Taylor expanded in a around inf
Applied rewrites56.3%
Taylor expanded in y around inf
Applied rewrites25.6%
Taylor expanded in y5 around inf
Applied rewrites49.2%
if 4.04999999999999975e-63 < y3 < 1.2e238Initial program 31.4%
Taylor expanded in y4 around inf
Applied rewrites55.6%
Taylor expanded in b around inf
Applied rewrites42.7%
if 1.2e238 < y3 Initial program 18.8%
Taylor expanded in y5 around -inf
Applied rewrites62.4%
Taylor expanded in y3 around -inf
Applied rewrites62.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* (* k y2) y4))))
(if (<= k -1e+189)
t_1
(if (<= k -2.2e+58)
(* i (* z (fma c t (* (- k) y1))))
(if (<= k -3e-113)
(* (* (* b x) y) a)
(if (<= k 1.1e+137) (* (* i t) (fma c z (* (- j) y5))) 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 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -1e+189) {
tmp = t_1;
} else if (k <= -2.2e+58) {
tmp = i * (z * fma(c, t, (-k * y1)));
} else if (k <= -3e-113) {
tmp = ((b * x) * y) * a;
} else if (k <= 1.1e+137) {
tmp = (i * t) * fma(c, z, (-j * y5));
} 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(y1 * Float64(Float64(k * y2) * y4)) tmp = 0.0 if (k <= -1e+189) tmp = t_1; elseif (k <= -2.2e+58) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); elseif (k <= -3e-113) tmp = Float64(Float64(Float64(b * x) * y) * a); elseif (k <= 1.1e+137) tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5))); 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[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1e+189], t$95$1, If[LessEqual[k, -2.2e+58], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -3e-113], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1.1e+137], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;k \leq -1 \cdot 10^{+189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -2.2 \cdot 10^{+58}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -3 \cdot 10^{-113}:\\
\;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
\mathbf{elif}\;k \leq 1.1 \cdot 10^{+137}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1e189 or 1.10000000000000008e137 < k Initial program 23.8%
Taylor expanded in y4 around inf
Applied rewrites57.5%
Taylor expanded in y1 around inf
Applied rewrites56.2%
Taylor expanded in j around 0
Applied rewrites51.4%
if -1e189 < k < -2.2000000000000001e58Initial program 33.3%
Taylor expanded in i around -inf
Applied rewrites42.6%
Taylor expanded in z around -inf
Applied rewrites38.9%
if -2.2000000000000001e58 < k < -3.0000000000000001e-113Initial program 20.1%
Taylor expanded in a around inf
Applied rewrites51.4%
Taylor expanded in y around inf
Applied rewrites46.1%
Taylor expanded in x around inf
Applied rewrites43.8%
if -3.0000000000000001e-113 < k < 1.10000000000000008e137Initial program 39.6%
Taylor expanded in i around -inf
Applied rewrites41.9%
Taylor expanded in y1 around inf
Applied rewrites22.5%
Taylor expanded in t around -inf
Applied rewrites33.3%
Final simplification39.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -7e+26)
(* k (* y2 (fma (- y0) y5 (* y1 y4))))
(if (<= y2 -1.05e-272)
(* b (* y4 (fma (- k) y (* j t))))
(if (<= y2 3.6e-27)
(* y3 (* y5 (fma j y0 (* (- a) y))))
(* (* c (fma i z (* (- y2) y4))) t)))))
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 (y2 <= -7e+26) {
tmp = k * (y2 * fma(-y0, y5, (y1 * y4)));
} else if (y2 <= -1.05e-272) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else if (y2 <= 3.6e-27) {
tmp = y3 * (y5 * fma(j, y0, (-a * y)));
} else {
tmp = (c * fma(i, z, (-y2 * y4))) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -7e+26) tmp = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4)))); elseif (y2 <= -1.05e-272) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); elseif (y2 <= 3.6e-27) tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); else tmp = Float64(Float64(c * fma(i, z, Float64(Float64(-y2) * y4))) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -7e+26], N[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.05e-272], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e-27], N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * N[(i * z + N[((-y2) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -7 \cdot 10^{+26}:\\
\;\;\;\;k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.05 \cdot 10^{-272}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{-27}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(i, z, \left(-y2\right) \cdot y4\right)\right) \cdot t\\
\end{array}
\end{array}
if y2 < -6.9999999999999998e26Initial program 35.4%
Taylor expanded in y2 around inf
Applied rewrites50.6%
Taylor expanded in k around inf
Applied rewrites57.4%
if -6.9999999999999998e26 < y2 < -1.04999999999999993e-272Initial program 31.0%
Taylor expanded in y4 around inf
Applied rewrites50.4%
Taylor expanded in b around inf
Applied rewrites43.8%
if -1.04999999999999993e-272 < y2 < 3.5999999999999999e-27Initial program 38.3%
Taylor expanded in y5 around -inf
Applied rewrites48.2%
Taylor expanded in y3 around -inf
Applied rewrites40.0%
if 3.5999999999999999e-27 < y2 Initial program 24.6%
Taylor expanded in t around inf
Applied rewrites40.5%
Taylor expanded in c around inf
Applied rewrites47.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 (fma (- y0) y5 (* y1 y4))))))
(if (<= y0 -6e+129)
t_1
(if (<= y0 205000000.0)
(* b (* y4 (fma (- k) y (* j t))))
(if (<= y0 1.4e+182) t_1 (* y3 (* y5 (fma j y0 (* (- a) 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 t_1 = k * (y2 * fma(-y0, y5, (y1 * y4)));
double tmp;
if (y0 <= -6e+129) {
tmp = t_1;
} else if (y0 <= 205000000.0) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else if (y0 <= 1.4e+182) {
tmp = t_1;
} else {
tmp = y3 * (y5 * fma(j, y0, (-a * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4)))) tmp = 0.0 if (y0 <= -6e+129) tmp = t_1; elseif (y0 <= 205000000.0) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); elseif (y0 <= 1.4e+182) tmp = t_1; else tmp = Float64(y3 * Float64(y5 * fma(j, y0, Float64(Float64(-a) * y)))); 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[(k * N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -6e+129], t$95$1, If[LessEqual[y0, 205000000.0], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.4e+182], t$95$1, N[(y3 * N[(y5 * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right)\\
\mathbf{if}\;y0 \leq -6 \cdot 10^{+129}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 205000000:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{elif}\;y0 \leq 1.4 \cdot 10^{+182}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\right)\\
\end{array}
\end{array}
if y0 < -6.0000000000000006e129 or 2.05e8 < y0 < 1.40000000000000003e182Initial program 34.6%
Taylor expanded in y2 around inf
Applied rewrites39.1%
Taylor expanded in k around inf
Applied rewrites51.7%
if -6.0000000000000006e129 < y0 < 2.05e8Initial program 36.0%
Taylor expanded in y4 around inf
Applied rewrites44.4%
Taylor expanded in b around inf
Applied rewrites40.6%
if 1.40000000000000003e182 < y0 Initial program 15.4%
Taylor expanded in y5 around -inf
Applied rewrites43.8%
Taylor expanded in y3 around -inf
Applied rewrites54.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1.08e+102)
(* (* i t) (fma c z (* (- j) y5)))
(if (<= y5 -1.35e-166)
(* y1 (* y4 (fma (- j) y3 (* k y2))))
(if (<= y5 4.8e+213)
(* b (* y4 (fma (- k) y (* j t))))
(* (* a y5) (fma (- y) y3 (* t y2)))))))
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 <= -1.08e+102) {
tmp = (i * t) * fma(c, z, (-j * y5));
} else if (y5 <= -1.35e-166) {
tmp = y1 * (y4 * fma(-j, y3, (k * y2)));
} else if (y5 <= 4.8e+213) {
tmp = b * (y4 * fma(-k, y, (j * t)));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 <= -1.08e+102) tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5))); elseif (y5 <= -1.35e-166) tmp = Float64(y1 * Float64(y4 * fma(Float64(-j), y3, Float64(k * y2)))); elseif (y5 <= 4.8e+213) tmp = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1.08e+102], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.35e-166], N[(y1 * N[(y4 * N[((-j) * y3 + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.8e+213], N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.08 \cdot 10^{+102}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
\mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-166}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)\\
\mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+213}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -1.08000000000000002e102Initial program 26.1%
Taylor expanded in i around -inf
Applied rewrites41.9%
Taylor expanded in y1 around inf
Applied rewrites23.0%
Taylor expanded in t around -inf
Applied rewrites55.1%
if -1.08000000000000002e102 < y5 < -1.35000000000000003e-166Initial program 48.4%
Taylor expanded in y4 around inf
Applied rewrites57.4%
Taylor expanded in y1 around inf
Applied rewrites44.4%
if -1.35000000000000003e-166 < y5 < 4.8e213Initial program 28.6%
Taylor expanded in y4 around inf
Applied rewrites40.6%
Taylor expanded in b around inf
Applied rewrites37.2%
if 4.8e213 < y5 Initial program 23.5%
Taylor expanded in a around inf
Applied rewrites53.1%
Taylor expanded in y around inf
Applied rewrites47.1%
Taylor expanded in y5 around inf
Applied rewrites64.9%
Final simplification44.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 (fma (- k) y (* j t))))))
(if (<= y4 -1.14e+58)
t_1
(if (<= y4 3e+34)
(* (* i t) (fma c z (* (- j) y5)))
(if (<= y4 1.35e+210) t_1 (* (- j) (* (* y1 y3) y4)))))))
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 * fma(-k, y, (j * t)));
double tmp;
if (y4 <= -1.14e+58) {
tmp = t_1;
} else if (y4 <= 3e+34) {
tmp = (i * t) * fma(c, z, (-j * y5));
} else if (y4 <= 1.35e+210) {
tmp = t_1;
} else {
tmp = -j * ((y1 * y3) * y4);
}
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 * fma(Float64(-k), y, Float64(j * t)))) tmp = 0.0 if (y4 <= -1.14e+58) tmp = t_1; elseif (y4 <= 3e+34) tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5))); elseif (y4 <= 1.35e+210) tmp = t_1; else tmp = Float64(Float64(-j) * Float64(Float64(y1 * y3) * y4)); 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.14e+58], t$95$1, If[LessEqual[y4, 3e+34], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.35e+210], t$95$1, N[((-j) * N[(N[(y1 * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{if}\;y4 \leq -1.14 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 3 \cdot 10^{+34}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
\mathbf{elif}\;y4 \leq 1.35 \cdot 10^{+210}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\
\end{array}
\end{array}
if y4 < -1.14e58 or 3.00000000000000018e34 < y4 < 1.35e210Initial program 28.2%
Taylor expanded in y4 around inf
Applied rewrites58.9%
Taylor expanded in b around inf
Applied rewrites53.1%
if -1.14e58 < y4 < 3.00000000000000018e34Initial program 36.1%
Taylor expanded in i around -inf
Applied rewrites43.2%
Taylor expanded in y1 around inf
Applied rewrites29.2%
Taylor expanded in t around -inf
Applied rewrites34.6%
if 1.35e210 < y4 Initial program 25.0%
Taylor expanded in y4 around inf
Applied rewrites63.0%
Taylor expanded in y1 around inf
Applied rewrites57.0%
Taylor expanded in j around inf
Applied rewrites63.1%
Final simplification43.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -8.5e+102)
(* (* i t) (fma c z (* (- j) y5)))
(if (<= y5 -1.15e-24)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= y5 6.5e+20)
(* i (* z (fma c t (* (- k) y1))))
(* y (* y5 (fma 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 tmp;
if (y5 <= -8.5e+102) {
tmp = (i * t) * fma(c, z, (-j * y5));
} else if (y5 <= -1.15e-24) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (y5 <= 6.5e+20) {
tmp = i * (z * fma(c, t, (-k * y1)));
} else {
tmp = y * (y5 * fma(i, k, (-a * 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 <= -8.5e+102) tmp = Float64(Float64(i * t) * fma(c, z, Float64(Float64(-j) * y5))); elseif (y5 <= -1.15e-24) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (y5 <= 6.5e+20) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); else tmp = Float64(y * Float64(y5 * fma(i, k, Float64(Float64(-a) * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -8.5e+102], N[(N[(i * t), $MachinePrecision] * N[(c * z + N[((-j) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.15e-24], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.5e+20], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -8.5 \cdot 10^{+102}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(c, z, \left(-j\right) \cdot y5\right)\\
\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-24}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+20}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right)\\
\end{array}
\end{array}
if y5 < -8.4999999999999996e102Initial program 26.1%
Taylor expanded in i around -inf
Applied rewrites41.9%
Taylor expanded in y1 around inf
Applied rewrites23.0%
Taylor expanded in t around -inf
Applied rewrites55.1%
if -8.4999999999999996e102 < y5 < -1.1500000000000001e-24Initial program 42.3%
Taylor expanded in i around -inf
Applied rewrites31.6%
Taylor expanded in y1 around inf
Applied rewrites19.3%
Taylor expanded in y around -inf
Applied rewrites32.1%
if -1.1500000000000001e-24 < y5 < 6.5e20Initial program 33.7%
Taylor expanded in i around -inf
Applied rewrites41.5%
Taylor expanded in z around -inf
Applied rewrites34.8%
if 6.5e20 < y5 Initial program 28.5%
Taylor expanded in y5 around -inf
Applied rewrites52.7%
Taylor expanded in y around -inf
Applied rewrites37.0%
Final simplification38.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j t) y4) b)))
(if (<= t -8e+77)
t_1
(if (<= t 2.85e-285)
(* (* (* b x) y) a)
(if (<= t 1.75e+114)
(* i (* y1 (fma (- k) z (* j x))))
(if (<= t 4.25e+260) (* (* y1 (* y3 z)) 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 = ((j * t) * y4) * b;
double tmp;
if (t <= -8e+77) {
tmp = t_1;
} else if (t <= 2.85e-285) {
tmp = ((b * x) * y) * a;
} else if (t <= 1.75e+114) {
tmp = i * (y1 * fma(-k, z, (j * x)));
} else if (t <= 4.25e+260) {
tmp = (y1 * (y3 * z)) * a;
} 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(Float64(Float64(j * t) * y4) * b) tmp = 0.0 if (t <= -8e+77) tmp = t_1; elseif (t <= 2.85e-285) tmp = Float64(Float64(Float64(b * x) * y) * a); elseif (t <= 1.75e+114) tmp = Float64(i * Float64(y1 * fma(Float64(-k), z, Float64(j * x)))); elseif (t <= 4.25e+260) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); 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[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8e+77], t$95$1, If[LessEqual[t, 2.85e-285], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[t, 1.75e+114], N[(i * N[(y1 * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.25e+260], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.85 \cdot 10^{-285}:\\
\;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+114}:\\
\;\;\;\;i \cdot \left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)\\
\mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.99999999999999986e77 or 4.25e260 < t Initial program 18.1%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites45.3%
Taylor expanded in z around 0
Applied rewrites44.3%
if -7.99999999999999986e77 < t < 2.85000000000000013e-285Initial program 33.7%
Taylor expanded in a around inf
Applied rewrites37.6%
Taylor expanded in y around inf
Applied rewrites34.0%
Taylor expanded in x around inf
Applied rewrites28.7%
if 2.85000000000000013e-285 < t < 1.75e114Initial program 43.6%
Taylor expanded in i around -inf
Applied rewrites47.3%
Taylor expanded in y1 around inf
Applied rewrites40.5%
if 1.75e114 < t < 4.25e260Initial program 34.4%
Taylor expanded in a around inf
Applied rewrites53.4%
Taylor expanded in y1 around inf
Applied rewrites45.2%
Taylor expanded in x around 0
Applied rewrites44.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j t) y4) b)))
(if (<= t -8e+77)
t_1
(if (<= t -8.2e-219)
(* (* (* b x) y) a)
(if (<= t 7.8e+59)
(* y1 (* (* k y2) y4))
(if (<= t 4.25e+260) (* (* y1 (* y3 z)) 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 = ((j * t) * y4) * b;
double tmp;
if (t <= -8e+77) {
tmp = t_1;
} else if (t <= -8.2e-219) {
tmp = ((b * x) * y) * a;
} else if (t <= 7.8e+59) {
tmp = y1 * ((k * y2) * y4);
} else if (t <= 4.25e+260) {
tmp = (y1 * (y3 * z)) * a;
} 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 = ((j * t) * y4) * b
if (t <= (-8d+77)) then
tmp = t_1
else if (t <= (-8.2d-219)) then
tmp = ((b * x) * y) * a
else if (t <= 7.8d+59) then
tmp = y1 * ((k * y2) * y4)
else if (t <= 4.25d+260) then
tmp = (y1 * (y3 * z)) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * t) * y4) * b;
double tmp;
if (t <= -8e+77) {
tmp = t_1;
} else if (t <= -8.2e-219) {
tmp = ((b * x) * y) * a;
} else if (t <= 7.8e+59) {
tmp = y1 * ((k * y2) * y4);
} else if (t <= 4.25e+260) {
tmp = (y1 * (y3 * z)) * a;
} 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 = ((j * t) * y4) * b tmp = 0 if t <= -8e+77: tmp = t_1 elif t <= -8.2e-219: tmp = ((b * x) * y) * a elif t <= 7.8e+59: tmp = y1 * ((k * y2) * y4) elif t <= 4.25e+260: tmp = (y1 * (y3 * z)) * a 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(Float64(Float64(j * t) * y4) * b) tmp = 0.0 if (t <= -8e+77) tmp = t_1; elseif (t <= -8.2e-219) tmp = Float64(Float64(Float64(b * x) * y) * a); elseif (t <= 7.8e+59) tmp = Float64(y1 * Float64(Float64(k * y2) * y4)); elseif (t <= 4.25e+260) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); 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 = ((j * t) * y4) * b; tmp = 0.0; if (t <= -8e+77) tmp = t_1; elseif (t <= -8.2e-219) tmp = ((b * x) * y) * a; elseif (t <= 7.8e+59) tmp = y1 * ((k * y2) * y4); elseif (t <= 4.25e+260) tmp = (y1 * (y3 * z)) * a; 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[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8e+77], t$95$1, If[LessEqual[t, -8.2e-219], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[t, 7.8e+59], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.25e+260], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{if}\;t \leq -8 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-219}:\\
\;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+59}:\\
\;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{elif}\;t \leq 4.25 \cdot 10^{+260}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.99999999999999986e77 or 4.25e260 < t Initial program 18.1%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites45.3%
Taylor expanded in z around 0
Applied rewrites44.3%
if -7.99999999999999986e77 < t < -8.2e-219Initial program 42.7%
Taylor expanded in a around inf
Applied rewrites45.3%
Taylor expanded in y around inf
Applied rewrites34.8%
Taylor expanded in x around inf
Applied rewrites31.2%
if -8.2e-219 < t < 7.80000000000000043e59Initial program 36.0%
Taylor expanded in y4 around inf
Applied rewrites43.8%
Taylor expanded in y1 around inf
Applied rewrites38.3%
Taylor expanded in j around 0
Applied rewrites24.9%
if 7.80000000000000043e59 < t < 4.25e260Initial program 34.1%
Taylor expanded in a around inf
Applied rewrites50.4%
Taylor expanded in y1 around inf
Applied rewrites42.4%
Taylor expanded in x around 0
Applied rewrites39.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -8.8e-105)
(* y1 (* (* (- j) y3) y4))
(if (<= j 2.8e-205)
(* (* y1 (* y3 z)) a)
(if (<= j 4.6e-28) (* (* (- y) (* y3 y5)) a) (* (* (* j t) y4) b)))))
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 (j <= -8.8e-105) {
tmp = y1 * ((-j * y3) * y4);
} else if (j <= 2.8e-205) {
tmp = (y1 * (y3 * z)) * a;
} else if (j <= 4.6e-28) {
tmp = (-y * (y3 * y5)) * a;
} else {
tmp = ((j * t) * y4) * b;
}
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 (j <= (-8.8d-105)) then
tmp = y1 * ((-j * y3) * y4)
else if (j <= 2.8d-205) then
tmp = (y1 * (y3 * z)) * a
else if (j <= 4.6d-28) then
tmp = (-y * (y3 * y5)) * a
else
tmp = ((j * t) * y4) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -8.8e-105) {
tmp = y1 * ((-j * y3) * y4);
} else if (j <= 2.8e-205) {
tmp = (y1 * (y3 * z)) * a;
} else if (j <= 4.6e-28) {
tmp = (-y * (y3 * y5)) * a;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -8.8e-105: tmp = y1 * ((-j * y3) * y4) elif j <= 2.8e-205: tmp = (y1 * (y3 * z)) * a elif j <= 4.6e-28: tmp = (-y * (y3 * y5)) * a else: tmp = ((j * t) * y4) * b return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -8.8e-105) tmp = Float64(y1 * Float64(Float64(Float64(-j) * y3) * y4)); elseif (j <= 2.8e-205) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); elseif (j <= 4.6e-28) tmp = Float64(Float64(Float64(-y) * Float64(y3 * y5)) * a); else tmp = Float64(Float64(Float64(j * t) * y4) * b); 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 (j <= -8.8e-105) tmp = y1 * ((-j * y3) * y4); elseif (j <= 2.8e-205) tmp = (y1 * (y3 * z)) * a; elseif (j <= 4.6e-28) tmp = (-y * (y3 * y5)) * a; else tmp = ((j * t) * y4) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -8.8e-105], N[(y1 * N[(N[((-j) * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-205], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 4.6e-28], N[(N[((-y) * N[(y3 * y5), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\
\;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-205}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{-28}:\\
\;\;\;\;\left(\left(-y\right) \cdot \left(y3 \cdot y5\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if j < -8.80000000000000016e-105Initial program 34.9%
Taylor expanded in y4 around inf
Applied rewrites42.6%
Taylor expanded in y1 around inf
Applied rewrites41.6%
Taylor expanded in j around inf
Applied rewrites34.8%
if -8.80000000000000016e-105 < j < 2.79999999999999991e-205Initial program 29.6%
Taylor expanded in a around inf
Applied rewrites40.9%
Taylor expanded in y1 around inf
Applied rewrites46.8%
Taylor expanded in x around 0
Applied rewrites32.3%
if 2.79999999999999991e-205 < j < 4.59999999999999971e-28Initial program 38.4%
Taylor expanded in a around inf
Applied rewrites38.8%
Taylor expanded in y around inf
Applied rewrites36.5%
Taylor expanded in x around 0
Applied rewrites33.6%
if 4.59999999999999971e-28 < j Initial program 29.3%
Taylor expanded in b around inf
Applied rewrites42.0%
Taylor expanded in t around inf
Applied rewrites40.9%
Taylor expanded in z around 0
Applied rewrites34.4%
Final simplification33.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -3.8e+99)
(* (* y1 (* y3 z)) a)
(if (<= y3 -1.15e-286)
(* y1 (* (* k y2) y4))
(if (<= y3 8.4e+144) (* (* (* j t) y4) b) (* (- j) (* (* y1 y3) y4))))))
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 (y3 <= -3.8e+99) {
tmp = (y1 * (y3 * z)) * a;
} else if (y3 <= -1.15e-286) {
tmp = y1 * ((k * y2) * y4);
} else if (y3 <= 8.4e+144) {
tmp = ((j * t) * y4) * b;
} else {
tmp = -j * ((y1 * y3) * y4);
}
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 (y3 <= (-3.8d+99)) then
tmp = (y1 * (y3 * z)) * a
else if (y3 <= (-1.15d-286)) then
tmp = y1 * ((k * y2) * y4)
else if (y3 <= 8.4d+144) then
tmp = ((j * t) * y4) * b
else
tmp = -j * ((y1 * y3) * y4)
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 (y3 <= -3.8e+99) {
tmp = (y1 * (y3 * z)) * a;
} else if (y3 <= -1.15e-286) {
tmp = y1 * ((k * y2) * y4);
} else if (y3 <= 8.4e+144) {
tmp = ((j * t) * y4) * b;
} else {
tmp = -j * ((y1 * y3) * y4);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -3.8e+99: tmp = (y1 * (y3 * z)) * a elif y3 <= -1.15e-286: tmp = y1 * ((k * y2) * y4) elif y3 <= 8.4e+144: tmp = ((j * t) * y4) * b else: tmp = -j * ((y1 * y3) * y4) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -3.8e+99) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); elseif (y3 <= -1.15e-286) tmp = Float64(y1 * Float64(Float64(k * y2) * y4)); elseif (y3 <= 8.4e+144) tmp = Float64(Float64(Float64(j * t) * y4) * b); else tmp = Float64(Float64(-j) * Float64(Float64(y1 * y3) * y4)); 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 (y3 <= -3.8e+99) tmp = (y1 * (y3 * z)) * a; elseif (y3 <= -1.15e-286) tmp = y1 * ((k * y2) * y4); elseif (y3 <= 8.4e+144) tmp = ((j * t) * y4) * b; else tmp = -j * ((y1 * y3) * y4); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -3.8e+99], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y3, -1.15e-286], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8.4e+144], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision], N[((-j) * N[(N[(y1 * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -3.8 \cdot 10^{+99}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-286}:\\
\;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 8.4 \cdot 10^{+144}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(-j\right) \cdot \left(\left(y1 \cdot y3\right) \cdot y4\right)\\
\end{array}
\end{array}
if y3 < -3.8e99Initial program 28.9%
Taylor expanded in a around inf
Applied rewrites38.4%
Taylor expanded in y1 around inf
Applied rewrites51.8%
Taylor expanded in x around 0
Applied rewrites47.6%
if -3.8e99 < y3 < -1.1500000000000001e-286Initial program 37.6%
Taylor expanded in y4 around inf
Applied rewrites37.0%
Taylor expanded in y1 around inf
Applied rewrites30.2%
Taylor expanded in j around 0
Applied rewrites30.4%
if -1.1500000000000001e-286 < y3 < 8.39999999999999985e144Initial program 35.3%
Taylor expanded in b around inf
Applied rewrites42.7%
Taylor expanded in t around inf
Applied rewrites35.2%
Taylor expanded in z around 0
Applied rewrites27.8%
if 8.39999999999999985e144 < y3 Initial program 18.9%
Taylor expanded in y4 around inf
Applied rewrites38.4%
Taylor expanded in y1 around inf
Applied rewrites38.8%
Taylor expanded in j around inf
Applied rewrites31.2%
Final simplification32.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* (* k y2) y4))))
(if (<= k -1.6e+59)
t_1
(if (<= k 9.6e-175)
(* (* x (* b y)) a)
(if (<= k 6e+115) (* (* y1 (* y3 z)) 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 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -1.6e+59) {
tmp = t_1;
} else if (k <= 9.6e-175) {
tmp = (x * (b * y)) * a;
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4)
if (k <= (-1.6d+59)) then
tmp = t_1
else if (k <= 9.6d-175) then
tmp = (x * (b * y)) * a
else if (k <= 6d+115) then
tmp = (y1 * (y3 * z)) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -1.6e+59) {
tmp = t_1;
} else if (k <= 9.6e-175) {
tmp = (x * (b * y)) * a;
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4) tmp = 0 if k <= -1.6e+59: tmp = t_1 elif k <= 9.6e-175: tmp = (x * (b * y)) * a elif k <= 6e+115: tmp = (y1 * (y3 * z)) * a 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(y1 * Float64(Float64(k * y2) * y4)) tmp = 0.0 if (k <= -1.6e+59) tmp = t_1; elseif (k <= 9.6e-175) tmp = Float64(Float64(x * Float64(b * y)) * a); elseif (k <= 6e+115) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); 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 = y1 * ((k * y2) * y4); tmp = 0.0; if (k <= -1.6e+59) tmp = t_1; elseif (k <= 9.6e-175) tmp = (x * (b * y)) * a; elseif (k <= 6e+115) tmp = (y1 * (y3 * z)) * a; 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[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.6e+59], t$95$1, If[LessEqual[k, 9.6e-175], N[(N[(x * N[(b * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 9.6 \cdot 10^{-175}:\\
\;\;\;\;\left(x \cdot \left(b \cdot y\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1.59999999999999991e59 or 6.0000000000000001e115 < k Initial program 24.8%
Taylor expanded in y4 around inf
Applied rewrites49.9%
Taylor expanded in y1 around inf
Applied rewrites49.1%
Taylor expanded in j around 0
Applied rewrites43.5%
if -1.59999999999999991e59 < k < 9.6e-175Initial program 35.2%
Taylor expanded in a around inf
Applied rewrites43.0%
Taylor expanded in x around inf
Applied rewrites28.9%
Taylor expanded in y around inf
Applied rewrites25.7%
if 9.6e-175 < k < 6.0000000000000001e115Initial program 38.3%
Taylor expanded in a around inf
Applied rewrites41.3%
Taylor expanded in y1 around inf
Applied rewrites32.5%
Taylor expanded in x around 0
Applied rewrites25.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* (* k y2) y4))))
(if (<= k -1.6e+59)
t_1
(if (<= k 1.35e-173)
(* (* (* b x) y) a)
(if (<= k 6e+115) (* (* y1 (* y3 z)) 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 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -1.6e+59) {
tmp = t_1;
} else if (k <= 1.35e-173) {
tmp = ((b * x) * y) * a;
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4)
if (k <= (-1.6d+59)) then
tmp = t_1
else if (k <= 1.35d-173) then
tmp = ((b * x) * y) * a
else if (k <= 6d+115) then
tmp = (y1 * (y3 * z)) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -1.6e+59) {
tmp = t_1;
} else if (k <= 1.35e-173) {
tmp = ((b * x) * y) * a;
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4) tmp = 0 if k <= -1.6e+59: tmp = t_1 elif k <= 1.35e-173: tmp = ((b * x) * y) * a elif k <= 6e+115: tmp = (y1 * (y3 * z)) * a 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(y1 * Float64(Float64(k * y2) * y4)) tmp = 0.0 if (k <= -1.6e+59) tmp = t_1; elseif (k <= 1.35e-173) tmp = Float64(Float64(Float64(b * x) * y) * a); elseif (k <= 6e+115) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); 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 = y1 * ((k * y2) * y4); tmp = 0.0; if (k <= -1.6e+59) tmp = t_1; elseif (k <= 1.35e-173) tmp = ((b * x) * y) * a; elseif (k <= 6e+115) tmp = (y1 * (y3 * z)) * a; 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[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.6e+59], t$95$1, If[LessEqual[k, 1.35e-173], N[(N[(N[(b * x), $MachinePrecision] * y), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;k \leq -1.6 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 1.35 \cdot 10^{-173}:\\
\;\;\;\;\left(\left(b \cdot x\right) \cdot y\right) \cdot a\\
\mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1.59999999999999991e59 or 6.0000000000000001e115 < k Initial program 24.8%
Taylor expanded in y4 around inf
Applied rewrites49.9%
Taylor expanded in y1 around inf
Applied rewrites49.1%
Taylor expanded in j around 0
Applied rewrites43.5%
if -1.59999999999999991e59 < k < 1.35e-173Initial program 35.2%
Taylor expanded in a around inf
Applied rewrites43.0%
Taylor expanded in y around inf
Applied rewrites31.7%
Taylor expanded in x around inf
Applied rewrites25.7%
if 1.35e-173 < k < 6.0000000000000001e115Initial program 38.3%
Taylor expanded in a around inf
Applied rewrites41.3%
Taylor expanded in y1 around inf
Applied rewrites32.5%
Taylor expanded in x around 0
Applied rewrites25.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* (* k y2) y4))))
(if (<= k -2e+95)
t_1
(if (<= k 9.8e-175)
(* i (* (* j x) y1))
(if (<= k 6e+115) (* (* y1 (* y3 z)) 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 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -2e+95) {
tmp = t_1;
} else if (k <= 9.8e-175) {
tmp = i * ((j * x) * y1);
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4)
if (k <= (-2d+95)) then
tmp = t_1
else if (k <= 9.8d-175) then
tmp = i * ((j * x) * y1)
else if (k <= 6d+115) then
tmp = (y1 * (y3 * z)) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * ((k * y2) * y4);
double tmp;
if (k <= -2e+95) {
tmp = t_1;
} else if (k <= 9.8e-175) {
tmp = i * ((j * x) * y1);
} else if (k <= 6e+115) {
tmp = (y1 * (y3 * z)) * a;
} 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 = y1 * ((k * y2) * y4) tmp = 0 if k <= -2e+95: tmp = t_1 elif k <= 9.8e-175: tmp = i * ((j * x) * y1) elif k <= 6e+115: tmp = (y1 * (y3 * z)) * a 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(y1 * Float64(Float64(k * y2) * y4)) tmp = 0.0 if (k <= -2e+95) tmp = t_1; elseif (k <= 9.8e-175) tmp = Float64(i * Float64(Float64(j * x) * y1)); elseif (k <= 6e+115) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); 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 = y1 * ((k * y2) * y4); tmp = 0.0; if (k <= -2e+95) tmp = t_1; elseif (k <= 9.8e-175) tmp = i * ((j * x) * y1); elseif (k <= 6e+115) tmp = (y1 * (y3 * z)) * a; 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[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2e+95], t$95$1, If[LessEqual[k, 9.8e-175], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6e+115], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;k \leq -2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 9.8 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\mathbf{elif}\;k \leq 6 \cdot 10^{+115}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -2.00000000000000004e95 or 6.0000000000000001e115 < k Initial program 25.7%
Taylor expanded in y4 around inf
Applied rewrites49.3%
Taylor expanded in y1 around inf
Applied rewrites49.6%
Taylor expanded in j around 0
Applied rewrites45.0%
if -2.00000000000000004e95 < k < 9.79999999999999996e-175Initial program 34.1%
Taylor expanded in i around -inf
Applied rewrites36.8%
Taylor expanded in y1 around inf
Applied rewrites23.1%
Taylor expanded in x around inf
Applied rewrites21.1%
if 9.79999999999999996e-175 < k < 6.0000000000000001e115Initial program 38.3%
Taylor expanded in a around inf
Applied rewrites41.3%
Taylor expanded in y1 around inf
Applied rewrites32.5%
Taylor expanded in x around 0
Applied rewrites25.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= k -2e+95) (not (<= k 1.48e-65))) (* y1 (* (* k y2) y4)) (* i (* (* j x) 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 ((k <= -2e+95) || !(k <= 1.48e-65)) {
tmp = y1 * ((k * y2) * y4);
} else {
tmp = i * ((j * x) * 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 ((k <= (-2d+95)) .or. (.not. (k <= 1.48d-65))) then
tmp = y1 * ((k * y2) * y4)
else
tmp = i * ((j * x) * 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 ((k <= -2e+95) || !(k <= 1.48e-65)) {
tmp = y1 * ((k * y2) * y4);
} else {
tmp = i * ((j * x) * y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (k <= -2e+95) or not (k <= 1.48e-65): tmp = y1 * ((k * y2) * y4) else: tmp = i * ((j * x) * 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 ((k <= -2e+95) || !(k <= 1.48e-65)) tmp = Float64(y1 * Float64(Float64(k * y2) * y4)); else tmp = Float64(i * Float64(Float64(j * x) * 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 ((k <= -2e+95) || ~((k <= 1.48e-65))) tmp = y1 * ((k * y2) * y4); else tmp = i * ((j * x) * y1); 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[k, -2e+95], N[Not[LessEqual[k, 1.48e-65]], $MachinePrecision]], N[(y1 * N[(N[(k * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -2 \cdot 10^{+95} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\
\;\;\;\;y1 \cdot \left(\left(k \cdot y2\right) \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\end{array}
\end{array}
if k < -2.00000000000000004e95 or 1.4800000000000001e-65 < k Initial program 28.5%
Taylor expanded in y4 around inf
Applied rewrites47.6%
Taylor expanded in y1 around inf
Applied rewrites42.5%
Taylor expanded in j around 0
Applied rewrites36.8%
if -2.00000000000000004e95 < k < 1.4800000000000001e-65Initial program 36.1%
Taylor expanded in i around -inf
Applied rewrites39.2%
Taylor expanded in y1 around inf
Applied rewrites20.4%
Taylor expanded in x around inf
Applied rewrites18.9%
Final simplification27.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= k -4e+110) (not (<= k 1.48e-65))) (* k (* (* y1 y2) y4)) (* i (* (* j x) 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 ((k <= -4e+110) || !(k <= 1.48e-65)) {
tmp = k * ((y1 * y2) * y4);
} else {
tmp = i * ((j * x) * 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 ((k <= (-4d+110)) .or. (.not. (k <= 1.48d-65))) then
tmp = k * ((y1 * y2) * y4)
else
tmp = i * ((j * x) * 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 ((k <= -4e+110) || !(k <= 1.48e-65)) {
tmp = k * ((y1 * y2) * y4);
} else {
tmp = i * ((j * x) * y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (k <= -4e+110) or not (k <= 1.48e-65): tmp = k * ((y1 * y2) * y4) else: tmp = i * ((j * x) * 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 ((k <= -4e+110) || !(k <= 1.48e-65)) tmp = Float64(k * Float64(Float64(y1 * y2) * y4)); else tmp = Float64(i * Float64(Float64(j * x) * 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 ((k <= -4e+110) || ~((k <= 1.48e-65))) tmp = k * ((y1 * y2) * y4); else tmp = i * ((j * x) * y1); 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[k, -4e+110], N[Not[LessEqual[k, 1.48e-65]], $MachinePrecision]], N[(k * N[(N[(y1 * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -4 \cdot 10^{+110} \lor \neg \left(k \leq 1.48 \cdot 10^{-65}\right):\\
\;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\end{array}
\end{array}
if k < -4.0000000000000001e110 or 1.4800000000000001e-65 < k Initial program 29.0%
Taylor expanded in y4 around inf
Applied rewrites48.4%
Taylor expanded in y1 around inf
Applied rewrites42.3%
Taylor expanded in j around 0
Applied rewrites29.6%
if -4.0000000000000001e110 < k < 1.4800000000000001e-65Initial program 35.6%
Taylor expanded in i around -inf
Applied rewrites38.6%
Taylor expanded in y1 around inf
Applied rewrites20.8%
Taylor expanded in x around inf
Applied rewrites18.7%
Final simplification23.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= j -8.8e-105) (* y1 (* (* (- j) y3) y4)) (if (<= j 9.4e-79) (* (* y1 (* y3 z)) a) (* (* (* j t) y4) b))))
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 (j <= -8.8e-105) {
tmp = y1 * ((-j * y3) * y4);
} else if (j <= 9.4e-79) {
tmp = (y1 * (y3 * z)) * a;
} else {
tmp = ((j * t) * y4) * b;
}
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 (j <= (-8.8d-105)) then
tmp = y1 * ((-j * y3) * y4)
else if (j <= 9.4d-79) then
tmp = (y1 * (y3 * z)) * a
else
tmp = ((j * t) * y4) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -8.8e-105) {
tmp = y1 * ((-j * y3) * y4);
} else if (j <= 9.4e-79) {
tmp = (y1 * (y3 * z)) * a;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -8.8e-105: tmp = y1 * ((-j * y3) * y4) elif j <= 9.4e-79: tmp = (y1 * (y3 * z)) * a else: tmp = ((j * t) * y4) * b return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -8.8e-105) tmp = Float64(y1 * Float64(Float64(Float64(-j) * y3) * y4)); elseif (j <= 9.4e-79) tmp = Float64(Float64(y1 * Float64(y3 * z)) * a); else tmp = Float64(Float64(Float64(j * t) * y4) * b); 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 (j <= -8.8e-105) tmp = y1 * ((-j * y3) * y4); elseif (j <= 9.4e-79) tmp = (y1 * (y3 * z)) * a; else tmp = ((j * t) * y4) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -8.8e-105], N[(y1 * N[(N[((-j) * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.4e-79], N[(N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.8 \cdot 10^{-105}:\\
\;\;\;\;y1 \cdot \left(\left(\left(-j\right) \cdot y3\right) \cdot y4\right)\\
\mathbf{elif}\;j \leq 9.4 \cdot 10^{-79}:\\
\;\;\;\;\left(y1 \cdot \left(y3 \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if j < -8.80000000000000016e-105Initial program 34.9%
Taylor expanded in y4 around inf
Applied rewrites42.6%
Taylor expanded in y1 around inf
Applied rewrites41.6%
Taylor expanded in j around inf
Applied rewrites34.8%
if -8.80000000000000016e-105 < j < 9.4000000000000003e-79Initial program 33.8%
Taylor expanded in a around inf
Applied rewrites42.6%
Taylor expanded in y1 around inf
Applied rewrites41.0%
Taylor expanded in x around 0
Applied rewrites28.6%
if 9.4000000000000003e-79 < j Initial program 28.9%
Taylor expanded in b around inf
Applied rewrites40.6%
Taylor expanded in t around inf
Applied rewrites39.8%
Taylor expanded in z around 0
Applied rewrites32.2%
Final simplification32.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* (* j x) 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) {
return i * ((j * x) * y1);
}
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 * ((j * x) * y1)
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 * ((j * x) * y1);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((j * x) * y1)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(j * x) * y1)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((j * x) * y1); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(\left(j \cdot x\right) \cdot y1\right)
\end{array}
Initial program 32.5%
Taylor expanded in i around -inf
Applied rewrites38.7%
Taylor expanded in y1 around inf
Applied rewrites26.7%
Taylor expanded in x around inf
Applied rewrites15.4%
(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)))))