
(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 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (- (* c y4) (* a y5)))
(t_6 (* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_5))))))
(if (<= y2 -9e+125)
(* y2 (- (fma k t_4 (* x t_1)) (* t t_5)))
(if (<= y2 -4.6e-114)
(+
(* j (- (* t (- (* b y4) (* i y5))) (* x (- (* b y0) (* i y1)))))
(* t_3 (- (* y4 y1) (* y5 y0))))
(if (<= y2 -8e-261)
t_6
(if (<= y2 1.24e-194)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_2))
(* y1 (- (* j x) (* k z))))))
(if (<= y2 1.9e-44)
(* y4 (- (fma b t_2 (* y1 t_3)) (* c (- (* t y2) (* y y3)))))
(if (<= y2 5.8e+205)
t_6
(* y4 (* y2 (- (* k y1) (* c t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (j * t) - (k * y);
double t_3 = (k * y2) - (j * y3);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = (c * y4) - (a * y5);
double t_6 = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_5)));
double tmp;
if (y2 <= -9e+125) {
tmp = y2 * (fma(k, t_4, (x * t_1)) - (t * t_5));
} else if (y2 <= -4.6e-114) {
tmp = (j * ((t * ((b * y4) - (i * y5))) - (x * ((b * y0) - (i * y1))))) + (t_3 * ((y4 * y1) - (y5 * y0)));
} else if (y2 <= -8e-261) {
tmp = t_6;
} else if (y2 <= 1.24e-194) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else if (y2 <= 1.9e-44) {
tmp = y4 * (fma(b, t_2, (y1 * t_3)) - (c * ((t * y2) - (y * y3))));
} else if (y2 <= 5.8e+205) {
tmp = t_6;
} else {
tmp = y4 * (y2 * ((k * y1) - (c * t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(Float64(c * y4) - Float64(a * y5)) t_6 = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_5)))) tmp = 0.0 if (y2 <= -9e+125) tmp = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_5))); elseif (y2 <= -4.6e-114) tmp = Float64(Float64(j * Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))) + Float64(t_3 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y2 <= -8e-261) tmp = t_6; elseif (y2 <= 1.24e-194) 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)))))); elseif (y2 <= 1.9e-44) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_3)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y2 <= 5.8e+205) tmp = t_6; else tmp = Float64(y4 * Float64(y2 * Float64(Float64(k * y1) - Float64(c * t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -9e+125], N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.6e-114], N[(N[(j * N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8e-261], t$95$6, If[LessEqual[y2, 1.24e-194], 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], If[LessEqual[y2, 1.9e-44], N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e+205], t$95$6, N[(y4 * N[(y2 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := j \cdot t - k \cdot y\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := c \cdot y4 - a \cdot y5\\
t_6 := -1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_5\right)\right)\\
\mathbf{if}\;y2 \leq -9 \cdot 10^{+125}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_5\right)\\
\mathbf{elif}\;y2 \leq -4.6 \cdot 10^{-114}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right) + t\_3 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y2 \leq -8 \cdot 10^{-261}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y2 \leq 1.24 \cdot 10^{-194}:\\
\;\;\;\;-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{elif}\;y2 \leq 1.9 \cdot 10^{-44}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_3\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{+205}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(y2 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\end{array}
\end{array}
if y2 < -9.0000000000000001e125Initial program 22.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites57.0%
if -9.0000000000000001e125 < y2 < -4.5999999999999999e-114Initial program 32.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.3
Applied rewrites36.3%
if -4.5999999999999999e-114 < y2 < -7.99999999999999987e-261 or 1.9e-44 < y2 < 5.8000000000000003e205Initial program 31.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.3%
if -7.99999999999999987e-261 < y2 < 1.24000000000000001e-194Initial program 36.5%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.2%
if 1.24000000000000001e-194 < y2 < 1.9e-44Initial program 33.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.0%
if 5.8000000000000003e205 < y2 Initial program 31.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.3
Applied rewrites23.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (- (* c y4) (* a y5)))
(t_6 (* -1.0 (* y3 (- (fma j t_4 (* z t_1)) (* y t_5))))))
(if (<= y2 -4.5e+159)
(* y2 (- (fma k t_4 (* x t_1)) (* t t_5)))
(if (<= y2 -6.4e-136)
(+ (* j (* i (* x y1))) (* t_3 (- (* y4 y1) (* y5 y0))))
(if (<= y2 -8e-261)
t_6
(if (<= y2 1.24e-194)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_2))
(* y1 (- (* j x) (* k z))))))
(if (<= y2 1.9e-44)
(* y4 (- (fma b t_2 (* y1 t_3)) (* c (- (* t y2) (* y y3)))))
(if (<= y2 5.8e+205)
t_6
(* y4 (* y2 (- (* k y1) (* c t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (j * t) - (k * y);
double t_3 = (k * y2) - (j * y3);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = (c * y4) - (a * y5);
double t_6 = -1.0 * (y3 * (fma(j, t_4, (z * t_1)) - (y * t_5)));
double tmp;
if (y2 <= -4.5e+159) {
tmp = y2 * (fma(k, t_4, (x * t_1)) - (t * t_5));
} else if (y2 <= -6.4e-136) {
tmp = (j * (i * (x * y1))) + (t_3 * ((y4 * y1) - (y5 * y0)));
} else if (y2 <= -8e-261) {
tmp = t_6;
} else if (y2 <= 1.24e-194) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else if (y2 <= 1.9e-44) {
tmp = y4 * (fma(b, t_2, (y1 * t_3)) - (c * ((t * y2) - (y * y3))));
} else if (y2 <= 5.8e+205) {
tmp = t_6;
} else {
tmp = y4 * (y2 * ((k * y1) - (c * t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(Float64(c * y4) - Float64(a * y5)) t_6 = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_4, Float64(z * t_1)) - Float64(y * t_5)))) tmp = 0.0 if (y2 <= -4.5e+159) tmp = Float64(y2 * Float64(fma(k, t_4, Float64(x * t_1)) - Float64(t * t_5))); elseif (y2 <= -6.4e-136) tmp = Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(t_3 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y2 <= -8e-261) tmp = t_6; elseif (y2 <= 1.24e-194) 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)))))); elseif (y2 <= 1.9e-44) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_3)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y2 <= 5.8e+205) tmp = t_6; else tmp = Float64(y4 * Float64(y2 * Float64(Float64(k * y1) - Float64(c * t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(-1.0 * N[(y3 * N[(N[(j * t$95$4 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.5e+159], N[(y2 * N[(N[(k * t$95$4 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6.4e-136], N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8e-261], t$95$6, If[LessEqual[y2, 1.24e-194], 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], If[LessEqual[y2, 1.9e-44], N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e+205], t$95$6, N[(y4 * N[(y2 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := j \cdot t - k \cdot y\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := c \cdot y4 - a \cdot y5\\
t_6 := -1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_4, z \cdot t\_1\right) - y \cdot t\_5\right)\right)\\
\mathbf{if}\;y2 \leq -4.5 \cdot 10^{+159}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_4, x \cdot t\_1\right) - t \cdot t\_5\right)\\
\mathbf{elif}\;y2 \leq -6.4 \cdot 10^{-136}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + t\_3 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y2 \leq -8 \cdot 10^{-261}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y2 \leq 1.24 \cdot 10^{-194}:\\
\;\;\;\;-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{elif}\;y2 \leq 1.9 \cdot 10^{-44}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_3\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{+205}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(y2 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\end{array}
\end{array}
if y2 < -4.50000000000000026e159Initial program 21.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites59.3%
if -4.50000000000000026e159 < y2 < -6.39999999999999986e-136Initial program 31.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.0
Applied rewrites36.0%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f6434.8
Applied rewrites34.8%
if -6.39999999999999986e-136 < y2 < -7.99999999999999987e-261 or 1.9e-44 < y2 < 5.8000000000000003e205Initial program 31.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.3%
if -7.99999999999999987e-261 < y2 < 1.24000000000000001e-194Initial program 36.5%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.2%
if 1.24000000000000001e-194 < y2 < 1.9e-44Initial program 33.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.0%
if 5.8000000000000003e205 < y2 Initial program 31.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.7
Applied rewrites23.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
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z (- (* c y0) (* a y1))))
(* y (- (* c y4) (* 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 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 = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * ((c * y0) - (a * y1)))) - (y * ((c * y4) - (a * y5)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(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(-1.0 * Float64(y3 * Float64(fma(j, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(z * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(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[(-1.0 * N[(y3 * N[(N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $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}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 92.0%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5))))))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* j t) (* k y))))
(if (<= y2 -4.5e+159)
t_1
(if (<= y2 -6.2e-93)
(+ (* j (* i (* x y1))) (* t_2 (- (* y4 y1) (* y5 y0))))
(if (<= y2 1.24e-194)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_3))
(* y1 (- (* j x) (* k z))))))
(if (<= y2 3.5e+133)
(* y4 (- (fma b t_3 (* y1 t_2)) (* c (- (* t y2) (* 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 = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
double t_2 = (k * y2) - (j * y3);
double t_3 = (j * t) - (k * y);
double tmp;
if (y2 <= -4.5e+159) {
tmp = t_1;
} else if (y2 <= -6.2e-93) {
tmp = (j * (i * (x * y1))) + (t_2 * ((y4 * y1) - (y5 * y0)));
} else if (y2 <= 1.24e-194) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_3)) - (y1 * ((j * x) - (k * z)))));
} else if (y2 <= 3.5e+133) {
tmp = y4 * (fma(b, t_3, (y1 * t_2)) - (c * ((t * y2) - (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(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(j * t) - Float64(k * y)) tmp = 0.0 if (y2 <= -4.5e+159) tmp = t_1; elseif (y2 <= -6.2e-93) tmp = Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y2 <= 1.24e-194) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_3)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); elseif (y2 <= 3.5e+133) tmp = Float64(y4 * Float64(fma(b, t_3, Float64(y1 * t_2)) - Float64(c * Float64(Float64(t * y2) - 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[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -4.5e+159], t$95$1, If[LessEqual[y2, -6.2e-93], N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.24e-194], N[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e+133], N[(y4 * N[(N[(b * t$95$3 + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := j \cdot t - k \cdot y\\
\mathbf{if}\;y2 \leq -4.5 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -6.2 \cdot 10^{-93}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 1.24 \cdot 10^{-194}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{+133}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_3, y1 \cdot t\_2\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -4.50000000000000026e159 or 3.4999999999999998e133 < y2 Initial program 22.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites59.1%
if -4.50000000000000026e159 < y2 < -6.19999999999999999e-93Initial program 31.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.9
Applied rewrites35.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f6435.0
Applied rewrites35.0%
if -6.19999999999999999e-93 < y2 < 1.24000000000000001e-194Initial program 35.0%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.1%
if 1.24000000000000001e-194 < y2 < 3.4999999999999998e133Initial program 32.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
(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) (* t z))))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -2.65e+42)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a 6.8e-100)
(+
(* j (* i (* x y1)))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= a 1.05e+88)
(* y0 (* c (* y3 (- (/ (* x y2) y3) z))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -2.65e+42) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= 6.8e-100) {
tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (a <= 1.05e+88) {
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)));
} 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) - (t * z)))
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-2.65d+42)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= 6.8d-100) then
tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
else if (a <= 1.05d+88) then
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)))
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) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -2.65e+42) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= 6.8e-100) {
tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (a <= 1.05e+88) {
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)));
} 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) - (t * z))) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -2.65e+42: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= 6.8e-100: tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))) elif a <= 1.05e+88: tmp = y0 * (c * (y3 * (((x * y2) / y3) - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -2.65e+42) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= 6.8e-100) tmp = Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (a <= 1.05e+88) tmp = Float64(y0 * Float64(c * Float64(y3 * Float64(Float64(Float64(x * y2) / y3) - z)))); 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) - (t * z))); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -2.65e+42) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= 6.8e-100) tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); elseif (a <= 1.05e+88) tmp = y0 * (c * (y3 * (((x * y2) / y3) - z))); 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[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.65e+42], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-100], N[(N[(j * N[(i * N[(x * y1), $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[a, 1.05e+88], N[(y0 * N[(c * N[(y3 * N[(N[(N[(x * y2), $MachinePrecision] / y3), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -2.65 \cdot 10^{+42}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-100}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+88}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(y3 \cdot \left(\frac{x \cdot y2}{y3} - z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 1.05e88 < a Initial program 23.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6443.4
Applied rewrites43.4%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -2.65000000000000014e42Initial program 34.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if -2.65000000000000014e42 < a < 6.79999999999999953e-100Initial program 34.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f6438.1
Applied rewrites38.1%
if 6.79999999999999953e-100 < a < 1.05e88Initial program 30.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.0%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lift-*.f6429.4
Applied rewrites29.4%
(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 -1.4e+43)
t_1
(if (<= b 1.7e-196)
(+
(* j (* i (* x y1)))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= b 4.4e+102)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double tmp;
if (b <= -1.4e+43) {
tmp = t_1;
} else if (b <= 1.7e-196) {
tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (b <= 4.4e+102) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(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 <= -1.4e+43) tmp = t_1; elseif (b <= 1.7e-196) tmp = Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (b <= 4.4e+102) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = 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, -1.4e+43], t$95$1, If[LessEqual[b, 1.7e-196], N[(N[(j * N[(i * N[(x * y1), $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[b, 4.4e+102], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 -1.4 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-196}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+102}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.40000000000000009e43 or 4.40000000000000015e102 < b Initial program 24.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites55.2%
if -1.40000000000000009e43 < b < 1.7e-196Initial program 34.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.6
Applied rewrites38.6%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f6438.1
Applied rewrites38.1%
if 1.7e-196 < b < 4.40000000000000015e102Initial program 33.8%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.3%
(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) (* t z))))) (t_2 (- (* x y2) (* y3 z))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a -9.5e-70)
(* c (* y0 t_2))
(if (<= a -3.2e-245)
(* y4 (* b (- (* j t) (* k y))))
(if (<= a 2.05e-268)
(* y0 (* j (- (* y3 y5) (* b x))))
(if (<= a 2.7e+55)
(* y0 (* c t_2))
(if (<= a 7.2e+142)
(* y1 (* z (- (* a y3) (* i k))))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.5e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -3.2e-245) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * ((x * y) - (t * z)))
t_2 = (x * y2) - (y3 * z)
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= (-9.5d-70)) then
tmp = c * (y0 * t_2)
else if (a <= (-3.2d-245)) then
tmp = y4 * (b * ((j * t) - (k * y)))
else if (a <= 2.05d-268) then
tmp = y0 * (j * ((y3 * y5) - (b * x)))
else if (a <= 2.7d+55) then
tmp = y0 * (c * t_2)
else if (a <= 7.2d+142) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.5e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -3.2e-245) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * ((x * y) - (t * z))) t_2 = (x * y2) - (y3 * z) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= -9.5e-70: tmp = c * (y0 * t_2) elif a <= -3.2e-245: tmp = y4 * (b * ((j * t) - (k * y))) elif a <= 2.05e-268: tmp = y0 * (j * ((y3 * y5) - (b * x))) elif a <= 2.7e+55: tmp = y0 * (c * t_2) elif a <= 7.2e+142: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) t_2 = Float64(Float64(x * y2) - Float64(y3 * z)) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= -9.5e-70) tmp = Float64(c * Float64(y0 * t_2)); elseif (a <= -3.2e-245) tmp = Float64(y4 * Float64(b * Float64(Float64(j * t) - Float64(k * y)))); elseif (a <= 2.05e-268) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (a <= 2.7e+55) tmp = Float64(y0 * Float64(c * t_2)); elseif (a <= 7.2e+142) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * ((x * y) - (t * z))); t_2 = (x * y2) - (y3 * z); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= -9.5e-70) tmp = c * (y0 * t_2); elseif (a <= -3.2e-245) tmp = y4 * (b * ((j * t) - (k * y))); elseif (a <= 2.05e-268) tmp = y0 * (j * ((y3 * y5) - (b * x))); elseif (a <= 2.7e+55) tmp = y0 * (c * t_2); elseif (a <= 7.2e+142) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e-70], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-245], N[(y4 * N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-268], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+55], N[(y0 * N[(c * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+142], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := x \cdot y2 - y3 \cdot z\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-245}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-268}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 7.2000000000000003e142 < a Initial program 21.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.9%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6445.2
Applied rewrites45.2%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < -9.4999999999999994e-70Initial program 29.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6425.8
Applied rewrites25.8%
if -9.4999999999999994e-70 < a < -3.19999999999999986e-245Initial program 37.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in b around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if -3.19999999999999986e-245 < a < 2.0499999999999999e-268Initial program 33.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if 2.0499999999999999e-268 < a < 2.69999999999999977e55Initial program 34.3%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.5
Applied rewrites27.5%
if 2.69999999999999977e55 < a < 7.2000000000000003e142Initial program 28.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.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) (* t z))))) (t_2 (- (* x y2) (* y3 z))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a -9.8e-70)
(* c (* y0 t_2))
(if (<= a -3.2e-245)
(* b (* y4 (- (* j t) (* k y))))
(if (<= a 2.05e-268)
(* y0 (* j (- (* y3 y5) (* b x))))
(if (<= a 2.7e+55)
(* y0 (* c t_2))
(if (<= a 7.2e+142)
(* y1 (* z (- (* a y3) (* i k))))
t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -3.2e-245) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * ((x * y) - (t * z)))
t_2 = (x * y2) - (y3 * z)
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= (-9.8d-70)) then
tmp = c * (y0 * t_2)
else if (a <= (-3.2d-245)) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (a <= 2.05d-268) then
tmp = y0 * (j * ((y3 * y5) - (b * x)))
else if (a <= 2.7d+55) then
tmp = y0 * (c * t_2)
else if (a <= 7.2d+142) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -3.2e-245) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * ((x * y) - (t * z))) t_2 = (x * y2) - (y3 * z) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= -9.8e-70: tmp = c * (y0 * t_2) elif a <= -3.2e-245: tmp = b * (y4 * ((j * t) - (k * y))) elif a <= 2.05e-268: tmp = y0 * (j * ((y3 * y5) - (b * x))) elif a <= 2.7e+55: tmp = y0 * (c * t_2) elif a <= 7.2e+142: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) t_2 = Float64(Float64(x * y2) - Float64(y3 * z)) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= -9.8e-70) tmp = Float64(c * Float64(y0 * t_2)); elseif (a <= -3.2e-245) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (a <= 2.05e-268) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (a <= 2.7e+55) tmp = Float64(y0 * Float64(c * t_2)); elseif (a <= 7.2e+142) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * ((x * y) - (t * z))); t_2 = (x * y2) - (y3 * z); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= -9.8e-70) tmp = c * (y0 * t_2); elseif (a <= -3.2e-245) tmp = b * (y4 * ((j * t) - (k * y))); elseif (a <= 2.05e-268) tmp = y0 * (j * ((y3 * y5) - (b * x))); elseif (a <= 2.7e+55) tmp = y0 * (c * t_2); elseif (a <= 7.2e+142) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.8e-70], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-245], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-268], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+55], N[(y0 * N[(c * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+142], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := x \cdot y2 - y3 \cdot z\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -9.8 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-245}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-268}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 7.2000000000000003e142 < a Initial program 21.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.9%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6445.2
Applied rewrites45.2%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < -9.8000000000000001e-70Initial program 29.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6425.8
Applied rewrites25.8%
if -9.8000000000000001e-70 < a < -3.19999999999999986e-245Initial program 37.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.8%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6428.2
Applied rewrites28.2%
if -3.19999999999999986e-245 < a < 2.0499999999999999e-268Initial program 33.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if 2.0499999999999999e-268 < a < 2.69999999999999977e55Initial program 34.3%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.5
Applied rewrites27.5%
if 2.69999999999999977e55 < a < 7.2000000000000003e142Initial program 28.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.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) (* t z))))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a -9.5e-70)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= a -3.2e-245)
(* y4 (* b (- (* j t) (* k y))))
(if (<= a 2.05e-268)
(* y0 (* j (- (* y3 y5) (* b x))))
(if (<= a 1.05e+88)
(* y0 (* c (* y3 (- (/ (* x y2) y3) z))))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.5e-70) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (a <= -3.2e-245) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 1.05e+88) {
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)));
} 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) - (t * z)))
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= (-9.5d-70)) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if (a <= (-3.2d-245)) then
tmp = y4 * (b * ((j * t) - (k * y)))
else if (a <= 2.05d-268) then
tmp = y0 * (j * ((y3 * y5) - (b * x)))
else if (a <= 1.05d+88) then
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)))
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) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.5e-70) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (a <= -3.2e-245) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (a <= 2.05e-268) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (a <= 1.05e+88) {
tmp = y0 * (c * (y3 * (((x * y2) / y3) - z)));
} 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) - (t * z))) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= -9.5e-70: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif a <= -3.2e-245: tmp = y4 * (b * ((j * t) - (k * y))) elif a <= 2.05e-268: tmp = y0 * (j * ((y3 * y5) - (b * x))) elif a <= 1.05e+88: tmp = y0 * (c * (y3 * (((x * y2) / y3) - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= -9.5e-70) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (a <= -3.2e-245) tmp = Float64(y4 * Float64(b * Float64(Float64(j * t) - Float64(k * y)))); elseif (a <= 2.05e-268) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (a <= 1.05e+88) tmp = Float64(y0 * Float64(c * Float64(y3 * Float64(Float64(Float64(x * y2) / y3) - z)))); 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) - (t * z))); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= -9.5e-70) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif (a <= -3.2e-245) tmp = y4 * (b * ((j * t) - (k * y))); elseif (a <= 2.05e-268) tmp = y0 * (j * ((y3 * y5) - (b * x))); elseif (a <= 1.05e+88) tmp = y0 * (c * (y3 * (((x * y2) / y3) - z))); 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[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.5e-70], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-245], N[(y4 * N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-268], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+88], N[(y0 * N[(c * N[(y3 * N[(N[(N[(x * y2), $MachinePrecision] / y3), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -9.5 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-245}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{-268}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+88}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(y3 \cdot \left(\frac{x \cdot y2}{y3} - z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 1.05e88 < a Initial program 23.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6443.4
Applied rewrites43.4%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < -9.4999999999999994e-70Initial program 29.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6425.8
Applied rewrites25.8%
if -9.4999999999999994e-70 < a < -3.19999999999999986e-245Initial program 37.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in b around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if -3.19999999999999986e-245 < a < 2.0499999999999999e-268Initial program 33.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if 2.0499999999999999e-268 < a < 1.05e88Initial program 33.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.0%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lift-*.f6429.1
Applied rewrites29.1%
(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 -1.4e+43)
t_1
(if (<= b 5.1e+102)
(+
(* j (* i (* x y1)))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
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 <= -1.4e+43) {
tmp = t_1;
} else if (b <= 5.1e+102) {
tmp = (j * (i * (x * y1))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} 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 <= -1.4e+43) tmp = t_1; elseif (b <= 5.1e+102) tmp = Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); 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, -1.4e+43], t$95$1, If[LessEqual[b, 5.1e+102], N[(N[(j * N[(i * N[(x * y1), $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], 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 -1.4 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.40000000000000009e43 or 5.09999999999999957e102 < b Initial program 24.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites55.2%
if -1.40000000000000009e43 < b < 5.09999999999999957e102Initial program 34.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.3
Applied rewrites38.3%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f6437.8
Applied rewrites37.8%
(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) (* t z))))) (t_2 (- (* x y2) (* y3 z))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a -9.8e-70)
(* c (* y0 t_2))
(if (<= a -4.4e-248)
(* b (* y4 (- (* j t) (* k y))))
(if (<= a 2.7e+55)
(* y0 (* c t_2))
(if (<= a 7.2e+142)
(* y1 (* z (- (* a y3) (* i k))))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -4.4e-248) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * ((x * y) - (t * z)))
t_2 = (x * y2) - (y3 * z)
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= (-9.8d-70)) then
tmp = c * (y0 * t_2)
else if (a <= (-4.4d-248)) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (a <= 2.7d+55) then
tmp = y0 * (c * t_2)
else if (a <= 7.2d+142) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = (x * y2) - (y3 * z);
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = c * (y0 * t_2);
} else if (a <= -4.4e-248) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.7e+55) {
tmp = y0 * (c * t_2);
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * ((x * y) - (t * z))) t_2 = (x * y2) - (y3 * z) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= -9.8e-70: tmp = c * (y0 * t_2) elif a <= -4.4e-248: tmp = b * (y4 * ((j * t) - (k * y))) elif a <= 2.7e+55: tmp = y0 * (c * t_2) elif a <= 7.2e+142: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) t_2 = Float64(Float64(x * y2) - Float64(y3 * z)) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= -9.8e-70) tmp = Float64(c * Float64(y0 * t_2)); elseif (a <= -4.4e-248) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (a <= 2.7e+55) tmp = Float64(y0 * Float64(c * t_2)); elseif (a <= 7.2e+142) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * ((x * y) - (t * z))); t_2 = (x * y2) - (y3 * z); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= -9.8e-70) tmp = c * (y0 * t_2); elseif (a <= -4.4e-248) tmp = b * (y4 * ((j * t) - (k * y))); elseif (a <= 2.7e+55) tmp = y0 * (c * t_2); elseif (a <= 7.2e+142) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.8e-70], N[(c * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-248], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+55], N[(y0 * N[(c * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+142], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := x \cdot y2 - y3 \cdot z\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -9.8 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(y0 \cdot t\_2\right)\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-248}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;y0 \cdot \left(c \cdot t\_2\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 7.2000000000000003e142 < a Initial program 21.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.9%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6445.2
Applied rewrites45.2%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < -9.8000000000000001e-70Initial program 29.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6425.8
Applied rewrites25.8%
if -9.8000000000000001e-70 < a < -4.39999999999999999e-248Initial program 37.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.7%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.9
Applied rewrites27.9%
if -4.39999999999999999e-248 < a < 2.69999999999999977e55Initial program 33.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.4
Applied rewrites27.4%
if 2.69999999999999977e55 < a < 7.2000000000000003e142Initial program 28.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.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) (* t z)))))
(t_2 (* c (* y0 (- (* x y2) (* y3 z))))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a -9.8e-70)
t_2
(if (<= a -4.4e-248)
(* b (* y4 (- (* j t) (* k y))))
(if (<= a 2.7e+55)
t_2
(if (<= a 7.2e+142)
(* y1 (* z (- (* a y3) (* i k))))
t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = c * (y0 * ((x * y2) - (y3 * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = t_2;
} else if (a <= -4.4e-248) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.7e+55) {
tmp = t_2;
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (a * ((x * y) - (t * z)))
t_2 = c * (y0 * ((x * y2) - (y3 * z)))
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= (-9.8d-70)) then
tmp = t_2
else if (a <= (-4.4d-248)) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (a <= 2.7d+55) then
tmp = t_2
else if (a <= 7.2d+142) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double t_2 = c * (y0 * ((x * y2) - (y3 * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= -9.8e-70) {
tmp = t_2;
} else if (a <= -4.4e-248) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (a <= 2.7e+55) {
tmp = t_2;
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * ((x * y) - (t * z))) t_2 = c * (y0 * ((x * y2) - (y3 * z))) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= -9.8e-70: tmp = t_2 elif a <= -4.4e-248: tmp = b * (y4 * ((j * t) - (k * y))) elif a <= 2.7e+55: tmp = t_2 elif a <= 7.2e+142: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) t_2 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= -9.8e-70) tmp = t_2; elseif (a <= -4.4e-248) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (a <= 2.7e+55) tmp = t_2; elseif (a <= 7.2e+142) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * ((x * y) - (t * z))); t_2 = c * (y0 * ((x * y2) - (y3 * z))); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= -9.8e-70) tmp = t_2; elseif (a <= -4.4e-248) tmp = b * (y4 * ((j * t) - (k * y))); elseif (a <= 2.7e+55) tmp = t_2; elseif (a <= 7.2e+142) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.8e-70], t$95$2, If[LessEqual[a, -4.4e-248], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+55], t$95$2, If[LessEqual[a, 7.2e+142], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq -9.8 \cdot 10^{-70}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-248}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 7.2000000000000003e142 < a Initial program 21.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.9%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6445.2
Applied rewrites45.2%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < -9.8000000000000001e-70 or -4.39999999999999999e-248 < a < 2.69999999999999977e55Initial program 33.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.5
Applied rewrites27.5%
if -9.8000000000000001e-70 < a < -4.39999999999999999e-248Initial program 37.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.7%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.9
Applied rewrites27.9%
if 2.69999999999999977e55 < a < 7.2000000000000003e142Initial program 33.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6421.7
Applied rewrites21.7%
(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) (* t z))))))
(if (<= a -9.2e+238)
t_1
(if (<= a -2.5e+137)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= a -1.15e+24)
(* k (* z (- (* b y0) (* i y1))))
(if (<= a 2.7e+55)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= a 7.2e+142) (* y1 (* z (- (* a y3) (* i k)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= 2.7e+55) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * ((x * y) - (t * z)))
if (a <= (-9.2d+238)) then
tmp = t_1
else if (a <= (-2.5d+137)) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (a <= (-1.15d+24)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (a <= 2.7d+55) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if (a <= 7.2d+142) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (a * ((x * y) - (t * z)));
double tmp;
if (a <= -9.2e+238) {
tmp = t_1;
} else if (a <= -2.5e+137) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (a <= -1.15e+24) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (a <= 2.7e+55) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (a <= 7.2e+142) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (a * ((x * y) - (t * z))) tmp = 0 if a <= -9.2e+238: tmp = t_1 elif a <= -2.5e+137: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif a <= -1.15e+24: tmp = k * (z * ((b * y0) - (i * y1))) elif a <= 2.7e+55: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif a <= 7.2e+142: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (a <= -1.15e+24) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (a <= 2.7e+55) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (a <= 7.2e+142) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (a * ((x * y) - (t * z))); tmp = 0.0; if (a <= -9.2e+238) tmp = t_1; elseif (a <= -2.5e+137) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (a <= -1.15e+24) tmp = k * (z * ((b * y0) - (i * y1))); elseif (a <= 2.7e+55) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif (a <= 7.2e+142) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.2e+238], t$95$1, If[LessEqual[a, -2.5e+137], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.15e+24], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e+55], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+142], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;a \leq -9.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{+137}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{+24}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+55}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+142}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.2000000000000001e238 or 7.2000000000000003e142 < a Initial program 21.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.9%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6445.2
Applied rewrites45.2%
if -9.2000000000000001e238 < a < -2.5000000000000001e137Initial program 24.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.0
Applied rewrites37.0%
if -2.5000000000000001e137 < a < -1.15e24Initial program 32.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.4
Applied rewrites28.4%
if -1.15e24 < a < 2.69999999999999977e55Initial program 34.2%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
if 2.69999999999999977e55 < a < 7.2000000000000003e142Initial program 28.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* y3 z))))))
(if (<= y0 -2.6e+98)
t_1
(if (<= y0 -5.6e-246)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y0 -1.4e-307)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y0 1.16e-30)
(* i (* z (- (* c t) (* k y1))))
(if (<= y0 2.7e+121) (* a (* y3 (- (* y1 z) (* y y5)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (y3 * z)));
double tmp;
if (y0 <= -2.6e+98) {
tmp = t_1;
} else if (y0 <= -5.6e-246) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y0 <= -1.4e-307) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y0 <= 1.16e-30) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y0 <= 2.7e+121) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (y3 * z)))
if (y0 <= (-2.6d+98)) then
tmp = t_1
else if (y0 <= (-5.6d-246)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y0 <= (-1.4d-307)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y0 <= 1.16d-30) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (y0 <= 2.7d+121) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (y3 * z)));
double tmp;
if (y0 <= -2.6e+98) {
tmp = t_1;
} else if (y0 <= -5.6e-246) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y0 <= -1.4e-307) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y0 <= 1.16e-30) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y0 <= 2.7e+121) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (y3 * z))) tmp = 0 if y0 <= -2.6e+98: tmp = t_1 elif y0 <= -5.6e-246: tmp = y1 * (z * ((a * y3) - (i * k))) elif y0 <= -1.4e-307: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y0 <= 1.16e-30: tmp = i * (z * ((c * t) - (k * y1))) elif y0 <= 2.7e+121: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) tmp = 0.0 if (y0 <= -2.6e+98) tmp = t_1; elseif (y0 <= -5.6e-246) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y0 <= -1.4e-307) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y0 <= 1.16e-30) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (y0 <= 2.7e+121) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (y3 * z))); tmp = 0.0; if (y0 <= -2.6e+98) tmp = t_1; elseif (y0 <= -5.6e-246) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y0 <= -1.4e-307) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y0 <= 1.16e-30) tmp = i * (z * ((c * t) - (k * y1))); elseif (y0 <= 2.7e+121) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -2.6e+98], t$95$1, If[LessEqual[y0, -5.6e-246], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.4e-307], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.16e-30], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.7e+121], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{if}\;y0 \leq -2.6 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -5.6 \cdot 10^{-246}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y0 \leq -1.4 \cdot 10^{-307}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 1.16 \cdot 10^{-30}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq 2.7 \cdot 10^{+121}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -2.6e98 or 2.7000000000000002e121 < y0 Initial program 23.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites57.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6443.2
Applied rewrites43.2%
if -2.6e98 < y0 < -5.5999999999999999e-246Initial program 33.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.4%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.1
Applied rewrites25.1%
if -5.5999999999999999e-246 < y0 < -1.4e-307Initial program 35.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites32.5%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.3
Applied rewrites26.3%
if -1.4e-307 < y0 < 1.16e-30Initial program 36.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.1
Applied rewrites28.1%
if 1.16e-30 < y0 < 2.7000000000000002e121Initial program 28.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.6
Applied rewrites25.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* y3 (- (* c y4) (* a y5))))))
(if (<= c -4.8e+92)
t_1
(if (<= c -1.1e+58)
(* y0 (* c (* x y2)))
(if (<= c -8.5e-285)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= c 3.9e-34)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= c 4.5e+225) t_1 (* i (* z (- (* c t) (* k y1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -4.8e+92) {
tmp = t_1;
} else if (c <= -1.1e+58) {
tmp = y0 * (c * (x * y2));
} else if (c <= -8.5e-285) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (c <= 4.5e+225) {
tmp = t_1;
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (y3 * ((c * y4) - (a * y5)))
if (c <= (-4.8d+92)) then
tmp = t_1
else if (c <= (-1.1d+58)) then
tmp = y0 * (c * (x * y2))
else if (c <= (-8.5d-285)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (c <= 3.9d-34) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (c <= 4.5d+225) then
tmp = t_1
else
tmp = i * (z * ((c * t) - (k * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -4.8e+92) {
tmp = t_1;
} else if (c <= -1.1e+58) {
tmp = y0 * (c * (x * y2));
} else if (c <= -8.5e-285) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (c <= 4.5e+225) {
tmp = t_1;
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (y3 * ((c * y4) - (a * y5))) tmp = 0 if c <= -4.8e+92: tmp = t_1 elif c <= -1.1e+58: tmp = y0 * (c * (x * y2)) elif c <= -8.5e-285: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif c <= 3.9e-34: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif c <= 4.5e+225: tmp = t_1 else: tmp = i * (z * ((c * t) - (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))) tmp = 0.0 if (c <= -4.8e+92) tmp = t_1; elseif (c <= -1.1e+58) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (c <= -8.5e-285) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (c <= 3.9e-34) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (c <= 4.5e+225) tmp = t_1; else tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (y3 * ((c * y4) - (a * y5))); tmp = 0.0; if (c <= -4.8e+92) tmp = t_1; elseif (c <= -1.1e+58) tmp = y0 * (c * (x * y2)); elseif (c <= -8.5e-285) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (c <= 3.9e-34) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (c <= 4.5e+225) tmp = t_1; else tmp = i * (z * ((c * t) - (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.8e+92], t$95$1, If[LessEqual[c, -1.1e+58], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.5e-285], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.9e-34], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.5e+225], t$95$1, N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -4.8 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{+58}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-285}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-34}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 4.5 \cdot 10^{+225}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\end{array}
\end{array}
if c < -4.80000000000000009e92 or 3.89999999999999991e-34 < c < 4.49999999999999976e225Initial program 26.4%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6432.1
Applied rewrites32.1%
if -4.80000000000000009e92 < c < -1.1e58Initial program 29.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
Taylor expanded in x around inf
lift-*.f6417.4
Applied rewrites17.4%
if -1.1e58 < c < -8.49999999999999979e-285Initial program 34.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
if -8.49999999999999979e-285 < c < 3.89999999999999991e-34Initial program 34.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
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-*.f64N/A
lower-*.f6427.5
Applied rewrites27.5%
if 4.49999999999999976e225 < c Initial program 26.4%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6431.7
Applied rewrites31.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* y3 (- (* c y4) (* a y5))))))
(if (<= c -4.8e+92)
t_1
(if (<= c -1.1e+58)
(* y0 (* c (* x y2)))
(if (<= c -8.5e-285)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= c 3.9e-34) (* a (* y3 (- (* y1 z) (* y y5)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -4.8e+92) {
tmp = t_1;
} else if (c <= -1.1e+58) {
tmp = y0 * (c * (x * y2));
} else if (c <= -8.5e-285) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (y3 * ((c * y4) - (a * y5)))
if (c <= (-4.8d+92)) then
tmp = t_1
else if (c <= (-1.1d+58)) then
tmp = y0 * (c * (x * y2))
else if (c <= (-8.5d-285)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (c <= 3.9d-34) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -4.8e+92) {
tmp = t_1;
} else if (c <= -1.1e+58) {
tmp = y0 * (c * (x * y2));
} else if (c <= -8.5e-285) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (y3 * ((c * y4) - (a * y5))) tmp = 0 if c <= -4.8e+92: tmp = t_1 elif c <= -1.1e+58: tmp = y0 * (c * (x * y2)) elif c <= -8.5e-285: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif c <= 3.9e-34: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))) tmp = 0.0 if (c <= -4.8e+92) tmp = t_1; elseif (c <= -1.1e+58) tmp = Float64(y0 * Float64(c * Float64(x * y2))); elseif (c <= -8.5e-285) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (c <= 3.9e-34) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (y3 * ((c * y4) - (a * y5))); tmp = 0.0; if (c <= -4.8e+92) tmp = t_1; elseif (c <= -1.1e+58) tmp = y0 * (c * (x * y2)); elseif (c <= -8.5e-285) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (c <= 3.9e-34) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.8e+92], t$95$1, If[LessEqual[c, -1.1e+58], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.5e-285], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.9e-34], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -4.8 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{+58}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq -8.5 \cdot 10^{-285}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-34}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.80000000000000009e92 or 3.89999999999999991e-34 < c Initial program 25.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6433.3
Applied rewrites33.3%
if -4.80000000000000009e92 < c < -1.1e58Initial program 29.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
Taylor expanded in x around inf
lift-*.f6417.4
Applied rewrites17.4%
if -1.1e58 < c < -8.49999999999999979e-285Initial program 34.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
if -8.49999999999999979e-285 < c < 3.89999999999999991e-34Initial program 34.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
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-*.f64N/A
lower-*.f6427.5
Applied rewrites27.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.05e+95)
(* k (* z (- (* b y0) (* i y1))))
(if (<= z 2.6e+106)
(* y3 (* y5 (- (* j y0) (* a y))))
(* y1 (* z (- (* a y3) (* i k)))))))
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.05e+95) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (z <= 2.6e+106) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else {
tmp = y1 * (z * ((a * y3) - (i * k)));
}
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.05d+95)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (z <= 2.6d+106) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else
tmp = y1 * (z * ((a * y3) - (i * k)))
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.05e+95) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (z <= 2.6e+106) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else {
tmp = y1 * (z * ((a * y3) - (i * k)));
}
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.05e+95: tmp = k * (z * ((b * y0) - (i * y1))) elif z <= 2.6e+106: tmp = y3 * (y5 * ((j * y0) - (a * y))) else: tmp = y1 * (z * ((a * y3) - (i * k))) 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.05e+95) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (z <= 2.6e+106) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); else tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); 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.05e+95) tmp = k * (z * ((b * y0) - (i * y1))); elseif (z <= 2.6e+106) tmp = y3 * (y5 * ((j * y0) - (a * y))); else tmp = y1 * (z * ((a * y3) - (i * k))); 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.05e+95], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+106], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+95}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+106}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\end{array}
\end{array}
if z < -1.05e95Initial program 22.5%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.9%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6441.5
Applied rewrites41.5%
if -1.05e95 < z < 2.6000000000000002e106Initial program 34.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.8
Applied rewrites27.8%
if 2.6000000000000002e106 < z Initial program 23.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6445.3
Applied rewrites45.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1))))))
(if (<= z -1.05e+95)
t_1
(if (<= z 2.9e+97) (* y3 (* y5 (- (* j y0) (* a y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double tmp;
if (z <= -1.05e+95) {
tmp = t_1;
} else if (z <= 2.9e+97) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (z * ((b * y0) - (i * y1)))
if (z <= (-1.05d+95)) then
tmp = t_1
else if (z <= 2.9d+97) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (z * ((b * y0) - (i * y1)));
double tmp;
if (z <= -1.05e+95) {
tmp = t_1;
} else if (z <= 2.9e+97) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (z * ((b * y0) - (i * y1))) tmp = 0 if z <= -1.05e+95: tmp = t_1 elif z <= 2.9e+97: tmp = y3 * (y5 * ((j * y0) - (a * y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) tmp = 0.0 if (z <= -1.05e+95) tmp = t_1; elseif (z <= 2.9e+97) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (z * ((b * y0) - (i * y1))); tmp = 0.0; if (z <= -1.05e+95) tmp = t_1; elseif (z <= 2.9e+97) tmp = y3 * (y5 * ((j * y0) - (a * y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e+95], t$95$1, If[LessEqual[z, 2.9e+97], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+97}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.05e95 or 2.89999999999999987e97 < z Initial program 23.4%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites54.5%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6443.2
Applied rewrites43.2%
if -1.05e95 < z < 2.89999999999999987e97Initial program 34.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.8
Applied rewrites27.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* y3 (- (* c y4) (* a y5))))))
(if (<= c -5e+92)
t_1
(if (<= c 3.9e-34) (* a (* y3 (- (* y1 z) (* y y5)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -5e+92) {
tmp = t_1;
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (y3 * ((c * y4) - (a * y5)))
if (c <= (-5d+92)) then
tmp = t_1
else if (c <= 3.9d-34) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y3 * ((c * y4) - (a * y5)));
double tmp;
if (c <= -5e+92) {
tmp = t_1;
} else if (c <= 3.9e-34) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (y3 * ((c * y4) - (a * y5))) tmp = 0 if c <= -5e+92: tmp = t_1 elif c <= 3.9e-34: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))) tmp = 0.0 if (c <= -5e+92) tmp = t_1; elseif (c <= 3.9e-34) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (y3 * ((c * y4) - (a * y5))); tmp = 0.0; if (c <= -5e+92) tmp = t_1; elseif (c <= 3.9e-34) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5e+92], t$95$1, If[LessEqual[c, 3.9e-34], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;c \leq -5 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-34}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -5.00000000000000022e92 or 3.89999999999999991e-34 < c Initial program 25.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6433.3
Applied rewrites33.3%
if -5.00000000000000022e92 < c < 3.89999999999999991e-34Initial program 34.3%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= k 1.8e+98) (* a (* y3 (- (* y1 z) (* y y5)))) (* i (* z (* -1.0 (* k y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= 1.8e+98) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = i * (z * (-1.0 * (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= 1.8d+98) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = i * (z * ((-1.0d0) * (k * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= 1.8e+98) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = i * (z * (-1.0 * (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= 1.8e+98: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = i * (z * (-1.0 * (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= 1.8e+98) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = Float64(i * Float64(z * Float64(-1.0 * Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= 1.8e+98) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = i * (z * (-1.0 * (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, 1.8e+98], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(-1.0 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 1.8 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(-1 \cdot \left(k \cdot y1\right)\right)\right)\\
\end{array}
\end{array}
if k < 1.7999999999999999e98Initial program 31.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1
Applied rewrites26.1%
if 1.7999999999999999e98 < k Initial program 24.6%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.4
Applied rewrites37.4%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6433.4
Applied rewrites33.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y3 -0.00098) (* y4 (* c (* y y3))) (if (<= y3 3.1e-19) (* b (* a (* x y))) (* c (* z (* -1.0 (* y0 y3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -0.00098) {
tmp = y4 * (c * (y * y3));
} else if (y3 <= 3.1e-19) {
tmp = b * (a * (x * y));
} else {
tmp = c * (z * (-1.0 * (y0 * y3)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-0.00098d0)) then
tmp = y4 * (c * (y * y3))
else if (y3 <= 3.1d-19) then
tmp = b * (a * (x * y))
else
tmp = c * (z * ((-1.0d0) * (y0 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -0.00098) {
tmp = y4 * (c * (y * y3));
} else if (y3 <= 3.1e-19) {
tmp = b * (a * (x * y));
} else {
tmp = c * (z * (-1.0 * (y0 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -0.00098: tmp = y4 * (c * (y * y3)) elif y3 <= 3.1e-19: tmp = b * (a * (x * y)) else: tmp = c * (z * (-1.0 * (y0 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -0.00098) tmp = Float64(y4 * Float64(c * Float64(y * y3))); elseif (y3 <= 3.1e-19) tmp = Float64(b * Float64(a * Float64(x * y))); else tmp = Float64(c * Float64(z * Float64(-1.0 * Float64(y0 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -0.00098) tmp = y4 * (c * (y * y3)); elseif (y3 <= 3.1e-19) tmp = b * (a * (x * y)); else tmp = c * (z * (-1.0 * (y0 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -0.00098], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.1e-19], N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * N[(-1.0 * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -0.00098:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 3.1 \cdot 10^{-19}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-1 \cdot \left(y0 \cdot y3\right)\right)\right)\\
\end{array}
\end{array}
if y3 < -9.7999999999999997e-4Initial program 25.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.1
Applied rewrites40.1%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6428.0
Applied rewrites28.0%
if -9.7999999999999997e-4 < y3 < 3.0999999999999999e-19Initial program 35.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.4
Applied rewrites28.4%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6417.6
Applied rewrites17.6%
if 3.0999999999999999e-19 < y3 Initial program 27.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in c around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6432.1
Applied rewrites32.1%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6426.2
Applied rewrites26.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* x (* a y)))))
(if (<= a -1.2e+124)
t_1
(if (<= a -8.5e-251)
(* i (* z (* c t)))
(if (<= a 5.5e+133) (* y0 (* c (* x 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 * (x * (a * y));
double tmp;
if (a <= -1.2e+124) {
tmp = t_1;
} else if (a <= -8.5e-251) {
tmp = i * (z * (c * t));
} else if (a <= 5.5e+133) {
tmp = y0 * (c * (x * 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 * (x * (a * y))
if (a <= (-1.2d+124)) then
tmp = t_1
else if (a <= (-8.5d-251)) then
tmp = i * (z * (c * t))
else if (a <= 5.5d+133) then
tmp = y0 * (c * (x * 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 * (x * (a * y));
double tmp;
if (a <= -1.2e+124) {
tmp = t_1;
} else if (a <= -8.5e-251) {
tmp = i * (z * (c * t));
} else if (a <= 5.5e+133) {
tmp = y0 * (c * (x * 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 * (x * (a * y)) tmp = 0 if a <= -1.2e+124: tmp = t_1 elif a <= -8.5e-251: tmp = i * (z * (c * t)) elif a <= 5.5e+133: tmp = y0 * (c * (x * 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(x * Float64(a * y))) tmp = 0.0 if (a <= -1.2e+124) tmp = t_1; elseif (a <= -8.5e-251) tmp = Float64(i * Float64(z * Float64(c * t))); elseif (a <= 5.5e+133) tmp = Float64(y0 * Float64(c * Float64(x * 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 * (x * (a * y)); tmp = 0.0; if (a <= -1.2e+124) tmp = t_1; elseif (a <= -8.5e-251) tmp = i * (z * (c * t)); elseif (a <= 5.5e+133) tmp = y0 * (c * (x * 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[(x * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.2e+124], t$95$1, If[LessEqual[a, -8.5e-251], N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e+133], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(x \cdot \left(a \cdot y\right)\right)\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-251}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t\right)\right)\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+133}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.20000000000000003e124 or 5.5e133 < a Initial program 23.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.5
Applied rewrites37.5%
Taylor expanded in y around inf
lift-*.f6433.7
Applied rewrites33.7%
if -1.20000000000000003e124 < a < -8.49999999999999984e-251Initial program 34.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
Taylor expanded in t around inf
lift-*.f6416.0
Applied rewrites16.0%
if -8.49999999999999984e-251 < a < 5.5e133Initial program 33.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.0
Applied rewrites27.0%
Taylor expanded in x around inf
lift-*.f6417.7
Applied rewrites17.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y3 -0.00098) (* y4 (* c (* y y3))) (if (<= y3 3.1e-19) (* b (* a (* x y))) (* c (* -1.0 (* y0 (* y3 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 (y3 <= -0.00098) {
tmp = y4 * (c * (y * y3));
} else if (y3 <= 3.1e-19) {
tmp = b * (a * (x * y));
} else {
tmp = c * (-1.0 * (y0 * (y3 * 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 (y3 <= (-0.00098d0)) then
tmp = y4 * (c * (y * y3))
else if (y3 <= 3.1d-19) then
tmp = b * (a * (x * y))
else
tmp = c * ((-1.0d0) * (y0 * (y3 * 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 (y3 <= -0.00098) {
tmp = y4 * (c * (y * y3));
} else if (y3 <= 3.1e-19) {
tmp = b * (a * (x * y));
} else {
tmp = c * (-1.0 * (y0 * (y3 * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -0.00098: tmp = y4 * (c * (y * y3)) elif y3 <= 3.1e-19: tmp = b * (a * (x * y)) else: tmp = c * (-1.0 * (y0 * (y3 * 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 (y3 <= -0.00098) tmp = Float64(y4 * Float64(c * Float64(y * y3))); elseif (y3 <= 3.1e-19) tmp = Float64(b * Float64(a * Float64(x * y))); else tmp = Float64(c * Float64(-1.0 * Float64(y0 * Float64(y3 * 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 (y3 <= -0.00098) tmp = y4 * (c * (y * y3)); elseif (y3 <= 3.1e-19) tmp = b * (a * (x * y)); else tmp = c * (-1.0 * (y0 * (y3 * 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[y3, -0.00098], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.1e-19], N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(-1.0 * N[(y0 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -0.00098:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 3.1 \cdot 10^{-19}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(-1 \cdot \left(y0 \cdot \left(y3 \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if y3 < -9.7999999999999997e-4Initial program 25.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.1
Applied rewrites40.1%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6428.0
Applied rewrites28.0%
if -9.7999999999999997e-4 < y3 < 3.0999999999999999e-19Initial program 35.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.4
Applied rewrites28.4%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6417.6
Applied rewrites17.6%
if 3.0999999999999999e-19 < y3 Initial program 27.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in c around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6432.1
Applied rewrites32.1%
Taylor expanded in t around 0
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 (<= y -4.2e-50) (* b (* a (* x y))) (if (<= y 1.12e-66) (* y0 (* c (* x y2))) (* y4 (* c (* y y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -4.2e-50) {
tmp = b * (a * (x * y));
} else if (y <= 1.12e-66) {
tmp = y0 * (c * (x * y2));
} else {
tmp = y4 * (c * (y * y3));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-4.2d-50)) then
tmp = b * (a * (x * y))
else if (y <= 1.12d-66) then
tmp = y0 * (c * (x * y2))
else
tmp = y4 * (c * (y * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -4.2e-50) {
tmp = b * (a * (x * y));
} else if (y <= 1.12e-66) {
tmp = y0 * (c * (x * y2));
} else {
tmp = y4 * (c * (y * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -4.2e-50: tmp = b * (a * (x * y)) elif y <= 1.12e-66: tmp = y0 * (c * (x * y2)) else: tmp = y4 * (c * (y * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -4.2e-50) tmp = Float64(b * Float64(a * Float64(x * y))); elseif (y <= 1.12e-66) tmp = Float64(y0 * Float64(c * Float64(x * y2))); else tmp = Float64(y4 * Float64(c * Float64(y * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -4.2e-50) tmp = b * (a * (x * y)); elseif (y <= 1.12e-66) tmp = y0 * (c * (x * y2)); else tmp = y4 * (c * (y * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -4.2e-50], N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.12e-66], N[(y0 * N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{-50}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-66}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y < -4.2000000000000002e-50Initial program 28.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.5
Applied rewrites32.5%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if -4.2000000000000002e-50 < y < 1.12000000000000004e-66Initial program 34.2%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in c around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.4
Applied rewrites27.4%
Taylor expanded in x around inf
lift-*.f6417.2
Applied rewrites17.2%
if 1.12000000000000004e-66 < y Initial program 28.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6430.8
Applied rewrites30.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6424.9
Applied rewrites24.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -15.0) (* i (* c (* t z))) (if (<= z 2.3e+101) (* b (* x (* a y))) (* c (* i (* t z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -15.0) {
tmp = i * (c * (t * z));
} else if (z <= 2.3e+101) {
tmp = b * (x * (a * y));
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-15.0d0)) then
tmp = i * (c * (t * z))
else if (z <= 2.3d+101) then
tmp = b * (x * (a * y))
else
tmp = c * (i * (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -15.0) {
tmp = i * (c * (t * z));
} else if (z <= 2.3e+101) {
tmp = b * (x * (a * y));
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -15.0: tmp = i * (c * (t * z)) elif z <= 2.3e+101: tmp = b * (x * (a * y)) else: tmp = c * (i * (t * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -15.0) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (z <= 2.3e+101) tmp = Float64(b * Float64(x * Float64(a * y))); else tmp = Float64(c * Float64(i * Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -15.0) tmp = i * (c * (t * z)); elseif (z <= 2.3e+101) tmp = b * (x * (a * y)); else tmp = c * (i * (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -15.0], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+101], N[(b * N[(x * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -15:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -15Initial program 24.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.6
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6425.7
Applied rewrites25.7%
if -15 < z < 2.3000000000000001e101Initial program 34.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
Taylor expanded in y around inf
lift-*.f6418.1
Applied rewrites18.1%
if 2.3000000000000001e101 < z Initial program 24.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.5%
Taylor expanded in c around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6445.5
Applied rewrites45.5%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6432.6
Applied rewrites32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -15.0) (* i (* c (* t z))) (if (<= z 2.3e+101) (* b (* a (* x y))) (* c (* i (* t z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -15.0) {
tmp = i * (c * (t * z));
} else if (z <= 2.3e+101) {
tmp = b * (a * (x * y));
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-15.0d0)) then
tmp = i * (c * (t * z))
else if (z <= 2.3d+101) then
tmp = b * (a * (x * y))
else
tmp = c * (i * (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -15.0) {
tmp = i * (c * (t * z));
} else if (z <= 2.3e+101) {
tmp = b * (a * (x * y));
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -15.0: tmp = i * (c * (t * z)) elif z <= 2.3e+101: tmp = b * (a * (x * y)) else: tmp = c * (i * (t * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -15.0) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (z <= 2.3e+101) tmp = Float64(b * Float64(a * Float64(x * y))); else tmp = Float64(c * Float64(i * Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -15.0) tmp = i * (c * (t * z)); elseif (z <= 2.3e+101) tmp = b * (a * (x * y)); else tmp = c * (i * (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -15.0], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+101], N[(b * N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -15:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -15Initial program 24.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.6
Applied rewrites36.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6425.7
Applied rewrites25.7%
if -15 < z < 2.3000000000000001e101Initial program 34.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6418.3
Applied rewrites18.3%
if 2.3000000000000001e101 < z Initial program 24.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.5%
Taylor expanded in c around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6445.5
Applied rewrites45.5%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6432.6
Applied rewrites32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* z (* c t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (z * (c * t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (z * (c * t))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (z * (c * t));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (z * (c * t))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(z * Float64(c * t))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (z * (c * t)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(z * N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(z \cdot \left(c \cdot t\right)\right)
\end{array}
Initial program 30.6%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
Taylor expanded in t around inf
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* c (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (c * (t * z))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (c * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(c * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (c * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(c \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 30.6%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
Taylor expanded in t around inf
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 (* c (* i (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = c * (i * (t * z))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * (i * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(i * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * (i * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(i \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 30.6%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in c around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.1
Applied rewrites26.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
herbie shell --seed 2025120
(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)))))