
(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 39 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 y4 y1 (* (- y0) y5)))
(t_2 (fma j t (* (- k) y)))
(t_3 (fma y0 c (* (- a) y1)))
(t_4 (* (fma y2 t (* (- y) y3)) a))
(t_5 (fma b a (* (- c) i)))
(t_6 (fma y0 b (* (- i) y1))))
(if (<= y5 -1.02e+52)
(* (- y5) (- (fma (fma y2 k (* (- j) y3)) y0 (* t_2 i)) t_4))
(if (<= y5 -5.9e-210)
(* (- (fma t_3 y2 (* t_5 y)) (* t_6 j)) x)
(if (<= y5 1.12e-233)
(* (- z) (- (fma t_3 y3 (* t_5 t)) (* t_6 k)))
(if (<= y5 7.6e-92)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_2 y4))
(* (fma j x (* (- k) z)) y0))
b)
(if (<= y5 490000.0)
(* (- (fma (- y3) t_1 (* (fma y4 b (* (- i) y5)) t)) (* t_6 x)) j)
(if (<= y5 8.2e+141)
(* (- (fma t_1 k (* t_3 x)) (* (fma y4 c (* (- a) y5)) t)) y2)
(if (<= y5 2.1e+202)
(* (* a y) (fma b x (* (- y3) y5)))
(*
(- y5)
(- (* y0 (fma -1.0 (* j y3) (* k y2))) 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(y4, y1, (-y0 * y5));
double t_2 = fma(j, t, (-k * y));
double t_3 = fma(y0, c, (-a * y1));
double t_4 = fma(y2, t, (-y * y3)) * a;
double t_5 = fma(b, a, (-c * i));
double t_6 = fma(y0, b, (-i * y1));
double tmp;
if (y5 <= -1.02e+52) {
tmp = -y5 * (fma(fma(y2, k, (-j * y3)), y0, (t_2 * i)) - t_4);
} else if (y5 <= -5.9e-210) {
tmp = (fma(t_3, y2, (t_5 * y)) - (t_6 * j)) * x;
} else if (y5 <= 1.12e-233) {
tmp = -z * (fma(t_3, y3, (t_5 * t)) - (t_6 * k));
} else if (y5 <= 7.6e-92) {
tmp = (fma(fma(y, x, (-t * z)), a, (t_2 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (y5 <= 490000.0) {
tmp = (fma(-y3, t_1, (fma(y4, b, (-i * y5)) * t)) - (t_6 * x)) * j;
} else if (y5 <= 8.2e+141) {
tmp = (fma(t_1, k, (t_3 * x)) - (fma(y4, c, (-a * y5)) * t)) * y2;
} else if (y5 <= 2.1e+202) {
tmp = (a * y) * fma(b, x, (-y3 * y5));
} else {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - 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(y4, y1, Float64(Float64(-y0) * y5)) t_2 = fma(j, t, Float64(Float64(-k) * y)) t_3 = fma(y0, c, Float64(Float64(-a) * y1)) t_4 = Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a) t_5 = fma(b, a, Float64(Float64(-c) * i)) t_6 = fma(y0, b, Float64(Float64(-i) * y1)) tmp = 0.0 if (y5 <= -1.02e+52) tmp = Float64(Float64(-y5) * Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y0, Float64(t_2 * i)) - t_4)); elseif (y5 <= -5.9e-210) tmp = Float64(Float64(fma(t_3, y2, Float64(t_5 * y)) - Float64(t_6 * j)) * x); elseif (y5 <= 1.12e-233) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(t_5 * t)) - Float64(t_6 * k))); elseif (y5 <= 7.6e-92) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_2 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (y5 <= 490000.0) tmp = Float64(Float64(fma(Float64(-y3), t_1, Float64(fma(y4, b, Float64(Float64(-i) * y5)) * t)) - Float64(t_6 * x)) * j); elseif (y5 <= 8.2e+141) tmp = Float64(Float64(fma(t_1, k, Float64(t_3 * x)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * t)) * y2); elseif (y5 <= 2.1e+202) tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); else tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - 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[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$5 = N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.02e+52], N[((-y5) * N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$2 * i), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -5.9e-210], N[(N[(N[(t$95$3 * y2 + N[(t$95$5 * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.12e-233], N[((-z) * N[(N[(t$95$3 * y3 + N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7.6e-92], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 490000.0], N[(N[(N[((-y3) * t$95$1 + N[(N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y5, 8.2e+141], N[(N[(N[(t$95$1 * k + N[(t$95$3 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y5, 2.1e+202], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_3 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_4 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\\
t_5 := \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right)\\
t_6 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, t\_2 \cdot i\right) - t\_4\right)\\
\mathbf{elif}\;y5 \leq -5.9 \cdot 10^{-210}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_3, y2, t\_5 \cdot y\right) - t\_6 \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.12 \cdot 10^{-233}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, t\_5 \cdot t\right) - t\_6 \cdot k\right)\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-92}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 490000:\\
\;\;\;\;\left(\mathsf{fma}\left(-y3, t\_1, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot t\right) - t\_6 \cdot x\right) \cdot j\\
\mathbf{elif}\;y5 \leq 8.2 \cdot 10^{+141}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, k, t\_3 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;y5 \leq 2.1 \cdot 10^{+202}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - t\_4\right)\\
\end{array}
\end{array}
if y5 < -1.02000000000000002e52Initial program 32.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites70.5%
if -1.02000000000000002e52 < y5 < -5.8999999999999999e-210Initial program 39.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.5%
if -5.8999999999999999e-210 < y5 < 1.12e-233Initial program 38.6%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites57.6%
if 1.12e-233 < y5 < 7.6000000000000001e-92Initial program 38.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.7%
if 7.6000000000000001e-92 < y5 < 4.9e5Initial program 43.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites81.8%
if 4.9e5 < y5 < 8.20000000000000044e141Initial program 42.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
if 8.20000000000000044e141 < y5 < 2.1e202Initial program 6.7%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.2%
Taylor expanded in a around -inf
Applied rewrites67.5%
if 2.1e202 < y5 Initial program 26.9%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites65.6%
Taylor expanded in i around 0
Applied rewrites73.5%
(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
(*
(-
(fma (fma y2 k (* (- j) y3)) y1 (* (fma j t (* (- k) y)) b))
(* (fma y2 t (* (- y) y3)) c))
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 = (((((((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 = (fma(fma(y2, k, (-j * y3)), y1, (fma(j, t, (-k * y)) * b)) - (fma(y2, t, (-y * y3)) * c)) * y4;
}
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(fma(fma(y2, k, Float64(Float64(-j) * y3)), y1, Float64(fma(j, t, Float64(Float64(-k) * y)) * b)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * 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[(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[(N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $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(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\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 94.1%
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 y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y))))
(if (<=
(+
(-
(+
(+
(-
(* (- (* 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))))
INFINITY)
(-
(fma
(* (fma y4 y1 (* (- y0) y5)) y2)
k
(fma
(* y2 x)
(fma y0 c (* (- a) y1))
(fma
(fma y x (* (- t) z))
(fma b a (* (- c) i))
(* t_1 (fma y4 b (* (- i) y5))))))
(fma
(fma j x (* (- k) z))
(fma y0 b (* (- i) y1))
(* (* y2 t) (fma y4 c (* (- a) y5)))))
(*
(-
(fma (fma y2 k (* (- j) y3)) y1 (* t_1 b))
(* (fma y2 t (* (- y) y3)) c))
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 = fma(j, t, (-k * y));
double tmp;
if (((((((((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) INFINITY)) {
tmp = fma((fma(y4, y1, (-y0 * y5)) * y2), k, fma((y2 * x), fma(y0, c, (-a * y1)), fma(fma(y, x, (-t * z)), fma(b, a, (-c * i)), (t_1 * fma(y4, b, (-i * y5)))))) - fma(fma(j, x, (-k * z)), fma(y0, b, (-i * y1)), ((y2 * t) * fma(y4, c, (-a * y5))));
} else {
tmp = (fma(fma(y2, k, (-j * y3)), y1, (t_1 * b)) - (fma(y2, t, (-y * y3)) * c)) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) tmp = 0.0 if (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)))) <= Inf) tmp = Float64(fma(Float64(fma(y4, y1, Float64(Float64(-y0) * y5)) * y2), k, fma(Float64(y2 * x), fma(y0, c, Float64(Float64(-a) * y1)), fma(fma(y, x, Float64(Float64(-t) * z)), fma(b, a, Float64(Float64(-c) * i)), Float64(t_1 * fma(y4, b, Float64(Float64(-i) * y5)))))) - fma(fma(j, x, Float64(Float64(-k) * z)), fma(y0, b, Float64(Float64(-i) * y1)), Float64(Float64(y2 * t) * fma(y4, c, Float64(Float64(-a) * y5))))); else tmp = Float64(Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y1, Float64(t_1 * b)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * 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[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[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], Infinity], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * k + N[(N[(y2 * x), $MachinePrecision] * N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] + N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] + N[(N[(y2 * t), $MachinePrecision] * N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;\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) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right) \cdot y2, k, \mathsf{fma}\left(y2 \cdot x, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), \mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right), t\_1 \cdot \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right)\right)\right)\right) - \mathsf{fma}\left(\mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right), \left(y2 \cdot t\right) \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, t\_1 \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\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 94.1%
Taylor expanded in y3 around 0
Applied rewrites77.1%
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 y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (* (- a) y1))
(t_3 (fma y0 c t_2))
(t_4 (* (- c) i))
(t_5 (fma b a t_4))
(t_6 (* (- i) y1))
(t_7 (fma y0 b t_6)))
(if (<= y5 -1.02e+52)
(*
(- y5)
(-
(fma (fma y2 k (* (- j) y3)) y0 (* t_1 i))
(* (fma y2 t (* (- y) y3)) a)))
(if (<= y5 -5.9e-210)
(* (- (fma t_3 y2 (* t_5 y)) (* t_7 j)) x)
(if (<= y5 1.12e-233)
(* (- z) (- (fma t_3 y3 (* t_5 t)) (* t_7 k)))
(if (<= y5 7.6e-92)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b)
(if (<= y5 7.8e+209)
(*
x
(-
(fma y (fma a b t_4) (* y2 (fma c y0 t_2)))
(* j (fma b y0 t_6))))
(* (* (- y5) (fma k y0 (* (- a) 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 t_1 = fma(j, t, (-k * y));
double t_2 = -a * y1;
double t_3 = fma(y0, c, t_2);
double t_4 = -c * i;
double t_5 = fma(b, a, t_4);
double t_6 = -i * y1;
double t_7 = fma(y0, b, t_6);
double tmp;
if (y5 <= -1.02e+52) {
tmp = -y5 * (fma(fma(y2, k, (-j * y3)), y0, (t_1 * i)) - (fma(y2, t, (-y * y3)) * a));
} else if (y5 <= -5.9e-210) {
tmp = (fma(t_3, y2, (t_5 * y)) - (t_7 * j)) * x;
} else if (y5 <= 1.12e-233) {
tmp = -z * (fma(t_3, y3, (t_5 * t)) - (t_7 * k));
} else if (y5 <= 7.6e-92) {
tmp = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (y5 <= 7.8e+209) {
tmp = x * (fma(y, fma(a, b, t_4), (y2 * fma(c, y0, t_2))) - (j * fma(b, y0, t_6)));
} else {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = Float64(Float64(-a) * y1) t_3 = fma(y0, c, t_2) t_4 = Float64(Float64(-c) * i) t_5 = fma(b, a, t_4) t_6 = Float64(Float64(-i) * y1) t_7 = fma(y0, b, t_6) tmp = 0.0 if (y5 <= -1.02e+52) tmp = Float64(Float64(-y5) * Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y0, Float64(t_1 * i)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (y5 <= -5.9e-210) tmp = Float64(Float64(fma(t_3, y2, Float64(t_5 * y)) - Float64(t_7 * j)) * x); elseif (y5 <= 1.12e-233) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(t_5 * t)) - Float64(t_7 * k))); elseif (y5 <= 7.6e-92) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (y5 <= 7.8e+209) tmp = Float64(x * Float64(fma(y, fma(a, b, t_4), Float64(y2 * fma(c, y0, t_2))) - Float64(j * fma(b, y0, t_6)))); else tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * 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[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-a) * y1), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[((-c) * i), $MachinePrecision]}, Block[{t$95$5 = N[(b * a + t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[((-i) * y1), $MachinePrecision]}, Block[{t$95$7 = N[(y0 * b + t$95$6), $MachinePrecision]}, If[LessEqual[y5, -1.02e+52], N[((-y5) * N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -5.9e-210], N[(N[(N[(t$95$3 * y2 + N[(t$95$5 * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$7 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.12e-233], N[((-z) * N[(N[(t$95$3 * y3 + N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$7 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7.6e-92], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 7.8e+209], N[(x * N[(N[(y * N[(a * b + t$95$4), $MachinePrecision] + N[(y2 * N[(c * y0 + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(b * y0 + t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \left(-a\right) \cdot y1\\
t_3 := \mathsf{fma}\left(y0, c, t\_2\right)\\
t_4 := \left(-c\right) \cdot i\\
t_5 := \mathsf{fma}\left(b, a, t\_4\right)\\
t_6 := \left(-i\right) \cdot y1\\
t_7 := \mathsf{fma}\left(y0, b, t\_6\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -5.9 \cdot 10^{-210}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_3, y2, t\_5 \cdot y\right) - t\_7 \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.12 \cdot 10^{-233}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, t\_5 \cdot t\right) - t\_7 \cdot k\right)\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-92}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{+209}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(a, b, t\_4\right), y2 \cdot \mathsf{fma}\left(c, y0, t\_2\right)\right) - j \cdot \mathsf{fma}\left(b, y0, t\_6\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y5 < -1.02000000000000002e52Initial program 32.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites70.5%
if -1.02000000000000002e52 < y5 < -5.8999999999999999e-210Initial program 39.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.5%
if -5.8999999999999999e-210 < y5 < 1.12e-233Initial program 38.6%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites57.6%
if 1.12e-233 < y5 < 7.6000000000000001e-92Initial program 38.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.7%
if 7.6000000000000001e-92 < y5 < 7.7999999999999994e209Initial program 33.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
Applied rewrites56.8%
if 7.7999999999999994e209 < y5 Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in y5 around -inf
Applied rewrites74.5%
(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 (* (- a) y1)))
(t_2 (fma j t (* (- k) y)))
(t_3
(*
(-
(fma (fma y x (* (- t) z)) a (* t_2 y4))
(* (fma j x (* (- k) z)) y0))
b))
(t_4 (fma y4 y1 (* (- y0) y5)))
(t_5 (fma y4 c (* (- a) y5)))
(t_6 (fma y2 t (* (- y) y3))))
(if (<= b -4.4e+123)
t_3
(if (<= b -7.2e-115)
(* (- (fma t_4 k (* t_1 x)) (* t_5 t)) y2)
(if (<= b -2.25e-263)
(* (- y5) (- (* y0 (fma -1.0 (* j y3) (* k y2))) (* t_6 a)))
(if (<= b 2.2e+18)
(* (- y3) (- (fma t_4 j (* t_1 z)) (* t_5 y)))
(if (<= b 2.5e+129)
(* (- (fma (fma y2 k (* (- j) y3)) y1 (* t_2 b)) (* t_6 c)) y4)
t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y0, c, (-a * y1));
double t_2 = fma(j, t, (-k * y));
double t_3 = (fma(fma(y, x, (-t * z)), a, (t_2 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
double t_4 = fma(y4, y1, (-y0 * y5));
double t_5 = fma(y4, c, (-a * y5));
double t_6 = fma(y2, t, (-y * y3));
double tmp;
if (b <= -4.4e+123) {
tmp = t_3;
} else if (b <= -7.2e-115) {
tmp = (fma(t_4, k, (t_1 * x)) - (t_5 * t)) * y2;
} else if (b <= -2.25e-263) {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (t_6 * a));
} else if (b <= 2.2e+18) {
tmp = -y3 * (fma(t_4, j, (t_1 * z)) - (t_5 * y));
} else if (b <= 2.5e+129) {
tmp = (fma(fma(y2, k, (-j * y3)), y1, (t_2 * b)) - (t_6 * c)) * y4;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y0, c, Float64(Float64(-a) * y1)) t_2 = fma(j, t, Float64(Float64(-k) * y)) t_3 = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_2 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b) t_4 = fma(y4, y1, Float64(Float64(-y0) * y5)) t_5 = fma(y4, c, Float64(Float64(-a) * y5)) t_6 = fma(y2, t, Float64(Float64(-y) * y3)) tmp = 0.0 if (b <= -4.4e+123) tmp = t_3; elseif (b <= -7.2e-115) tmp = Float64(Float64(fma(t_4, k, Float64(t_1 * x)) - Float64(t_5 * t)) * y2); elseif (b <= -2.25e-263) tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(t_6 * a))); elseif (b <= 2.2e+18) tmp = Float64(Float64(-y3) * Float64(fma(t_4, j, Float64(t_1 * z)) - Float64(t_5 * y))); elseif (b <= 2.5e+129) tmp = Float64(Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y1, Float64(t_2 * b)) - Float64(t_6 * c)) * y4); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+123], t$95$3, If[LessEqual[b, -7.2e-115], N[(N[(N[(t$95$4 * k + N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, -2.25e-263], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+18], N[((-y3) * N[(N[(t$95$4 * j + N[(t$95$1 * z), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e+129], N[(N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_3 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
t_4 := \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right)\\
t_5 := \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\\
t_6 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+123}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-115}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_4, k, t\_1 \cdot x\right) - t\_5 \cdot t\right) \cdot y2\\
\mathbf{elif}\;b \leq -2.25 \cdot 10^{-263}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - t\_6 \cdot a\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+18}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(t\_4, j, t\_1 \cdot z\right) - t\_5 \cdot y\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+129}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, t\_2 \cdot b\right) - t\_6 \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -4.39999999999999984e123 or 2.5000000000000001e129 < b Initial program 25.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.3%
if -4.39999999999999984e123 < b < -7.20000000000000018e-115Initial program 37.7%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.8%
if -7.20000000000000018e-115 < b < -2.2499999999999999e-263Initial program 44.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites53.6%
Taylor expanded in i around 0
Applied rewrites56.8%
if -2.2499999999999999e-263 < b < 2.2e18Initial program 41.7%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites52.5%
if 2.2e18 < b < 2.5000000000000001e129Initial program 20.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2
(*
x
(-
(fma y (fma a b (* (- c) i)) (* y2 (fma c y0 (* (- a) y1))))
(* j (fma b y0 (* (- i) y1)))))))
(if (<= y5 -1.02e+52)
(*
(- y5)
(-
(fma (fma y2 k (* (- j) y3)) y0 (* t_1 i))
(* (fma y2 t (* (- y) y3)) a)))
(if (<= y5 -2.6e-99)
t_2
(if (<= y5 7.6e-92)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b)
(if (<= y5 7.8e+209)
t_2
(* (* (- y5) (fma k y0 (* (- a) 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 t_1 = fma(j, t, (-k * y));
double t_2 = x * (fma(y, fma(a, b, (-c * i)), (y2 * fma(c, y0, (-a * y1)))) - (j * fma(b, y0, (-i * y1))));
double tmp;
if (y5 <= -1.02e+52) {
tmp = -y5 * (fma(fma(y2, k, (-j * y3)), y0, (t_1 * i)) - (fma(y2, t, (-y * y3)) * a));
} else if (y5 <= -2.6e-99) {
tmp = t_2;
} else if (y5 <= 7.6e-92) {
tmp = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (y5 <= 7.8e+209) {
tmp = t_2;
} else {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = Float64(x * Float64(fma(y, fma(a, b, Float64(Float64(-c) * i)), Float64(y2 * fma(c, y0, Float64(Float64(-a) * y1)))) - Float64(j * fma(b, y0, Float64(Float64(-i) * y1))))) tmp = 0.0 if (y5 <= -1.02e+52) tmp = Float64(Float64(-y5) * Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y0, Float64(t_1 * i)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (y5 <= -2.6e-99) tmp = t_2; elseif (y5 <= 7.6e-92) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (y5 <= 7.8e+209) tmp = t_2; else tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * 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[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.02e+52], N[((-y5) * N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-99], t$95$2, If[LessEqual[y5, 7.6e-92], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 7.8e+209], t$95$2, N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right), y2 \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) - j \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-99}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-92}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{+209}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y5 < -1.02000000000000002e52Initial program 32.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites70.5%
if -1.02000000000000002e52 < y5 < -2.60000000000000005e-99 or 7.6000000000000001e-92 < y5 < 7.7999999999999994e209Initial program 36.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
Applied rewrites56.2%
if -2.60000000000000005e-99 < y5 < 7.6000000000000001e-92Initial program 37.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
if 7.7999999999999994e209 < y5 Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in y5 around -inf
Applied rewrites74.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
x
(-
(fma y (fma a b (* (- c) i)) (* y2 (fma c y0 (* (- a) y1))))
(* j (fma b y0 (* (- i) y1)))))))
(if (<= y5 -1.02e+52)
(*
(- y5)
(- (* y0 (fma -1.0 (* j y3) (* k y2))) (* (fma y2 t (* (- y) y3)) a)))
(if (<= y5 -2.6e-99)
t_1
(if (<= y5 7.6e-92)
(*
(-
(fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
(* (fma j x (* (- k) z)) y0))
b)
(if (<= y5 7.8e+209)
t_1
(* (* (- y5) (fma k y0 (* (- a) 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 t_1 = x * (fma(y, fma(a, b, (-c * i)), (y2 * fma(c, y0, (-a * y1)))) - (j * fma(b, y0, (-i * y1))));
double tmp;
if (y5 <= -1.02e+52) {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (fma(y2, t, (-y * y3)) * a));
} else if (y5 <= -2.6e-99) {
tmp = t_1;
} else if (y5 <= 7.6e-92) {
tmp = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (y5 <= 7.8e+209) {
tmp = t_1;
} else {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(fma(y, fma(a, b, Float64(Float64(-c) * i)), Float64(y2 * fma(c, y0, Float64(Float64(-a) * y1)))) - Float64(j * fma(b, y0, Float64(Float64(-i) * y1))))) tmp = 0.0 if (y5 <= -1.02e+52) tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (y5 <= -2.6e-99) tmp = t_1; elseif (y5 <= 7.6e-92) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (y5 <= 7.8e+209) tmp = t_1; else tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * 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[(x * N[(N[(y * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.02e+52], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-99], t$95$1, If[LessEqual[y5, 7.6e-92], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 7.8e+209], t$95$1, N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right), y2 \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) - j \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-92}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y5 < -1.02000000000000002e52Initial program 32.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites70.5%
Taylor expanded in i around 0
Applied rewrites62.9%
if -1.02000000000000002e52 < y5 < -2.60000000000000005e-99 or 7.6000000000000001e-92 < y5 < 7.7999999999999994e209Initial program 36.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
Applied rewrites56.2%
if -2.60000000000000005e-99 < y5 < 7.6000000000000001e-92Initial program 37.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
if 7.7999999999999994e209 < y5 Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in y5 around -inf
Applied rewrites74.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
x
(-
(fma y (fma a b (* (- c) i)) (* y2 (fma c y0 (* (- a) y1))))
(* j (fma b y0 (* (- i) y1)))))))
(if (<= y5 -1.02e+52)
(*
(- y5)
(- (* y0 (fma -1.0 (* j y3) (* k y2))) (* (fma y2 t (* (- y) y3)) a)))
(if (<= y5 -8.1e-60)
t_1
(if (<= y5 1.26e-161)
(* (* (- k) (fma y y4 (* (- y0) z))) b)
(if (<= y5 7.8e+209)
t_1
(* (* (- y5) (fma k y0 (* (- a) 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 t_1 = x * (fma(y, fma(a, b, (-c * i)), (y2 * fma(c, y0, (-a * y1)))) - (j * fma(b, y0, (-i * y1))));
double tmp;
if (y5 <= -1.02e+52) {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (fma(y2, t, (-y * y3)) * a));
} else if (y5 <= -8.1e-60) {
tmp = t_1;
} else if (y5 <= 1.26e-161) {
tmp = (-k * fma(y, y4, (-y0 * z))) * b;
} else if (y5 <= 7.8e+209) {
tmp = t_1;
} else {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(fma(y, fma(a, b, Float64(Float64(-c) * i)), Float64(y2 * fma(c, y0, Float64(Float64(-a) * y1)))) - Float64(j * fma(b, y0, Float64(Float64(-i) * y1))))) tmp = 0.0 if (y5 <= -1.02e+52) tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (y5 <= -8.1e-60) tmp = t_1; elseif (y5 <= 1.26e-161) tmp = Float64(Float64(Float64(-k) * fma(y, y4, Float64(Float64(-y0) * z))) * b); elseif (y5 <= 7.8e+209) tmp = t_1; else tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * 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[(x * N[(N[(y * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.02e+52], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -8.1e-60], t$95$1, If[LessEqual[y5, 1.26e-161], N[(N[((-k) * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 7.8e+209], t$95$1, N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right), y2 \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) - j \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{if}\;y5 \leq -1.02 \cdot 10^{+52}:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -8.1 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 1.26 \cdot 10^{-161}:\\
\;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y5 < -1.02000000000000002e52Initial program 32.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites70.5%
Taylor expanded in i around 0
Applied rewrites62.9%
if -1.02000000000000002e52 < y5 < -8.09999999999999946e-60 or 1.26e-161 < y5 < 7.7999999999999994e209Initial program 33.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites34.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
Applied rewrites55.5%
if -8.09999999999999946e-60 < y5 < 1.26e-161Initial program 41.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
Taylor expanded in k around -inf
Applied rewrites39.2%
if 7.7999999999999994e209 < y5 Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in y5 around -inf
Applied rewrites74.5%
Final simplification54.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -2.8e+215)
(*
x
(-
(fma y (fma a b (* (- c) i)) (* y2 (fma c y0 (* (- a) y1))))
(* j (fma b y0 (* (- i) y1)))))
(if (<= x 0.43)
(*
(- y5)
(- (* y0 (fma -1.0 (* j y3) (* k y2))) (* (fma y2 t (* (- y) y3)) a)))
(if (<= x 1.18e+91)
(* (* y1 y2) (fma (- a) x (* k y4)))
(*
x
(-
(fma y (fma (- c) i (* a b)) (* y2 (fma (- a) y1 (* c y0))))
(* j (fma (- i) y1 (* b 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) {
double tmp;
if (x <= -2.8e+215) {
tmp = x * (fma(y, fma(a, b, (-c * i)), (y2 * fma(c, y0, (-a * y1)))) - (j * fma(b, y0, (-i * y1))));
} else if (x <= 0.43) {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (fma(y2, t, (-y * y3)) * a));
} else if (x <= 1.18e+91) {
tmp = (y1 * y2) * fma(-a, x, (k * y4));
} else {
tmp = x * (fma(y, fma(-c, i, (a * b)), (y2 * fma(-a, y1, (c * y0)))) - (j * fma(-i, y1, (b * y0))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.8e+215) tmp = Float64(x * Float64(fma(y, fma(a, b, Float64(Float64(-c) * i)), Float64(y2 * fma(c, y0, Float64(Float64(-a) * y1)))) - Float64(j * fma(b, y0, Float64(Float64(-i) * y1))))); elseif (x <= 0.43) tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (x <= 1.18e+91) tmp = Float64(Float64(y1 * y2) * fma(Float64(-a), x, Float64(k * y4))); else tmp = Float64(x * Float64(fma(y, fma(Float64(-c), i, Float64(a * b)), Float64(y2 * fma(Float64(-a), y1, Float64(c * y0)))) - Float64(j * fma(Float64(-i), y1, Float64(b * y0))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.8e+215], N[(x * N[(N[(y * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.43], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.18e+91], N[(N[(y1 * y2), $MachinePrecision] * N[((-a) * x + N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[((-i) * y1 + N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+215}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right), y2 \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) - j \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 0.43:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{+91}:\\
\;\;\;\;\left(y1 \cdot y2\right) \cdot \mathsf{fma}\left(-a, x, k \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, \mathsf{fma}\left(-c, i, a \cdot b\right), y2 \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right) - j \cdot \mathsf{fma}\left(-i, y1, b \cdot y0\right)\right)\\
\end{array}
\end{array}
if x < -2.8e215Initial program 29.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites18.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
Applied rewrites76.5%
if -2.8e215 < x < 0.429999999999999993Initial program 39.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites51.7%
Taylor expanded in i around 0
Applied rewrites47.3%
if 0.429999999999999993 < x < 1.18000000000000008e91Initial program 15.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.3%
Taylor expanded in y4 around inf
Applied rewrites30.8%
Taylor expanded in y1 around inf
Applied rewrites56.0%
if 1.18000000000000008e91 < x Initial program 31.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in i around 0
Applied rewrites32.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites62.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(- y5)
(-
(* y0 (fma -1.0 (* j y3) (* k y2)))
(* (fma y2 t (* (- y) y3)) a)))))
(if (<= y1 -1.4e+150)
(* (* y1 y2) (fma (- a) x (* k y4)))
(if (<= y1 -3.6e-184)
t_1
(if (<= y1 2e-300)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y1 1.1e+160) t_1 (* (* y4 (fma k y1 (* (- c) 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 t_1 = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (fma(y2, t, (-y * y3)) * a));
double tmp;
if (y1 <= -1.4e+150) {
tmp = (y1 * y2) * fma(-a, x, (k * y4));
} else if (y1 <= -3.6e-184) {
tmp = t_1;
} else if (y1 <= 2e-300) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y1 <= 1.1e+160) {
tmp = t_1;
} else {
tmp = (y4 * fma(k, y1, (-c * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))) tmp = 0.0 if (y1 <= -1.4e+150) tmp = Float64(Float64(y1 * y2) * fma(Float64(-a), x, Float64(k * y4))); elseif (y1 <= -3.6e-184) tmp = t_1; elseif (y1 <= 2e-300) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y1 <= 1.1e+160) tmp = t_1; else tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * 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[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -1.4e+150], N[(N[(y1 * y2), $MachinePrecision] * N[((-a) * x + N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -3.6e-184], t$95$1, If[LessEqual[y1, 2e-300], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.1e+160], t$95$1, N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{if}\;y1 \leq -1.4 \cdot 10^{+150}:\\
\;\;\;\;\left(y1 \cdot y2\right) \cdot \mathsf{fma}\left(-a, x, k \cdot y4\right)\\
\mathbf{elif}\;y1 \leq -3.6 \cdot 10^{-184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 2 \cdot 10^{-300}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y1 \leq 1.1 \cdot 10^{+160}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y1 < -1.40000000000000005e150Initial program 23.5%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.4%
Taylor expanded in y4 around inf
Applied rewrites27.7%
Taylor expanded in y1 around inf
Applied rewrites67.0%
if -1.40000000000000005e150 < y1 < -3.6000000000000001e-184 or 2.00000000000000005e-300 < y1 < 1.09999999999999996e160Initial program 40.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites50.9%
Taylor expanded in i around 0
Applied rewrites48.2%
if -3.6000000000000001e-184 < y1 < 2.00000000000000005e-300Initial program 21.9%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
Applied rewrites38.1%
Taylor expanded in x around inf
Applied rewrites50.5%
if 1.09999999999999996e160 < y1 Initial program 31.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.1%
Taylor expanded in y4 around inf
Applied rewrites63.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* a (fma b y (* (- y1) y2))))))
(if (<= x -2.7e+213)
t_1
(if (<= x -3.5e+114)
(* j (* y0 (* y3 y5)))
(if (<= x -1.4e-101)
(* (* y y5) (fma i k (* (- a) y3)))
(if (<= x 0.41)
(* (- y5) (- (* y0 (fma -1.0 (* j y3) (* k y2))) (* a (* t y2))))
(if (<= x 1.9e+123)
t_1
(* (* (- x) y1) (fma a y2 (* (- i) j))))))))))
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 * (a * fma(b, y, (-y1 * y2)));
double tmp;
if (x <= -2.7e+213) {
tmp = t_1;
} else if (x <= -3.5e+114) {
tmp = j * (y0 * (y3 * y5));
} else if (x <= -1.4e-101) {
tmp = (y * y5) * fma(i, k, (-a * y3));
} else if (x <= 0.41) {
tmp = -y5 * ((y0 * fma(-1.0, (j * y3), (k * y2))) - (a * (t * y2)));
} else if (x <= 1.9e+123) {
tmp = t_1;
} else {
tmp = (-x * y1) * fma(a, y2, (-i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(a * fma(b, y, Float64(Float64(-y1) * y2)))) tmp = 0.0 if (x <= -2.7e+213) tmp = t_1; elseif (x <= -3.5e+114) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (x <= -1.4e-101) tmp = Float64(Float64(y * y5) * fma(i, k, Float64(Float64(-a) * y3))); elseif (x <= 0.41) tmp = Float64(Float64(-y5) * Float64(Float64(y0 * fma(-1.0, Float64(j * y3), Float64(k * y2))) - Float64(a * Float64(t * y2)))); elseif (x <= 1.9e+123) tmp = t_1; else tmp = Float64(Float64(Float64(-x) * y1) * fma(a, y2, Float64(Float64(-i) * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(a * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+213], t$95$1, If[LessEqual[x, -3.5e+114], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.4e-101], N[(N[(y * y5), $MachinePrecision] * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.41], N[((-y5) * N[(N[(y0 * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+123], t$95$1, N[(N[((-x) * y1), $MachinePrecision] * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{+213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{+114}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-101}:\\
\;\;\;\;\left(y \cdot y5\right) \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\\
\mathbf{elif}\;x \leq 0.41:\\
\;\;\;\;\left(-y5\right) \cdot \left(y0 \cdot \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right) - a \cdot \left(t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+123}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\\
\end{array}
\end{array}
if x < -2.7000000000000001e213 or 0.409999999999999976 < x < 1.89999999999999997e123Initial program 23.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites26.5%
Taylor expanded in i around 0
Applied rewrites29.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites48.1%
Taylor expanded in a around inf
Applied rewrites57.1%
if -2.7000000000000001e213 < x < -3.5000000000000001e114Initial program 17.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.0%
Taylor expanded in y3 around -inf
Applied rewrites56.4%
Taylor expanded in y around 0
Applied rewrites67.1%
if -3.5000000000000001e114 < x < -1.39999999999999995e-101Initial program 35.9%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.3%
Taylor expanded in y around -inf
Applied rewrites46.5%
if -1.39999999999999995e-101 < x < 0.409999999999999976Initial program 44.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites55.5%
Taylor expanded in i around 0
Applied rewrites51.3%
Taylor expanded in y around 0
Applied rewrites50.5%
if 1.89999999999999997e123 < x Initial program 30.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.7%
Taylor expanded in i around 0
Applied rewrites29.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites62.9%
Taylor expanded in y1 around -inf
Applied rewrites49.9%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y3 y5) (fma j y0 (* (- a) y))))
(t_2 (* (* (- k) (fma y y4 (* (- y0) z))) b)))
(if (<= y3 -1.46e+58)
t_1
(if (<= y3 -9.2e-41)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 7.6e-267)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= y3 3.2e-168)
t_2
(if (<= y3 3.2e-25)
(* (* (- y5) (fma k y0 (* (- a) t))) y2)
(if (<= y3 2.95e+168) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * y5) * fma(j, y0, (-a * y));
double t_2 = (-k * fma(y, y4, (-y0 * z))) * b;
double tmp;
if (y3 <= -1.46e+58) {
tmp = t_1;
} else if (y3 <= -9.2e-41) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= 7.6e-267) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (y3 <= 3.2e-168) {
tmp = t_2;
} else if (y3 <= 3.2e-25) {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
} else if (y3 <= 2.95e+168) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))) t_2 = Float64(Float64(Float64(-k) * fma(y, y4, Float64(Float64(-y0) * z))) * b) tmp = 0.0 if (y3 <= -1.46e+58) tmp = t_1; elseif (y3 <= -9.2e-41) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= 7.6e-267) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (y3 <= 3.2e-168) tmp = t_2; elseif (y3 <= 3.2e-25) tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * y2); elseif (y3 <= 2.95e+168) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-k) * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y3, -1.46e+58], t$95$1, If[LessEqual[y3, -9.2e-41], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.6e-267], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 3.2e-168], t$95$2, If[LessEqual[y3, 3.2e-25], N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 2.95e+168], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
t_2 := \left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -9.2 \cdot 10^{-41}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq 7.6 \cdot 10^{-267}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-168}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-25}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 2.95 \cdot 10^{+168}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58 or 2.94999999999999993e168 < y3 Initial program 19.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in y3 around -inf
Applied rewrites56.2%
if -1.4599999999999999e58 < y3 < -9.20000000000000041e-41Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -9.20000000000000041e-41 < y3 < 7.60000000000000006e-267Initial program 43.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in c around inf
Applied rewrites46.5%
if 7.60000000000000006e-267 < y3 < 3.20000000000000006e-168 or 3.2000000000000001e-25 < y3 < 2.94999999999999993e168Initial program 31.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in k around -inf
Applied rewrites54.5%
if 3.20000000000000006e-168 < y3 < 3.2000000000000001e-25Initial program 55.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.1%
Taylor expanded in y5 around -inf
Applied rewrites48.6%
Final simplification52.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.46e+58)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 -7.8e-42)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 -7.6e-255)
(* (* c y2) (fma x y0 (* (- t) y4)))
(if (<= y3 1.95e-113)
(* (* j (fma t y4 (* (- x) y0))) b)
(if (<= y3 5.2e+73)
(* (* x y2) (fma (- a) y1 (* c y0)))
(if (<= y3 8e+238)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(* (* a y) (fma b x (* (- y3) y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.46e+58) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= -7.8e-42) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= -7.6e-255) {
tmp = (c * y2) * fma(x, y0, (-t * y4));
} else if (y3 <= 1.95e-113) {
tmp = (j * fma(t, y4, (-x * y0))) * b;
} else if (y3 <= 5.2e+73) {
tmp = (x * y2) * fma(-a, y1, (c * y0));
} else if (y3 <= 8e+238) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.46e+58) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= -7.8e-42) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= -7.6e-255) tmp = Float64(Float64(c * y2) * fma(x, y0, Float64(Float64(-t) * y4))); elseif (y3 <= 1.95e-113) tmp = Float64(Float64(j * fma(t, y4, Float64(Float64(-x) * y0))) * b); elseif (y3 <= 5.2e+73) tmp = Float64(Float64(x * y2) * fma(Float64(-a), y1, Float64(c * y0))); elseif (y3 <= 8e+238) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.46e+58], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.8e-42], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.6e-255], N[(N[(c * y2), $MachinePrecision] * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.95e-113], N[(N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y3, 5.2e+73], N[(N[(x * y2), $MachinePrecision] * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+238], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq -7.8 \cdot 10^{-42}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq -7.6 \cdot 10^{-255}:\\
\;\;\;\;\left(c \cdot y2\right) \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 1.95 \cdot 10^{-113}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;y3 \leq 5.2 \cdot 10^{+73}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58Initial program 19.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y3 around -inf
Applied rewrites56.4%
if -1.4599999999999999e58 < y3 < -7.8000000000000003e-42Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -7.8000000000000003e-42 < y3 < -7.6e-255Initial program 46.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
Applied rewrites45.0%
if -7.6e-255 < y3 < 1.9499999999999999e-113Initial program 41.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Taylor expanded in j around inf
Applied rewrites41.0%
if 1.9499999999999999e-113 < y3 < 5.2000000000000001e73Initial program 41.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.7%
Taylor expanded in y4 around inf
Applied rewrites20.5%
Taylor expanded in x around inf
Applied rewrites42.9%
if 5.2000000000000001e73 < y3 < 8.0000000000000004e238Initial program 21.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.0%
Taylor expanded in i around 0
Applied rewrites55.2%
Taylor expanded in y0 around inf
Applied rewrites49.6%
Applied rewrites58.4%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -4.2e+111)
t_1
(if (<= y3 -1.36e-44)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 1.9e-274)
(* (* y2 y4) (* (- c) t))
(if (<= y3 4.3e-158)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (* a y) (fma b x (* (- y3) y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -4.2e+111) {
tmp = t_1;
} else if (y3 <= -1.36e-44) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= 1.9e-274) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 4.3e-158) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -4.2e+111) tmp = t_1; elseif (y3 <= -1.36e-44) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= 1.9e-274) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 4.3e-158) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.2e+111], t$95$1, If[LessEqual[y3, -1.36e-44], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.9e-274], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.3e-158], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -1.36 \cdot 10^{-44}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq 1.9 \cdot 10^{-274}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 4.3 \cdot 10^{-158}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -4.1999999999999999e111 or 8e17 < y3 < 8.0000000000000004e238Initial program 18.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in y3 around -inf
Applied rewrites51.5%
Taylor expanded in y around 0
Applied rewrites48.4%
if -4.1999999999999999e111 < y3 < -1.36000000000000002e-44Initial program 42.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.1%
Taylor expanded in a around -inf
Applied rewrites24.3%
Taylor expanded in x around inf
Applied rewrites46.6%
if -1.36000000000000002e-44 < y3 < 1.89999999999999992e-274Initial program 43.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in y4 around inf
Applied rewrites39.2%
Taylor expanded in t around inf
Applied rewrites39.0%
if 1.89999999999999992e-274 < y3 < 4.29999999999999961e-158Initial program 43.4%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites48.0%
Taylor expanded in a around -inf
Applied rewrites27.7%
Taylor expanded in x around inf
Applied rewrites19.3%
Taylor expanded in i around -inf
Applied rewrites44.2%
if 4.29999999999999961e-158 < y3 < 8e17Initial program 50.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites50.8%
Taylor expanded in i around 0
Applied rewrites46.3%
Taylor expanded in y0 around inf
Applied rewrites31.3%
Taylor expanded in j around 0
Applied rewrites33.5%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Final simplification44.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))) (t_2 (* (* i y) (fma k y5 (* (- c) x)))))
(if (<= y3 -4.9e+126)
t_1
(if (<= y3 -7.8e-42)
t_2
(if (<= y3 1.9e-274)
(* (* y2 y4) (* (- c) t))
(if (<= y3 4.3e-158)
t_2
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (* a y) (fma b x (* (- y3) y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double t_2 = (i * y) * fma(k, y5, (-c * x));
double tmp;
if (y3 <= -4.9e+126) {
tmp = t_1;
} else if (y3 <= -7.8e-42) {
tmp = t_2;
} else if (y3 <= 1.9e-274) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 4.3e-158) {
tmp = t_2;
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) t_2 = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))) tmp = 0.0 if (y3 <= -4.9e+126) tmp = t_1; elseif (y3 <= -7.8e-42) tmp = t_2; elseif (y3 <= 1.9e-274) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 4.3e-158) tmp = t_2; elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.9e+126], t$95$1, If[LessEqual[y3, -7.8e-42], t$95$2, If[LessEqual[y3, 1.9e-274], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.3e-158], t$95$2, If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
t_2 := \left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{if}\;y3 \leq -4.9 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -7.8 \cdot 10^{-42}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y3 \leq 1.9 \cdot 10^{-274}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 4.3 \cdot 10^{-158}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -4.90000000000000001e126 or 8e17 < y3 < 8.0000000000000004e238Initial program 17.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in y3 around -inf
Applied rewrites49.4%
Taylor expanded in y around 0
Applied rewrites48.3%
if -4.90000000000000001e126 < y3 < -7.8000000000000003e-42 or 1.89999999999999992e-274 < y3 < 4.29999999999999961e-158Initial program 43.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.7%
Taylor expanded in a around -inf
Applied rewrites29.6%
Taylor expanded in x around inf
Applied rewrites18.4%
Taylor expanded in i around -inf
Applied rewrites42.3%
if -7.8000000000000003e-42 < y3 < 1.89999999999999992e-274Initial program 43.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in y4 around inf
Applied rewrites39.2%
Taylor expanded in t around inf
Applied rewrites39.0%
if 4.29999999999999961e-158 < y3 < 8e17Initial program 50.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites50.8%
Taylor expanded in i around 0
Applied rewrites46.3%
Taylor expanded in y0 around inf
Applied rewrites31.3%
Taylor expanded in j around 0
Applied rewrites33.5%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
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 (* (* y3 y5) (fma j y0 (* (- a) y)))))
(if (<= y3 -1.46e+58)
t_1
(if (<= y3 -9.2e-41)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 -1.06e-253)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= y3 3.15e-22)
(* (- a) (* y2 (fma x y1 (* (- t) y5))))
(if (<= y3 2.95e+168)
(* (* (- k) (fma y y4 (* (- y0) z))) b)
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * y5) * fma(j, y0, (-a * y));
double tmp;
if (y3 <= -1.46e+58) {
tmp = t_1;
} else if (y3 <= -9.2e-41) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= -1.06e-253) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (y3 <= 3.15e-22) {
tmp = -a * (y2 * fma(x, y1, (-t * y5)));
} else if (y3 <= 2.95e+168) {
tmp = (-k * fma(y, y4, (-y0 * z))) * b;
} 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(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))) tmp = 0.0 if (y3 <= -1.46e+58) tmp = t_1; elseif (y3 <= -9.2e-41) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= -1.06e-253) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (y3 <= 3.15e-22) tmp = Float64(Float64(-a) * Float64(y2 * fma(x, y1, Float64(Float64(-t) * y5)))); elseif (y3 <= 2.95e+168) tmp = Float64(Float64(Float64(-k) * fma(y, y4, Float64(Float64(-y0) * z))) * b); 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[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.46e+58], t$95$1, If[LessEqual[y3, -9.2e-41], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.06e-253], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 3.15e-22], N[((-a) * N[(y2 * N[(x * y1 + N[((-t) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.95e+168], N[(N[((-k) * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -9.2 \cdot 10^{-41}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq -1.06 \cdot 10^{-253}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 3.15 \cdot 10^{-22}:\\
\;\;\;\;\left(-a\right) \cdot \left(y2 \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 2.95 \cdot 10^{+168}:\\
\;\;\;\;\left(\left(-k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58 or 2.94999999999999993e168 < y3 Initial program 19.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in y3 around -inf
Applied rewrites56.2%
if -1.4599999999999999e58 < y3 < -9.20000000000000041e-41Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -9.20000000000000041e-41 < y3 < -1.06000000000000007e-253Initial program 46.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
Applied rewrites49.8%
if -1.06000000000000007e-253 < y3 < 3.15e-22Initial program 46.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.0%
Taylor expanded in y4 around inf
Applied rewrites21.6%
Taylor expanded in a around -inf
Applied rewrites40.1%
if 3.15e-22 < y3 < 2.94999999999999993e168Initial program 25.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.2%
Taylor expanded in k around -inf
Applied rewrites58.1%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.46e+58)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 -9.2e-41)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 -1.06e-253)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= y3 6.2e+73)
(* (- a) (* y2 (fma x y1 (* (- t) y5))))
(if (<= y3 8e+238)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(* (* a y) (fma b x (* (- y3) y5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.46e+58) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= -9.2e-41) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= -1.06e-253) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (y3 <= 6.2e+73) {
tmp = -a * (y2 * fma(x, y1, (-t * y5)));
} else if (y3 <= 8e+238) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.46e+58) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= -9.2e-41) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= -1.06e-253) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (y3 <= 6.2e+73) tmp = Float64(Float64(-a) * Float64(y2 * fma(x, y1, Float64(Float64(-t) * y5)))); elseif (y3 <= 8e+238) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.46e+58], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.2e-41], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.06e-253], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 6.2e+73], N[((-a) * N[(y2 * N[(x * y1 + N[((-t) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+238], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq -9.2 \cdot 10^{-41}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq -1.06 \cdot 10^{-253}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 6.2 \cdot 10^{+73}:\\
\;\;\;\;\left(-a\right) \cdot \left(y2 \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58Initial program 19.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y3 around -inf
Applied rewrites56.4%
if -1.4599999999999999e58 < y3 < -9.20000000000000041e-41Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -9.20000000000000041e-41 < y3 < -1.06000000000000007e-253Initial program 46.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
Applied rewrites49.8%
if -1.06000000000000007e-253 < y3 < 6.1999999999999999e73Initial program 41.7%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.9%
Taylor expanded in y4 around inf
Applied rewrites22.4%
Taylor expanded in a around -inf
Applied rewrites39.8%
if 6.1999999999999999e73 < y3 < 8.0000000000000004e238Initial program 21.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.0%
Taylor expanded in i around 0
Applied rewrites55.2%
Taylor expanded in y0 around inf
Applied rewrites49.6%
Applied rewrites58.4%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x y) (fma (- c) i (* a b)))))
(if (<= y3 -1.46e+58)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 -1.36e-44)
t_1
(if (<= y3 3.4e-266)
(* (* y2 y4) (* (- c) t))
(if (<= y3 3.2e-136)
t_1
(if (<= y3 8e+238)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(* (* a y) (fma b x (* (- y3) y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) * fma(-c, i, (a * b));
double tmp;
if (y3 <= -1.46e+58) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= -1.36e-44) {
tmp = t_1;
} else if (y3 <= 3.4e-266) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 3.2e-136) {
tmp = t_1;
} else if (y3 <= 8e+238) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))) tmp = 0.0 if (y3 <= -1.46e+58) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= -1.36e-44) tmp = t_1; elseif (y3 <= 3.4e-266) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 3.2e-136) tmp = t_1; elseif (y3 <= 8e+238) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.46e+58], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.36e-44], t$95$1, If[LessEqual[y3, 3.4e-266], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.2e-136], t$95$1, If[LessEqual[y3, 8e+238], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq -1.36 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 3.4 \cdot 10^{-266}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58Initial program 19.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y3 around -inf
Applied rewrites56.4%
if -1.4599999999999999e58 < y3 < -1.36000000000000002e-44 or 3.39999999999999995e-266 < y3 < 3.19999999999999993e-136Initial program 42.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites52.0%
Taylor expanded in a around -inf
Applied rewrites26.0%
Taylor expanded in x around inf
Applied rewrites47.5%
if -1.36000000000000002e-44 < y3 < 3.39999999999999995e-266Initial program 44.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.8%
Taylor expanded in y4 around inf
Applied rewrites38.5%
Taylor expanded in t around inf
Applied rewrites38.4%
if 3.19999999999999993e-136 < y3 < 8.0000000000000004e238Initial program 35.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.6%
Taylor expanded in i around 0
Applied rewrites47.8%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Applied rewrites41.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x y) (fma (- c) i (* a b)))))
(if (<= y3 -4.2e+111)
(* j (* y0 (* y3 y5)))
(if (<= y3 -1.36e-44)
t_1
(if (<= y3 3.4e-266)
(* (* y2 y4) (* (- c) t))
(if (<= y3 3.2e-136)
t_1
(if (<= y3 8e+238)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(* (* a y) (fma b x (* (- y3) y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) * fma(-c, i, (a * b));
double tmp;
if (y3 <= -4.2e+111) {
tmp = j * (y0 * (y3 * y5));
} else if (y3 <= -1.36e-44) {
tmp = t_1;
} else if (y3 <= 3.4e-266) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 3.2e-136) {
tmp = t_1;
} else if (y3 <= 8e+238) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))) tmp = 0.0 if (y3 <= -4.2e+111) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y3 <= -1.36e-44) tmp = t_1; elseif (y3 <= 3.4e-266) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 3.2e-136) tmp = t_1; elseif (y3 <= 8e+238) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4.2e+111], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.36e-44], t$95$1, If[LessEqual[y3, 3.4e-266], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.2e-136], t$95$1, If[LessEqual[y3, 8e+238], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+111}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -1.36 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 3.4 \cdot 10^{-266}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-136}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -4.1999999999999999e111Initial program 19.7%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y3 around -inf
Applied rewrites56.3%
Taylor expanded in y around 0
Applied rewrites52.7%
if -4.1999999999999999e111 < y3 < -1.36000000000000002e-44 or 3.39999999999999995e-266 < y3 < 3.19999999999999993e-136Initial program 38.4%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in a around -inf
Applied rewrites28.3%
Taylor expanded in x around inf
Applied rewrites45.0%
if -1.36000000000000002e-44 < y3 < 3.39999999999999995e-266Initial program 44.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.8%
Taylor expanded in y4 around inf
Applied rewrites38.5%
Taylor expanded in t around inf
Applied rewrites38.4%
if 3.19999999999999993e-136 < y3 < 8.0000000000000004e238Initial program 35.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.6%
Taylor expanded in i around 0
Applied rewrites47.8%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Applied rewrites41.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -1e+110)
t_1
(if (<= y3 -1.3e-43)
(* (* b y) (fma (- k) y4 (* a x)))
(if (<= y3 1.85e-168)
(* (* y2 y4) (* (- c) t))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (* a y) (fma b x (* (- y3) y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1e+110) {
tmp = t_1;
} else if (y3 <= -1.3e-43) {
tmp = (b * y) * fma(-k, y4, (a * x));
} else if (y3 <= 1.85e-168) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -1e+110) tmp = t_1; elseif (y3 <= -1.3e-43) tmp = Float64(Float64(b * y) * fma(Float64(-k), y4, Float64(a * x))); elseif (y3 <= 1.85e-168) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1e+110], t$95$1, If[LessEqual[y3, -1.3e-43], N[(N[(b * y), $MachinePrecision] * N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.85e-168], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -1.3 \cdot 10^{-43}:\\
\;\;\;\;\left(b \cdot y\right) \cdot \mathsf{fma}\left(-k, y4, a \cdot x\right)\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{-168}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1e110 or 8e17 < y3 < 8.0000000000000004e238Initial program 18.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in y3 around -inf
Applied rewrites51.5%
Taylor expanded in y around 0
Applied rewrites48.4%
if -1e110 < y3 < -1.3e-43Initial program 42.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.1%
Taylor expanded in a around -inf
Applied rewrites24.3%
Taylor expanded in b around -inf
Applied rewrites35.0%
if -1.3e-43 < y3 < 1.84999999999999999e-168Initial program 43.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites31.1%
if 1.84999999999999999e-168 < y3 < 8e17Initial program 51.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.6%
Taylor expanded in i around 0
Applied rewrites45.3%
Taylor expanded in y0 around inf
Applied rewrites30.6%
Taylor expanded in j around 0
Applied rewrites32.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y3 y5) (fma j y0 (* (- a) y)))))
(if (<= y3 -1.46e+58)
t_1
(if (<= y3 -9.2e-41)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 1.4e-208)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= y3 3.15e+128) (* x (* a (fma b y (* (- y1) y2)))) 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 = (y3 * y5) * fma(j, y0, (-a * y));
double tmp;
if (y3 <= -1.46e+58) {
tmp = t_1;
} else if (y3 <= -9.2e-41) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= 1.4e-208) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (y3 <= 3.15e+128) {
tmp = x * (a * fma(b, y, (-y1 * y2)));
} 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(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))) tmp = 0.0 if (y3 <= -1.46e+58) tmp = t_1; elseif (y3 <= -9.2e-41) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= 1.4e-208) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (y3 <= 3.15e+128) tmp = Float64(x * Float64(a * fma(b, y, Float64(Float64(-y1) * y2)))); 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[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.46e+58], t$95$1, If[LessEqual[y3, -9.2e-41], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.4e-208], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y3, 3.15e+128], N[(x * N[(a * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -9.2 \cdot 10^{-41}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{-208}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;y3 \leq 3.15 \cdot 10^{+128}:\\
\;\;\;\;x \cdot \left(a \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58 or 3.1499999999999999e128 < y3 Initial program 19.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.2%
Taylor expanded in y3 around -inf
Applied rewrites55.9%
if -1.4599999999999999e58 < y3 < -9.20000000000000041e-41Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -9.20000000000000041e-41 < y3 < 1.40000000000000001e-208Initial program 44.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in c around inf
Applied rewrites43.6%
if 1.40000000000000001e-208 < y3 < 3.1499999999999999e128Initial program 42.5%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.9%
Taylor expanded in i around 0
Applied rewrites40.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.1%
Taylor expanded in a around inf
Applied rewrites42.2%
Final simplification48.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y3 y5) (fma j y0 (* (- a) y)))))
(if (<= y3 -1.46e+58)
t_1
(if (<= y3 -7.8e-42)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 3.2e-234)
(* (* c y2) (fma x y0 (* (- t) y4)))
(if (<= y3 3.15e+128) (* x (* a (fma b y (* (- y1) y2)))) 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 = (y3 * y5) * fma(j, y0, (-a * y));
double tmp;
if (y3 <= -1.46e+58) {
tmp = t_1;
} else if (y3 <= -7.8e-42) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= 3.2e-234) {
tmp = (c * y2) * fma(x, y0, (-t * y4));
} else if (y3 <= 3.15e+128) {
tmp = x * (a * fma(b, y, (-y1 * y2)));
} 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(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))) tmp = 0.0 if (y3 <= -1.46e+58) tmp = t_1; elseif (y3 <= -7.8e-42) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= 3.2e-234) tmp = Float64(Float64(c * y2) * fma(x, y0, Float64(Float64(-t) * y4))); elseif (y3 <= 3.15e+128) tmp = Float64(x * Float64(a * fma(b, y, Float64(Float64(-y1) * y2)))); 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[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.46e+58], t$95$1, If[LessEqual[y3, -7.8e-42], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.2e-234], N[(N[(c * y2), $MachinePrecision] * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.15e+128], N[(x * N[(a * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -7.8 \cdot 10^{-42}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq 3.2 \cdot 10^{-234}:\\
\;\;\;\;\left(c \cdot y2\right) \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 3.15 \cdot 10^{+128}:\\
\;\;\;\;x \cdot \left(a \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58 or 3.1499999999999999e128 < y3 Initial program 19.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.2%
Taylor expanded in y3 around -inf
Applied rewrites55.9%
if -1.4599999999999999e58 < y3 < -7.8000000000000003e-42Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -7.8000000000000003e-42 < y3 < 3.1999999999999999e-234Initial program 42.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.1%
Taylor expanded in c around inf
Applied rewrites41.8%
if 3.1999999999999999e-234 < y3 < 3.1499999999999999e128Initial program 44.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.2%
Taylor expanded in i around 0
Applied rewrites38.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites46.1%
Taylor expanded in a around inf
Applied rewrites40.1%
Final simplification47.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.46e+58)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 -7.8e-42)
(* (* x y) (fma (- c) i (* a b)))
(if (<= y3 2.8e-136)
(* (* c y2) (fma x y0 (* (- t) y4)))
(if (<= y3 8e+238)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(* (* a y) (fma b x (* (- y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.46e+58) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= -7.8e-42) {
tmp = (x * y) * fma(-c, i, (a * b));
} else if (y3 <= 2.8e-136) {
tmp = (c * y2) * fma(x, y0, (-t * y4));
} else if (y3 <= 8e+238) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.46e+58) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= -7.8e-42) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); elseif (y3 <= 2.8e-136) tmp = Float64(Float64(c * y2) * fma(x, y0, Float64(Float64(-t) * y4))); elseif (y3 <= 8e+238) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.46e+58], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.8e-42], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.8e-136], N[(N[(c * y2), $MachinePrecision] * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+238], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+58}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq -7.8 \cdot 10^{-42}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{elif}\;y3 \leq 2.8 \cdot 10^{-136}:\\
\;\;\;\;\left(c \cdot y2\right) \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.4599999999999999e58Initial program 19.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y3 around -inf
Applied rewrites56.4%
if -1.4599999999999999e58 < y3 < -7.8000000000000003e-42Initial program 52.5%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
Taylor expanded in a around -inf
Applied rewrites17.5%
Taylor expanded in x around inf
Applied rewrites53.1%
if -7.8000000000000003e-42 < y3 < 2.8000000000000001e-136Initial program 41.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.2%
Taylor expanded in c around inf
Applied rewrites38.9%
if 2.8000000000000001e-136 < y3 < 8.0000000000000004e238Initial program 35.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.6%
Taylor expanded in i around 0
Applied rewrites47.8%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Applied rewrites41.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -9.2e-6)
t_1
(if (<= y3 1.85e-168)
(* (* y2 y4) (* (- c) t))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (* a y) (fma b x (* (- y3) y5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -9.2e-6) {
tmp = t_1;
} else if (y3 <= 1.85e-168) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = (a * y) * fma(b, x, (-y3 * y5));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -9.2e-6) tmp = t_1; elseif (y3 <= 1.85e-168) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -9.2e-6], t$95$1, If[LessEqual[y3, 1.85e-168], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -9.2 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{-168}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -9.2e-6 or 8e17 < y3 < 8.0000000000000004e238Initial program 22.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.7%
Taylor expanded in y3 around -inf
Applied rewrites48.9%
Taylor expanded in y around 0
Applied rewrites42.1%
if -9.2e-6 < y3 < 1.84999999999999999e-168Initial program 44.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in y4 around inf
Applied rewrites33.3%
Taylor expanded in t around inf
Applied rewrites29.6%
if 1.84999999999999999e-168 < y3 < 8e17Initial program 51.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.6%
Taylor expanded in i around 0
Applied rewrites45.3%
Taylor expanded in y0 around inf
Applied rewrites30.6%
Taylor expanded in j around 0
Applied rewrites32.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -9.2e-6)
t_1
(if (<= y3 1.85e-168)
(* (* y2 y4) (* (- c) t))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (- a) (* (* y y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -9.2e-6) {
tmp = t_1;
} else if (y3 <= 1.85e-168) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (y3 <= (-9.2d-6)) then
tmp = t_1
else if (y3 <= 1.85d-168) then
tmp = (y2 * y4) * (-c * t)
else if (y3 <= 8d+17) then
tmp = -(k * ((y0 * y2) * y5))
else if (y3 <= 8d+238) then
tmp = t_1
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -9.2e-6) {
tmp = t_1;
} else if (y3 <= 1.85e-168) {
tmp = (y2 * y4) * (-c * t);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if y3 <= -9.2e-6: tmp = t_1 elif y3 <= 1.85e-168: tmp = (y2 * y4) * (-c * t) elif y3 <= 8e+17: tmp = -(k * ((y0 * y2) * y5)) elif y3 <= 8e+238: tmp = t_1 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -9.2e-6) tmp = t_1; elseif (y3 <= 1.85e-168) tmp = Float64(Float64(y2 * y4) * Float64(Float64(-c) * t)); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -9.2e-6) tmp = t_1; elseif (y3 <= 1.85e-168) tmp = (y2 * y4) * (-c * t); elseif (y3 <= 8e+17) tmp = -(k * ((y0 * y2) * y5)); elseif (y3 <= 8e+238) tmp = t_1; else tmp = -a * ((y * y3) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -9.2e-6], t$95$1, If[LessEqual[y3, 1.85e-168], N[(N[(y2 * y4), $MachinePrecision] * N[((-c) * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -9.2 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{-168}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \left(\left(-c\right) \cdot t\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -9.2e-6 or 8e17 < y3 < 8.0000000000000004e238Initial program 22.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.7%
Taylor expanded in y3 around -inf
Applied rewrites48.9%
Taylor expanded in y around 0
Applied rewrites42.1%
if -9.2e-6 < y3 < 1.84999999999999999e-168Initial program 44.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in y4 around inf
Applied rewrites33.3%
Taylor expanded in t around inf
Applied rewrites29.6%
if 1.84999999999999999e-168 < y3 < 8e17Initial program 51.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.6%
Taylor expanded in i around 0
Applied rewrites45.3%
Taylor expanded in y0 around inf
Applied rewrites30.6%
Taylor expanded in j around 0
Applied rewrites32.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Taylor expanded in x around 0
Applied rewrites67.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -7.6e+27)
t_1
(if (<= y3 1.85e-168)
(* (- c) (* (* t y2) y4))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (- a) (* (* y y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -7.6e+27) {
tmp = t_1;
} else if (y3 <= 1.85e-168) {
tmp = -c * ((t * y2) * y4);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (y3 <= (-7.6d+27)) then
tmp = t_1
else if (y3 <= 1.85d-168) then
tmp = -c * ((t * y2) * y4)
else if (y3 <= 8d+17) then
tmp = -(k * ((y0 * y2) * y5))
else if (y3 <= 8d+238) then
tmp = t_1
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -7.6e+27) {
tmp = t_1;
} else if (y3 <= 1.85e-168) {
tmp = -c * ((t * y2) * y4);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if y3 <= -7.6e+27: tmp = t_1 elif y3 <= 1.85e-168: tmp = -c * ((t * y2) * y4) elif y3 <= 8e+17: tmp = -(k * ((y0 * y2) * y5)) elif y3 <= 8e+238: tmp = t_1 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -7.6e+27) tmp = t_1; elseif (y3 <= 1.85e-168) tmp = Float64(Float64(-c) * Float64(Float64(t * y2) * y4)); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -7.6e+27) tmp = t_1; elseif (y3 <= 1.85e-168) tmp = -c * ((t * y2) * y4); elseif (y3 <= 8e+17) tmp = -(k * ((y0 * y2) * y5)); elseif (y3 <= 8e+238) tmp = t_1; else tmp = -a * ((y * y3) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -7.6e+27], t$95$1, If[LessEqual[y3, 1.85e-168], N[((-c) * N[(N[(t * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -7.6 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.85 \cdot 10^{-168}:\\
\;\;\;\;\left(-c\right) \cdot \left(\left(t \cdot y2\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -7.60000000000000043e27 or 8e17 < y3 < 8.0000000000000004e238Initial program 19.7%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in y3 around -inf
Applied rewrites50.1%
Taylor expanded in y around 0
Applied rewrites43.7%
if -7.60000000000000043e27 < y3 < 1.84999999999999999e-168Initial program 45.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
Applied rewrites30.7%
Taylor expanded in t around inf
Applied rewrites27.6%
if 1.84999999999999999e-168 < y3 < 8e17Initial program 51.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.6%
Taylor expanded in i around 0
Applied rewrites45.3%
Taylor expanded in y0 around inf
Applied rewrites30.6%
Taylor expanded in j around 0
Applied rewrites32.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Taylor expanded in x around 0
Applied rewrites67.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -1.65e+106)
t_1
(if (<= y3 1.3e-257)
(* c (* (* i t) z))
(if (<= y3 8e+17)
(- (* k (* (* y0 y2) y5)))
(if (<= y3 8e+238) t_1 (* (- a) (* (* y y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.3e-257) {
tmp = c * ((i * t) * z);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (y3 <= (-1.65d+106)) then
tmp = t_1
else if (y3 <= 1.3d-257) then
tmp = c * ((i * t) * z)
else if (y3 <= 8d+17) then
tmp = -(k * ((y0 * y2) * y5))
else if (y3 <= 8d+238) then
tmp = t_1
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.3e-257) {
tmp = c * ((i * t) * z);
} else if (y3 <= 8e+17) {
tmp = -(k * ((y0 * y2) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if y3 <= -1.65e+106: tmp = t_1 elif y3 <= 1.3e-257: tmp = c * ((i * t) * z) elif y3 <= 8e+17: tmp = -(k * ((y0 * y2) * y5)) elif y3 <= 8e+238: tmp = t_1 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.3e-257) tmp = Float64(c * Float64(Float64(i * t) * z)); elseif (y3 <= 8e+17) tmp = Float64(-Float64(k * Float64(Float64(y0 * y2) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.3e-257) tmp = c * ((i * t) * z); elseif (y3 <= 8e+17) tmp = -(k * ((y0 * y2) * y5)); elseif (y3 <= 8e+238) tmp = t_1; else tmp = -a * ((y * y3) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.65e+106], t$95$1, If[LessEqual[y3, 1.3e-257], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+17], (-N[(k * N[(N[(y0 * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.65 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.3 \cdot 10^{-257}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;-k \cdot \left(\left(y0 \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.65000000000000004e106 or 8e17 < y3 < 8.0000000000000004e238Initial program 18.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in y3 around -inf
Applied rewrites51.5%
Taylor expanded in y around 0
Applied rewrites48.4%
if -1.65000000000000004e106 < y3 < 1.3e-257Initial program 43.2%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in t around inf
Applied rewrites34.4%
Taylor expanded in a around inf
Applied rewrites13.6%
Taylor expanded in a around 0
Applied rewrites28.0%
if 1.3e-257 < y3 < 8e17Initial program 48.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.2%
Taylor expanded in i around 0
Applied rewrites36.8%
Taylor expanded in y0 around inf
Applied rewrites26.0%
Taylor expanded in j around 0
Applied rewrites26.0%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Taylor expanded in x around 0
Applied rewrites67.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -1.65e+106)
t_1
(if (<= y3 2.8e-298)
(* c (* (* i t) z))
(if (<= y3 5.2e+73)
(- (* i (* (* j t) y5)))
(if (<= y3 8e+238) t_1 (* (- a) (* (* y y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 2.8e-298) {
tmp = c * ((i * t) * z);
} else if (y3 <= 5.2e+73) {
tmp = -(i * ((j * t) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (y3 <= (-1.65d+106)) then
tmp = t_1
else if (y3 <= 2.8d-298) then
tmp = c * ((i * t) * z)
else if (y3 <= 5.2d+73) then
tmp = -(i * ((j * t) * y5))
else if (y3 <= 8d+238) then
tmp = t_1
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 2.8e-298) {
tmp = c * ((i * t) * z);
} else if (y3 <= 5.2e+73) {
tmp = -(i * ((j * t) * y5));
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if y3 <= -1.65e+106: tmp = t_1 elif y3 <= 2.8e-298: tmp = c * ((i * t) * z) elif y3 <= 5.2e+73: tmp = -(i * ((j * t) * y5)) elif y3 <= 8e+238: tmp = t_1 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 2.8e-298) tmp = Float64(c * Float64(Float64(i * t) * z)); elseif (y3 <= 5.2e+73) tmp = Float64(-Float64(i * Float64(Float64(j * t) * y5))); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 2.8e-298) tmp = c * ((i * t) * z); elseif (y3 <= 5.2e+73) tmp = -(i * ((j * t) * y5)); elseif (y3 <= 8e+238) tmp = t_1; else tmp = -a * ((y * y3) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.65e+106], t$95$1, If[LessEqual[y3, 2.8e-298], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.2e+73], (-N[(i * N[(N[(j * t), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), If[LessEqual[y3, 8e+238], t$95$1, N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.65 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 2.8 \cdot 10^{-298}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\
\mathbf{elif}\;y3 \leq 5.2 \cdot 10^{+73}:\\
\;\;\;\;-i \cdot \left(\left(j \cdot t\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.65000000000000004e106 or 5.2000000000000001e73 < y3 < 8.0000000000000004e238Initial program 20.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.8%
Taylor expanded in y3 around -inf
Applied rewrites53.7%
Taylor expanded in y around 0
Applied rewrites51.5%
if -1.65000000000000004e106 < y3 < 2.79999999999999992e-298Initial program 42.3%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in t around inf
Applied rewrites34.8%
Taylor expanded in a around inf
Applied rewrites13.8%
Taylor expanded in a around 0
Applied rewrites27.6%
if 2.79999999999999992e-298 < y3 < 5.2000000000000001e73Initial program 43.7%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites44.6%
Taylor expanded in t around inf
Applied rewrites32.5%
Taylor expanded in a around 0
Applied rewrites25.1%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Taylor expanded in x around 0
Applied rewrites67.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -1.65e+106)
t_1
(if (<= y3 1.7e-256)
(* c (* (* i t) z))
(if (<= y3 6.8e+17)
(* a (* (* t y2) y5))
(if (<= y3 8e+238) t_1 (* (- a) (* (* y y3) y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * ((i * t) * z);
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (y3 <= (-1.65d+106)) then
tmp = t_1
else if (y3 <= 1.7d-256) then
tmp = c * ((i * t) * z)
else if (y3 <= 6.8d+17) then
tmp = a * ((t * y2) * y5)
else if (y3 <= 8d+238) then
tmp = t_1
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * ((i * t) * z);
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} else if (y3 <= 8e+238) {
tmp = t_1;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if y3 <= -1.65e+106: tmp = t_1 elif y3 <= 1.7e-256: tmp = c * ((i * t) * z) elif y3 <= 6.8e+17: tmp = a * ((t * y2) * y5) elif y3 <= 8e+238: tmp = t_1 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = Float64(c * Float64(Float64(i * t) * z)); elseif (y3 <= 6.8e+17) tmp = Float64(a * Float64(Float64(t * y2) * y5)); elseif (y3 <= 8e+238) tmp = t_1; else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = c * ((i * t) * z); elseif (y3 <= 6.8e+17) tmp = a * ((t * y2) * y5); elseif (y3 <= 8e+238) tmp = t_1; else tmp = -a * ((y * y3) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.65e+106], t$95$1, If[LessEqual[y3, 1.7e-256], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.8e+17], N[(a * N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e+238], t$95$1, N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.65 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.7 \cdot 10^{-256}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\
\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y2\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y3 < -1.65000000000000004e106 or 6.8e17 < y3 < 8.0000000000000004e238Initial program 18.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in y3 around -inf
Applied rewrites51.5%
Taylor expanded in y around 0
Applied rewrites48.4%
if -1.65000000000000004e106 < y3 < 1.7e-256Initial program 43.2%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in t around inf
Applied rewrites34.4%
Taylor expanded in a around inf
Applied rewrites13.6%
Taylor expanded in a around 0
Applied rewrites28.0%
if 1.7e-256 < y3 < 6.8e17Initial program 48.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.2%
Taylor expanded in t around inf
Applied rewrites31.9%
Taylor expanded in a around inf
Applied rewrites23.8%
if 8.0000000000000004e238 < y3 Initial program 33.3%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.0%
Taylor expanded in a around -inf
Applied rewrites73.5%
Taylor expanded in x around 0
Applied rewrites67.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.95e+23)
(* (* a y) (fma b x (* (- y3) y5)))
(if (<= y 4.5e-193)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(if (<= y 2.6e+214)
(* (* c z) (fma i t (* (- y0) y3)))
(* (* k y5) (fma i y (* (- 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 tmp;
if (y <= -2.95e+23) {
tmp = (a * y) * fma(b, x, (-y3 * y5));
} else if (y <= 4.5e-193) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else if (y <= 2.6e+214) {
tmp = (c * z) * fma(i, t, (-y0 * y3));
} else {
tmp = (k * y5) * fma(i, y, (-y0 * 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 (y <= -2.95e+23) tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); elseif (y <= 4.5e-193) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); elseif (y <= 2.6e+214) tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); else tmp = Float64(Float64(k * y5) * fma(i, y, Float64(Float64(-y0) * y2))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -2.95e+23], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e-193], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+214], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * y5), $MachinePrecision] * N[(i * y + N[((-y0) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.95 \cdot 10^{+23}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{-193}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+214}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \mathsf{fma}\left(i, y, \left(-y0\right) \cdot y2\right)\\
\end{array}
\end{array}
if y < -2.94999999999999994e23Initial program 26.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.6%
Taylor expanded in a around -inf
Applied rewrites47.9%
if -2.94999999999999994e23 < y < 4.4999999999999999e-193Initial program 41.4%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites51.5%
Taylor expanded in i around 0
Applied rewrites52.8%
Taylor expanded in y0 around inf
Applied rewrites46.1%
Applied rewrites47.2%
if 4.4999999999999999e-193 < y < 2.59999999999999993e214Initial program 38.8%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.4%
Taylor expanded in t around inf
Applied rewrites31.3%
Taylor expanded in c around -inf
Applied rewrites34.2%
if 2.59999999999999993e214 < y Initial program 20.0%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.3%
Taylor expanded in i around 0
Applied rewrites35.7%
Taylor expanded in k around -inf
Applied rewrites65.2%
Final simplification44.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.95e+23)
(* (* a y) (fma b x (* (- y3) y5)))
(if (<= y 1.16e-153)
(* y5 (* y0 (fma (- k) y2 (* y3 j))))
(if (<= y 4.6e+140)
(* (* x y) (fma (- c) i (* a b)))
(* (* k y5) (fma i y (* (- 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 tmp;
if (y <= -2.95e+23) {
tmp = (a * y) * fma(b, x, (-y3 * y5));
} else if (y <= 1.16e-153) {
tmp = y5 * (y0 * fma(-k, y2, (y3 * j)));
} else if (y <= 4.6e+140) {
tmp = (x * y) * fma(-c, i, (a * b));
} else {
tmp = (k * y5) * fma(i, y, (-y0 * 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 (y <= -2.95e+23) tmp = Float64(Float64(a * y) * fma(b, x, Float64(Float64(-y3) * y5))); elseif (y <= 1.16e-153) tmp = Float64(y5 * Float64(y0 * fma(Float64(-k), y2, Float64(y3 * j)))); elseif (y <= 4.6e+140) tmp = Float64(Float64(x * y) * fma(Float64(-c), i, Float64(a * b))); else tmp = Float64(Float64(k * y5) * fma(i, y, Float64(Float64(-y0) * y2))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -2.95e+23], N[(N[(a * y), $MachinePrecision] * N[(b * x + N[((-y3) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.16e-153], N[(y5 * N[(y0 * N[((-k) * y2 + N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e+140], N[(N[(x * y), $MachinePrecision] * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(k * y5), $MachinePrecision] * N[(i * y + N[((-y0) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.95 \cdot 10^{+23}:\\
\;\;\;\;\left(a \cdot y\right) \cdot \mathsf{fma}\left(b, x, \left(-y3\right) \cdot y5\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-153}:\\
\;\;\;\;y5 \cdot \left(y0 \cdot \mathsf{fma}\left(-k, y2, y3 \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+140}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \mathsf{fma}\left(i, y, \left(-y0\right) \cdot y2\right)\\
\end{array}
\end{array}
if y < -2.94999999999999994e23Initial program 26.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.6%
Taylor expanded in a around -inf
Applied rewrites47.9%
if -2.94999999999999994e23 < y < 1.16e-153Initial program 40.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.9%
Taylor expanded in i around 0
Applied rewrites49.0%
Taylor expanded in y0 around inf
Applied rewrites42.0%
Applied rewrites44.0%
if 1.16e-153 < y < 4.59999999999999981e140Initial program 36.6%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in a around -inf
Applied rewrites23.1%
Taylor expanded in x around inf
Applied rewrites30.9%
if 4.59999999999999981e140 < y Initial program 32.4%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites50.2%
Taylor expanded in i around 0
Applied rewrites42.2%
Taylor expanded in k around -inf
Applied rewrites53.2%
Final simplification43.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -1.65e+106)
t_1
(if (<= y3 1.7e-256)
(* c (* (* i t) z))
(if (<= y3 6.8e+17) (* a (* (* t y2) 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 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * ((i * t) * z);
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} 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 * (y0 * (y3 * y5))
if (y3 <= (-1.65d+106)) then
tmp = t_1
else if (y3 <= 1.7d-256) then
tmp = c * ((i * t) * z)
else if (y3 <= 6.8d+17) then
tmp = a * ((t * y2) * y5)
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 * (y0 * (y3 * y5));
double tmp;
if (y3 <= -1.65e+106) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * ((i * t) * z);
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} 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 * (y0 * (y3 * y5)) tmp = 0 if y3 <= -1.65e+106: tmp = t_1 elif y3 <= 1.7e-256: tmp = c * ((i * t) * z) elif y3 <= 6.8e+17: tmp = a * ((t * y2) * 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(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = Float64(c * Float64(Float64(i * t) * z)); elseif (y3 <= 6.8e+17) tmp = Float64(a * Float64(Float64(t * y2) * y5)); 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 * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -1.65e+106) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = c * ((i * t) * z); elseif (y3 <= 6.8e+17) tmp = a * ((t * y2) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.65e+106], t$95$1, If[LessEqual[y3, 1.7e-256], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.8e+17], N[(a * N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.65 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.7 \cdot 10^{-256}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\
\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y2\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.65000000000000004e106 or 6.8e17 < y3 Initial program 20.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in y3 around -inf
Applied rewrites52.8%
Taylor expanded in y around 0
Applied rewrites47.3%
if -1.65000000000000004e106 < y3 < 1.7e-256Initial program 43.2%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in t around inf
Applied rewrites34.4%
Taylor expanded in a around inf
Applied rewrites13.6%
Taylor expanded in a around 0
Applied rewrites28.0%
if 1.7e-256 < y3 < 6.8e17Initial program 48.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.2%
Taylor expanded in t around inf
Applied rewrites31.9%
Taylor expanded in a around inf
Applied rewrites23.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= y3 -6.5e+109)
t_1
(if (<= y3 1.7e-256)
(* c (* i (* t z)))
(if (<= y3 6.8e+17) (* a (* (* t y2) 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 = j * (y0 * (y3 * y5));
double tmp;
if (y3 <= -6.5e+109) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * (i * (t * z));
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} 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 * (y0 * (y3 * y5))
if (y3 <= (-6.5d+109)) then
tmp = t_1
else if (y3 <= 1.7d-256) then
tmp = c * (i * (t * z))
else if (y3 <= 6.8d+17) then
tmp = a * ((t * y2) * y5)
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 * (y0 * (y3 * y5));
double tmp;
if (y3 <= -6.5e+109) {
tmp = t_1;
} else if (y3 <= 1.7e-256) {
tmp = c * (i * (t * z));
} else if (y3 <= 6.8e+17) {
tmp = a * ((t * y2) * y5);
} 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 * (y0 * (y3 * y5)) tmp = 0 if y3 <= -6.5e+109: tmp = t_1 elif y3 <= 1.7e-256: tmp = c * (i * (t * z)) elif y3 <= 6.8e+17: tmp = a * ((t * y2) * 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(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (y3 <= -6.5e+109) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (y3 <= 6.8e+17) tmp = Float64(a * Float64(Float64(t * y2) * y5)); 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 * (y0 * (y3 * y5)); tmp = 0.0; if (y3 <= -6.5e+109) tmp = t_1; elseif (y3 <= 1.7e-256) tmp = c * (i * (t * z)); elseif (y3 <= 6.8e+17) tmp = a * ((t * y2) * y5); 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[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -6.5e+109], t$95$1, If[LessEqual[y3, 1.7e-256], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.8e+17], N[(a * N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -6.5 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.7 \cdot 10^{-256}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y2\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -6.5e109 or 6.8e17 < y3 Initial program 20.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in y3 around -inf
Applied rewrites52.8%
Taylor expanded in y around 0
Applied rewrites47.3%
if -6.5e109 < y3 < 1.7e-256Initial program 43.2%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in t around inf
Applied rewrites34.4%
Taylor expanded in a around 0
Applied rewrites26.9%
if 1.7e-256 < y3 < 6.8e17Initial program 48.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.2%
Taylor expanded in t around inf
Applied rewrites31.9%
Taylor expanded in a around inf
Applied rewrites23.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y2 -3.4e+148) (not (<= y2 2.65e+103))) (* a (* (* t y2) y5)) (* j (* y0 (* y3 y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -3.4e+148) || !(y2 <= 2.65e+103)) {
tmp = a * ((t * y2) * y5);
} else {
tmp = j * (y0 * (y3 * y5));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y2 <= (-3.4d+148)) .or. (.not. (y2 <= 2.65d+103))) then
tmp = a * ((t * y2) * y5)
else
tmp = j * (y0 * (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y2 <= -3.4e+148) || !(y2 <= 2.65e+103)) {
tmp = a * ((t * y2) * y5);
} else {
tmp = j * (y0 * (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y2 <= -3.4e+148) or not (y2 <= 2.65e+103): tmp = a * ((t * y2) * y5) else: tmp = j * (y0 * (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y2 <= -3.4e+148) || !(y2 <= 2.65e+103)) tmp = Float64(a * Float64(Float64(t * y2) * y5)); else tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y2 <= -3.4e+148) || ~((y2 <= 2.65e+103))) tmp = a * ((t * y2) * y5); else tmp = j * (y0 * (y3 * y5)); 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[y2, -3.4e+148], N[Not[LessEqual[y2, 2.65e+103]], $MachinePrecision]], N[(a * N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.4 \cdot 10^{+148} \lor \neg \left(y2 \leq 2.65 \cdot 10^{+103}\right):\\
\;\;\;\;a \cdot \left(\left(t \cdot y2\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -3.4000000000000003e148 or 2.64999999999999985e103 < y2 Initial program 31.9%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites49.3%
Taylor expanded in t around inf
Applied rewrites41.6%
Taylor expanded in a around inf
Applied rewrites39.4%
if -3.4000000000000003e148 < y2 < 2.64999999999999985e103Initial program 36.2%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.3%
Taylor expanded in y3 around -inf
Applied rewrites34.2%
Taylor expanded in y around 0
Applied rewrites28.4%
Final simplification31.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= t -8e+34) (not (<= t 1.7e-24))) (* a (* (* t y2) y5)) (* a (* b (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((t <= -8e+34) || !(t <= 1.7e-24)) {
tmp = a * ((t * y2) * y5);
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((t <= (-8d+34)) .or. (.not. (t <= 1.7d-24))) then
tmp = a * ((t * y2) * y5)
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((t <= -8e+34) || !(t <= 1.7e-24)) {
tmp = a * ((t * y2) * y5);
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (t <= -8e+34) or not (t <= 1.7e-24): tmp = a * ((t * y2) * y5) else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((t <= -8e+34) || !(t <= 1.7e-24)) tmp = Float64(a * Float64(Float64(t * y2) * y5)); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((t <= -8e+34) || ~((t <= 1.7e-24))) tmp = a * ((t * y2) * y5); else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[t, -8e+34], N[Not[LessEqual[t, 1.7e-24]], $MachinePrecision]], N[(a * N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+34} \lor \neg \left(t \leq 1.7 \cdot 10^{-24}\right):\\
\;\;\;\;a \cdot \left(\left(t \cdot y2\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if t < -7.99999999999999956e34 or 1.69999999999999996e-24 < t Initial program 29.1%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.4%
Taylor expanded in t around inf
Applied rewrites40.0%
Taylor expanded in a around inf
Applied rewrites32.3%
if -7.99999999999999956e34 < t < 1.69999999999999996e-24Initial program 41.0%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.0%
Taylor expanded in a around -inf
Applied rewrites29.7%
Taylor expanded in x around inf
Applied rewrites19.0%
Final simplification25.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -2e+59) (* (* (* a y) b) x) (if (<= y 2.15e-97) (* (* (* x b) a) y) (* a (* b (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2e+59) {
tmp = ((a * y) * b) * x;
} else if (y <= 2.15e-97) {
tmp = ((x * b) * a) * y;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-2d+59)) then
tmp = ((a * y) * b) * x
else if (y <= 2.15d-97) then
tmp = ((x * b) * a) * y
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2e+59) {
tmp = ((a * y) * b) * x;
} else if (y <= 2.15e-97) {
tmp = ((x * b) * a) * y;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -2e+59: tmp = ((a * y) * b) * x elif y <= 2.15e-97: tmp = ((x * b) * a) * y else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -2e+59) tmp = Float64(Float64(Float64(a * y) * b) * x); elseif (y <= 2.15e-97) tmp = Float64(Float64(Float64(x * b) * a) * y); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -2e+59) tmp = ((a * y) * b) * x; elseif (y <= 2.15e-97) tmp = ((x * b) * a) * y; else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -2e+59], N[(N[(N[(a * y), $MachinePrecision] * b), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 2.15e-97], N[(N[(N[(x * b), $MachinePrecision] * a), $MachinePrecision] * y), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+59}:\\
\;\;\;\;\left(\left(a \cdot y\right) \cdot b\right) \cdot x\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-97}:\\
\;\;\;\;\left(\left(x \cdot b\right) \cdot a\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if y < -1.99999999999999994e59Initial program 25.4%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites48.8%
Taylor expanded in a around -inf
Applied rewrites49.2%
Taylor expanded in x around inf
Applied rewrites26.5%
Applied rewrites33.1%
if -1.99999999999999994e59 < y < 2.15e-97Initial program 39.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites29.2%
Taylor expanded in a around -inf
Applied rewrites16.7%
Taylor expanded in x around inf
Applied rewrites5.8%
Applied rewrites13.4%
if 2.15e-97 < y Initial program 35.0%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in a around -inf
Applied rewrites25.9%
Taylor expanded in x around inf
Applied rewrites21.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= a -1.7e-106) (* (* (* b a) x) y) (* a (* b (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.7e-106) {
tmp = ((b * a) * x) * y;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-1.7d-106)) then
tmp = ((b * a) * x) * y
else
tmp = a * (b * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.7e-106) {
tmp = ((b * a) * x) * y;
} else {
tmp = a * (b * (x * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -1.7e-106: tmp = ((b * a) * x) * y else: tmp = a * (b * (x * y)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.7e-106) tmp = Float64(Float64(Float64(b * a) * x) * y); else tmp = Float64(a * Float64(b * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -1.7e-106) tmp = ((b * a) * x) * y; else tmp = a * (b * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.7e-106], N[(N[(N[(b * a), $MachinePrecision] * x), $MachinePrecision] * y), $MachinePrecision], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{-106}:\\
\;\;\;\;\left(\left(b \cdot a\right) \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if a < -1.69999999999999991e-106Initial program 31.2%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.5%
Taylor expanded in a around -inf
Applied rewrites34.4%
Taylor expanded in x around inf
Applied rewrites13.0%
Applied rewrites18.4%
if -1.69999999999999991e-106 < a Initial program 36.9%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites34.7%
Taylor expanded in a around -inf
Applied rewrites22.6%
Taylor expanded in x around inf
Applied rewrites16.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y1 3e-77) (* a (* b (* x y))) (* (* (* a y) b) x)))
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 (y1 <= 3e-77) {
tmp = a * (b * (x * y));
} else {
tmp = ((a * y) * b) * x;
}
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 (y1 <= 3d-77) then
tmp = a * (b * (x * y))
else
tmp = ((a * y) * b) * x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 3e-77) {
tmp = a * (b * (x * y));
} else {
tmp = ((a * y) * b) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 3e-77: tmp = a * (b * (x * y)) else: tmp = ((a * y) * b) * x return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= 3e-77) tmp = Float64(a * Float64(b * Float64(x * y))); else tmp = Float64(Float64(Float64(a * y) * b) * x); 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 (y1 <= 3e-77) tmp = a * (b * (x * y)); else tmp = ((a * y) * b) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, 3e-77], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * y), $MachinePrecision] * b), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 3 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(a \cdot y\right) \cdot b\right) \cdot x\\
\end{array}
\end{array}
if y1 < 3.00000000000000016e-77Initial program 37.1%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.8%
Taylor expanded in a around -inf
Applied rewrites24.3%
Taylor expanded in x around inf
Applied rewrites17.3%
if 3.00000000000000016e-77 < y1 Initial program 29.7%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites29.2%
Taylor expanded in a around -inf
Applied rewrites32.1%
Taylor expanded in x around inf
Applied rewrites9.8%
Applied rewrites16.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* b (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (b * (x * y));
}
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 = a * (b * (x * y))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (b * (x * y));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (b * (x * y))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(b * Float64(x * y))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (b * (x * y)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot \left(x \cdot y\right)\right)
\end{array}
Initial program 34.9%
Taylor expanded in y around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around -inf
Applied rewrites26.6%
Taylor expanded in x around inf
Applied rewrites15.1%
(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 2025016
(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)))))