
(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}
Herbie found 32 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* c y4) (* a y5)))
(t_3 (- (* a b) (* c i)))
(t_4 (- (* y1 y4) (* y0 y5))))
(if (<= t -4.5e+154)
(* -1.0 (* z (* t t_3)))
(if (<= t -2.4e+112)
(* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_2))))
(if (<= t -6.2e-107)
(-
(fma
b
(* y4 (- (* j t) (* k y)))
(fma
y1
(* y4 (- (* k y2) (* j y3)))
(fma t_3 (- (* x y) (* t z)) (* t_1 (- (* x y2) (* y3 z))))))
(* -1.0 (* c (* y (* y3 y4)))))
(if (<= t 3.7e-181)
(* x (- (fma y t_3 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
(if (<= t 3.5e+116)
(* y2 (- (fma k t_4 (* x t_1)) (* t t_2)))
(* b (* t (fma -1.0 (* a z) (* j 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 = (c * y0) - (a * y1);
double t_2 = (c * y4) - (a * y5);
double t_3 = (a * b) - (c * i);
double t_4 = (y1 * y4) - (y0 * y5);
double tmp;
if (t <= -4.5e+154) {
tmp = -1.0 * (z * (t * t_3));
} else if (t <= -2.4e+112) {
tmp = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_2)));
} else if (t <= -6.2e-107) {
tmp = fma(b, (y4 * ((j * t) - (k * y))), fma(y1, (y4 * ((k * y2) - (j * y3))), fma(t_3, ((x * y) - (t * z)), (t_1 * ((x * y2) - (y3 * z)))))) - (-1.0 * (c * (y * (y3 * y4))));
} else if (t <= 3.7e-181) {
tmp = x * (fma(y, t_3, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (t <= 3.5e+116) {
tmp = y2 * (fma(k, t_4, (x * t_1)) - (t * t_2));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(c * y4) - Float64(a * y5)) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (t <= -4.5e+154) tmp = Float64(-1.0 * Float64(z * Float64(t * t_3))); elseif (t <= -2.4e+112) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_2)))); elseif (t <= -6.2e-107) tmp = Float64(fma(b, Float64(y4 * Float64(Float64(j * t) - Float64(k * y))), fma(y1, Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3))), fma(t_3, Float64(Float64(x * y) - Float64(t * z)), Float64(t_1 * Float64(Float64(x * y2) - Float64(y3 * z)))))) - Float64(-1.0 * Float64(c * Float64(y * Float64(y3 * y4))))); elseif (t <= 3.7e-181) tmp = Float64(x * Float64(fma(y, t_3, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= 3.5e+116) tmp = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_2))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+154], N[(-1.0 * N[(z * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.4e+112], N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.2e-107], N[(N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$3 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\
\mathbf{elif}\;t \leq -2.4 \cdot 10^{+112}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\
\mathbf{elif}\;t \leq -6.2 \cdot 10^{-107}:\\
\;\;\;\;\mathsf{fma}\left(b, y4 \cdot \left(j \cdot t - k \cdot y\right), \mathsf{fma}\left(y1, y4 \cdot \left(k \cdot y2 - j \cdot y3\right), \mathsf{fma}\left(t\_3, x \cdot y - t \cdot z, t\_1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\right) - -1 \cdot \left(c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -4.50000000000000009e154Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -4.50000000000000009e154 < t < -2.4e112Initial program 30.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if -2.4e112 < t < -6.20000000000000043e-107Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6436.3
Applied rewrites36.3%
if -6.20000000000000043e-107 < t < 3.69999999999999984e-181Initial program 30.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
if 3.69999999999999984e-181 < t < 3.49999999999999997e116Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 3.49999999999999997e116 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2
(*
y2
(-
(fma k t_1 (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5))))))
(t_3 (* i (- (* x y) (* t z))))
(t_4 (* y4 (- (* t y2) (* y y3)))))
(if (<= c -2.2e+120)
(* c (- (fma -1.0 t_3 (* y0 (- (* x y2) (* y3 z)))) t_4))
(if (<= c -2.7e+66)
t_2
(if (<= c 1.55e-170)
(*
k
(-
(fma -1.0 (* y (- (* b y4) (* i y5))) (* y2 t_1))
(* -1.0 (* z (- (* b y0) (* i y1))))))
(if (<= c 5.1e-137)
(* a (* y (- (* b x) (* y3 y5))))
(if (<= c 2.1e+109) t_2 (* c (- (* -1.0 t_3) t_4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = y2 * (fma(k, t_1, (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
double t_3 = i * ((x * y) - (t * z));
double t_4 = y4 * ((t * y2) - (y * y3));
double tmp;
if (c <= -2.2e+120) {
tmp = c * (fma(-1.0, t_3, (y0 * ((x * y2) - (y3 * z)))) - t_4);
} else if (c <= -2.7e+66) {
tmp = t_2;
} else if (c <= 1.55e-170) {
tmp = k * (fma(-1.0, (y * ((b * y4) - (i * y5))), (y2 * t_1)) - (-1.0 * (z * ((b * y0) - (i * y1)))));
} else if (c <= 5.1e-137) {
tmp = a * (y * ((b * x) - (y3 * y5)));
} else if (c <= 2.1e+109) {
tmp = t_2;
} else {
tmp = c * ((-1.0 * t_3) - t_4);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(y2 * Float64(fma(k, t_1, Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) t_3 = Float64(i * Float64(Float64(x * y) - Float64(t * z))) t_4 = Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (c <= -2.2e+120) tmp = Float64(c * Float64(fma(-1.0, t_3, Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - t_4)); elseif (c <= -2.7e+66) tmp = t_2; elseif (c <= 1.55e-170) tmp = Float64(k * Float64(fma(-1.0, Float64(y * Float64(Float64(b * y4) - Float64(i * y5))), Float64(y2 * t_1)) - Float64(-1.0 * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))))); elseif (c <= 5.1e-137) tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); elseif (c <= 2.1e+109) tmp = t_2; else tmp = Float64(c * Float64(Float64(-1.0 * t_3) - t_4)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * t$95$1 + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e+120], N[(c * N[(N[(-1.0 * t$95$3 + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e+66], t$95$2, If[LessEqual[c, 1.55e-170], N[(k * N[(N[(-1.0 * N[(y * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e-137], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+109], t$95$2, N[(c * N[(N[(-1.0 * t$95$3), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := y2 \cdot \left(\mathsf{fma}\left(k, t\_1, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_3 := i \cdot \left(x \cdot y - t \cdot z\right)\\
t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{+120}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{-170}:\\
\;\;\;\;k \cdot \left(\mathsf{fma}\left(-1, y \cdot \left(b \cdot y4 - i \cdot y5\right), y2 \cdot t\_1\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\
\end{array}
\end{array}
if c < -2.2000000000000001e120Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
if -2.2000000000000001e120 < c < -2.7e66 or 5.1000000000000004e-137 < c < 2.1000000000000001e109Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if -2.7e66 < c < 1.54999999999999993e-170Initial program 30.1%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if 1.54999999999999993e-170 < c < 5.1000000000000004e-137Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 2.1000000000000001e109 < c Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y0 around 0
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* c y4) (* a y5)))
(t_3 (- (* a b) (* c i)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (* y2 (- (fma k t_4 (* x t_1)) (* t t_2)))))
(if (<= t -4.5e+154)
(* -1.0 (* z (* t t_3)))
(if (<= t -1.65e+110)
(* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_2))))
(if (<= t -1.1e-57)
t_5
(if (<= t 3.7e-181)
(* x (- (fma y t_3 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
(if (<= t 3.5e+116)
t_5
(* b (* t (fma -1.0 (* a z) (* j 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 = (c * y0) - (a * y1);
double t_2 = (c * y4) - (a * y5);
double t_3 = (a * b) - (c * i);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = y2 * (fma(k, t_4, (x * t_1)) - (t * t_2));
double tmp;
if (t <= -4.5e+154) {
tmp = -1.0 * (z * (t * t_3));
} else if (t <= -1.65e+110) {
tmp = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_2)));
} else if (t <= -1.1e-57) {
tmp = t_5;
} else if (t <= 3.7e-181) {
tmp = x * (fma(y, t_3, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (t <= 3.5e+116) {
tmp = t_5;
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(c * y4) - Float64(a * y5)) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_2))) tmp = 0.0 if (t <= -4.5e+154) tmp = Float64(-1.0 * Float64(z * Float64(t * t_3))); elseif (t <= -1.65e+110) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_2)))); elseif (t <= -1.1e-57) tmp = t_5; elseif (t <= 3.7e-181) tmp = Float64(x * Float64(fma(y, t_3, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= 3.5e+116) tmp = t_5; else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+154], N[(-1.0 * N[(z * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.65e+110], N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.1e-57], t$95$5, If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$3 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], t$95$5, N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_2\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_3\right)\right)\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{+110}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\
\mathbf{elif}\;t \leq -1.1 \cdot 10^{-57}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -4.50000000000000009e154Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -4.50000000000000009e154 < t < -1.64999999999999986e110Initial program 30.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if -1.64999999999999986e110 < t < -1.09999999999999999e-57 or 3.69999999999999984e-181 < t < 3.49999999999999997e116Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if -1.09999999999999999e-57 < t < 3.69999999999999984e-181Initial program 30.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
if 3.49999999999999997e116 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1))) (t_2 (- (* a b) (* c i))))
(if (<= t -1.05e+180)
(* -1.0 (* z (* t t_2)))
(if (<= t -5.6e-59)
(*
c
(-
(fma -1.0 (* i (- (* x y) (* t z))) (* y0 (- (* x y2) (* y3 z))))
(* y2 (fma -1.0 (/ (* y (* y3 y4)) y2) (* t y4)))))
(if (<= t 3.7e-181)
(* x (- (fma y t_2 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
(if (<= t 3.5e+116)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_1))
(* t (- (* c y4) (* a y5)))))
(* b (* t (fma -1.0 (* a z) (* j 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 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double tmp;
if (t <= -1.05e+180) {
tmp = -1.0 * (z * (t * t_2));
} else if (t <= -5.6e-59) {
tmp = c * (fma(-1.0, (i * ((x * y) - (t * z))), (y0 * ((x * y2) - (y3 * z)))) - (y2 * fma(-1.0, ((y * (y3 * y4)) / y2), (t * y4))));
} else if (t <= 3.7e-181) {
tmp = x * (fma(y, t_2, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (t <= 3.5e+116) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(a * b) - Float64(c * i)) tmp = 0.0 if (t <= -1.05e+180) tmp = Float64(-1.0 * Float64(z * Float64(t * t_2))); elseif (t <= -5.6e-59) tmp = Float64(c * Float64(fma(-1.0, Float64(i * Float64(Float64(x * y) - Float64(t * z))), Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(y2 * fma(-1.0, Float64(Float64(y * Float64(y3 * y4)) / y2), Float64(t * y4))))); elseif (t <= 3.7e-181) tmp = Float64(x * Float64(fma(y, t_2, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (t <= 3.5e+116) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e+180], N[(-1.0 * N[(z * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.6e-59], N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(-1.0 * N[(N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] / y2), $MachinePrecision] + N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-181], N[(x * N[(N[(y * t$95$2 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e+116], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot b - c \cdot i\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+180}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_2\right)\right)\\
\mathbf{elif}\;t \leq -5.6 \cdot 10^{-59}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - y2 \cdot \mathsf{fma}\left(-1, \frac{y \cdot \left(y3 \cdot y4\right)}{y2}, t \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_2, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+116}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -1.05e180Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -1.05e180 < t < -5.59999999999999961e-59Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6435.8
Applied rewrites35.8%
if -5.59999999999999961e-59 < t < 3.69999999999999984e-181Initial program 30.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
if 3.69999999999999984e-181 < t < 3.49999999999999997e116Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 3.49999999999999997e116 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(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
(*
c
(-
(fma -1.0 (* i (- (* x y) (* t z))) (* -1.0 (* y0 (* y3 z))))
(* -1.0 (* y (* y3 y4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((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 = c * (fma(-1.0, (i * ((x * y) - (t * z))), (-1.0 * (y0 * (y3 * z)))) - (-1.0 * (y * (y3 * y4))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(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(c * Float64(fma(-1.0, Float64(i * Float64(Float64(x * y) - Float64(t * z))), Float64(-1.0 * Float64(y0 * Float64(y3 * z)))) - Float64(-1.0 * Float64(y * Float64(y3 * y4))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(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[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 * N[(y0 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(x \cdot y - t \cdot z\right), -1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right) - -1 \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 30.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 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y2 around 0
lower--.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6433.2
Applied rewrites33.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (- (* c y4) (* a y5))))
(t_2 (- (* x y) (* t z)))
(t_3 (* i t_2))
(t_4 (* y4 (- (* t y2) (* y y3)))))
(if (<= c -2.3e+109)
(* c (- (fma -1.0 t_3 (* y0 (- (* x y2) (* y3 z)))) t_4))
(if (<= c -1.45e-24)
(* y2 (- (* k (* y1 y4)) t_1))
(if (<= c 5e-137)
(*
b
(-
(fma a t_2 (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))
(if (<= c 2.1e+109)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
t_1))
(* c (- (* -1.0 t_3) t_4))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * ((c * y4) - (a * y5));
double t_2 = (x * y) - (t * z);
double t_3 = i * t_2;
double t_4 = y4 * ((t * y2) - (y * y3));
double tmp;
if (c <= -2.3e+109) {
tmp = c * (fma(-1.0, t_3, (y0 * ((x * y2) - (y3 * z)))) - t_4);
} else if (c <= -1.45e-24) {
tmp = y2 * ((k * (y1 * y4)) - t_1);
} else if (c <= 5e-137) {
tmp = b * (fma(a, t_2, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else if (c <= 2.1e+109) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - t_1);
} else {
tmp = c * ((-1.0 * t_3) - t_4);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(Float64(c * y4) - Float64(a * y5))) t_2 = Float64(Float64(x * y) - Float64(t * z)) t_3 = Float64(i * t_2) t_4 = Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3))) tmp = 0.0 if (c <= -2.3e+109) tmp = Float64(c * Float64(fma(-1.0, t_3, Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) - t_4)); elseif (c <= -1.45e-24) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - t_1)); elseif (c <= 5e-137) tmp = Float64(b * Float64(fma(a, t_2, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (c <= 2.1e+109) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - t_1)); else tmp = Float64(c * Float64(Float64(-1.0 * t_3) - 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[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.3e+109], N[(c * N[(N[(-1.0 * t$95$3 + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.45e-24], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5e-137], N[(b * N[(N[(a * t$95$2 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e+109], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(-1.0 * t$95$3), $MachinePrecision] - t$95$4), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot y4 - a \cdot y5\right)\\
t_2 := x \cdot y - t \cdot z\\
t_3 := i \cdot t\_2\\
t_4 := y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\\
\mathbf{if}\;c \leq -2.3 \cdot 10^{+109}:\\
\;\;\;\;c \cdot \left(\mathsf{fma}\left(-1, t\_3, y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - t\_4\right)\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t\_1\right)\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{+109}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(-1 \cdot t\_3 - t\_4\right)\\
\end{array}
\end{array}
if c < -2.3000000000000001e109Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
if -2.3000000000000001e109 < c < -1.4499999999999999e-24Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if -1.4499999999999999e-24 < c < 5.00000000000000001e-137Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
if 5.00000000000000001e-137 < c < 2.1000000000000001e109Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 2.1000000000000001e109 < c Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y0 around 0
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
c
(-
(* -1.0 (* i (- (* x y) (* t z))))
(* y4 (- (* t y2) (* y y3)))))))
(if (<= c -4.7e+176)
(* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
(if (<= c -2.8e+109)
t_1
(if (<= c -4.4e-159)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(if (<= c 5.6e-240)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= c 4.2e-108)
(* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
(if (<= c 2150000000000.0)
(* b (* y4 (- (* j t) (* k y))))
(if (<= c 2.3e+89)
(* -1.0 (* z (* -1.0 (* y1 (- (* a y3) (* i k))))))
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 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
double tmp;
if (c <= -4.7e+176) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (c <= -2.8e+109) {
tmp = t_1;
} else if (c <= -4.4e-159) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else if (c <= 5.6e-240) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (c <= 4.2e-108) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (c <= 2150000000000.0) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (c <= 2.3e+89) {
tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))));
} 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 = c * (((-1.0d0) * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))))
if (c <= (-4.7d+176)) then
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
else if (c <= (-2.8d+109)) then
tmp = t_1
else if (c <= (-4.4d-159)) then
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
else if (c <= 5.6d-240) then
tmp = b * ((-1.0d0) * (k * ((y * y4) - (y0 * z))))
else if (c <= 4.2d-108) then
tmp = y2 * ((-1.0d0) * (a * ((x * y1) - (t * y5))))
else if (c <= 2150000000000.0d0) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (c <= 2.3d+89) then
tmp = (-1.0d0) * (z * ((-1.0d0) * (y1 * ((a * y3) - (i * k)))))
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 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
double tmp;
if (c <= -4.7e+176) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (c <= -2.8e+109) {
tmp = t_1;
} else if (c <= -4.4e-159) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else if (c <= 5.6e-240) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (c <= 4.2e-108) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (c <= 2150000000000.0) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (c <= 2.3e+89) {
tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k)))));
} 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 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3)))) tmp = 0 if c <= -4.7e+176: tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z)))) elif c <= -2.8e+109: tmp = t_1 elif c <= -4.4e-159: tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5)))) elif c <= 5.6e-240: tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z)))) elif c <= 4.2e-108: tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5)))) elif c <= 2150000000000.0: tmp = b * (y4 * ((j * t) - (k * y))) elif c <= 2.3e+89: tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k))))) 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(c * Float64(Float64(-1.0 * Float64(i * Float64(Float64(x * y) - Float64(t * z)))) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3))))) tmp = 0.0 if (c <= -4.7e+176) tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z))))); elseif (c <= -2.8e+109) tmp = t_1; elseif (c <= -4.4e-159) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (c <= 5.6e-240) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (c <= 4.2e-108) tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (c <= 2150000000000.0) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (c <= 2.3e+89) tmp = Float64(-1.0 * Float64(z * Float64(-1.0 * Float64(y1 * Float64(Float64(a * y3) - Float64(i * k)))))); 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 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3)))); tmp = 0.0; if (c <= -4.7e+176) tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z)))); elseif (c <= -2.8e+109) tmp = t_1; elseif (c <= -4.4e-159) tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5)))); elseif (c <= 5.6e-240) tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z)))); elseif (c <= 4.2e-108) tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5)))); elseif (c <= 2150000000000.0) tmp = b * (y4 * ((j * t) - (k * y))); elseif (c <= 2.3e+89) tmp = -1.0 * (z * (-1.0 * (y1 * ((a * y3) - (i * k))))); 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[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$1, If[LessEqual[c, -4.4e-159], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.6e-240], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e-108], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2150000000000.0], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e+89], N[(-1.0 * N[(z * N[(-1.0 * N[(y1 * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-108}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;c \leq 2150000000000:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+89}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y3 - i \cdot k\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.69999999999999981e176Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 2.2999999999999999e89 < c Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y0 around 0
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
if -2.8000000000000002e109 < c < -4.4e-159Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if -4.4e-159 < c < 5.5999999999999998e-240Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 5.5999999999999998e-240 < c < 4.1999999999999998e-108Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if 4.1999999999999998e-108 < c < 2.15e12Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 2.15e12 < c < 2.2999999999999999e89Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
c
(- (* -1.0 (* i (- (* x y) (* t z)))) (* y4 (- (* t y2) (* y y3))))))
(t_2 (* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))))
(if (<= c -4.7e+176)
(* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
(if (<= c -2.8e+109)
t_1
(if (<= c -4.4e-159)
t_2
(if (<= c 6.2e-240)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= c 9.2e-96)
t_2
(if (<= c 3.5e+89)
(*
j
(-
(fma -1.0 (* y1 (* y3 y4)) (* b (* t y4)))
(* x (- (* b y0) (* i y1)))))
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-1.0 * (i * ((x * y) - (t * z)))) - (y4 * ((t * y2) - (y * y3))));
double t_2 = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
double tmp;
if (c <= -4.7e+176) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (c <= -2.8e+109) {
tmp = t_1;
} else if (c <= -4.4e-159) {
tmp = t_2;
} else if (c <= 6.2e-240) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (c <= 9.2e-96) {
tmp = t_2;
} else if (c <= 3.5e+89) {
tmp = j * (fma(-1.0, (y1 * (y3 * y4)), (b * (t * y4))) - (x * ((b * y0) - (i * y1))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(-1.0 * Float64(i * Float64(Float64(x * y) - Float64(t * z)))) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3))))) t_2 = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) tmp = 0.0 if (c <= -4.7e+176) tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z))))); elseif (c <= -2.8e+109) tmp = t_1; elseif (c <= -4.4e-159) tmp = t_2; elseif (c <= 6.2e-240) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (c <= 9.2e-96) tmp = t_2; elseif (c <= 3.5e+89) tmp = Float64(j * Float64(fma(-1.0, Float64(y1 * Float64(y3 * y4)), Float64(b * Float64(t * y4))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[(-1.0 * N[(i * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$1, If[LessEqual[c, -4.4e-159], t$95$2, If[LessEqual[c, 6.2e-240], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e-96], t$95$2, If[LessEqual[c, 3.5e+89], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(-1 \cdot \left(i \cdot \left(x \cdot y - t \cdot z\right)\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_2 := y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -4.4 \cdot 10^{-159}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-96}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{+89}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y1 \cdot \left(y3 \cdot y4\right), b \cdot \left(t \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.69999999999999981e176Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 3.5000000000000001e89 < c Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y0 around 0
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
if -2.8000000000000002e109 < c < -4.4e-159 or 6.20000000000000034e-240 < c < 9.2e-96Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if -4.4e-159 < c < 6.20000000000000034e-240Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 9.2e-96 < c < 3.5000000000000001e89Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
Applied rewrites34.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j x) (* k z)))
(t_2 (- (* x y) (* t z)))
(t_3 (* c (- (* -1.0 (* i t_2)) (* y4 (- (* t y2) (* y y3)))))))
(if (<= c -4.7e+176)
(* y0 (- (* c (- (* x y2) (* y3 z))) (* b t_1)))
(if (<= c -2.8e+109)
t_3
(if (<= c -1.45e-24)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(if (<= c 3.2e+92)
(* b (- (fma a t_2 (* y4 (- (* j t) (* k y)))) (* y0 t_1)))
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 = (j * x) - (k * z);
double t_2 = (x * y) - (t * z);
double t_3 = c * ((-1.0 * (i * t_2)) - (y4 * ((t * y2) - (y * y3))));
double tmp;
if (c <= -4.7e+176) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * t_1));
} else if (c <= -2.8e+109) {
tmp = t_3;
} else if (c <= -1.45e-24) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else if (c <= 3.2e+92) {
tmp = b * (fma(a, t_2, (y4 * ((j * t) - (k * y)))) - (y0 * t_1));
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * x) - Float64(k * z)) t_2 = Float64(Float64(x * y) - Float64(t * z)) t_3 = Float64(c * Float64(Float64(-1.0 * Float64(i * t_2)) - Float64(y4 * Float64(Float64(t * y2) - Float64(y * y3))))) tmp = 0.0 if (c <= -4.7e+176) tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * t_1))); elseif (c <= -2.8e+109) tmp = t_3; elseif (c <= -1.45e-24) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (c <= 3.2e+92) tmp = Float64(b * Float64(fma(a, t_2, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * t_1))); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(-1.0 * N[(i * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y4 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.7e+176], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e+109], t$95$3, If[LessEqual[c, -1.45e-24], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e+92], N[(b * N[(N[(a * t$95$2 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot x - k \cdot z\\
t_2 := x \cdot y - t \cdot z\\
t_3 := c \cdot \left(-1 \cdot \left(i \cdot t\_2\right) - y4 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;c \leq -4.7 \cdot 10^{+176}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot t\_1\right)\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{+109}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-24}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{+92}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if c < -4.69999999999999981e176Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
if -4.69999999999999981e176 < c < -2.8000000000000002e109 or 3.20000000000000025e92 < c Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y0 around 0
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
if -2.8000000000000002e109 < c < -1.4499999999999999e-24Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if -1.4499999999999999e-24 < c < 3.20000000000000025e92Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z))))
(if (<= b -1.45e+56)
(*
b
(- (fma a t_1 (* y4 (- (* j t) (* k y)))) (* y0 (- (* j x) (* k z)))))
(if (<= b 1.4e+157)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(* a (* 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 = (x * y) - (t * z);
double tmp;
if (b <= -1.45e+56) {
tmp = b * (fma(a, t_1, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else if (b <= 1.4e+157) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else {
tmp = a * (b * 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(x * y) - Float64(t * z)) tmp = 0.0 if (b <= -1.45e+56) tmp = Float64(b * Float64(fma(a, t_1, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (b <= 1.4e+157) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(a * Float64(b * 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+56], N[(b * N[(N[(a * t$95$1 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+157], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\end{array}
\end{array}
if b < -1.45000000000000004e56Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
if -1.45000000000000004e56 < b < 1.4000000000000001e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 1.4000000000000001e157 < b Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -8.4e+181)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -4.6e+70)
(* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
(if (<= z -1.2e+23)
(* -1.0 (* y3 (* y4 (- (* j y1) (* c y)))))
(if (<= z 2.7e+26)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(* -1.0 (* t (* z (- (* a b) (* c i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.4e+181) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -4.6e+70) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (z <= -1.2e+23) {
tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
} else if (z <= 2.7e+26) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = -1.0 * (t * (z * ((a * b) - (c * i))));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-8.4d+181)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= (-4.6d+70)) then
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))))
else if (z <= (-1.2d+23)) then
tmp = (-1.0d0) * (y3 * (y4 * ((j * y1) - (c * y))))
else if (z <= 2.7d+26) then
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))))
else
tmp = (-1.0d0) * (t * (z * ((a * b) - (c * i))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.4e+181) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -4.6e+70) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (z <= -1.2e+23) {
tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
} else if (z <= 2.7e+26) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = -1.0 * (t * (z * ((a * b) - (c * i))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -8.4e+181: tmp = i * (z * ((c * t) - (k * y1))) elif z <= -4.6e+70: tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z)))) elif z <= -1.2e+23: tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y)))) elif z <= 2.7e+26: tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5)))) else: tmp = -1.0 * (t * (z * ((a * b) - (c * i)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -8.4e+181) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -4.6e+70) tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z))))); elseif (z <= -1.2e+23) tmp = Float64(-1.0 * Float64(y3 * Float64(y4 * Float64(Float64(j * y1) - Float64(c * y))))); elseif (z <= 2.7e+26) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(-1.0 * Float64(t * Float64(z * Float64(Float64(a * b) - Float64(c * i))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -8.4e+181) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= -4.6e+70) tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z)))); elseif (z <= -1.2e+23) tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y)))); elseif (z <= 2.7e+26) tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5)))); else tmp = -1.0 * (t * (z * ((a * b) - (c * i)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -8.4e+181], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e+70], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.2e+23], N[(-1.0 * N[(y3 * N[(y4 * N[(N[(j * y1), $MachinePrecision] - N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e+26], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(t * N[(z * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.4 \cdot 10^{+181}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{+70}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+23}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+26}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(t \cdot \left(z \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\end{array}
\end{array}
if z < -8.39999999999999989e181Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -8.39999999999999989e181 < z < -4.59999999999999987e70Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
if -4.59999999999999987e70 < z < -1.2e23Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if -1.2e23 < z < 2.7e26Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if 2.7e26 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i))))
(if (<= t -1.1e+188)
(* -1.0 (* z (* t t_1)))
(if (<= t 1.6e-104)
(* y (- (fma -1.0 (* b (* k y4)) (* x t_1)) (* -1.0 (* c (* y3 y4)))))
(if (<= t 1.5e+100)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(* b (* t (fma -1.0 (* a z) (* j 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 = (a * b) - (c * i);
double tmp;
if (t <= -1.1e+188) {
tmp = -1.0 * (z * (t * t_1));
} else if (t <= 1.6e-104) {
tmp = y * (fma(-1.0, (b * (k * y4)), (x * t_1)) - (-1.0 * (c * (y3 * y4))));
} else if (t <= 1.5e+100) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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(a * b) - Float64(c * i)) tmp = 0.0 if (t <= -1.1e+188) tmp = Float64(-1.0 * Float64(z * Float64(t * t_1))); elseif (t <= 1.6e-104) tmp = Float64(y * Float64(fma(-1.0, Float64(b * Float64(k * y4)), Float64(x * t_1)) - Float64(-1.0 * Float64(c * Float64(y3 * y4))))); elseif (t <= 1.5e+100) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * 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[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e+188], N[(-1.0 * N[(z * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-104], N[(y * N[(N[(-1.0 * N[(b * N[(k * y4), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(c * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+100], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{+188}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot t\_1\right)\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-104}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, b \cdot \left(k \cdot y4\right), x \cdot t\_1\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -1.09999999999999999e188Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -1.09999999999999999e188 < t < 1.59999999999999994e-104Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.9%
if 1.59999999999999994e-104 < t < 1.49999999999999993e100Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if 1.49999999999999993e100 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -4e+147)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -5.4e-52)
(* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
(if (<= t 1e-155)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.5e+100)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -4e+147) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -5.4e-52) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (t <= 1e-155) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.5e+100) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -4e+147) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -5.4e-52) tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (t <= 1e-155) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.5e+100) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -4e+147], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-155], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+100], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;t \leq 10^{-155}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+100}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -3.9999999999999999e147Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -3.9999999999999999e147 < t < -5.40000000000000019e-52Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -5.40000000000000019e-52 < t < 1.00000000000000001e-155Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.00000000000000001e-155 < t < 1.49999999999999993e100Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f6430.4
Applied rewrites30.4%
if 1.49999999999999993e100 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -5.4e+14)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -6.2e-93)
(* c (* y (* y3 y4)))
(if (<= y5 -2.6e-301)
(* b (* t (fma -1.0 (* a z) (* j y4))))
(if (<= y5 1.4e-129)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 9.5e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* 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 (y5 <= -5.4e+14) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -6.2e-93) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -2.6e-301) {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
} else if (y5 <= 1.4e-129) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 9.5e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((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 (y5 <= -5.4e+14) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -6.2e-93) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -2.6e-301) tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); elseif (y5 <= 1.4e-129) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 9.5e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - 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[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6.2e-93], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-301], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.4e-129], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -6.2 \cdot 10^{-93}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-301}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -5.4e14Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
if -5.4e14 < y5 < -6.19999999999999999e-93Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -6.19999999999999999e-93 < y5 < -2.5999999999999998e-301Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
if -2.5999999999999998e-301 < y5 < 1.4e-129Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.4e-129 < y5 < 9.4999999999999996e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 9.4999999999999996e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -5.4e+14)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -3.3e-97)
(* c (* y (* y3 y4)))
(if (<= y5 -6e-176)
(* b (* y4 (- (* j t) (* k y))))
(if (<= y5 8.4e-131)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= y5 9.5e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* 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 (y5 <= -5.4e+14) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -3.3e-97) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -6e-176) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (y5 <= 8.4e-131) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (y5 <= 9.5e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((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 (y5 <= -5.4e+14) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -3.3e-97) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -6e-176) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (y5 <= 8.4e-131) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (y5 <= 9.5e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - 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[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.3e-97], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6e-176], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8.4e-131], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -3.3 \cdot 10^{-97}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -6 \cdot 10^{-176}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 8.4 \cdot 10^{-131}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -5.4e14Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
if -5.4e14 < y5 < -3.3000000000000001e-97Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -3.3000000000000001e-97 < y5 < -6e-176Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -6e-176 < y5 < 8.39999999999999988e-131Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 8.39999999999999988e-131 < y5 < 9.4999999999999996e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 9.4999999999999996e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -5.4e+14)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -2.8e-94)
(* c (* y (* y3 y4)))
(if (<= y5 -3.7e-301)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y5 1.4e-129)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 9.5e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* 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 (y5 <= -5.4e+14) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -2.8e-94) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -3.7e-301) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 1.4e-129) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 9.5e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (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 (y5 <= (-5.4d+14)) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (y5 <= (-2.8d-94)) then
tmp = c * (y * (y3 * y4))
else if (y5 <= (-3.7d-301)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y5 <= 1.4d-129) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y5 <= 9.5d+157) then
tmp = y2 * (y4 * ((k * y1) - (c * t)))
else
tmp = a * (y * ((b * x) - (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 (y5 <= -5.4e+14) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -2.8e-94) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -3.7e-301) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 1.4e-129) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 9.5e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (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 y5 <= -5.4e+14: tmp = t * (y2 * ((a * y5) - (c * y4))) elif y5 <= -2.8e-94: tmp = c * (y * (y3 * y4)) elif y5 <= -3.7e-301: tmp = b * (j * ((t * y4) - (x * y0))) elif y5 <= 1.4e-129: tmp = a * (b * ((x * y) - (t * z))) elif y5 <= 9.5e+157: tmp = y2 * (y4 * ((k * y1) - (c * t))) else: tmp = a * (y * ((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 (y5 <= -5.4e+14) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -2.8e-94) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -3.7e-301) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y5 <= 1.4e-129) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 9.5e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - 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 (y5 <= -5.4e+14) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (y5 <= -2.8e-94) tmp = c * (y * (y3 * y4)); elseif (y5 <= -3.7e-301) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y5 <= 1.4e-129) tmp = a * (b * ((x * y) - (t * z))); elseif (y5 <= 9.5e+157) tmp = y2 * (y4 * ((k * y1) - (c * t))); else tmp = a * (y * ((b * x) - (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[LessEqual[y5, -5.4e+14], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.8e-94], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.7e-301], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.4e-129], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.5e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.4 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -2.8 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -3.7 \cdot 10^{-301}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 1.4 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -5.4e14Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
if -5.4e14 < y5 < -2.7999999999999998e-94Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -2.7999999999999998e-94 < y5 < -3.6999999999999998e-301Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -3.6999999999999998e-301 < y5 < 1.4e-129Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.4e-129 < y5 < 9.4999999999999996e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 9.4999999999999996e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -4e+147)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -5.4e-52)
(* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
(if (<= t 3.1e-152)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.05e+96)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -4e+147) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -5.4e-52) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (t <= 3.1e-152) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.05e+96) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -4e+147) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -5.4e-52) tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (t <= 3.1e-152) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.05e+96) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -4e+147], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -5.4e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+96], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+147}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -3.9999999999999999e147Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -3.9999999999999999e147 < t < -5.40000000000000019e-52Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -5.40000000000000019e-52 < t < 3.0999999999999998e-152Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 3.0999999999999998e-152 < t < 1.0500000000000001e96Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 1.0500000000000001e96 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -2.5e+76)
(* i (* t (fma -1.0 (* j y5) (* c z))))
(if (<= t -8.2e-118)
(* y2 (* y0 (fma -1.0 (* k y5) (* c x))))
(if (<= t 3.1e-152)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.05e+96)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -2.5e+76) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else if (t <= -8.2e-118) {
tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * x)));
} else if (t <= 3.1e-152) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.05e+96) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -2.5e+76) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); elseif (t <= -8.2e-118) tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (t <= 3.1e-152) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.05e+96) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -2.5e+76], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e-118], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+96], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+76}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{-118}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -2.49999999999999996e76Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -2.49999999999999996e76 < t < -8.2000000000000006e-118Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -8.2000000000000006e-118 < t < 3.0999999999999998e-152Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 3.0999999999999998e-152 < t < 1.0500000000000001e96Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 1.0500000000000001e96 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y4 (- (* y y3) (* t y2))))))
(if (<= y4 -8.5e+80)
t_1
(if (<= y4 -8.1e-141)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y4 1.8e+69)
(* a (* b (- (* x y) (* t z))))
(if (<= y4 8.5e+224) (* b (* y4 (- (* j t) (* k y)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y4 <= -8.5e+80) {
tmp = t_1;
} else if (y4 <= -8.1e-141) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y4 <= 1.8e+69) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y4 <= 8.5e+224) {
tmp = b * (y4 * ((j * t) - (k * y)));
} 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 = c * (y4 * ((y * y3) - (t * y2)))
if (y4 <= (-8.5d+80)) then
tmp = t_1
else if (y4 <= (-8.1d-141)) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y4 <= 1.8d+69) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y4 <= 8.5d+224) then
tmp = b * (y4 * ((j * t) - (k * y)))
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 = c * (y4 * ((y * y3) - (t * y2)));
double tmp;
if (y4 <= -8.5e+80) {
tmp = t_1;
} else if (y4 <= -8.1e-141) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y4 <= 1.8e+69) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y4 <= 8.5e+224) {
tmp = b * (y4 * ((j * t) - (k * y)));
} 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 = c * (y4 * ((y * y3) - (t * y2))) tmp = 0 if y4 <= -8.5e+80: tmp = t_1 elif y4 <= -8.1e-141: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y4 <= 1.8e+69: tmp = a * (b * ((x * y) - (t * z))) elif y4 <= 8.5e+224: tmp = b * (y4 * ((j * t) - (k * y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))) tmp = 0.0 if (y4 <= -8.5e+80) tmp = t_1; elseif (y4 <= -8.1e-141) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y4 <= 1.8e+69) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y4 <= 8.5e+224) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); 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 = c * (y4 * ((y * y3) - (t * y2))); tmp = 0.0; if (y4 <= -8.5e+80) tmp = t_1; elseif (y4 <= -8.1e-141) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y4 <= 1.8e+69) tmp = a * (b * ((x * y) - (t * z))); elseif (y4 <= 8.5e+224) tmp = b * (y4 * ((j * t) - (k * y))); 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[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -8.5e+80], t$95$1, If[LessEqual[y4, -8.1e-141], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.8e+69], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.5e+224], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y4 \leq -8.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -8.1 \cdot 10^{-141}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+69}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y4 \leq 8.5 \cdot 10^{+224}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -8.50000000000000007e80 or 8.50000000000000046e224 < y4 Initial program 30.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if -8.50000000000000007e80 < y4 < -8.0999999999999996e-141Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -8.0999999999999996e-141 < y4 < 1.8000000000000001e69Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.8000000000000001e69 < y4 < 8.50000000000000046e224Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.25e+194)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 5.3e-154)
(* b (* y4 (- (* j t) (* k y))))
(if (<= z 2.1e-11)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* a (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 5.3e-154) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 2.1e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (a * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1.25d+194)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 5.3d-154) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (z <= 2.1d-11) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else
tmp = b * (a * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 5.3e-154) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 2.1e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (a * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.25e+194: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 5.3e-154: tmp = b * (y4 * ((j * t) - (k * y))) elif z <= 2.1e-11: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) else: tmp = b * (a * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.25e+194) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 5.3e-154) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (z <= 2.1e-11) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1.25e+194) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 5.3e-154) tmp = b * (y4 * ((j * t) - (k * y))); elseif (z <= 2.1e-11) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); else tmp = b * (a * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-154], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-11], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.24999999999999997e194Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.24999999999999997e194 < z < 5.3000000000000002e-154Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 5.3000000000000002e-154 < z < 2.0999999999999999e-11Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 2.0999999999999999e-11 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.25e+194)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 5.3e-154)
(* b (* y4 (- (* j t) (* k y))))
(if (<= z 2.1e-11)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* a (* b (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 5.3e-154) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 2.1e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1.25d+194)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 5.3d-154) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (z <= 2.1d-11) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 5.3e-154) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 2.1e-11) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.25e+194: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 5.3e-154: tmp = b * (y4 * ((j * t) - (k * y))) elif z <= 2.1e-11: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.25e+194) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 5.3e-154) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (z <= 2.1e-11) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1.25e+194) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 5.3e-154) tmp = b * (y4 * ((j * t) - (k * y))); elseif (z <= 2.1e-11) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.3e-154], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e-11], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 5.3 \cdot 10^{-154}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-11}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.24999999999999997e194Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.24999999999999997e194 < z < 5.3000000000000002e-154Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 5.3000000000000002e-154 < z < 2.0999999999999999e-11Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 2.0999999999999999e-11 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.25e+194)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 7.4e-6)
(* b (* y4 (- (* j t) (* k y))))
(* a (* b (- (* x y) (* t z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 7.4e-6) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1.25d+194)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 7.4d-6) then
tmp = b * (y4 * ((j * t) - (k * y)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.25e+194) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 7.4e-6) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.25e+194: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 7.4e-6: tmp = b * (y4 * ((j * t) - (k * y))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.25e+194) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 7.4e-6) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1.25e+194) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 7.4e-6) tmp = b * (y4 * ((j * t) - (k * y))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.25e+194], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e-6], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+194}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{-6}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.24999999999999997e194Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.24999999999999997e194 < z < 7.4000000000000003e-6Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 7.4000000000000003e-6 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -3.5e+155)
(* i (* c (* t z)))
(if (<= t -2.6e+125)
(* c (* y (* y3 y4)))
(if (<= t 1.75e+95)
(* i (* k (- (* y y5) (* y1 z))))
(* -1.0 (* a (* (* b t) z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= -2.6e+125) {
tmp = c * (y * (y3 * y4));
} else if (t <= 1.75e+95) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = -1.0 * (a * ((b * t) * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-3.5d+155)) then
tmp = i * (c * (t * z))
else if (t <= (-2.6d+125)) then
tmp = c * (y * (y3 * y4))
else if (t <= 1.75d+95) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else
tmp = (-1.0d0) * (a * ((b * t) * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= -2.6e+125) {
tmp = c * (y * (y3 * y4));
} else if (t <= 1.75e+95) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = -1.0 * (a * ((b * t) * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -3.5e+155: tmp = i * (c * (t * z)) elif t <= -2.6e+125: tmp = c * (y * (y3 * y4)) elif t <= 1.75e+95: tmp = i * (k * ((y * y5) - (y1 * z))) else: tmp = -1.0 * (a * ((b * t) * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -3.5e+155) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (t <= -2.6e+125) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 1.75e+95) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); else tmp = Float64(-1.0 * Float64(a * Float64(Float64(b * t) * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -3.5e+155) tmp = i * (c * (t * z)); elseif (t <= -2.6e+125) tmp = c * (y * (y3 * y4)); elseif (t <= 1.75e+95) tmp = i * (k * ((y * y5) - (y1 * z))); else tmp = -1.0 * (a * ((b * t) * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.6e+125], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+95], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(N[(b * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{+125}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\
\end{array}
\end{array}
if t < -3.49999999999999985e155Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -3.49999999999999985e155 < t < -2.60000000000000003e125Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -2.60000000000000003e125 < t < 1.75e95Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
if 1.75e95 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y1 2.65e+112) (* a (* b (- (* x y) (* t z)))) (* i (* z (- (* c t) (* k y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 2.65e+112) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y1 <= 2.65d+112) then
tmp = a * (b * ((x * y) - (t * z)))
else
tmp = i * (z * ((c * t) - (k * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 2.65e+112) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 2.65e+112: tmp = a * (b * ((x * y) - (t * z))) else: tmp = i * (z * ((c * t) - (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= 2.65e+112) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y1 <= 2.65e+112) tmp = a * (b * ((x * y) - (t * z))); else tmp = i * (z * ((c * t) - (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, 2.65e+112], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 2.65 \cdot 10^{+112}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\end{array}
\end{array}
if y1 < 2.65000000000000009e112Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 2.65000000000000009e112 < y1 Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -3.2e-61)
(* i (* z (- (* c t) (* k y1))))
(if (<= t 1.75e+95)
(* i (* k (- (* y y5) (* y1 z))))
(* -1.0 (* a (* (* b t) z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.2e-61) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= 1.75e+95) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = -1.0 * (a * ((b * t) * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-3.2d-61)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (t <= 1.75d+95) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else
tmp = (-1.0d0) * (a * ((b * t) * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.2e-61) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= 1.75e+95) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = -1.0 * (a * ((b * t) * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -3.2e-61: tmp = i * (z * ((c * t) - (k * y1))) elif t <= 1.75e+95: tmp = i * (k * ((y * y5) - (y1 * z))) else: tmp = -1.0 * (a * ((b * t) * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -3.2e-61) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (t <= 1.75e+95) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); else tmp = Float64(-1.0 * Float64(a * Float64(Float64(b * t) * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -3.2e-61) tmp = i * (z * ((c * t) - (k * y1))); elseif (t <= 1.75e+95) tmp = i * (k * ((y * y5) - (y1 * z))); else tmp = -1.0 * (a * ((b * t) * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.2e-61], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+95], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(N[(b * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-61}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(\left(b \cdot t\right) \cdot z\right)\right)\\
\end{array}
\end{array}
if t < -3.2000000000000001e-61Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -3.2000000000000001e-61 < t < 1.75e95Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
if 1.75e95 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -3.5e+155)
(* i (* c (* t z)))
(if (<= t 2.4e-26)
(* c (* y (* y3 y4)))
(if (<= t 5e+145) (* a (* t (* y2 y5))) (- (* (* (* t z) b) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.4e-26) {
tmp = c * (y * (y3 * y4));
} else if (t <= 5e+145) {
tmp = a * (t * (y2 * y5));
} else {
tmp = -(((t * z) * b) * a);
}
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 <= (-3.5d+155)) then
tmp = i * (c * (t * z))
else if (t <= 2.4d-26) then
tmp = c * (y * (y3 * y4))
else if (t <= 5d+145) then
tmp = a * (t * (y2 * y5))
else
tmp = -(((t * z) * b) * a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.4e-26) {
tmp = c * (y * (y3 * y4));
} else if (t <= 5e+145) {
tmp = a * (t * (y2 * y5));
} else {
tmp = -(((t * z) * b) * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -3.5e+155: tmp = i * (c * (t * z)) elif t <= 2.4e-26: tmp = c * (y * (y3 * y4)) elif t <= 5e+145: tmp = a * (t * (y2 * y5)) else: tmp = -(((t * z) * b) * a) 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 <= -3.5e+155) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (t <= 2.4e-26) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 5e+145) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(-Float64(Float64(Float64(t * z) * b) * a)); 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 <= -3.5e+155) tmp = i * (c * (t * z)); elseif (t <= 2.4e-26) tmp = c * (y * (y3 * y4)); elseif (t <= 5e+145) tmp = a * (t * (y2 * y5)); else tmp = -(((t * z) * b) * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+145], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-N[(N[(N[(t * z), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision])]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+145}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-\left(\left(t \cdot z\right) \cdot b\right) \cdot a\\
\end{array}
\end{array}
if t < -3.49999999999999985e155Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -3.49999999999999985e155 < t < 2.4000000000000001e-26Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if 2.4000000000000001e-26 < t < 4.99999999999999967e145Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
if 4.99999999999999967e145 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
lift-*.f64N/A
mul-1-negN/A
Applied rewrites17.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -3.5e+155)
(* i (* c (* t z)))
(if (<= t 2.4e-26)
(* c (* y (* y3 y4)))
(if (<= t 5.5e+137) (* a (* t (* y2 y5))) (* c (* (* i t) z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.4e-26) {
tmp = c * (y * (y3 * y4));
} else if (t <= 5.5e+137) {
tmp = a * (t * (y2 * y5));
} else {
tmp = c * ((i * t) * z);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-3.5d+155)) then
tmp = i * (c * (t * z))
else if (t <= 2.4d-26) then
tmp = c * (y * (y3 * y4))
else if (t <= 5.5d+137) then
tmp = a * (t * (y2 * y5))
else
tmp = c * ((i * t) * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -3.5e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.4e-26) {
tmp = c * (y * (y3 * y4));
} else if (t <= 5.5e+137) {
tmp = a * (t * (y2 * y5));
} else {
tmp = c * ((i * t) * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -3.5e+155: tmp = i * (c * (t * z)) elif t <= 2.4e-26: tmp = c * (y * (y3 * y4)) elif t <= 5.5e+137: tmp = a * (t * (y2 * y5)) else: tmp = c * ((i * t) * z) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -3.5e+155) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (t <= 2.4e-26) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 5.5e+137) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(c * Float64(Float64(i * t) * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -3.5e+155) tmp = i * (c * (t * z)); elseif (t <= 2.4e-26) tmp = c * (y * (y3 * y4)); elseif (t <= 5.5e+137) tmp = a * (t * (y2 * y5)); else tmp = c * ((i * t) * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3.5e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-26], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+137], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(i * t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\right) \cdot z\right)\\
\end{array}
\end{array}
if t < -3.49999999999999985e155Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -3.49999999999999985e155 < t < 2.4000000000000001e-26Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if 2.4000000000000001e-26 < t < 5.5000000000000002e137Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
if 5.5000000000000002e137 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* c (* t z)))))
(if (<= z -9.2e+108)
t_1
(if (<= z -7.2e+48)
(* a (* y1 (* y3 z)))
(if (<= z 4.2e-42) (* t (* a (* 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 = i * (c * (t * z));
double tmp;
if (z <= -9.2e+108) {
tmp = t_1;
} else if (z <= -7.2e+48) {
tmp = a * (y1 * (y3 * z));
} else if (z <= 4.2e-42) {
tmp = t * (a * (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 = i * (c * (t * z))
if (z <= (-9.2d+108)) then
tmp = t_1
else if (z <= (-7.2d+48)) then
tmp = a * (y1 * (y3 * z))
else if (z <= 4.2d-42) then
tmp = t * (a * (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 = i * (c * (t * z));
double tmp;
if (z <= -9.2e+108) {
tmp = t_1;
} else if (z <= -7.2e+48) {
tmp = a * (y1 * (y3 * z));
} else if (z <= 4.2e-42) {
tmp = t * (a * (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 = i * (c * (t * z)) tmp = 0 if z <= -9.2e+108: tmp = t_1 elif z <= -7.2e+48: tmp = a * (y1 * (y3 * z)) elif z <= 4.2e-42: tmp = t * (a * (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(i * Float64(c * Float64(t * z))) tmp = 0.0 if (z <= -9.2e+108) tmp = t_1; elseif (z <= -7.2e+48) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); elseif (z <= 4.2e-42) tmp = Float64(t * Float64(a * Float64(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 = i * (c * (t * z)); tmp = 0.0; if (z <= -9.2e+108) tmp = t_1; elseif (z <= -7.2e+48) tmp = a * (y1 * (y3 * z)); elseif (z <= 4.2e-42) tmp = t * (a * (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[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.2e+108], t$95$1, If[LessEqual[z, -7.2e+48], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-42], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -9.2 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{+48}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.1999999999999996e108 or 4.20000000000000013e-42 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -9.1999999999999996e108 < z < -7.19999999999999967e48Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
if -7.19999999999999967e48 < z < 4.20000000000000013e-42Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f6417.1
Applied rewrites17.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* c (* t z))))) (if (<= z -5.8e+51) t_1 (if (<= z 4.2e-42) (* t (* a (* 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 = i * (c * (t * z));
double tmp;
if (z <= -5.8e+51) {
tmp = t_1;
} else if (z <= 4.2e-42) {
tmp = t * (a * (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 = i * (c * (t * z))
if (z <= (-5.8d+51)) then
tmp = t_1
else if (z <= 4.2d-42) then
tmp = t * (a * (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 = i * (c * (t * z));
double tmp;
if (z <= -5.8e+51) {
tmp = t_1;
} else if (z <= 4.2e-42) {
tmp = t * (a * (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 = i * (c * (t * z)) tmp = 0 if z <= -5.8e+51: tmp = t_1 elif z <= 4.2e-42: tmp = t * (a * (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(i * Float64(c * Float64(t * z))) tmp = 0.0 if (z <= -5.8e+51) tmp = t_1; elseif (z <= 4.2e-42) tmp = Float64(t * Float64(a * Float64(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 = i * (c * (t * z)); tmp = 0.0; if (z <= -5.8e+51) tmp = t_1; elseif (z <= 4.2e-42) tmp = t * (a * (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[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+51], t$95$1, If[LessEqual[z, 4.2e-42], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-42}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.7999999999999997e51 or 4.20000000000000013e-42 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -5.7999999999999997e51 < z < 4.20000000000000013e-42Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f6417.1
Applied rewrites17.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* c (* t z))))) (if (<= z -2.4e+50) t_1 (if (<= z 3.4e-42) (* 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 = i * (c * (t * z));
double tmp;
if (z <= -2.4e+50) {
tmp = t_1;
} else if (z <= 3.4e-42) {
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 = i * (c * (t * z))
if (z <= (-2.4d+50)) then
tmp = t_1
else if (z <= 3.4d-42) 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 = i * (c * (t * z));
double tmp;
if (z <= -2.4e+50) {
tmp = t_1;
} else if (z <= 3.4e-42) {
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 = i * (c * (t * z)) tmp = 0 if z <= -2.4e+50: tmp = t_1 elif z <= 3.4e-42: 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(i * Float64(c * Float64(t * z))) tmp = 0.0 if (z <= -2.4e+50) tmp = t_1; elseif (z <= 3.4e-42) tmp = Float64(a * Float64(t * Float64(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 = i * (c * (t * z)); tmp = 0.0; if (z <= -2.4e+50) tmp = t_1; elseif (z <= 3.4e-42) 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[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e+50], t$95$1, If[LessEqual[z, 3.4e-42], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-42}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.4000000000000002e50 or 3.40000000000000022e-42 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -2.4000000000000002e50 < z < 3.40000000000000022e-42Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* i c) (* t z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (i * c) * (t * z);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (i * c) * (t * z)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (i * c) * (t * z);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (i * c) * (t * z)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(i * c) * Float64(t * z)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (i * c) * (t * z); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(i * c), $MachinePrecision] * N[(t * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(i \cdot c\right) \cdot \left(t \cdot z\right)
\end{array}
Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6416.1
Applied rewrites16.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* c (* i (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = c * (i * (t * z))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * (i * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(i * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * (i * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(i \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
herbie shell --seed 2025142
(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
(+ (- (+ (+ (- (* (- (* 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)))))