
(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 31 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* j t) (* k y)))
(t_4 (- (* c y4) (* a y5)))
(t_5 (- (* j x) (* k z)))
(t_6 (* y1 t_5))
(t_7 (- (* a b) (* c i)))
(t_8
(*
t
(- (fma -1.0 (* z t_7) (* j (- (* b y4) (* i y5)))) (* y2 t_4)))))
(if (<= i -6.2e+196)
(* i t_6)
(if (<= i -4.3e+51)
t_8
(if (<= i -1e+39)
(* y4 (- (fma b t_3 (* y1 t_2)) (* c (- (* t y2) (* y y3)))))
(if (<= i -5.3e-84)
(*
y0
(- (fma -1.0 (* y5 t_2) (* c (- (* x y2) (* y3 z)))) (* b t_5)))
(if (<= i -8.5e-256)
(* y2 (- (fma k (- (* y1 y4) (* y0 y5)) (* x t_1)) (* t t_4)))
(if (<= i 6e-129)
(* x (- (fma y t_7 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
(if (<= i 64000.0)
t_8
(*
-1.0
(*
i
(- (fma c (- (* x y) (* t z)) (* y5 t_3)) t_6))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (k * y2) - (j * y3);
double t_3 = (j * t) - (k * y);
double t_4 = (c * y4) - (a * y5);
double t_5 = (j * x) - (k * z);
double t_6 = y1 * t_5;
double t_7 = (a * b) - (c * i);
double t_8 = t * (fma(-1.0, (z * t_7), (j * ((b * y4) - (i * y5)))) - (y2 * t_4));
double tmp;
if (i <= -6.2e+196) {
tmp = i * t_6;
} else if (i <= -4.3e+51) {
tmp = t_8;
} else if (i <= -1e+39) {
tmp = y4 * (fma(b, t_3, (y1 * t_2)) - (c * ((t * y2) - (y * y3))));
} else if (i <= -5.3e-84) {
tmp = y0 * (fma(-1.0, (y5 * t_2), (c * ((x * y2) - (y3 * z)))) - (b * t_5));
} else if (i <= -8.5e-256) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * t_4));
} else if (i <= 6e-129) {
tmp = x * (fma(y, t_7, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (i <= 64000.0) {
tmp = t_8;
} else {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_3)) - t_6));
}
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(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(j * t) - Float64(k * y)) t_4 = Float64(Float64(c * y4) - Float64(a * y5)) t_5 = Float64(Float64(j * x) - Float64(k * z)) t_6 = Float64(y1 * t_5) t_7 = Float64(Float64(a * b) - Float64(c * i)) t_8 = Float64(t * Float64(fma(-1.0, Float64(z * t_7), Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(y2 * t_4))) tmp = 0.0 if (i <= -6.2e+196) tmp = Float64(i * t_6); elseif (i <= -4.3e+51) tmp = t_8; elseif (i <= -1e+39) tmp = Float64(y4 * Float64(fma(b, t_3, Float64(y1 * t_2)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (i <= -5.3e-84) tmp = Float64(y0 * Float64(fma(-1.0, Float64(y5 * t_2), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(b * t_5))); elseif (i <= -8.5e-256) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * t_4))); elseif (i <= 6e-129) tmp = Float64(x * Float64(fma(y, t_7, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (i <= 64000.0) tmp = t_8; else tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_3)) - t_6))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $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]}, Block[{t$95$4 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y1 * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t * N[(N[(-1.0 * N[(z * t$95$7), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.2e+196], N[(i * t$95$6), $MachinePrecision], If[LessEqual[i, -4.3e+51], t$95$8, If[LessEqual[i, -1e+39], 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], If[LessEqual[i, -5.3e-84], N[(y0 * N[(N[(-1.0 * N[(y5 * t$95$2), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.5e-256], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-129], N[(x * N[(N[(y * t$95$7 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 64000.0], t$95$8, 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] - t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := j \cdot t - k \cdot y\\
t_4 := c \cdot y4 - a \cdot y5\\
t_5 := j \cdot x - k \cdot z\\
t_6 := y1 \cdot t\_5\\
t_7 := a \cdot b - c \cdot i\\
t_8 := t \cdot \left(\mathsf{fma}\left(-1, z \cdot t\_7, j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot t\_4\right)\\
\mathbf{if}\;i \leq -6.2 \cdot 10^{+196}:\\
\;\;\;\;i \cdot t\_6\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{+51}:\\
\;\;\;\;t\_8\\
\mathbf{elif}\;i \leq -1 \cdot 10^{+39}:\\
\;\;\;\;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{elif}\;i \leq -5.3 \cdot 10^{-84}:\\
\;\;\;\;y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot t\_2, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot t\_5\right)\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-256}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot t\_4\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-129}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_7, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;i \leq 64000:\\
\;\;\;\;t\_8\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - t\_6\right)\right)\\
\end{array}
\end{array}
if i < -6.2000000000000002e196Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if -6.2000000000000002e196 < i < -4.2999999999999997e51 or 5.9999999999999996e-129 < i < 64000Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
if -4.2999999999999997e51 < i < -9.9999999999999994e38Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
if -9.9999999999999994e38 < i < -5.3000000000000004e-84Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
if -5.3000000000000004e-84 < i < -8.49999999999999959e-256Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
if -8.49999999999999959e-256 < i < 5.9999999999999996e-129Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
if 64000 < i Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* a b) (* c i)))
(t_3 (- (* j t) (* k y)))
(t_4 (* y1 (- (* j x) (* k z))))
(t_5 (- (* c y4) (* a y5)))
(t_6
(*
t
(- (fma -1.0 (* z t_2) (* j (- (* b y4) (* i y5)))) (* y2 t_5)))))
(if (<= i -6.2e+196)
(* i t_4)
(if (<= i -4.3e+51)
t_6
(if (<= i -9.5e+37)
(*
y4
(-
(fma b t_3 (* y1 (- (* k y2) (* j y3))))
(* c (- (* t y2) (* y y3)))))
(if (<= i -8.5e-256)
(* y2 (- (fma k (- (* y1 y4) (* y0 y5)) (* x t_1)) (* t t_5)))
(if (<= i 6e-129)
(* x (- (fma y t_2 (* y2 t_1)) (* j (- (* b y0) (* i y1)))))
(if (<= i 64000.0)
t_6
(*
-1.0
(* i (- (fma c (- (* x y) (* t z)) (* y5 t_3)) t_4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (a * b) - (c * i);
double t_3 = (j * t) - (k * y);
double t_4 = y1 * ((j * x) - (k * z));
double t_5 = (c * y4) - (a * y5);
double t_6 = t * (fma(-1.0, (z * t_2), (j * ((b * y4) - (i * y5)))) - (y2 * t_5));
double tmp;
if (i <= -6.2e+196) {
tmp = i * t_4;
} else if (i <= -4.3e+51) {
tmp = t_6;
} else if (i <= -9.5e+37) {
tmp = y4 * (fma(b, t_3, (y1 * ((k * y2) - (j * y3)))) - (c * ((t * y2) - (y * y3))));
} else if (i <= -8.5e-256) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * t_5));
} else if (i <= 6e-129) {
tmp = x * (fma(y, t_2, (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (i <= 64000.0) {
tmp = t_6;
} else {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_3)) - t_4));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(j * t) - Float64(k * y)) t_4 = Float64(y1 * Float64(Float64(j * x) - Float64(k * z))) t_5 = Float64(Float64(c * y4) - Float64(a * y5)) t_6 = Float64(t * Float64(fma(-1.0, Float64(z * t_2), Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(y2 * t_5))) tmp = 0.0 if (i <= -6.2e+196) tmp = Float64(i * t_4); elseif (i <= -4.3e+51) tmp = t_6; elseif (i <= -9.5e+37) tmp = Float64(y4 * Float64(fma(b, t_3, Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (i <= -8.5e-256) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * t_5))); elseif (i <= 6e-129) tmp = Float64(x * Float64(fma(y, t_2, Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (i <= 64000.0) tmp = t_6; else tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_3)) - t_4))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(t * N[(N[(-1.0 * N[(z * t$95$2), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6.2e+196], N[(i * t$95$4), $MachinePrecision], If[LessEqual[i, -4.3e+51], t$95$6, If[LessEqual[i, -9.5e+37], N[(y4 * N[(N[(b * t$95$3 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.5e-256], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-129], N[(x * N[(N[(y * t$95$2 + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 64000.0], t$95$6, 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] - t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := a \cdot b - c \cdot i\\
t_3 := j \cdot t - k \cdot y\\
t_4 := y1 \cdot \left(j \cdot x - k \cdot z\right)\\
t_5 := c \cdot y4 - a \cdot y5\\
t_6 := t \cdot \left(\mathsf{fma}\left(-1, z \cdot t\_2, j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot t\_5\right)\\
\mathbf{if}\;i \leq -6.2 \cdot 10^{+196}:\\
\;\;\;\;i \cdot t\_4\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{+51}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;i \leq -9.5 \cdot 10^{+37}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_3, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-256}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot t\_5\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-129}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, t\_2, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;i \leq 64000:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_3\right) - t\_4\right)\right)\\
\end{array}
\end{array}
if i < -6.2000000000000002e196Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if -6.2000000000000002e196 < i < -4.2999999999999997e51 or 5.9999999999999996e-129 < i < 64000Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
if -4.2999999999999997e51 < i < -9.4999999999999995e37Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
if -9.4999999999999995e37 < i < -8.49999999999999959e-256Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
if -8.49999999999999959e-256 < i < 5.9999999999999996e-129Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
if 64000 < i Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
-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 30.9%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 30.9%
Taylor expanded in y3 around -inf
Applied rewrites37.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4 (- (* c y4) (* a y5)))
(t_5 (* y2 (- (fma k t_3 (* x t_1)) (* t t_4)))))
(if (<= y2 -7.2e+31)
t_5
(if (<= y2 -1.65e-136)
(* -1.0 (* y3 (- (fma j t_3 (* z t_1)) (* y t_4))))
(if (<= y2 5.6e-259)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_2))
(* y1 (- (* j x) (* k z))))))
(if (<= y2 3.2e+86)
(*
-1.0
(*
y5
(-
(fma i t_2 (* y0 (- (* k y2) (* j y3))))
(* a (- (* t y2) (* y y3))))))
t_5))))))
double code(double x, double y, double z, double t, 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 = (y1 * y4) - (y0 * y5);
double t_4 = (c * y4) - (a * y5);
double t_5 = y2 * (fma(k, t_3, (x * t_1)) - (t * t_4));
double tmp;
if (y2 <= -7.2e+31) {
tmp = t_5;
} else if (y2 <= -1.65e-136) {
tmp = -1.0 * (y3 * (fma(j, t_3, (z * t_1)) - (y * t_4)));
} else if (y2 <= 5.6e-259) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else if (y2 <= 3.2e+86) {
tmp = -1.0 * (y5 * (fma(i, t_2, (y0 * ((k * y2) - (j * y3)))) - (a * ((t * y2) - (y * y3)))));
} else {
tmp = t_5;
}
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(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(Float64(c * y4) - Float64(a * y5)) t_5 = Float64(y2 * Float64(fma(k, t_3, Float64(x * t_1)) - Float64(t * t_4))) tmp = 0.0 if (y2 <= -7.2e+31) tmp = t_5; elseif (y2 <= -1.65e-136) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_3, Float64(z * t_1)) - Float64(y * t_4)))); elseif (y2 <= 5.6e-259) 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 <= 3.2e+86) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_2, Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); else tmp = t_5; 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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * N[(N[(k * t$95$3 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -7.2e+31], t$95$5, If[LessEqual[y2, -1.65e-136], N[(-1.0 * N[(y3 * N[(N[(j * t$95$3 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.6e-259], 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, 3.2e+86], N[(-1.0 * N[(y5 * N[(N[(i * t$95$2 + N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := j \cdot t - k \cdot y\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := c \cdot y4 - a \cdot y5\\
t_5 := y2 \cdot \left(\mathsf{fma}\left(k, t\_3, x \cdot t\_1\right) - t \cdot t\_4\right)\\
\mathbf{if}\;y2 \leq -7.2 \cdot 10^{+31}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y2 \leq -1.65 \cdot 10^{-136}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_3, z \cdot t\_1\right) - y \cdot t\_4\right)\right)\\
\mathbf{elif}\;y2 \leq 5.6 \cdot 10^{-259}:\\
\;\;\;\;-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 3.2 \cdot 10^{+86}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y2 < -7.19999999999999992e31 or 3.2e86 < y2 Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
if -7.19999999999999992e31 < y2 < -1.65000000000000009e-136Initial program 30.9%
Taylor expanded in y3 around -inf
Applied rewrites37.6%
if -1.65000000000000009e-136 < y2 < 5.5999999999999999e-259Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
if 5.5999999999999999e-259 < y2 < 3.2e86Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* c y0) (* a y1))))
(if (<= y4 -4.2e+128)
(* y1 (* y4 t_2))
(if (<= y4 -300000000.0)
(*
x
(- (fma y (- (* a b) (* c i)) (* y2 t_3)) (* j (- (* b y0) (* i y1)))))
(if (<= y4 1.95e-68)
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z t_3))
(* y (- (* c y4) (* a y5))))))
(if (<= y4 3.5e+183)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_1))
(* y0 (- (* j x) (* k z)))))
(* y4 (- (fma b t_1 (* y1 t_2)) (* c (- (* t y2) (* 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 t_1 = (j * t) - (k * y);
double t_2 = (k * y2) - (j * y3);
double t_3 = (c * y0) - (a * y1);
double tmp;
if (y4 <= -4.2e+128) {
tmp = y1 * (y4 * t_2);
} else if (y4 <= -300000000.0) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_3)) - (j * ((b * y0) - (i * y1))));
} else if (y4 <= 1.95e-68) {
tmp = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * t_3)) - (y * ((c * y4) - (a * y5)))));
} else if (y4 <= 3.5e+183) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_1)) - (y0 * ((j * x) - (k * z))));
} else {
tmp = y4 * (fma(b, t_1, (y1 * t_2)) - (c * ((t * y2) - (y * y3))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y4 <= -4.2e+128) tmp = Float64(y1 * Float64(y4 * t_2)); elseif (y4 <= -300000000.0) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_3)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y4 <= 1.95e-68) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(z * t_3)) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (y4 <= 3.5e+183) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_1)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); else tmp = Float64(y4 * Float64(fma(b, t_1, Float64(y1 * t_2)) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.2e+128], N[(y1 * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -300000000.0], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.95e-68], N[(-1.0 * N[(y3 * N[(N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e+183], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(b * t$95$1 + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y4 \leq -4.2 \cdot 10^{+128}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot t\_2\right)\\
\mathbf{elif}\;y4 \leq -300000000:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_3\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{-68}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot t\_3\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{+183}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_1, y1 \cdot t\_2\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -4.1999999999999999e128Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
if -4.1999999999999999e128 < y4 < -3e8Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
if -3e8 < y4 < 1.95000000000000016e-68Initial program 30.9%
Taylor expanded in y3 around -inf
Applied rewrites37.6%
if 1.95000000000000016e-68 < y4 < 3.49999999999999987e183Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
if 3.49999999999999987e183 < y4 Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.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) (* a y1)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (- (* c y4) (* a y5)))
(t_4 (* -1.0 (* y3 (- (fma j t_2 (* z t_1)) (* y t_3))))))
(if (<= y3 -0.00027)
t_4
(if (<= y3 7e-201)
(* y2 (- (fma k t_2 (* x t_1)) (* t t_3)))
(if (<= y3 3e+62)
(*
j
(-
(fma -1.0 (* y3 t_2) (* t (- (* b y4) (* i y5))))
(* x (- (* b y0) (* i y1)))))
t_4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (c * y4) - (a * y5);
double t_4 = -1.0 * (y3 * (fma(j, t_2, (z * t_1)) - (y * t_3)));
double tmp;
if (y3 <= -0.00027) {
tmp = t_4;
} else if (y3 <= 7e-201) {
tmp = y2 * (fma(k, t_2, (x * t_1)) - (t * t_3));
} else if (y3 <= 3e+62) {
tmp = j * (fma(-1.0, (y3 * t_2), (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_2, Float64(z * t_1)) - Float64(y * t_3)))) tmp = 0.0 if (y3 <= -0.00027) tmp = t_4; elseif (y3 <= 7e-201) tmp = Float64(y2 * Float64(fma(k, t_2, Float64(x * t_1)) - Float64(t * t_3))); elseif (y3 <= 3e+62) tmp = Float64(j * Float64(fma(-1.0, Float64(y3 * t_2), Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(-1.0 * N[(y3 * N[(N[(j * t$95$2 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -0.00027], t$95$4, If[LessEqual[y3, 7e-201], N[(y2 * N[(N[(k * t$95$2 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3e+62], N[(j * N[(N[(-1.0 * N[(y3 * t$95$2), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := -1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_2, z \cdot t\_1\right) - y \cdot t\_3\right)\right)\\
\mathbf{if}\;y3 \leq -0.00027:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y3 \leq 7 \cdot 10^{-201}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_2, x \cdot t\_1\right) - t \cdot t\_3\right)\\
\mathbf{elif}\;y3 \leq 3 \cdot 10^{+62}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y3 \cdot t\_2, t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y3 < -2.70000000000000003e-4 or 3e62 < y3 Initial program 30.9%
Taylor expanded in y3 around -inf
Applied rewrites37.6%
if -2.70000000000000003e-4 < y3 < 7.00000000000000016e-201Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
if 7.00000000000000016e-201 < y3 < 3e62Initial program 30.9%
Taylor expanded in j around inf
Applied rewrites36.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 (- (* j t) (* k y))))
(* y1 (- (* j x) (* k z)))))))
(t_2 (- (* c y0) (* a y1))))
(if (<= i -1e+38)
t_1
(if (<= i -8.5e-256)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_2))
(* t (- (* c y4) (* a y5)))))
(if (<= i 8e-129)
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_2))
(* j (- (* b y0) (* i y1)))))
(if (<= i 1.4e+45) (* t (* b (fma -1.0 (* a z) (* j y4)))) 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 = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * ((j * t) - (k * y)))) - (y1 * ((j * x) - (k * z)))));
double t_2 = (c * y0) - (a * y1);
double tmp;
if (i <= -1e+38) {
tmp = t_1;
} else if (i <= -8.5e-256) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_2)) - (t * ((c * y4) - (a * y5))));
} else if (i <= 8e-129) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_2)) - (j * ((b * y0) - (i * y1))));
} else if (i <= 1.4e+45) {
tmp = t * (b * fma(-1.0, (a * z), (j * y4)));
} 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(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (i <= -1e+38) tmp = t_1; elseif (i <= -8.5e-256) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_2)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (i <= 8e-129) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_2)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (i <= 1.4e+45) tmp = Float64(t * Float64(b * fma(-1.0, Float64(a * z), Float64(j * y4)))); 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[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1e+38], t$95$1, If[LessEqual[i, -8.5e-256], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8e-129], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+45], N[(t * N[(b * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot \left(j \cdot t - k \cdot y\right)\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;i \leq -1 \cdot 10^{+38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{-256}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_2\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;i \leq 8 \cdot 10^{-129}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_2\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+45}:\\
\;\;\;\;t \cdot \left(b \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -9.99999999999999977e37 or 1.4e45 < i Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
if -9.99999999999999977e37 < i < -8.49999999999999959e-256Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
if -8.49999999999999959e-256 < i < 7.9999999999999994e-129Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
if 7.9999999999999994e-129 < i < 1.4e45Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in b around inf
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -3.2e+74)
(* x (* y (- (* a b) (* c i))))
(if (<= c -2.5e-144)
(* b (* j (- (* t y4) (* x y0))))
(if (<= c 4.3e-216)
(* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
(if (<= c 8e-135)
(* j (* y0 (- (* y3 y5) (* b x))))
(if (<= c 0.19)
(* b (* a (- (* x y) (* t z))))
(if (<= c 1.58e+90)
(* b (* y0 (- (* k z) (* j x))))
(if (<= c 9.6e+157)
(* y0 (* x (- (* c y2) (* b j))))
(* y4 (* c (- (* y y3) (* t y2))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -3.2e+74) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (c <= -2.5e-144) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (c <= 4.3e-216) {
tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
} else if (c <= 8e-135) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (c <= 0.19) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (c <= 1.58e+90) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (c <= 9.6e+157) {
tmp = y0 * (x * ((c * y2) - (b * j)));
} else {
tmp = y4 * (c * ((y * y3) - (t * y2)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -3.2e+74) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (c <= -2.5e-144) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (c <= 4.3e-216) tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y)))); elseif (c <= 8e-135) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (c <= 0.19) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (c <= 1.58e+90) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (c <= 9.6e+157) tmp = Float64(y0 * Float64(x * Float64(Float64(c * y2) - Float64(b * j)))); else tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -3.2e+74], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.5e-144], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.3e-216], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e-135], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 0.19], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.58e+90], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.6e+157], N[(y0 * N[(x * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-144}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-216}:\\
\;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 8 \cdot 10^{-135}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;c \leq 0.19:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;c \leq 1.58 \cdot 10^{+90}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;c \leq 9.6 \cdot 10^{+157}:\\
\;\;\;\;y0 \cdot \left(x \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if c < -3.19999999999999995e74Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
Taylor expanded in y around inf
Applied rewrites26.5%
if -3.19999999999999995e74 < c < -2.4999999999999999e-144Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in j around inf
Applied rewrites26.8%
if -2.4999999999999999e-144 < c < 4.2999999999999997e-216Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
if 4.2999999999999997e-216 < c < 8.0000000000000003e-135Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in j around inf
Applied rewrites26.0%
if 8.0000000000000003e-135 < c < 0.19Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in a around inf
Applied rewrites26.7%
if 0.19 < c < 1.58e90Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in y0 around inf
Applied rewrites26.6%
if 1.58e90 < c < 9.5999999999999998e157Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in x around inf
Applied rewrites26.1%
if 9.5999999999999998e157 < c Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in c around inf
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z))))))
(t_2 (- (* c y0) (* a y1))))
(if (<= b -3.4e+107)
t_1
(if (<= b -7e-75)
(*
x
(- (fma y (- (* a b) (* c i)) (* y2 t_2)) (* j (- (* b y0) (* i y1)))))
(if (<= b 410000000000.0)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_2))
(* 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 t_2 = (c * y0) - (a * y1);
double tmp;
if (b <= -3.4e+107) {
tmp = t_1;
} else if (b <= -7e-75) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_2)) - (j * ((b * y0) - (i * y1))));
} else if (b <= 410000000000.0) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_2)) - (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))))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (b <= -3.4e+107) tmp = t_1; elseif (b <= -7e-75) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_2)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (b <= 410000000000.0) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_2)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); 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]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+107], t$95$1, If[LessEqual[b, -7e-75], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 410000000000.0], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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)\\
t_2 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-75}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_2\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 410000000000:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_2\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.3999999999999997e107 or 4.1e11 < b Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
if -3.3999999999999997e107 < b < -6.9999999999999997e-75Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
if -6.9999999999999997e-75 < b < 4.1e11Initial program 30.9%
Taylor expanded in y2 around inf
Applied rewrites37.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -3.2e+74)
(* x (* y (- (* a b) (* c i))))
(if (<= c -2.5e-144)
(* b (* j (- (* t y4) (* x y0))))
(if (<= c 2.6e-290)
(* k (* y5 (fma -1.0 (* y0 y2) (* i y))))
(if (<= c 6e-52)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= c 2.45e+94)
(* -1.0 (* k (* y0 (- (* y2 y5) (* b z)))))
(* c (* y0 (- (* x y2) (* 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 (c <= -3.2e+74) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (c <= -2.5e-144) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (c <= 2.6e-290) {
tmp = k * (y5 * fma(-1.0, (y0 * y2), (i * y)));
} else if (c <= 6e-52) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (c <= 2.45e+94) {
tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * z))));
} else {
tmp = c * (y0 * ((x * y2) - (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 (c <= -3.2e+74) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (c <= -2.5e-144) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (c <= 2.6e-290) tmp = Float64(k * Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y)))); elseif (c <= 6e-52) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (c <= 2.45e+94) tmp = Float64(-1.0 * Float64(k * Float64(y0 * Float64(Float64(y2 * y5) - Float64(b * z))))); else tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -3.2e+74], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.5e-144], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.6e-290], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e-52], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.45e+94], N[(-1.0 * N[(k * N[(y0 * N[(N[(y2 * y5), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-144}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-290}:\\
\;\;\;\;k \cdot \left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-52}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;c \leq 2.45 \cdot 10^{+94}:\\
\;\;\;\;-1 \cdot \left(k \cdot \left(y0 \cdot \left(y2 \cdot y5 - b \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\end{array}
\end{array}
if c < -3.19999999999999995e74Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
Taylor expanded in y around inf
Applied rewrites26.5%
if -3.19999999999999995e74 < c < -2.4999999999999999e-144Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in j around inf
Applied rewrites26.8%
if -2.4999999999999999e-144 < c < 2.60000000000000001e-290Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
if 2.60000000000000001e-290 < c < 6e-52Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
if 6e-52 < c < 2.4499999999999999e94Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in k around -inf
Applied rewrites25.2%
if 2.4499999999999999e94 < c Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in c around inf
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1.4e+91)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y5 3.05e+34)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))
(if (<= y5 2.55e+172)
(* y1 (* y4 (- (* k y2) (* j y3))))
(* j (* y0 (- (* y3 y5) (* b x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1.4e+91) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= 3.05e+34) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else if (y5 <= 2.55e+172) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -1.4e+91) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y5 <= 3.05e+34) tmp = 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))))); elseif (y5 <= 2.55e+172) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1.4e+91], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.05e+34], 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[y5, 2.55e+172], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.4 \cdot 10^{+91}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 3.05 \cdot 10^{+34}:\\
\;\;\;\;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{elif}\;y5 \leq 2.55 \cdot 10^{+172}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y5 < -1.3999999999999999e91Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if -1.3999999999999999e91 < y5 < 3.04999999999999998e34Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
if 3.04999999999999998e34 < y5 < 2.55e172Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
if 2.55e172 < y5 Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in j around inf
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3))))))
(if (<= y5 -2.5e+58)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y5 -1e-114)
t_1
(if (<= y5 3.9e-107)
(* x (* y (- (* a b) (* c i))))
(if (<= y5 2.55e+172) t_1 (* j (* y0 (- (* y3 y5) (* b x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y5 <= -2.5e+58) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1e-114) {
tmp = t_1;
} else if (y5 <= 3.9e-107) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y5 <= 2.55e+172) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
if (y5 <= (-2.5d+58)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (y5 <= (-1d-114)) then
tmp = t_1
else if (y5 <= 3.9d-107) then
tmp = x * (y * ((a * b) - (c * i)))
else if (y5 <= 2.55d+172) then
tmp = t_1
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y5 <= -2.5e+58) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1e-114) {
tmp = t_1;
} else if (y5 <= 3.9e-107) {
tmp = x * (y * ((a * b) - (c * i)));
} else if (y5 <= 2.55e+172) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) tmp = 0 if y5 <= -2.5e+58: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif y5 <= -1e-114: tmp = t_1 elif y5 <= 3.9e-107: tmp = x * (y * ((a * b) - (c * i))) elif y5 <= 2.55e+172: tmp = t_1 else: tmp = j * (y0 * ((y3 * y5) - (b * x))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (y5 <= -2.5e+58) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y5 <= -1e-114) tmp = t_1; elseif (y5 <= 3.9e-107) tmp = Float64(x * Float64(y * Float64(Float64(a * b) - Float64(c * i)))); elseif (y5 <= 2.55e+172) tmp = t_1; else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); tmp = 0.0; if (y5 <= -2.5e+58) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (y5 <= -1e-114) tmp = t_1; elseif (y5 <= 3.9e-107) tmp = x * (y * ((a * b) - (c * i))); elseif (y5 <= 2.55e+172) tmp = t_1; else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.5e+58], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1e-114], t$95$1, If[LessEqual[y5, 3.9e-107], N[(x * N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.55e+172], t$95$1, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{if}\;y5 \leq -2.5 \cdot 10^{+58}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq -1 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 3.9 \cdot 10^{-107}:\\
\;\;\;\;x \cdot \left(y \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y5 \leq 2.55 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y5 < -2.49999999999999993e58Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if -2.49999999999999993e58 < y5 < -1.0000000000000001e-114 or 3.9000000000000001e-107 < y5 < 2.55e172Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
if -1.0000000000000001e-114 < y5 < 3.9000000000000001e-107Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
Taylor expanded in y around inf
Applied rewrites26.5%
if 2.55e172 < y5 Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in j around inf
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3))))))
(if (<= y5 -2.5e+58)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y5 -1.15e-114)
t_1
(if (<= y5 1e-113)
(* b (* a (- (* x y) (* t z))))
(if (<= y5 2.55e+172) t_1 (* j (* y0 (- (* y3 y5) (* b x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y5 <= -2.5e+58) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1.15e-114) {
tmp = t_1;
} else if (y5 <= 1e-113) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (y5 <= 2.55e+172) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
if (y5 <= (-2.5d+58)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (y5 <= (-1.15d-114)) then
tmp = t_1
else if (y5 <= 1d-113) then
tmp = b * (a * ((x * y) - (t * z)))
else if (y5 <= 2.55d+172) then
tmp = t_1
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y5 <= -2.5e+58) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1.15e-114) {
tmp = t_1;
} else if (y5 <= 1e-113) {
tmp = b * (a * ((x * y) - (t * z)));
} else if (y5 <= 2.55e+172) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) tmp = 0 if y5 <= -2.5e+58: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif y5 <= -1.15e-114: tmp = t_1 elif y5 <= 1e-113: tmp = b * (a * ((x * y) - (t * z))) elif y5 <= 2.55e+172: tmp = t_1 else: tmp = j * (y0 * ((y3 * y5) - (b * x))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (y5 <= -2.5e+58) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y5 <= -1.15e-114) tmp = t_1; elseif (y5 <= 1e-113) tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 2.55e+172) tmp = t_1; else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); tmp = 0.0; if (y5 <= -2.5e+58) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (y5 <= -1.15e-114) tmp = t_1; elseif (y5 <= 1e-113) tmp = b * (a * ((x * y) - (t * z))); elseif (y5 <= 2.55e+172) tmp = t_1; else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.5e+58], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.15e-114], t$95$1, If[LessEqual[y5, 1e-113], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.55e+172], t$95$1, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{if}\;y5 \leq -2.5 \cdot 10^{+58}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 10^{-113}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 2.55 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y5 < -2.49999999999999993e58Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if -2.49999999999999993e58 < y5 < -1.15e-114 or 9.99999999999999979e-114 < y5 < 2.55e172Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
if -1.15e-114 < y5 < 9.99999999999999979e-114Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in a around inf
Applied rewrites26.7%
if 2.55e172 < y5 Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in j around inf
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* t (- (* b y4) (* i y5))))))
(if (<= t -5.8e+199)
(* c (* t (- (* i z) (* y2 y4))))
(if (<= t -3.8e+78)
t_1
(if (<= t -1.55e-148)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 1.3e-216)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= t 110.0)
(* c (* y0 (- (* x y2) (* y3 z))))
(if (<= t 6.6e+130) (* y (* y5 (- (* i k) (* a y3)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (t <= -5.8e+199) {
tmp = c * (t * ((i * z) - (y2 * y4)));
} else if (t <= -3.8e+78) {
tmp = t_1;
} else if (t <= -1.55e-148) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.3e-216) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (t <= 110.0) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (t <= 6.6e+130) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (t * ((b * y4) - (i * y5)))
if (t <= (-5.8d+199)) then
tmp = c * (t * ((i * z) - (y2 * y4)))
else if (t <= (-3.8d+78)) then
tmp = t_1
else if (t <= (-1.55d-148)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 1.3d-216) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (t <= 110.0d0) then
tmp = c * (y0 * ((x * y2) - (y3 * z)))
else if (t <= 6.6d+130) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (t <= -5.8e+199) {
tmp = c * (t * ((i * z) - (y2 * y4)));
} else if (t <= -3.8e+78) {
tmp = t_1;
} else if (t <= -1.55e-148) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 1.3e-216) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (t <= 110.0) {
tmp = c * (y0 * ((x * y2) - (y3 * z)));
} else if (t <= 6.6e+130) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (t * ((b * y4) - (i * y5))) tmp = 0 if t <= -5.8e+199: tmp = c * (t * ((i * z) - (y2 * y4))) elif t <= -3.8e+78: tmp = t_1 elif t <= -1.55e-148: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 1.3e-216: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif t <= 110.0: tmp = c * (y0 * ((x * y2) - (y3 * z))) elif t <= 6.6e+130: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) tmp = 0.0 if (t <= -5.8e+199) tmp = Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))); elseif (t <= -3.8e+78) tmp = t_1; elseif (t <= -1.55e-148) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 1.3e-216) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (t <= 110.0) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (t <= 6.6e+130) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (t * ((b * y4) - (i * y5))); tmp = 0.0; if (t <= -5.8e+199) tmp = c * (t * ((i * z) - (y2 * y4))); elseif (t <= -3.8e+78) tmp = t_1; elseif (t <= -1.55e-148) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 1.3e-216) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (t <= 110.0) tmp = c * (y0 * ((x * y2) - (y3 * z))); elseif (t <= 6.6e+130) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.8e+199], N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e+78], t$95$1, If[LessEqual[t, -1.55e-148], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.3e-216], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 110.0], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+130], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+199}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-148}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-216}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 110:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+130}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.7999999999999998e199Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in c around inf
Applied rewrites26.3%
if -5.7999999999999998e199 < t < -3.7999999999999999e78 or 6.6e130 < t Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in j around inf
Applied rewrites26.1%
if -3.7999999999999999e78 < t < -1.5500000000000001e-148Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
Taylor expanded in j around inf
Applied rewrites25.4%
if -1.5500000000000001e-148 < t < 1.2999999999999999e-216Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if 1.2999999999999999e-216 < t < 110Initial program 30.9%
Taylor expanded in y0 around inf
Applied rewrites36.0%
Taylor expanded in c around inf
Applied rewrites26.7%
if 110 < t < 6.6e130Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y around -inf
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 (* j (* t (- (* b y4) (* i y5))))))
(if (<= t -5.8e+199)
(* c (* t (- (* i z) (* y2 y4))))
(if (<= t -3.8e+78)
t_1
(if (<= t -1.55e-148)
(* j (* x (- (* i y1) (* b y0))))
(if (<= t 6.5e-48)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= t 6.6e+130) (* y (* y5 (- (* i k) (* a y3)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (t <= -5.8e+199) {
tmp = c * (t * ((i * z) - (y2 * y4)));
} else if (t <= -3.8e+78) {
tmp = t_1;
} else if (t <= -1.55e-148) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 6.5e-48) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (t <= 6.6e+130) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (t * ((b * y4) - (i * y5)))
if (t <= (-5.8d+199)) then
tmp = c * (t * ((i * z) - (y2 * y4)))
else if (t <= (-3.8d+78)) then
tmp = t_1
else if (t <= (-1.55d-148)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (t <= 6.5d-48) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (t <= 6.6d+130) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (t * ((b * y4) - (i * y5)));
double tmp;
if (t <= -5.8e+199) {
tmp = c * (t * ((i * z) - (y2 * y4)));
} else if (t <= -3.8e+78) {
tmp = t_1;
} else if (t <= -1.55e-148) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (t <= 6.5e-48) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (t <= 6.6e+130) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (t * ((b * y4) - (i * y5))) tmp = 0 if t <= -5.8e+199: tmp = c * (t * ((i * z) - (y2 * y4))) elif t <= -3.8e+78: tmp = t_1 elif t <= -1.55e-148: tmp = j * (x * ((i * y1) - (b * y0))) elif t <= 6.5e-48: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif t <= 6.6e+130: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) tmp = 0.0 if (t <= -5.8e+199) tmp = Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))); elseif (t <= -3.8e+78) tmp = t_1; elseif (t <= -1.55e-148) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (t <= 6.5e-48) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (t <= 6.6e+130) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (t * ((b * y4) - (i * y5))); tmp = 0.0; if (t <= -5.8e+199) tmp = c * (t * ((i * z) - (y2 * y4))); elseif (t <= -3.8e+78) tmp = t_1; elseif (t <= -1.55e-148) tmp = j * (x * ((i * y1) - (b * y0))); elseif (t <= 6.5e-48) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (t <= 6.6e+130) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.8e+199], N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e+78], t$95$1, If[LessEqual[t, -1.55e-148], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-48], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+130], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+199}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.55 \cdot 10^{-148}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-48}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+130}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.7999999999999998e199Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in c around inf
Applied rewrites26.3%
if -5.7999999999999998e199 < t < -3.7999999999999999e78 or 6.6e130 < t Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in j around inf
Applied rewrites26.1%
if -3.7999999999999999e78 < t < -1.5500000000000001e-148Initial program 30.9%
Taylor expanded in x around inf
Applied rewrites37.1%
Taylor expanded in j around inf
Applied rewrites25.4%
if -1.5500000000000001e-148 < t < 6.5e-48Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if 6.5e-48 < t < 6.6e130Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y around -inf
Applied rewrites25.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -5.8e+77)
(* b (* -1.0 (* a (* t z))))
(if (<= z -1.35e-238)
(* j (* t (- (* b y4) (* i y5))))
(if (<= z 3e-41)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= z 5e+193)
(* i (* y1 (- (* j x) (* k z))))
(* b (* t (* -1.0 (* a 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 <= -5.8e+77) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (z <= -1.35e-238) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (z <= 3e-41) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (z <= 5e+193) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = b * (t * (-1.0 * (a * 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 <= (-5.8d+77)) then
tmp = b * ((-1.0d0) * (a * (t * z)))
else if (z <= (-1.35d-238)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (z <= 3d-41) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (z <= 5d+193) then
tmp = i * (y1 * ((j * x) - (k * z)))
else
tmp = b * (t * ((-1.0d0) * (a * 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 <= -5.8e+77) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (z <= -1.35e-238) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (z <= 3e-41) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (z <= 5e+193) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = b * (t * (-1.0 * (a * 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 <= -5.8e+77: tmp = b * (-1.0 * (a * (t * z))) elif z <= -1.35e-238: tmp = j * (t * ((b * y4) - (i * y5))) elif z <= 3e-41: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif z <= 5e+193: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = b * (t * (-1.0 * (a * 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 <= -5.8e+77) tmp = Float64(b * Float64(-1.0 * Float64(a * Float64(t * z)))); elseif (z <= -1.35e-238) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (z <= 3e-41) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (z <= 5e+193) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(b * Float64(t * Float64(-1.0 * Float64(a * 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 <= -5.8e+77) tmp = b * (-1.0 * (a * (t * z))); elseif (z <= -1.35e-238) tmp = j * (t * ((b * y4) - (i * y5))); elseif (z <= 3e-41) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (z <= 5e+193) tmp = i * (y1 * ((j * x) - (k * z))); else tmp = b * (t * (-1.0 * (a * 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, -5.8e+77], N[(b * N[(-1.0 * N[(a * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-238], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-41], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+193], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+77}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(a \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-238}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-41}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+193}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \left(-1 \cdot \left(a \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if z < -5.8000000000000003e77Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.5%
if -5.8000000000000003e77 < z < -1.34999999999999995e-238Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in j around inf
Applied rewrites26.1%
if -1.34999999999999995e-238 < z < 2.99999999999999989e-41Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if 2.99999999999999989e-41 < z < 4.99999999999999972e193Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if 4.99999999999999972e193 < z Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1450000000000.0)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y5 -1.18e-175)
(* i (* y1 (- (* j x) (* k z))))
(if (<= y5 1.9e+56)
(* b (* t (* -1.0 (* a z))))
(* t (* -1.0 (* i (* j y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1450000000000.0) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1.18e-175) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (y5 <= 1.9e+56) {
tmp = b * (t * (-1.0 * (a * z)));
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-1450000000000.0d0)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (y5 <= (-1.18d-175)) then
tmp = i * (y1 * ((j * x) - (k * z)))
else if (y5 <= 1.9d+56) then
tmp = b * (t * ((-1.0d0) * (a * z)))
else
tmp = t * ((-1.0d0) * (i * (j * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1450000000000.0) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -1.18e-175) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (y5 <= 1.9e+56) {
tmp = b * (t * (-1.0 * (a * z)));
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -1450000000000.0: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif y5 <= -1.18e-175: tmp = i * (y1 * ((j * x) - (k * z))) elif y5 <= 1.9e+56: tmp = b * (t * (-1.0 * (a * z))) else: tmp = t * (-1.0 * (i * (j * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -1450000000000.0) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y5 <= -1.18e-175) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (y5 <= 1.9e+56) tmp = Float64(b * Float64(t * Float64(-1.0 * Float64(a * z)))); else tmp = Float64(t * Float64(-1.0 * Float64(i * Float64(j * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -1450000000000.0) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (y5 <= -1.18e-175) tmp = i * (y1 * ((j * x) - (k * z))); elseif (y5 <= 1.9e+56) tmp = b * (t * (-1.0 * (a * z))); else tmp = t * (-1.0 * (i * (j * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1450000000000.0], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.18e-175], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.9e+56], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(-1.0 * N[(i * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1450000000000:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq -1.18 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 1.9 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \left(t \cdot \left(-1 \cdot \left(a \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if y5 < -1.45e12Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y3 around -inf
Applied rewrites26.1%
if -1.45e12 < y5 < -1.1799999999999999e-175Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if -1.1799999999999999e-175 < y5 < 1.89999999999999998e56Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.6%
if 1.89999999999999998e56 < y5 Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in a around 0
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= j -1.8e+71)
t_1
(if (<= j 2.8e-211)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= j 4.8e+222) t_1 (* t (* -1.0 (* i (* j 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 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (j <= -1.8e+71) {
tmp = t_1;
} else if (j <= 2.8e-211) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (j <= 4.8e+222) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y1 * ((j * x) - (k * z)))
if (j <= (-1.8d+71)) then
tmp = t_1
else if (j <= 2.8d-211) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (j <= 4.8d+222) then
tmp = t_1
else
tmp = t * ((-1.0d0) * (i * (j * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (j <= -1.8e+71) {
tmp = t_1;
} else if (j <= 2.8e-211) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (j <= 4.8e+222) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y1 * ((j * x) - (k * z))) tmp = 0 if j <= -1.8e+71: tmp = t_1 elif j <= 2.8e-211: tmp = y * (y5 * ((i * k) - (a * y3))) elif j <= 4.8e+222: tmp = t_1 else: tmp = t * (-1.0 * (i * (j * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (j <= -1.8e+71) tmp = t_1; elseif (j <= 2.8e-211) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (j <= 4.8e+222) tmp = t_1; else tmp = Float64(t * Float64(-1.0 * Float64(i * Float64(j * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (y1 * ((j * x) - (k * z))); tmp = 0.0; if (j <= -1.8e+71) tmp = t_1; elseif (j <= 2.8e-211) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (j <= 4.8e+222) tmp = t_1; else tmp = t * (-1.0 * (i * (j * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.8e+71], t$95$1, If[LessEqual[j, 2.8e-211], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e+222], t$95$1, N[(t * N[(-1.0 * N[(i * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;j \leq -1.8 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-211}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+222}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if j < -1.8e71 or 2.7999999999999998e-211 < j < 4.8000000000000002e222Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if -1.8e71 < j < 2.7999999999999998e-211Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in y around -inf
Applied rewrites25.6%
if 4.8000000000000002e222 < j Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in a around 0
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= j -2.4e+64)
t_1
(if (<= j 4.1e-181)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= j 4.8e+222) t_1 (* t (* -1.0 (* i (* j 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 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (j <= -2.4e+64) {
tmp = t_1;
} else if (j <= 4.1e-181) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (j <= 4.8e+222) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y1 * ((j * x) - (k * z)))
if (j <= (-2.4d+64)) then
tmp = t_1
else if (j <= 4.1d-181) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (j <= 4.8d+222) then
tmp = t_1
else
tmp = t * ((-1.0d0) * (i * (j * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (j <= -2.4e+64) {
tmp = t_1;
} else if (j <= 4.1e-181) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (j <= 4.8e+222) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y1 * ((j * x) - (k * z))) tmp = 0 if j <= -2.4e+64: tmp = t_1 elif j <= 4.1e-181: tmp = a * (y5 * ((t * y2) - (y * y3))) elif j <= 4.8e+222: tmp = t_1 else: tmp = t * (-1.0 * (i * (j * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (j <= -2.4e+64) tmp = t_1; elseif (j <= 4.1e-181) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (j <= 4.8e+222) tmp = t_1; else tmp = Float64(t * Float64(-1.0 * Float64(i * Float64(j * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (y1 * ((j * x) - (k * z))); tmp = 0.0; if (j <= -2.4e+64) tmp = t_1; elseif (j <= 4.1e-181) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (j <= 4.8e+222) tmp = t_1; else tmp = t * (-1.0 * (i * (j * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.4e+64], t$95$1, If[LessEqual[j, 4.1e-181], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e+222], t$95$1, N[(t * N[(-1.0 * N[(i * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;j \leq -2.4 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.1 \cdot 10^{-181}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+222}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if j < -2.39999999999999999e64 or 4.1000000000000001e-181 < j < 4.8000000000000002e222Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if -2.39999999999999999e64 < j < 4.1000000000000001e-181Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in a around -inf
Applied rewrites26.2%
if 4.8000000000000002e222 < j Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in a around 0
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* -1.0 (* a (* t z))))))
(if (<= t -60000000000.0)
t_1
(if (<= t 2.6e-272)
(* y1 (* -1.0 (* j (* y3 y4))))
(if (<= t 6e+64)
(* (* (* k i) y5) y)
(if (<= t 1.7e+130) t_1 (* t (* -1.0 (* i (* j 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 = b * (-1.0 * (a * (t * z)));
double tmp;
if (t <= -60000000000.0) {
tmp = t_1;
} else if (t <= 2.6e-272) {
tmp = y1 * (-1.0 * (j * (y3 * y4)));
} else if (t <= 6e+64) {
tmp = ((k * i) * y5) * y;
} else if (t <= 1.7e+130) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((-1.0d0) * (a * (t * z)))
if (t <= (-60000000000.0d0)) then
tmp = t_1
else if (t <= 2.6d-272) then
tmp = y1 * ((-1.0d0) * (j * (y3 * y4)))
else if (t <= 6d+64) then
tmp = ((k * i) * y5) * y
else if (t <= 1.7d+130) then
tmp = t_1
else
tmp = t * ((-1.0d0) * (i * (j * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (-1.0 * (a * (t * z)));
double tmp;
if (t <= -60000000000.0) {
tmp = t_1;
} else if (t <= 2.6e-272) {
tmp = y1 * (-1.0 * (j * (y3 * y4)));
} else if (t <= 6e+64) {
tmp = ((k * i) * y5) * y;
} else if (t <= 1.7e+130) {
tmp = t_1;
} else {
tmp = t * (-1.0 * (i * (j * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (-1.0 * (a * (t * z))) tmp = 0 if t <= -60000000000.0: tmp = t_1 elif t <= 2.6e-272: tmp = y1 * (-1.0 * (j * (y3 * y4))) elif t <= 6e+64: tmp = ((k * i) * y5) * y elif t <= 1.7e+130: tmp = t_1 else: tmp = t * (-1.0 * (i * (j * y5))) 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(-1.0 * Float64(a * Float64(t * z)))) tmp = 0.0 if (t <= -60000000000.0) tmp = t_1; elseif (t <= 2.6e-272) tmp = Float64(y1 * Float64(-1.0 * Float64(j * Float64(y3 * y4)))); elseif (t <= 6e+64) tmp = Float64(Float64(Float64(k * i) * y5) * y); elseif (t <= 1.7e+130) tmp = t_1; else tmp = Float64(t * Float64(-1.0 * Float64(i * Float64(j * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (-1.0 * (a * (t * z))); tmp = 0.0; if (t <= -60000000000.0) tmp = t_1; elseif (t <= 2.6e-272) tmp = y1 * (-1.0 * (j * (y3 * y4))); elseif (t <= 6e+64) tmp = ((k * i) * y5) * y; elseif (t <= 1.7e+130) tmp = t_1; else tmp = t * (-1.0 * (i * (j * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(-1.0 * N[(a * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -60000000000.0], t$95$1, If[LessEqual[t, 2.6e-272], N[(y1 * N[(-1.0 * N[(j * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+64], N[(N[(N[(k * i), $MachinePrecision] * y5), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 1.7e+130], t$95$1, N[(t * N[(-1.0 * N[(i * N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-1 \cdot \left(a \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{if}\;t \leq -60000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-272}:\\
\;\;\;\;y1 \cdot \left(-1 \cdot \left(j \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+64}:\\
\;\;\;\;\left(\left(k \cdot i\right) \cdot y5\right) \cdot y\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-1 \cdot \left(i \cdot \left(j \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if t < -6e10 or 6.0000000000000004e64 < t < 1.7e130Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.5%
if -6e10 < t < 2.59999999999999992e-272Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
Taylor expanded in j around inf
Applied rewrites17.3%
if 2.59999999999999992e-272 < t < 6.0000000000000004e64Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.5%
if 1.7e130 < t Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in a around 0
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -60000000000.0)
(* b (* -1.0 (* a (* t z))))
(if (<= t 3.6e-209)
(* y1 (* -1.0 (* j (* y3 y4))))
(if (<= t 5.4e+59)
(* k (* y5 (* -1.0 (* y0 y2))))
(if (<= t 8e+175) (* i (* k (* y y5))) (* a (* y5 (* t y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -60000000000.0) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (t <= 3.6e-209) {
tmp = y1 * (-1.0 * (j * (y3 * y4)));
} else if (t <= 5.4e+59) {
tmp = k * (y5 * (-1.0 * (y0 * y2)));
} else if (t <= 8e+175) {
tmp = i * (k * (y * y5));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-60000000000.0d0)) then
tmp = b * ((-1.0d0) * (a * (t * z)))
else if (t <= 3.6d-209) then
tmp = y1 * ((-1.0d0) * (j * (y3 * y4)))
else if (t <= 5.4d+59) then
tmp = k * (y5 * ((-1.0d0) * (y0 * y2)))
else if (t <= 8d+175) then
tmp = i * (k * (y * y5))
else
tmp = a * (y5 * (t * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -60000000000.0) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (t <= 3.6e-209) {
tmp = y1 * (-1.0 * (j * (y3 * y4)));
} else if (t <= 5.4e+59) {
tmp = k * (y5 * (-1.0 * (y0 * y2)));
} else if (t <= 8e+175) {
tmp = i * (k * (y * y5));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -60000000000.0: tmp = b * (-1.0 * (a * (t * z))) elif t <= 3.6e-209: tmp = y1 * (-1.0 * (j * (y3 * y4))) elif t <= 5.4e+59: tmp = k * (y5 * (-1.0 * (y0 * y2))) elif t <= 8e+175: tmp = i * (k * (y * y5)) else: tmp = a * (y5 * (t * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -60000000000.0) tmp = Float64(b * Float64(-1.0 * Float64(a * Float64(t * z)))); elseif (t <= 3.6e-209) tmp = Float64(y1 * Float64(-1.0 * Float64(j * Float64(y3 * y4)))); elseif (t <= 5.4e+59) tmp = Float64(k * Float64(y5 * Float64(-1.0 * Float64(y0 * y2)))); elseif (t <= 8e+175) tmp = Float64(i * Float64(k * Float64(y * y5))); else tmp = Float64(a * Float64(y5 * Float64(t * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -60000000000.0) tmp = b * (-1.0 * (a * (t * z))); elseif (t <= 3.6e-209) tmp = y1 * (-1.0 * (j * (y3 * y4))); elseif (t <= 5.4e+59) tmp = k * (y5 * (-1.0 * (y0 * y2))); elseif (t <= 8e+175) tmp = i * (k * (y * y5)); else tmp = a * (y5 * (t * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -60000000000.0], N[(b * N[(-1.0 * N[(a * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-209], N[(y1 * N[(-1.0 * N[(j * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e+59], N[(k * N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+175], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -60000000000:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(a \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-209}:\\
\;\;\;\;y1 \cdot \left(-1 \cdot \left(j \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;t \leq 5.4 \cdot 10^{+59}:\\
\;\;\;\;k \cdot \left(y5 \cdot \left(-1 \cdot \left(y0 \cdot y2\right)\right)\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+175}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\end{array}
\end{array}
if t < -6e10Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.5%
if -6e10 < t < 3.60000000000000016e-209Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
Taylor expanded in j around inf
Applied rewrites17.3%
if 3.60000000000000016e-209 < t < 5.4000000000000002e59Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around 0
Applied rewrites16.3%
if 5.4000000000000002e59 < t < 7.9999999999999995e175Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
if 7.9999999999999995e175 < t Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in a around -inf
Applied rewrites26.2%
Taylor expanded in y around 0
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -7e+101)
(* b (* -1.0 (* a (* t z))))
(if (<= t 4.5e+161)
(* i (* y1 (- (* j x) (* k z))))
(* a (* y5 (* t y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -7e+101) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (t <= 4.5e+161) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-7d+101)) then
tmp = b * ((-1.0d0) * (a * (t * z)))
else if (t <= 4.5d+161) then
tmp = i * (y1 * ((j * x) - (k * z)))
else
tmp = a * (y5 * (t * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -7e+101) {
tmp = b * (-1.0 * (a * (t * z)));
} else if (t <= 4.5e+161) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -7e+101: tmp = b * (-1.0 * (a * (t * z))) elif t <= 4.5e+161: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = a * (y5 * (t * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -7e+101) tmp = Float64(b * Float64(-1.0 * Float64(a * Float64(t * z)))); elseif (t <= 4.5e+161) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(a * Float64(y5 * Float64(t * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -7e+101) tmp = b * (-1.0 * (a * (t * z))); elseif (t <= 4.5e+161) tmp = i * (y1 * ((j * x) - (k * z))); else tmp = a * (y5 * (t * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -7e+101], N[(b * N[(-1.0 * N[(a * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+161], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(a \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+161}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\end{array}
\end{array}
if t < -7.00000000000000046e101Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in t around inf
Applied rewrites26.8%
Taylor expanded in z around inf
Applied rewrites16.5%
if -7.00000000000000046e101 < t < 4.49999999999999992e161Initial program 30.9%
Taylor expanded in i around -inf
Applied rewrites37.4%
Taylor expanded in y1 around -inf
Applied rewrites26.6%
if 4.49999999999999992e161 < t Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in a around -inf
Applied rewrites26.2%
Taylor expanded in y around 0
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* (- y0) x)))))
(if (<= x -2.15e+54)
t_1
(if (<= x -8.8e-233)
(* k (* -1.0 (* y0 (* y2 y5))))
(if (<= x 2.1e-14) (* i (* k (* 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 = b * (j * (-y0 * x));
double tmp;
if (x <= -2.15e+54) {
tmp = t_1;
} else if (x <= -8.8e-233) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (x <= 2.1e-14) {
tmp = i * (k * (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 = b * (j * (-y0 * x))
if (x <= (-2.15d+54)) then
tmp = t_1
else if (x <= (-8.8d-233)) then
tmp = k * ((-1.0d0) * (y0 * (y2 * y5)))
else if (x <= 2.1d-14) then
tmp = i * (k * (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 = b * (j * (-y0 * x));
double tmp;
if (x <= -2.15e+54) {
tmp = t_1;
} else if (x <= -8.8e-233) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (x <= 2.1e-14) {
tmp = i * (k * (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 = b * (j * (-y0 * x)) tmp = 0 if x <= -2.15e+54: tmp = t_1 elif x <= -8.8e-233: tmp = k * (-1.0 * (y0 * (y2 * y5))) elif x <= 2.1e-14: tmp = i * (k * (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(b * Float64(j * Float64(Float64(-y0) * x))) tmp = 0.0 if (x <= -2.15e+54) tmp = t_1; elseif (x <= -8.8e-233) tmp = Float64(k * Float64(-1.0 * Float64(y0 * Float64(y2 * y5)))); elseif (x <= 2.1e-14) tmp = Float64(i * Float64(k * 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 = b * (j * (-y0 * x)); tmp = 0.0; if (x <= -2.15e+54) tmp = t_1; elseif (x <= -8.8e-233) tmp = k * (-1.0 * (y0 * (y2 * y5))); elseif (x <= 2.1e-14) tmp = i * (k * (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[(b * N[(j * N[((-y0) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.15e+54], t$95$1, If[LessEqual[x, -8.8e-233], N[(k * N[(-1.0 * N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e-14], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(\left(-y0\right) \cdot x\right)\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-233}:\\
\;\;\;\;k \cdot \left(-1 \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.14999999999999988e54 or 2.0999999999999999e-14 < x Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in j around inf
Applied rewrites26.8%
Taylor expanded in x around inf
Applied rewrites16.7%
Applied rewrites16.7%
if -2.14999999999999988e54 < x < -8.8000000000000001e-233Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around 0
Applied rewrites16.3%
if -8.8000000000000001e-233 < x < 2.0999999999999999e-14Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (* (- y0) x)))))
(if (<= x -2.1e+54)
t_1
(if (<= x -2e-176)
(* (* (* k i) y5) y)
(if (<= x 2.1e-14) (* i (* k (* 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 = b * (j * (-y0 * x));
double tmp;
if (x <= -2.1e+54) {
tmp = t_1;
} else if (x <= -2e-176) {
tmp = ((k * i) * y5) * y;
} else if (x <= 2.1e-14) {
tmp = i * (k * (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 = b * (j * (-y0 * x))
if (x <= (-2.1d+54)) then
tmp = t_1
else if (x <= (-2d-176)) then
tmp = ((k * i) * y5) * y
else if (x <= 2.1d-14) then
tmp = i * (k * (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 = b * (j * (-y0 * x));
double tmp;
if (x <= -2.1e+54) {
tmp = t_1;
} else if (x <= -2e-176) {
tmp = ((k * i) * y5) * y;
} else if (x <= 2.1e-14) {
tmp = i * (k * (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 = b * (j * (-y0 * x)) tmp = 0 if x <= -2.1e+54: tmp = t_1 elif x <= -2e-176: tmp = ((k * i) * y5) * y elif x <= 2.1e-14: tmp = i * (k * (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(b * Float64(j * Float64(Float64(-y0) * x))) tmp = 0.0 if (x <= -2.1e+54) tmp = t_1; elseif (x <= -2e-176) tmp = Float64(Float64(Float64(k * i) * y5) * y); elseif (x <= 2.1e-14) tmp = Float64(i * Float64(k * 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 = b * (j * (-y0 * x)); tmp = 0.0; if (x <= -2.1e+54) tmp = t_1; elseif (x <= -2e-176) tmp = ((k * i) * y5) * y; elseif (x <= 2.1e-14) tmp = i * (k * (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[(b * N[(j * N[((-y0) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.1e+54], t$95$1, If[LessEqual[x, -2e-176], N[(N[(N[(k * i), $MachinePrecision] * y5), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 2.1e-14], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(\left(-y0\right) \cdot x\right)\right)\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{+54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-176}:\\
\;\;\;\;\left(\left(k \cdot i\right) \cdot y5\right) \cdot y\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.09999999999999986e54 or 2.0999999999999999e-14 < x Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in j around inf
Applied rewrites26.8%
Taylor expanded in x around inf
Applied rewrites16.7%
Applied rewrites16.7%
if -2.09999999999999986e54 < x < -2e-176Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.5%
if -2e-176 < x < 2.0999999999999999e-14Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -9.8e-85) (* i (* k (* y y5))) (if (<= y 6e+39) (* t (* a (* y2 y5))) (* (* (* i y) y5) 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 (y <= -9.8e-85) {
tmp = i * (k * (y * y5));
} else if (y <= 6e+39) {
tmp = t * (a * (y2 * y5));
} else {
tmp = ((i * y) * y5) * 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 (y <= (-9.8d-85)) then
tmp = i * (k * (y * y5))
else if (y <= 6d+39) then
tmp = t * (a * (y2 * y5))
else
tmp = ((i * y) * y5) * 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 (y <= -9.8e-85) {
tmp = i * (k * (y * y5));
} else if (y <= 6e+39) {
tmp = t * (a * (y2 * y5));
} else {
tmp = ((i * y) * y5) * k;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -9.8e-85: tmp = i * (k * (y * y5)) elif y <= 6e+39: tmp = t * (a * (y2 * y5)) else: tmp = ((i * y) * y5) * 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 (y <= -9.8e-85) tmp = Float64(i * Float64(k * Float64(y * y5))); elseif (y <= 6e+39) tmp = Float64(t * Float64(a * Float64(y2 * y5))); else tmp = Float64(Float64(Float64(i * y) * y5) * 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 (y <= -9.8e-85) tmp = i * (k * (y * y5)); elseif (y <= 6e+39) tmp = t * (a * (y2 * y5)); else tmp = ((i * y) * y5) * 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[y, -9.8e-85], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e+39], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(i * y), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.8 \cdot 10^{-85}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+39}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot y\right) \cdot y5\right) \cdot k\\
\end{array}
\end{array}
if y < -9.80000000000000029e-85Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
if -9.80000000000000029e-85 < y < 5.9999999999999999e39Initial program 30.9%
Taylor expanded in t around inf
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites26.2%
Taylor expanded in a around inf
Applied rewrites16.8%
if 5.9999999999999999e39 < y Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y4 -3.4e+90) (* k (* y1 (* y2 y4))) (if (<= y4 3.4e-60) (* i (* (* y5 k) y)) (* b (* j (* t y4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -3.4e+90) {
tmp = k * (y1 * (y2 * y4));
} else if (y4 <= 3.4e-60) {
tmp = i * ((y5 * k) * y);
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-3.4d+90)) then
tmp = k * (y1 * (y2 * y4))
else if (y4 <= 3.4d-60) then
tmp = i * ((y5 * k) * y)
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -3.4e+90) {
tmp = k * (y1 * (y2 * y4));
} else if (y4 <= 3.4e-60) {
tmp = i * ((y5 * k) * y);
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -3.4e+90: tmp = k * (y1 * (y2 * y4)) elif y4 <= 3.4e-60: tmp = i * ((y5 * k) * y) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -3.4e+90) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (y4 <= 3.4e-60) tmp = Float64(i * Float64(Float64(y5 * k) * y)); else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -3.4e+90) tmp = k * (y1 * (y2 * y4)); elseif (y4 <= 3.4e-60) tmp = i * ((y5 * k) * y); else tmp = b * (j * (t * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -3.4e+90], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.4e-60], N[(i * N[(N[(y5 * k), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -3.4 \cdot 10^{+90}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 3.4 \cdot 10^{-60}:\\
\;\;\;\;i \cdot \left(\left(y5 \cdot k\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if y4 < -3.40000000000000018e90Initial program 30.9%
Taylor expanded in y4 around inf
Applied rewrites37.2%
Taylor expanded in y1 around inf
Applied rewrites26.3%
Taylor expanded in j around 0
Applied rewrites16.7%
if -3.40000000000000018e90 < y4 < 3.40000000000000007e-60Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.2%
if 3.40000000000000007e-60 < y4 Initial program 30.9%
Taylor expanded in b around inf
Applied rewrites37.8%
Taylor expanded in j around inf
Applied rewrites26.8%
Taylor expanded in x around 0
Applied rewrites17.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= k -1.35e-50) (* i (* (* y5 k) y)) (if (<= k 6e+21) (* a (* t (* y2 y5))) (* (* (* k i) y5) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.35e-50) {
tmp = i * ((y5 * k) * y);
} else if (k <= 6e+21) {
tmp = a * (t * (y2 * y5));
} else {
tmp = ((k * i) * y5) * y;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= (-1.35d-50)) then
tmp = i * ((y5 * k) * y)
else if (k <= 6d+21) then
tmp = a * (t * (y2 * y5))
else
tmp = ((k * i) * y5) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.35e-50) {
tmp = i * ((y5 * k) * y);
} else if (k <= 6e+21) {
tmp = a * (t * (y2 * y5));
} else {
tmp = ((k * i) * y5) * y;
}
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.35e-50: tmp = i * ((y5 * k) * y) elif k <= 6e+21: tmp = a * (t * (y2 * y5)) else: tmp = ((k * i) * y5) * y return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -1.35e-50) tmp = Float64(i * Float64(Float64(y5 * k) * y)); elseif (k <= 6e+21) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(Float64(Float64(k * i) * y5) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= -1.35e-50) tmp = i * ((y5 * k) * y); elseif (k <= 6e+21) tmp = a * (t * (y2 * y5)); else tmp = ((k * i) * y5) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -1.35e-50], N[(i * N[(N[(y5 * k), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6e+21], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(k * i), $MachinePrecision] * y5), $MachinePrecision] * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.35 \cdot 10^{-50}:\\
\;\;\;\;i \cdot \left(\left(y5 \cdot k\right) \cdot y\right)\\
\mathbf{elif}\;k \leq 6 \cdot 10^{+21}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(k \cdot i\right) \cdot y5\right) \cdot y\\
\end{array}
\end{array}
if k < -1.35e-50Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.2%
if -1.35e-50 < k < 6e21Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in a around -inf
Applied rewrites26.2%
Taylor expanded in y around 0
Applied rewrites16.9%
if 6e21 < k Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -4.2e-110) (* i (* k (* y y5))) (if (<= y 1.06e-66) (* (* (* k i) y5) y) (* (* (* i y) y5) 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 (y <= -4.2e-110) {
tmp = i * (k * (y * y5));
} else if (y <= 1.06e-66) {
tmp = ((k * i) * y5) * y;
} else {
tmp = ((i * y) * y5) * 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 (y <= (-4.2d-110)) then
tmp = i * (k * (y * y5))
else if (y <= 1.06d-66) then
tmp = ((k * i) * y5) * y
else
tmp = ((i * y) * y5) * 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 (y <= -4.2e-110) {
tmp = i * (k * (y * y5));
} else if (y <= 1.06e-66) {
tmp = ((k * i) * y5) * y;
} else {
tmp = ((i * y) * y5) * k;
}
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-110: tmp = i * (k * (y * y5)) elif y <= 1.06e-66: tmp = ((k * i) * y5) * y else: tmp = ((i * y) * y5) * 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 (y <= -4.2e-110) tmp = Float64(i * Float64(k * Float64(y * y5))); elseif (y <= 1.06e-66) tmp = Float64(Float64(Float64(k * i) * y5) * y); else tmp = Float64(Float64(Float64(i * y) * y5) * 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 (y <= -4.2e-110) tmp = i * (k * (y * y5)); elseif (y <= 1.06e-66) tmp = ((k * i) * y5) * y; else tmp = ((i * y) * y5) * 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[y, -4.2e-110], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.06e-66], N[(N[(N[(k * i), $MachinePrecision] * y5), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(i * y), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{-110}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(k \cdot i\right) \cdot y5\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot y\right) \cdot y5\right) \cdot k\\
\end{array}
\end{array}
if y < -4.20000000000000004e-110Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
if -4.20000000000000004e-110 < y < 1.05999999999999994e-66Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.5%
if 1.05999999999999994e-66 < y Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= k -1.5e-211) (* i (* (* y5 k) y)) (if (<= k 5e-81) (* (* (* i y) y5) k) (* (* i (* k y)) y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.5e-211) {
tmp = i * ((y5 * k) * y);
} else if (k <= 5e-81) {
tmp = ((i * y) * y5) * k;
} else {
tmp = (i * (k * y)) * y5;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= (-1.5d-211)) then
tmp = i * ((y5 * k) * y)
else if (k <= 5d-81) then
tmp = ((i * y) * y5) * k
else
tmp = (i * (k * y)) * y5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.5e-211) {
tmp = i * ((y5 * k) * y);
} else if (k <= 5e-81) {
tmp = ((i * y) * y5) * k;
} else {
tmp = (i * (k * y)) * y5;
}
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.5e-211: tmp = i * ((y5 * k) * y) elif k <= 5e-81: tmp = ((i * y) * y5) * k else: tmp = (i * (k * y)) * y5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -1.5e-211) tmp = Float64(i * Float64(Float64(y5 * k) * y)); elseif (k <= 5e-81) tmp = Float64(Float64(Float64(i * y) * y5) * k); else tmp = Float64(Float64(i * Float64(k * y)) * y5); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= -1.5e-211) tmp = i * ((y5 * k) * y); elseif (k <= 5e-81) tmp = ((i * y) * y5) * k; else tmp = (i * (k * y)) * y5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -1.5e-211], N[(i * N[(N[(y5 * k), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5e-81], N[(N[(N[(i * y), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision], N[(N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.5 \cdot 10^{-211}:\\
\;\;\;\;i \cdot \left(\left(y5 \cdot k\right) \cdot y\right)\\
\mathbf{elif}\;k \leq 5 \cdot 10^{-81}:\\
\;\;\;\;\left(\left(i \cdot y\right) \cdot y5\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot \left(k \cdot y\right)\right) \cdot y5\\
\end{array}
\end{array}
if k < -1.50000000000000002e-211Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.2%
if -1.50000000000000002e-211 < k < 4.99999999999999981e-81Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.3%
if 4.99999999999999981e-81 < k Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= k 2.3e-80) (* i (* k (* y y5))) (* (* i (* k y)) y5)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= 2.3e-80) {
tmp = i * (k * (y * y5));
} else {
tmp = (i * (k * y)) * y5;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= 2.3d-80) then
tmp = i * (k * (y * y5))
else
tmp = (i * (k * y)) * y5
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= 2.3e-80) {
tmp = i * (k * (y * y5));
} else {
tmp = (i * (k * y)) * y5;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= 2.3e-80: tmp = i * (k * (y * y5)) else: tmp = (i * (k * y)) * y5 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= 2.3e-80) tmp = Float64(i * Float64(k * Float64(y * y5))); else tmp = Float64(Float64(i * Float64(k * y)) * y5); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= 2.3e-80) tmp = i * (k * (y * y5)); else tmp = (i * (k * y)) * y5; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, 2.3e-80], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(k * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 2.3 \cdot 10^{-80}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot \left(k \cdot y\right)\right) \cdot y5\\
\end{array}
\end{array}
if k < 2.2999999999999998e-80Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
if 2.2999999999999998e-80 < k Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
Applied rewrites16.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* k (* y y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (k * (y * y5));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (k * (y * y5))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (k * (y * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (k * (y * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(k * Float64(y * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (k * (y * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(k \cdot \left(y \cdot y5\right)\right)
\end{array}
Initial program 30.9%
Taylor expanded in y5 around -inf
Applied rewrites36.2%
Taylor expanded in k around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites16.2%
herbie shell --seed 2025153
(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)))))