
(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 25 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 (- (* t y2) (* y y3)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* a b) (* c i)))
(t_4 (- (* k y2) (* j y3))))
(if (<= x -2.7e+168)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -2.6e+56)
(+
(-
(* y (fma -1.0 (* k (- (* b y4) (* i y5))) (* x t_3)))
(* t_1 (- (* y4 c) (* y5 a))))
(* t_4 (- (* y4 y1) (* y5 y0))))
(if (<= x 3.1e-103)
(* -1.0 (* y5 (- (fma i t_2 (* y0 t_4)) (* a t_1))))
(if (<= x 1.4e+42)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_2))
(* y1 (- (* j x) (* k z))))))
(*
x
(-
(fma y t_3 (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i 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 t_1 = (t * y2) - (y * y3);
double t_2 = (j * t) - (k * y);
double t_3 = (a * b) - (c * i);
double t_4 = (k * y2) - (j * y3);
double tmp;
if (x <= -2.7e+168) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -2.6e+56) {
tmp = ((y * fma(-1.0, (k * ((b * y4) - (i * y5))), (x * t_3))) - (t_1 * ((y4 * c) - (y5 * a)))) + (t_4 * ((y4 * y1) - (y5 * y0)));
} else if (x <= 3.1e-103) {
tmp = -1.0 * (y5 * (fma(i, t_2, (y0 * t_4)) - (a * t_1)));
} else if (x <= 1.4e+42) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else {
tmp = x * (fma(y, t_3, (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (x <= -2.7e+168) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -2.6e+56) tmp = Float64(Float64(Float64(y * fma(-1.0, Float64(k * Float64(Float64(b * y4) - Float64(i * y5))), Float64(x * t_3))) - Float64(t_1 * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(t_4 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (x <= 3.1e-103) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_2, Float64(y0 * t_4)) - Float64(a * t_1)))); elseif (x <= 1.4e+42) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_2)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); else tmp = Float64(x * Float64(fma(y, t_3, Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+168], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.6e+56], N[(N[(N[(y * N[(-1.0 * N[(k * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e-103], N[(-1.0 * N[(y5 * N[(N[(i * t$95$2 + N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+42], N[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * t$95$3 + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := j \cdot t - k \cdot y\\
t_3 := a \cdot b - c \cdot i\\
t_4 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{+168}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{+56}:\\
\;\;\;\;\left(y \cdot \mathsf{fma}\left(-1, k \cdot \left(b \cdot y4 - i \cdot y5\right), x \cdot t\_3\right) - t\_1 \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + t\_4 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-103}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot t\_4\right) - a \cdot t\_1\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+42}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_3, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -2.70000000000000016e168Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -2.70000000000000016e168 < x < -2.60000000000000011e56Initial program 29.6%
Taylor expanded in y around inf
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-*.f6434.5
Applied rewrites34.5%
if -2.60000000000000011e56 < x < 3.1000000000000001e-103Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 3.1000000000000001e-103 < x < 1.4e42Initial program 29.6%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if 1.4e42 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y))) (t_2 (- (* c y0) (* a y1))))
(if (<= x -9.2e+130)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -1700000000000.0)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_2))
(* t (- (* c y4) (* a y5)))))
(if (<= x -4e-178)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= x 4.6e-298)
(*
y4
(-
(fma b t_1 (* y1 (- (* k y2) (* j y3))))
(* c (- (* t y2) (* y y3)))))
(if (<= x 1.4e+42)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_1))
(* y1 (- (* j x) (* k z))))))
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_2))
(* j (- (* b y0) (* i 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 t_1 = (j * t) - (k * y);
double t_2 = (c * y0) - (a * y1);
double tmp;
if (x <= -9.2e+130) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -1700000000000.0) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_2)) - (t * ((c * y4) - (a * y5))));
} else if (x <= -4e-178) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (x <= 4.6e-298) {
tmp = y4 * (fma(b, t_1, (y1 * ((k * y2) - (j * y3)))) - (c * ((t * y2) - (y * y3))));
} else if (x <= 1.4e+42) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_1)) - (y1 * ((j * x) - (k * z)))));
} else {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_2)) - (j * ((b * y0) - (i * y1))));
}
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 * t) - Float64(k * y)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (x <= -9.2e+130) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -1700000000000.0) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_2)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (x <= -4e-178) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (x <= 4.6e-298) tmp = Float64(y4 * Float64(fma(b, t_1, Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (x <= 1.4e+42) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_1)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); else tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_2)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); 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 * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.2e+130], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1700000000000.0], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4e-178], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-298], N[(y4 * N[(N[(b * t$95$1 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+42], N[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;x \leq -9.2 \cdot 10^{+130}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1700000000000:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_2\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-178}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-298}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_1, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+42}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_1\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_2\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -9.20000000000000085e130Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -9.20000000000000085e130 < x < -1.7e12Initial program 29.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
if -1.7e12 < x < -3.9999999999999998e-178Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -3.9999999999999998e-178 < x < 4.6000000000000001e-298Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if 4.6000000000000001e-298 < x < 1.4e42Initial program 29.6%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if 1.4e42 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(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))) (t_2 (- (* j t) (* k y))))
(if (<= x -6.5e+132)
(* b (* a t_1))
(if (<= x 3.1e-103)
(*
-1.0
(*
y5
(-
(fma i t_2 (* y0 (- (* k y2) (* j y3))))
(* a (- (* t y2) (* y y3))))))
(if (<= x 1.4e+42)
(* -1.0 (* i (- (fma c t_1 (* y5 t_2)) (* y1 (- (* j x) (* k z))))))
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i 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 t_1 = (x * y) - (t * z);
double t_2 = (j * t) - (k * y);
double tmp;
if (x <= -6.5e+132) {
tmp = b * (a * t_1);
} else if (x <= 3.1e-103) {
tmp = -1.0 * (y5 * (fma(i, t_2, (y0 * ((k * y2) - (j * y3)))) - (a * ((t * y2) - (y * y3)))));
} else if (x <= 1.4e+42) {
tmp = -1.0 * (i * (fma(c, t_1, (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
}
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)) t_2 = Float64(Float64(j * t) - Float64(k * y)) tmp = 0.0 if (x <= -6.5e+132) tmp = Float64(b * Float64(a * t_1)); elseif (x <= 3.1e-103) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_2, Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (x <= 1.4e+42) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_1, Float64(y5 * t_2)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); else tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); 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]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e+132], N[(b * N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e-103], N[(-1.0 * N[(y5 * N[(N[(i * t$95$2 + N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+42], N[(-1.0 * N[(i * N[(N[(c * t$95$1 + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := j \cdot t - k \cdot y\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+132}:\\
\;\;\;\;b \cdot \left(a \cdot t\_1\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-103}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+42}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_1, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -6.4999999999999994e132Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if -6.4999999999999994e132 < x < 3.1000000000000001e-103Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 3.1000000000000001e-103 < x < 1.4e42Initial program 29.6%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if 1.4e42 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(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))))
(if (<= x -3.7e+170)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -1.25e-114)
(*
-1.0
(*
y5
(-
(fma -1.0 (* i (* k y)) (* y2 (- (* k y0) (* a t))))
(* -1.0 (* a (* y y3))))))
(if (<= x 6.5e-290)
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z t_1))
(* y (- (* c y4) (* a y5))))))
(if (<= x 1.4e+42)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 (- (* j t) (* k y))))
(* y1 (- (* j x) (* k z))))))
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_1))
(* j (- (* b y0) (* i 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 t_1 = (c * y0) - (a * y1);
double tmp;
if (x <= -3.7e+170) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -1.25e-114) {
tmp = -1.0 * (y5 * (fma(-1.0, (i * (k * y)), (y2 * ((k * y0) - (a * t)))) - (-1.0 * (a * (y * y3)))));
} else if (x <= 6.5e-290) {
tmp = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * t_1)) - (y * ((c * y4) - (a * y5)))));
} else if (x <= 1.4e+42) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * ((j * t) - (k * y)))) - (y1 * ((j * x) - (k * z)))));
} else {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
}
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)) tmp = 0.0 if (x <= -3.7e+170) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -1.25e-114) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(-1.0, Float64(i * Float64(k * y)), Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))) - Float64(-1.0 * Float64(a * Float64(y * y3)))))); elseif (x <= 6.5e-290) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(z * t_1)) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (x <= 1.4e+42) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); else tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); 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]}, If[LessEqual[x, -3.7e+170], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.25e-114], N[(-1.0 * N[(y5 * N[(N[(-1.0 * N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(a * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e-290], N[(-1.0 * N[(y3 * N[(N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+42], N[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+170}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1.25 \cdot 10^{-114}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(k \cdot y\right), y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y3\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-290}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot t\_1\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+42}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -3.69999999999999987e170Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -3.69999999999999987e170 < x < -1.24999999999999997e-114Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y2 around 0
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
if -1.24999999999999997e-114 < x < 6.4999999999999997e-290Initial program 29.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.2%
if 6.4999999999999997e-290 < x < 1.4e42Initial program 29.6%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if 1.4e42 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(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))))
(if (<= x -9.2e+130)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -1700000000000.0)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_1))
(* t (- (* c y4) (* a y5)))))
(if (<= x -8.2e-197)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= x 5.2e-71)
(*
-1.0
(*
y5
(-
(fma -1.0 (* i (* k y)) (* y2 (- (* k y0) (* a t))))
(* -1.0 (* a (* y y3))))))
(if (<= x 1.45e+41)
(* y4 (* k (fma -1.0 (* b y) (* y1 y2))))
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_1))
(* j (- (* b y0) (* i 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 t_1 = (c * y0) - (a * y1);
double tmp;
if (x <= -9.2e+130) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -1700000000000.0) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * ((c * y4) - (a * y5))));
} else if (x <= -8.2e-197) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (x <= 5.2e-71) {
tmp = -1.0 * (y5 * (fma(-1.0, (i * (k * y)), (y2 * ((k * y0) - (a * t)))) - (-1.0 * (a * (y * y3)))));
} else if (x <= 1.45e+41) {
tmp = y4 * (k * fma(-1.0, (b * y), (y1 * y2)));
} else {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
}
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)) tmp = 0.0 if (x <= -9.2e+130) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -1700000000000.0) 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))))); elseif (x <= -8.2e-197) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (x <= 5.2e-71) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(-1.0, Float64(i * Float64(k * y)), Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))) - Float64(-1.0 * Float64(a * Float64(y * y3)))))); elseif (x <= 1.45e+41) tmp = Float64(y4 * Float64(k * fma(-1.0, Float64(b * y), Float64(y1 * y2)))); else tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); 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]}, If[LessEqual[x, -9.2e+130], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1700000000000.0], 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], If[LessEqual[x, -8.2e-197], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-71], N[(-1.0 * N[(y5 * N[(N[(-1.0 * N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(a * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.45e+41], N[(y4 * N[(k * N[(-1.0 * N[(b * y), $MachinePrecision] + N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;x \leq -9.2 \cdot 10^{+130}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1700000000000:\\
\;\;\;\;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{elif}\;x \leq -8.2 \cdot 10^{-197}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-71}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(k \cdot y\right), y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y3\right)\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+41}:\\
\;\;\;\;y4 \cdot \left(k \cdot \mathsf{fma}\left(-1, b \cdot y, y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -9.20000000000000085e130Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -9.20000000000000085e130 < x < -1.7e12Initial program 29.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
if -1.7e12 < x < -8.2e-197Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -8.2e-197 < x < 5.1999999999999997e-71Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y2 around 0
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
if 5.1999999999999997e-71 < x < 1.44999999999999994e41Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in k around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 1.44999999999999994e41 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
-1.0
(*
y5
(-
(fma -1.0 (* i (* k y)) (* y2 (- (* k y0) (* a t))))
(* -1.0 (* a (* y y3))))))))
(if (<= x -3.7e+170)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -1.6e-112)
t_1
(if (<= x -8.2e-197)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= x 5.2e-71)
t_1
(if (<= x 1.45e+41)
(* y4 (* k (fma -1.0 (* b y) (* y1 y2))))
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i 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 t_1 = -1.0 * (y5 * (fma(-1.0, (i * (k * y)), (y2 * ((k * y0) - (a * t)))) - (-1.0 * (a * (y * y3)))));
double tmp;
if (x <= -3.7e+170) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -1.6e-112) {
tmp = t_1;
} else if (x <= -8.2e-197) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (x <= 5.2e-71) {
tmp = t_1;
} else if (x <= 1.45e+41) {
tmp = y4 * (k * fma(-1.0, (b * y), (y1 * y2)));
} else {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(-1.0 * Float64(y5 * Float64(fma(-1.0, Float64(i * Float64(k * y)), Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))) - Float64(-1.0 * Float64(a * Float64(y * y3)))))) tmp = 0.0 if (x <= -3.7e+170) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -1.6e-112) tmp = t_1; elseif (x <= -8.2e-197) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (x <= 5.2e-71) tmp = t_1; elseif (x <= 1.45e+41) tmp = Float64(y4 * Float64(k * fma(-1.0, Float64(b * y), Float64(y1 * y2)))); else tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); 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[(-1.0 * N[(y5 * N[(N[(-1.0 * N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(a * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+170], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e-112], t$95$1, If[LessEqual[x, -8.2e-197], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-71], t$95$1, If[LessEqual[x, 1.45e+41], N[(y4 * N[(k * N[(-1.0 * N[(b * y), $MachinePrecision] + N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(k \cdot y\right), y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y3\right)\right)\right)\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+170}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-197}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{+41}:\\
\;\;\;\;y4 \cdot \left(k \cdot \mathsf{fma}\left(-1, b \cdot y, y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
\end{array}
if x < -3.69999999999999987e170Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -3.69999999999999987e170 < x < -1.59999999999999997e-112 or -8.2e-197 < x < 5.1999999999999997e-71Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y2 around 0
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
if -1.59999999999999997e-112 < x < -8.2e-197Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 5.1999999999999997e-71 < x < 1.44999999999999994e41Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in k around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 1.44999999999999994e41 < x Initial program 29.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(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
(*
j
(-
(fma -1.0 (* y3 (- (* y1 y4) (* y0 y5))) (* t (- (* b y4) (* i y5))))
(* x (- (* b y0) (* i 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 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 = j * (fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
}
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(j * Float64(fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); 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[(j * N[(N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $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}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\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 29.6%
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 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (- (* y2 t) (* y3 y)) a) y5)))
(if (<= c -2.4e+88)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= c -2.6e-128)
(* j (* -1.0 (* y1 (- (* y3 y4) (* i x)))))
(if (<= c -3.95e-202)
t_1
(if (<= c 2.9e-247)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= c 6.6e-81)
(* b (* a (- (* x y) (* t z))))
(if (<= c 1.25e+201)
t_1
(* c (* y4 (- (* y y3) (* t y2))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((y2 * t) - (y3 * y)) * a) * y5;
double tmp;
if (c <= -2.4e+88) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (c <= -2.6e-128) {
tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x))));
} else if (c <= -3.95e-202) {
tmp = t_1;
} else if (c <= 2.9e-247) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 6.6e-81) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (c <= 1.25e+201) {
tmp = t_1;
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
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 = (((y2 * t) - (y3 * y)) * a) * y5
if (c <= (-2.4d+88)) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (c <= (-2.6d-128)) then
tmp = j * ((-1.0d0) * (y1 * ((y3 * y4) - (i * x))))
else if (c <= (-3.95d-202)) then
tmp = t_1
else if (c <= 2.9d-247) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (c <= 6.6d-81) then
tmp = b * (a * ((x * y) - (t * z)))
else if (c <= 1.25d+201) then
tmp = t_1
else
tmp = c * (y4 * ((y * y3) - (t * y2)))
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 = (((y2 * t) - (y3 * y)) * a) * y5;
double tmp;
if (c <= -2.4e+88) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (c <= -2.6e-128) {
tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x))));
} else if (c <= -3.95e-202) {
tmp = t_1;
} else if (c <= 2.9e-247) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 6.6e-81) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (c <= 1.25e+201) {
tmp = t_1;
} else {
tmp = c * (y4 * ((y * y3) - (t * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (((y2 * t) - (y3 * y)) * a) * y5 tmp = 0 if c <= -2.4e+88: tmp = y4 * (t * ((b * j) - (c * y2))) elif c <= -2.6e-128: tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x)))) elif c <= -3.95e-202: tmp = t_1 elif c <= 2.9e-247: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif c <= 6.6e-81: tmp = b * (a * ((x * y) - (t * z))) elif c <= 1.25e+201: tmp = t_1 else: tmp = c * (y4 * ((y * y3) - (t * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * y5) tmp = 0.0 if (c <= -2.4e+88) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (c <= -2.6e-128) tmp = Float64(j * Float64(-1.0 * Float64(y1 * Float64(Float64(y3 * y4) - Float64(i * x))))); elseif (c <= -3.95e-202) tmp = t_1; elseif (c <= 2.9e-247) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (c <= 6.6e-81) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (c <= 1.25e+201) tmp = t_1; else tmp = Float64(c * Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2)))); 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 = (((y2 * t) - (y3 * y)) * a) * y5; tmp = 0.0; if (c <= -2.4e+88) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (c <= -2.6e-128) tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x)))); elseif (c <= -3.95e-202) tmp = t_1; elseif (c <= 2.9e-247) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (c <= 6.6e-81) tmp = b * (a * ((x * y) - (t * z))); elseif (c <= 1.25e+201) tmp = t_1; else tmp = c * (y4 * ((y * y3) - (t * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[c, -2.4e+88], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.6e-128], N[(j * N[(-1.0 * N[(y1 * N[(N[(y3 * y4), $MachinePrecision] - N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.95e-202], t$95$1, If[LessEqual[c, 2.9e-247], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.6e-81], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.25e+201], t$95$1, N[(c * N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{if}\;c \leq -2.4 \cdot 10^{+88}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-128}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)\right)\\
\mathbf{elif}\;c \leq -3.95 \cdot 10^{-202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-247}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 6.6 \cdot 10^{-81}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{+201}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if c < -2.3999999999999999e88Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -2.3999999999999999e88 < c < -2.59999999999999981e-128Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -2.59999999999999981e-128 < c < -3.95e-202 or 6.59999999999999975e-81 < c < 1.2499999999999999e201Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
if -3.95e-202 < c < 2.9e-247Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 2.9e-247 < c < 6.59999999999999975e-81Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if 1.2499999999999999e201 < c Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -1.3e+169)
(* j (* x (- (* i y1) (* b y0))))
(if (<= i -2e+88)
(* y4 (* t (- (* b j) (* c y2))))
(if (<= i 1.7e-227)
(* b (* a (- (* x y) (* t z))))
(if (<= i 6e+90)
(* (* (- (* y2 t) (* y3 y)) a) y5)
(if (<= i 6e+203)
(* j (* t (- (* b y4) (* i y5))))
(if (<= i 3e+257)
(* y (* y5 (- (* i k) (* a y3))))
(* x (* y (- (* 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 (i <= -1.3e+169) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -2e+88) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = x * (y * ((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 (i <= (-1.3d+169)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (i <= (-2d+88)) then
tmp = y4 * (t * ((b * j) - (c * y2)))
else if (i <= 1.7d-227) then
tmp = b * (a * ((x * y) - (t * z)))
else if (i <= 6d+90) then
tmp = (((y2 * t) - (y3 * y)) * a) * y5
else if (i <= 6d+203) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (i <= 3d+257) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else
tmp = x * (y * ((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 (i <= -1.3e+169) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -2e+88) {
tmp = y4 * (t * ((b * j) - (c * y2)));
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = x * (y * ((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 i <= -1.3e+169: tmp = j * (x * ((i * y1) - (b * y0))) elif i <= -2e+88: tmp = y4 * (t * ((b * j) - (c * y2))) elif i <= 1.7e-227: tmp = b * (a * ((x * y) - (t * z))) elif i <= 6e+90: tmp = (((y2 * t) - (y3 * y)) * a) * y5 elif i <= 6e+203: tmp = j * (t * ((b * y4) - (i * y5))) elif i <= 3e+257: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = x * (y * ((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 (i <= -1.3e+169) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (i <= -2e+88) tmp = Float64(y4 * Float64(t * Float64(Float64(b * j) - Float64(c * y2)))); elseif (i <= 1.7e-227) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (i <= 6e+90) tmp = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * y5); elseif (i <= 6e+203) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (i <= 3e+257) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); else tmp = Float64(x * Float64(y * 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 (i <= -1.3e+169) tmp = j * (x * ((i * y1) - (b * y0))); elseif (i <= -2e+88) tmp = y4 * (t * ((b * j) - (c * y2))); elseif (i <= 1.7e-227) tmp = b * (a * ((x * y) - (t * z))); elseif (i <= 6e+90) tmp = (((y2 * t) - (y3 * y)) * a) * y5; elseif (i <= 6e+203) tmp = j * (t * ((b * y4) - (i * y5))); elseif (i <= 3e+257) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = x * (y * ((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[i, -1.3e+169], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2e+88], N[(y4 * N[(t * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-227], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+90], N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, 6e+203], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+257], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.3 \cdot 10^{+169}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq -2 \cdot 10^{+88}:\\
\;\;\;\;y4 \cdot \left(t \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-227}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+90}:\\
\;\;\;\;\left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+203}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+257}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if i < -1.3e169Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -1.3e169 < i < -1.99999999999999992e88Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -1.99999999999999992e88 < i < 1.69999999999999989e-227Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if 1.69999999999999989e-227 < i < 5.99999999999999957e90Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
if 5.99999999999999957e90 < i < 5.9999999999999999e203Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 5.9999999999999999e203 < i < 3e257Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.4
Applied rewrites25.4%
if 3e257 < i Initial program 29.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -5.2e+150)
(* j (* x (- (* i y1) (* b y0))))
(if (<= i -2.05e+102)
(* y4 (* b (- (* j t) (* k y))))
(if (<= i 1.7e-227)
(* b (* a (- (* x y) (* t z))))
(if (<= i 6e+90)
(* (* (- (* y2 t) (* y3 y)) a) y5)
(if (<= i 6e+203)
(* j (* t (- (* b y4) (* i y5))))
(if (<= i 3e+257)
(* y (* y5 (- (* i k) (* a y3))))
(* x (* y (- (* 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 (i <= -5.2e+150) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -2.05e+102) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = x * (y * ((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 (i <= (-5.2d+150)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (i <= (-2.05d+102)) then
tmp = y4 * (b * ((j * t) - (k * y)))
else if (i <= 1.7d-227) then
tmp = b * (a * ((x * y) - (t * z)))
else if (i <= 6d+90) then
tmp = (((y2 * t) - (y3 * y)) * a) * y5
else if (i <= 6d+203) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (i <= 3d+257) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else
tmp = x * (y * ((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 (i <= -5.2e+150) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (i <= -2.05e+102) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = x * (y * ((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 i <= -5.2e+150: tmp = j * (x * ((i * y1) - (b * y0))) elif i <= -2.05e+102: tmp = y4 * (b * ((j * t) - (k * y))) elif i <= 1.7e-227: tmp = b * (a * ((x * y) - (t * z))) elif i <= 6e+90: tmp = (((y2 * t) - (y3 * y)) * a) * y5 elif i <= 6e+203: tmp = j * (t * ((b * y4) - (i * y5))) elif i <= 3e+257: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = x * (y * ((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 (i <= -5.2e+150) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (i <= -2.05e+102) tmp = Float64(y4 * Float64(b * Float64(Float64(j * t) - Float64(k * y)))); elseif (i <= 1.7e-227) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (i <= 6e+90) tmp = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * y5); elseif (i <= 6e+203) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (i <= 3e+257) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); else tmp = Float64(x * Float64(y * 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 (i <= -5.2e+150) tmp = j * (x * ((i * y1) - (b * y0))); elseif (i <= -2.05e+102) tmp = y4 * (b * ((j * t) - (k * y))); elseif (i <= 1.7e-227) tmp = b * (a * ((x * y) - (t * z))); elseif (i <= 6e+90) tmp = (((y2 * t) - (y3 * y)) * a) * y5; elseif (i <= 6e+203) tmp = j * (t * ((b * y4) - (i * y5))); elseif (i <= 3e+257) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = x * (y * ((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[i, -5.2e+150], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.05e+102], N[(y4 * N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-227], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+90], N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, 6e+203], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+257], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.2 \cdot 10^{+150}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq -2.05 \cdot 10^{+102}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-227}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+90}:\\
\;\;\;\;\left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+203}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+257}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if i < -5.20000000000000012e150Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -5.20000000000000012e150 < i < -2.05e102Initial program 29.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if -2.05e102 < i < 1.69999999999999989e-227Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if 1.69999999999999989e-227 < i < 5.99999999999999957e90Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
if 5.99999999999999957e90 < i < 5.9999999999999999e203Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 5.9999999999999999e203 < i < 3e257Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.4
Applied rewrites25.4%
if 3e257 < i Initial program 29.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))))
(if (<= b -8e+149)
t_1
(if (<= b -2.4e-49)
(* j (* t (- (* b y4) (* i y5))))
(if (<= b 1.45e-51)
(*
-1.0
(*
y5
(-
(fma -1.0 (* i (* k y)) (* y2 (- (* k y0) (* a t))))
(* -1.0 (* a (* y y3))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double tmp;
if (b <= -8e+149) {
tmp = t_1;
} else if (b <= -2.4e-49) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (b <= 1.45e-51) {
tmp = -1.0 * (y5 * (fma(-1.0, (i * (k * y)), (y2 * ((k * y0) - (a * t)))) - (-1.0 * (a * (y * y3)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))) tmp = 0.0 if (b <= -8e+149) tmp = t_1; elseif (b <= -2.4e-49) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (b <= 1.45e-51) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(-1.0, Float64(i * Float64(k * y)), Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))) - Float64(-1.0 * Float64(a * Float64(y * y3)))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+149], t$95$1, If[LessEqual[b, -2.4e-49], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e-51], N[(-1.0 * N[(y5 * N[(N[(-1.0 * N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(a * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-49}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{-51}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(k \cdot y\right), y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y3\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -8.00000000000000039e149 or 1.44999999999999986e-51 < b Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
if -8.00000000000000039e149 < b < -2.39999999999999992e-49Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if -2.39999999999999992e-49 < b < 1.44999999999999986e-51Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y2 around 0
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
-1.0
(*
y5
(-
(fma -1.0 (* i (* k y)) (* y2 (- (* k y0) (* a t))))
(* -1.0 (* a (* y y3))))))))
(if (<= x -3.7e+170)
(* j (* x (- (* i y1) (* b y0))))
(if (<= x -1.6e-112)
t_1
(if (<= x -8.2e-197)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= x 9.5e-68) t_1 (* a (* x (fma -1.0 (* y1 y2) (* b y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -1.0 * (y5 * (fma(-1.0, (i * (k * y)), (y2 * ((k * y0) - (a * t)))) - (-1.0 * (a * (y * y3)))));
double tmp;
if (x <= -3.7e+170) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (x <= -1.6e-112) {
tmp = t_1;
} else if (x <= -8.2e-197) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (x <= 9.5e-68) {
tmp = t_1;
} else {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(-1.0 * Float64(y5 * Float64(fma(-1.0, Float64(i * Float64(k * y)), Float64(y2 * Float64(Float64(k * y0) - Float64(a * t)))) - Float64(-1.0 * Float64(a * Float64(y * y3)))))) tmp = 0.0 if (x <= -3.7e+170) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (x <= -1.6e-112) tmp = t_1; elseif (x <= -8.2e-197) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (x <= 9.5e-68) tmp = t_1; else tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(-1.0 * N[(y5 * N[(N[(-1.0 * N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(a * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+170], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e-112], t$95$1, If[LessEqual[x, -8.2e-197], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e-68], t$95$1, N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(-1, i \cdot \left(k \cdot y\right), y2 \cdot \left(k \cdot y0 - a \cdot t\right)\right) - -1 \cdot \left(a \cdot \left(y \cdot y3\right)\right)\right)\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+170}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-197}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -3.69999999999999987e170Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
if -3.69999999999999987e170 < x < -1.59999999999999997e-112 or -8.2e-197 < x < 9.4999999999999997e-68Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y2 around 0
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.4
Applied rewrites32.4%
if -1.59999999999999997e-112 < x < -8.2e-197Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 9.4999999999999997e-68 < x Initial program 29.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.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
(let* ((t_1 (* y (* y5 (- (* i k) (* a y3))))))
(if (<= i -88000000000.0)
t_1
(if (<= i 1.7e-227)
(* b (* a (- (* x y) (* t z))))
(if (<= i 6e+90)
(* (* (- (* y2 t) (* y3 y)) a) y5)
(if (<= i 6e+203)
(* j (* t (- (* b y4) (* i y5))))
(if (<= i 3e+257) t_1 (* x (* y (- (* 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 t_1 = y * (y5 * ((i * k) - (a * y3)));
double tmp;
if (i <= -88000000000.0) {
tmp = t_1;
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = t_1;
} else {
tmp = x * (y * ((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) :: t_1
real(8) :: tmp
t_1 = y * (y5 * ((i * k) - (a * y3)))
if (i <= (-88000000000.0d0)) then
tmp = t_1
else if (i <= 1.7d-227) then
tmp = b * (a * ((x * y) - (t * z)))
else if (i <= 6d+90) then
tmp = (((y2 * t) - (y3 * y)) * a) * y5
else if (i <= 6d+203) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (i <= 3d+257) then
tmp = t_1
else
tmp = x * (y * ((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 t_1 = y * (y5 * ((i * k) - (a * y3)));
double tmp;
if (i <= -88000000000.0) {
tmp = t_1;
} else if (i <= 1.7e-227) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (i <= 6e+90) {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
} else if (i <= 6e+203) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (i <= 3e+257) {
tmp = t_1;
} else {
tmp = x * (y * ((a * b) - (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (y5 * ((i * k) - (a * y3))) tmp = 0 if i <= -88000000000.0: tmp = t_1 elif i <= 1.7e-227: tmp = b * (a * ((x * y) - (t * z))) elif i <= 6e+90: tmp = (((y2 * t) - (y3 * y)) * a) * y5 elif i <= 6e+203: tmp = j * (t * ((b * y4) - (i * y5))) elif i <= 3e+257: tmp = t_1 else: tmp = x * (y * ((a * b) - (c * i))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))) tmp = 0.0 if (i <= -88000000000.0) tmp = t_1; elseif (i <= 1.7e-227) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (i <= 6e+90) tmp = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * y5); elseif (i <= 6e+203) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (i <= 3e+257) tmp = t_1; else tmp = Float64(x * Float64(y * 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) t_1 = y * (y5 * ((i * k) - (a * y3))); tmp = 0.0; if (i <= -88000000000.0) tmp = t_1; elseif (i <= 1.7e-227) tmp = b * (a * ((x * y) - (t * z))); elseif (i <= 6e+90) tmp = (((y2 * t) - (y3 * y)) * a) * y5; elseif (i <= 6e+203) tmp = j * (t * ((b * y4) - (i * y5))); elseif (i <= 3e+257) tmp = t_1; else tmp = x * (y * ((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_] := Block[{t$95$1 = N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -88000000000.0], t$95$1, If[LessEqual[i, 1.7e-227], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+90], N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, 6e+203], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e+257], t$95$1, N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{if}\;i \leq -88000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-227}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+90}:\\
\;\;\;\;\left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+203}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{+257}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\end{array}
\end{array}
if i < -8.8e10 or 5.9999999999999999e203 < i < 3e257Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.4
Applied rewrites25.4%
if -8.8e10 < i < 1.69999999999999989e-227Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if 1.69999999999999989e-227 < i < 5.99999999999999957e90Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
if 5.99999999999999957e90 < i < 5.9999999999999999e203Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 3e257 < i Initial program 29.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -9.6e+198)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= a -7.2e+40)
(* x (* y (- (* a b) (* c i))))
(if (<= a 2.7e+44)
(* j (* t (- (* b y4) (* i y5))))
(* (* (- (* y2 t) (* y3 y)) a) 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 (a <= -9.6e+198) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= -7.2e+40) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (a <= 2.7e+44) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = (((y2 * t) - (y3 * y)) * a) * 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 (a <= (-9.6d+198)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (a <= (-7.2d+40)) then
tmp = x * (y * ((a * b) - (c * i)))
else if (a <= 2.7d+44) then
tmp = j * (t * ((b * y4) - (i * y5)))
else
tmp = (((y2 * t) - (y3 * y)) * a) * 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 (a <= -9.6e+198) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (a <= -7.2e+40) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (a <= 2.7e+44) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = (((y2 * t) - (y3 * y)) * a) * y5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -9.6e+198: tmp = a * (y5 * ((t * y2) - (y * y3))) elif a <= -7.2e+40: tmp = x * (y * ((a * b) - (c * i))) elif a <= 2.7e+44: tmp = j * (t * ((b * y4) - (i * y5))) else: tmp = (((y2 * t) - (y3 * y)) * a) * 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 (a <= -9.6e+198) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (a <= -7.2e+40) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (a <= 2.7e+44) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); else tmp = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * 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 (a <= -9.6e+198) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (a <= -7.2e+40) tmp = x * (y * ((a * b) - (c * i))); elseif (a <= 2.7e+44) tmp = j * (t * ((b * y4) - (i * y5))); else tmp = (((y2 * t) - (y3 * y)) * a) * 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[a, -9.6e+198], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.2e+40], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+44], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.6 \cdot 10^{+198}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+44}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\end{array}
\end{array}
if a < -9.6000000000000006e198Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if -9.6000000000000006e198 < a < -7.19999999999999993e40Initial program 29.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if -7.19999999999999993e40 < a < 2.7e44Initial program 29.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 2.7e44 < a Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (- (* y2 t) (* y3 y)) a) y5)))
(if (<= t -1.05e+96)
t_1
(if (<= t 1.1e+45) (* y (* y5 (- (* i k) (* a y3)))) 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 = (((y2 * t) - (y3 * y)) * a) * y5;
double tmp;
if (t <= -1.05e+96) {
tmp = t_1;
} else if (t <= 1.1e+45) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} 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 = (((y2 * t) - (y3 * y)) * a) * y5
if (t <= (-1.05d+96)) then
tmp = t_1
else if (t <= 1.1d+45) then
tmp = y * (y5 * ((i * k) - (a * y3)))
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 = (((y2 * t) - (y3 * y)) * a) * y5;
double tmp;
if (t <= -1.05e+96) {
tmp = t_1;
} else if (t <= 1.1e+45) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} 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 = (((y2 * t) - (y3 * y)) * a) * y5 tmp = 0 if t <= -1.05e+96: tmp = t_1 elif t <= 1.1e+45: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a) * y5) tmp = 0.0 if (t <= -1.05e+96) tmp = t_1; elseif (t <= 1.1e+45) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); 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 = (((y2 * t) - (y3 * y)) * a) * y5; tmp = 0.0; if (t <= -1.05e+96) tmp = t_1; elseif (t <= 1.1e+45) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[t, -1.05e+96], t$95$1, If[LessEqual[t, 1.1e+45], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y2 \cdot t - y3 \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.0500000000000001e96 or 1.1e45 < t Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6425.8
Applied rewrites25.8%
if -1.0500000000000001e96 < t < 1.1e45Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.4
Applied rewrites25.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= t -1e+67)
t_1
(if (<= t 1.1e+45) (* y (* y5 (- (* i k) (* a y3)))) 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 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (t <= -1e+67) {
tmp = t_1;
} else if (t <= 1.1e+45) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} 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 = a * (y5 * ((t * y2) - (y * y3)))
if (t <= (-1d+67)) then
tmp = t_1
else if (t <= 1.1d+45) then
tmp = y * (y5 * ((i * k) - (a * y3)))
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 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (t <= -1e+67) {
tmp = t_1;
} else if (t <= 1.1e+45) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} 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 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if t <= -1e+67: tmp = t_1 elif t <= 1.1e+45: tmp = y * (y5 * ((i * k) - (a * y3))) 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(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (t <= -1e+67) tmp = t_1; elseif (t <= 1.1e+45) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); 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 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (t <= -1e+67) tmp = t_1; elseif (t <= 1.1e+45) tmp = y * (y5 * ((i * k) - (a * y3))); 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[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e+67], t$95$1, If[LessEqual[t, 1.1e+45], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;t \leq -1 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.99999999999999983e66 or 1.1e45 < t Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if -9.99999999999999983e66 < t < 1.1e45Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.4
Applied rewrites25.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.55e+195)
(* b (* a (* -1.0 (* t z))))
(if (<= z 1.35e+207)
(* a (* y5 (- (* t y2) (* y y3))))
(* b (* k (* y0 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.55e+195) {
tmp = b * (a * (-1.0 * (t * z)));
} else if (z <= 1.35e+207) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = b * (k * (y0 * 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.55d+195)) then
tmp = b * (a * ((-1.0d0) * (t * z)))
else if (z <= 1.35d+207) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else
tmp = b * (k * (y0 * 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.55e+195) {
tmp = b * (a * (-1.0 * (t * z)));
} else if (z <= 1.35e+207) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = b * (k * (y0 * 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.55e+195: tmp = b * (a * (-1.0 * (t * z))) elif z <= 1.35e+207: tmp = a * (y5 * ((t * y2) - (y * y3))) else: tmp = b * (k * (y0 * 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.55e+195) tmp = Float64(b * Float64(a * Float64(-1.0 * Float64(t * z)))); elseif (z <= 1.35e+207) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); else tmp = Float64(b * Float64(k * Float64(y0 * 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.55e+195) tmp = b * (a * (-1.0 * (t * z))); elseif (z <= 1.35e+207) tmp = a * (y5 * ((t * y2) - (y * y3))); else tmp = b * (k * (y0 * 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.55e+195], N[(b * N[(a * N[(-1.0 * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+207], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(k * N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+195}:\\
\;\;\;\;b \cdot \left(a \cdot \left(-1 \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+207}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.5500000000000001e195Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
if -1.5500000000000001e195 < z < 1.35000000000000012e207Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if 1.35000000000000012e207 < z Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* a (* x y)))))
(if (<= x -8.5e+14)
t_1
(if (<= x -2.9e-171)
(* b (* k (* y0 z)))
(if (<= x 1.7e-181)
(* a (* -1.0 (* y (* y3 y5))))
(if (<= x 1e-48) (* a (* y5 (* t y2))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * (x * y));
double tmp;
if (x <= -8.5e+14) {
tmp = t_1;
} else if (x <= -2.9e-171) {
tmp = b * (k * (y0 * z));
} else if (x <= 1.7e-181) {
tmp = a * (-1.0 * (y * (y3 * y5)));
} else if (x <= 1e-48) {
tmp = a * (y5 * (t * y2));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * (x * y))
if (x <= (-8.5d+14)) then
tmp = t_1
else if (x <= (-2.9d-171)) then
tmp = b * (k * (y0 * z))
else if (x <= 1.7d-181) then
tmp = a * ((-1.0d0) * (y * (y3 * y5)))
else if (x <= 1d-48) then
tmp = a * (y5 * (t * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * (x * y));
double tmp;
if (x <= -8.5e+14) {
tmp = t_1;
} else if (x <= -2.9e-171) {
tmp = b * (k * (y0 * z));
} else if (x <= 1.7e-181) {
tmp = a * (-1.0 * (y * (y3 * y5)));
} else if (x <= 1e-48) {
tmp = a * (y5 * (t * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * (x * y)) tmp = 0 if x <= -8.5e+14: tmp = t_1 elif x <= -2.9e-171: tmp = b * (k * (y0 * z)) elif x <= 1.7e-181: tmp = a * (-1.0 * (y * (y3 * y5))) elif x <= 1e-48: tmp = a * (y5 * (t * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(x * y))) tmp = 0.0 if (x <= -8.5e+14) tmp = t_1; elseif (x <= -2.9e-171) tmp = Float64(b * Float64(k * Float64(y0 * z))); elseif (x <= 1.7e-181) tmp = Float64(a * Float64(-1.0 * Float64(y * Float64(y3 * y5)))); elseif (x <= 1e-48) tmp = Float64(a * Float64(y5 * Float64(t * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * (x * y)); tmp = 0.0; if (x <= -8.5e+14) tmp = t_1; elseif (x <= -2.9e-171) tmp = b * (k * (y0 * z)); elseif (x <= 1.7e-181) tmp = a * (-1.0 * (y * (y3 * y5))); elseif (x <= 1e-48) tmp = a * (y5 * (t * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.5e+14], t$95$1, If[LessEqual[x, -2.9e-171], N[(b * N[(k * N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e-181], N[(a * N[(-1.0 * N[(y * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e-48], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;x \leq -8.5 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-171}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-181}:\\
\;\;\;\;a \cdot \left(-1 \cdot \left(y \cdot \left(y3 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq 10^{-48}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -8.5e14 or 9.9999999999999997e-49 < x Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
if -8.5e14 < x < -2.8999999999999999e-171Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
if -2.8999999999999999e-171 < x < 1.7e-181Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
if 1.7e-181 < x < 9.9999999999999997e-49Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
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
(let* ((t_1 (* b (* a (* x y)))))
(if (<= x -8.5e+14)
t_1
(if (<= x -4.5e-169)
(* b (* k (* y0 z)))
(if (<= x 5.4e-180)
(* (* (* (- y5) y) y3) a)
(if (<= x 1e-48) (* a (* y5 (* t y2))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * (x * y));
double tmp;
if (x <= -8.5e+14) {
tmp = t_1;
} else if (x <= -4.5e-169) {
tmp = b * (k * (y0 * z));
} else if (x <= 5.4e-180) {
tmp = ((-y5 * y) * y3) * a;
} else if (x <= 1e-48) {
tmp = a * (y5 * (t * y2));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * (x * y))
if (x <= (-8.5d+14)) then
tmp = t_1
else if (x <= (-4.5d-169)) then
tmp = b * (k * (y0 * z))
else if (x <= 5.4d-180) then
tmp = ((-y5 * y) * y3) * a
else if (x <= 1d-48) then
tmp = a * (y5 * (t * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * (x * y));
double tmp;
if (x <= -8.5e+14) {
tmp = t_1;
} else if (x <= -4.5e-169) {
tmp = b * (k * (y0 * z));
} else if (x <= 5.4e-180) {
tmp = ((-y5 * y) * y3) * a;
} else if (x <= 1e-48) {
tmp = a * (y5 * (t * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * (x * y)) tmp = 0 if x <= -8.5e+14: tmp = t_1 elif x <= -4.5e-169: tmp = b * (k * (y0 * z)) elif x <= 5.4e-180: tmp = ((-y5 * y) * y3) * a elif x <= 1e-48: tmp = a * (y5 * (t * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(x * y))) tmp = 0.0 if (x <= -8.5e+14) tmp = t_1; elseif (x <= -4.5e-169) tmp = Float64(b * Float64(k * Float64(y0 * z))); elseif (x <= 5.4e-180) tmp = Float64(Float64(Float64(Float64(-y5) * y) * y3) * a); elseif (x <= 1e-48) tmp = Float64(a * Float64(y5 * Float64(t * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * (x * y)); tmp = 0.0; if (x <= -8.5e+14) tmp = t_1; elseif (x <= -4.5e-169) tmp = b * (k * (y0 * z)); elseif (x <= 5.4e-180) tmp = ((-y5 * y) * y3) * a; elseif (x <= 1e-48) tmp = a * (y5 * (t * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.5e+14], t$95$1, If[LessEqual[x, -4.5e-169], N[(b * N[(k * N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-180], N[(N[(N[((-y5) * y), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 1e-48], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;x \leq -8.5 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-169}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-180}:\\
\;\;\;\;\left(\left(\left(-y5\right) \cdot y\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;x \leq 10^{-48}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -8.5e14 or 9.9999999999999997e-49 < x Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
if -8.5e14 < x < -4.4999999999999999e-169Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
if -4.4999999999999999e-169 < x < 5.40000000000000028e-180Initial program 29.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.6
Applied rewrites25.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.1
Applied rewrites16.1%
Applied rewrites16.1%
if 5.40000000000000028e-180 < x < 9.9999999999999997e-49Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
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 (if (<= y2 -3.7e+120) (* a (* y5 (* t y2))) (if (<= y2 1.15e+70) (* b (* a (* x y))) (* a (* t (* y2 y5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.7e+120) {
tmp = a * (y5 * (t * y2));
} else if (y2 <= 1.15e+70) {
tmp = b * (a * (x * y));
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-3.7d+120)) then
tmp = a * (y5 * (t * y2))
else if (y2 <= 1.15d+70) then
tmp = b * (a * (x * y))
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.7e+120) {
tmp = a * (y5 * (t * y2));
} else if (y2 <= 1.15e+70) {
tmp = b * (a * (x * y));
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -3.7e+120: tmp = a * (y5 * (t * y2)) elif y2 <= 1.15e+70: tmp = b * (a * (x * y)) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -3.7e+120) tmp = Float64(a * Float64(y5 * Float64(t * y2))); elseif (y2 <= 1.15e+70) tmp = Float64(b * Float64(a * Float64(x * y))); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -3.7e+120) tmp = a * (y5 * (t * y2)); elseif (y2 <= 1.15e+70) tmp = b * (a * (x * y)); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -3.7e+120], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.15e+70], N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.7 \cdot 10^{+120}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 1.15 \cdot 10^{+70}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -3.70000000000000024e120Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f6417.2
Applied rewrites17.2%
if -3.70000000000000024e120 < y2 < 1.14999999999999997e70Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
if 1.14999999999999997e70 < y2 Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
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 -4e+91)
(* a (* y5 (* t y2)))
(if (<= t 1.85e-194)
(* b (* k (* y0 z)))
(if (<= t 1.9e-63) (* a (* y3 (* y1 z))) (* a (* (* t y5) y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -4e+91) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.85e-194) {
tmp = b * (k * (y0 * z));
} else if (t <= 1.9e-63) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = a * ((t * y5) * y2);
}
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 <= (-4d+91)) then
tmp = a * (y5 * (t * y2))
else if (t <= 1.85d-194) then
tmp = b * (k * (y0 * z))
else if (t <= 1.9d-63) then
tmp = a * (y3 * (y1 * z))
else
tmp = a * ((t * y5) * y2)
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 <= -4e+91) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.85e-194) {
tmp = b * (k * (y0 * z));
} else if (t <= 1.9e-63) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = a * ((t * y5) * y2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -4e+91: tmp = a * (y5 * (t * y2)) elif t <= 1.85e-194: tmp = b * (k * (y0 * z)) elif t <= 1.9e-63: tmp = a * (y3 * (y1 * z)) else: tmp = a * ((t * y5) * y2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -4e+91) tmp = Float64(a * Float64(y5 * Float64(t * y2))); elseif (t <= 1.85e-194) tmp = Float64(b * Float64(k * Float64(y0 * z))); elseif (t <= 1.9e-63) tmp = Float64(a * Float64(y3 * Float64(y1 * z))); else tmp = Float64(a * Float64(Float64(t * y5) * y2)); 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 <= -4e+91) tmp = a * (y5 * (t * y2)); elseif (t <= 1.85e-194) tmp = b * (k * (y0 * z)); elseif (t <= 1.9e-63) tmp = a * (y3 * (y1 * z)); else tmp = a * ((t * y5) * y2); 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, -4e+91], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.85e-194], N[(b * N[(k * N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-63], N[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t * y5), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+91}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{-194}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y5\right) \cdot y2\right)\\
\end{array}
\end{array}
if t < -4.00000000000000032e91Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f6417.2
Applied rewrites17.2%
if -4.00000000000000032e91 < t < 1.85000000000000004e-194Initial program 29.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
if 1.85000000000000004e-194 < t < 1.90000000000000009e-63Initial program 29.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.6
Applied rewrites25.6%
Taylor expanded in y around 0
lower-*.f6416.9
Applied rewrites16.9%
if 1.90000000000000009e-63 < t Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/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 (if (<= t -5800.0) (* a (* y5 (* t y2))) (if (<= t 1.9e-63) (* a (* y3 (* y1 z))) (* a (* (* t y5) y2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -5800.0) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.9e-63) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = a * ((t * y5) * y2);
}
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 <= (-5800.0d0)) then
tmp = a * (y5 * (t * y2))
else if (t <= 1.9d-63) then
tmp = a * (y3 * (y1 * z))
else
tmp = a * ((t * y5) * y2)
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 <= -5800.0) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.9e-63) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = a * ((t * y5) * y2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -5800.0: tmp = a * (y5 * (t * y2)) elif t <= 1.9e-63: tmp = a * (y3 * (y1 * z)) else: tmp = a * ((t * y5) * y2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -5800.0) tmp = Float64(a * Float64(y5 * Float64(t * y2))); elseif (t <= 1.9e-63) tmp = Float64(a * Float64(y3 * Float64(y1 * z))); else tmp = Float64(a * Float64(Float64(t * y5) * y2)); 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 <= -5800.0) tmp = a * (y5 * (t * y2)); elseif (t <= 1.9e-63) tmp = a * (y3 * (y1 * z)); else tmp = a * ((t * y5) * y2); 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, -5800.0], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-63], N[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t * y5), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5800:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y5\right) \cdot y2\right)\\
\end{array}
\end{array}
if t < -5800Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f6417.2
Applied rewrites17.2%
if -5800 < t < 1.90000000000000009e-63Initial program 29.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.6
Applied rewrites25.6%
Taylor expanded in y around 0
lower-*.f6416.9
Applied rewrites16.9%
if 1.90000000000000009e-63 < t Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/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 (if (<= t -5800.0) (* a (* y5 (* t y2))) (if (<= t 1.9e-63) (* a (* y1 (* y3 z))) (* a (* (* t y5) y2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -5800.0) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.9e-63) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = a * ((t * y5) * y2);
}
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 <= (-5800.0d0)) then
tmp = a * (y5 * (t * y2))
else if (t <= 1.9d-63) then
tmp = a * (y1 * (y3 * z))
else
tmp = a * ((t * y5) * y2)
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 <= -5800.0) {
tmp = a * (y5 * (t * y2));
} else if (t <= 1.9e-63) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = a * ((t * y5) * y2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -5800.0: tmp = a * (y5 * (t * y2)) elif t <= 1.9e-63: tmp = a * (y1 * (y3 * z)) else: tmp = a * ((t * y5) * y2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -5800.0) tmp = Float64(a * Float64(y5 * Float64(t * y2))); elseif (t <= 1.9e-63) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); else tmp = Float64(a * Float64(Float64(t * y5) * y2)); 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 <= -5800.0) tmp = a * (y5 * (t * y2)); elseif (t <= 1.9e-63) tmp = a * (y1 * (y3 * z)); else tmp = a * ((t * y5) * y2); 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, -5800.0], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-63], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t * y5), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5800:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(t \cdot y5\right) \cdot y2\right)\\
\end{array}
\end{array}
if t < -5800Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f6417.2
Applied rewrites17.2%
if -5800 < t < 1.90000000000000009e-63Initial program 29.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.6
Applied rewrites25.6%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
if 1.90000000000000009e-63 < t Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/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 (* a (* y5 (* t y2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y5 * (t * y2));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (y5 * (t * y2))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (y5 * (t * y2));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y5 * (t * y2))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y5 * Float64(t * y2))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y5 * (t * y2)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)
\end{array}
Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
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 (* a (* t (* y2 y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (t * (y2 * y5));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * (t * (y2 * y5))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * (t * (y2 * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (t * (y2 * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(t * Float64(y2 * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (t * (y2 * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)
\end{array}
Initial program 29.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6417.4
Applied rewrites17.4%
herbie shell --seed 2025159
(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)))))