
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z))) (t_2 (- (* j t) (* k y))))
(if (<= a -7.8e+46)
(* b (fma a t_1 (fma y0 (- (* k z) (* j x)) (* y4 t_2))))
(if (<= a 5e-246)
(* -1.0 (* i (- (fma c t_1 (* y5 t_2)) (* y1 (- (* j x) (* k z))))))
(if (<= a 5.8e-150)
(*
y4
(-
(fma b t_2 (* y1 (- (* k y2) (* j y3))))
(* c (- (* t y2) (* y y3)))))
(if (<= a 1.65e+40)
(*
k
(-
(fma
-1.0
(* y (- (* b y4) (* i y5)))
(* y2 (- (* y1 y4) (* y0 y5))))
(* -1.0 (* z (- (* b y0) (* i y1))))))
(*
a
(-
(fma
-1.0
(* x (* y1 y2))
(fma b t_1 (* y3 (- (* y1 z) (* y y5)))))
(* -1.0 (* t (* y2 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (t * z);
double t_2 = (j * t) - (k * y);
double tmp;
if (a <= -7.8e+46) {
tmp = b * fma(a, t_1, fma(y0, ((k * z) - (j * x)), (y4 * t_2)));
} else if (a <= 5e-246) {
tmp = -1.0 * (i * (fma(c, t_1, (y5 * t_2)) - (y1 * ((j * x) - (k * z)))));
} else if (a <= 5.8e-150) {
tmp = y4 * (fma(b, t_2, (y1 * ((k * y2) - (j * y3)))) - (c * ((t * y2) - (y * y3))));
} else if (a <= 1.65e+40) {
tmp = k * (fma(-1.0, (y * ((b * y4) - (i * y5))), (y2 * ((y1 * y4) - (y0 * y5)))) - (-1.0 * (z * ((b * y0) - (i * y1)))));
} else {
tmp = a * (fma(-1.0, (x * (y1 * y2)), fma(b, t_1, (y3 * ((y1 * z) - (y * y5))))) - (-1.0 * (t * (y2 * y5))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(t * z)) t_2 = Float64(Float64(j * t) - Float64(k * y)) tmp = 0.0 if (a <= -7.8e+46) tmp = Float64(b * fma(a, t_1, fma(y0, Float64(Float64(k * z) - Float64(j * x)), Float64(y4 * t_2)))); elseif (a <= 5e-246) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_1, Float64(y5 * t_2)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); elseif (a <= 5.8e-150) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (a <= 1.65e+40) tmp = Float64(k * Float64(fma(-1.0, Float64(y * Float64(Float64(b * y4) - Float64(i * y5))), Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) - Float64(-1.0 * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))))); else tmp = Float64(a * Float64(fma(-1.0, Float64(x * Float64(y1 * y2)), fma(b, t_1, Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5))))) - Float64(-1.0 * Float64(t * Float64(y2 * y5))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+46], N[(b * N[(a * t$95$1 + N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-246], N[(-1.0 * N[(i * N[(N[(c * t$95$1 + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.8e-150], N[(y4 * N[(N[(b * t$95$2 + 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[a, 1.65e+40], N[(k * N[(N[(-1.0 * N[(y * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(-1.0 * N[(x * N[(y1 * y2), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := j \cdot t - k \cdot y\\
\mathbf{if}\;a \leq -7.8 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(a, t\_1, \mathsf{fma}\left(y0, k \cdot z - j \cdot x, y4 \cdot t\_2\right)\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-246}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_1, y5 \cdot t\_2\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{elif}\;a \leq 5.8 \cdot 10^{-150}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+40}:\\
\;\;\;\;k \cdot \left(\mathsf{fma}\left(-1, y \cdot \left(b \cdot y4 - i \cdot y5\right), y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\mathsf{fma}\left(-1, x \cdot \left(y1 \cdot y2\right), \mathsf{fma}\left(b, t\_1, y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\right) - -1 \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if a < -7.7999999999999999e46Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y0 around 0
lower-fma.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6438.9
Applied rewrites38.9%
if -7.7999999999999999e46 < a < 4.9999999999999997e-246Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
if 4.9999999999999997e-246 < a < 5.7999999999999996e-150Initial program 30.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
if 5.7999999999999996e-150 < a < 1.6499999999999999e40Initial program 30.1%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
if 1.6499999999999999e40 < a Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y3 around 0
lower--.f64N/A
Applied rewrites36.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* 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
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 (- (* j t) (* k y))))
(* y1 (- (* j x) (* k 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 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 * (i * (fma(c, ((x * y) - (t * z)), (y5 * ((j * t) - (k * y)))) - (y1 * ((j * x) - (k * z)))));
}
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(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)))))); 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[(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]]]
\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(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)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 30.1%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z)))
(t_2
(*
b
(fma
a
t_1
(fma y0 (- (* k z) (* j x)) (* y4 (- (* j t) (* k y))))))))
(if (<= z -7.8e+124)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -1.6e+50)
t_2
(if (<= z -2.9e-237)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= z 1.25e-121)
t_2
(if (<= z 4.2e-40)
(* y1 (fma -1.0 (* i (* k z)) (/ (* i (* k (* y y5))) y1)))
(if (<= z 6.2e+201)
(* a (* b t_1))
(* a (* z (fma -1.0 (* b t) (* y1 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 = (x * y) - (t * z);
double t_2 = b * fma(a, t_1, fma(y0, ((k * z) - (j * x)), (y4 * ((j * t) - (k * y)))));
double tmp;
if (z <= -7.8e+124) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -1.6e+50) {
tmp = t_2;
} else if (z <= -2.9e-237) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (z <= 1.25e-121) {
tmp = t_2;
} else if (z <= 4.2e-40) {
tmp = y1 * fma(-1.0, (i * (k * z)), ((i * (k * (y * y5))) / y1));
} else if (z <= 6.2e+201) {
tmp = a * (b * t_1);
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * 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(x * y) - Float64(t * z)) t_2 = Float64(b * fma(a, t_1, fma(y0, Float64(Float64(k * z) - Float64(j * x)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))))) tmp = 0.0 if (z <= -7.8e+124) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -1.6e+50) tmp = t_2; elseif (z <= -2.9e-237) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (z <= 1.25e-121) tmp = t_2; elseif (z <= 4.2e-40) tmp = Float64(y1 * fma(-1.0, Float64(i * Float64(k * z)), Float64(Float64(i * Float64(k * Float64(y * y5))) / y1))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * t_1)); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * t$95$1 + N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+124], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.6e+50], t$95$2, If[LessEqual[z, -2.9e-237], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-121], t$95$2, If[LessEqual[z, 4.2e-40], N[(y1 * N[(-1.0 * N[(i * N[(k * z), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := b \cdot \mathsf{fma}\left(a, t\_1, \mathsf{fma}\left(y0, k \cdot z - j \cdot x, y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+124}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{+50}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-237}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-121}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-40}:\\
\;\;\;\;y1 \cdot \mathsf{fma}\left(-1, i \cdot \left(k \cdot z\right), \frac{i \cdot \left(k \cdot \left(y \cdot y5\right)\right)}{y1}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -7.8000000000000001e124Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -7.8000000000000001e124 < z < -1.59999999999999991e50 or -2.90000000000000011e-237 < z < 1.24999999999999997e-121Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y0 around 0
lower-fma.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6438.9
Applied rewrites38.9%
if -1.59999999999999991e50 < z < -2.90000000000000011e-237Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
if 1.24999999999999997e-121 < z < 4.20000000000000036e-40Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6424.9
Applied rewrites24.9%
if 4.20000000000000036e-40 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
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 (- (* x y2) (* y3 z)))
(t_2
(*
y0
(-
(fma -1.0 (* y5 (- (* k y2) (* j y3))) (* c t_1))
(* b (- (* j x) (* k z))))))
(t_3 (- (* c y0) (* a y1))))
(if (<= y0 -7.4e+75)
t_2
(if (<= y0 -2.7e-226)
(*
a
(-
(fma -1.0 (* y1 t_1) (* b (- (* x y) (* t z))))
(* -1.0 (* y5 (- (* t y2) (* y y3))))))
(if (<= y0 2.45e-166)
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_3))
(* j (- (* b y0) (* i y1)))))
(if (<= y0 0.016)
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z t_3))
(* y (- (* c y4) (* a y5))))))
t_2))))))
double code(double x, double y, double z, double t, 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 * y2) - (y3 * z);
double t_2 = y0 * (fma(-1.0, (y5 * ((k * y2) - (j * y3))), (c * t_1)) - (b * ((j * x) - (k * z))));
double t_3 = (c * y0) - (a * y1);
double tmp;
if (y0 <= -7.4e+75) {
tmp = t_2;
} else if (y0 <= -2.7e-226) {
tmp = a * (fma(-1.0, (y1 * t_1), (b * ((x * y) - (t * z)))) - (-1.0 * (y5 * ((t * y2) - (y * y3)))));
} else if (y0 <= 2.45e-166) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_3)) - (j * ((b * y0) - (i * y1))));
} else if (y0 <= 0.016) {
tmp = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * t_3)) - (y * ((c * y4) - (a * y5)))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y2) - Float64(y3 * z)) t_2 = Float64(y0 * Float64(fma(-1.0, Float64(y5 * Float64(Float64(k * y2) - Float64(j * y3))), Float64(c * t_1)) - Float64(b * Float64(Float64(j * x) - Float64(k * z))))) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) tmp = 0.0 if (y0 <= -7.4e+75) tmp = t_2; elseif (y0 <= -2.7e-226) tmp = Float64(a * Float64(fma(-1.0, Float64(y1 * t_1), Float64(b * Float64(Float64(x * y) - Float64(t * z)))) - Float64(-1.0 * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (y0 <= 2.45e-166) 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 (y0 <= 0.016) 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)))))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(N[(-1.0 * N[(y5 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -7.4e+75], t$95$2, If[LessEqual[y0, -2.7e-226], N[(a * N[(N[(-1.0 * N[(y1 * t$95$1), $MachinePrecision] + N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.45e-166], 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[y0, 0.016], 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], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y2 - y3 \cdot z\\
t_2 := y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot t\_1\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\
t_3 := c \cdot y0 - a \cdot y1\\
\mathbf{if}\;y0 \leq -7.4 \cdot 10^{+75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq -2.7 \cdot 10^{-226}:\\
\;\;\;\;a \cdot \left(\mathsf{fma}\left(-1, y1 \cdot t\_1, b \cdot \left(x \cdot y - t \cdot z\right)\right) - -1 \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;y0 \leq 2.45 \cdot 10^{-166}:\\
\;\;\;\;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}\;y0 \leq 0.016:\\
\;\;\;\;-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{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y0 < -7.40000000000000022e75 or 0.016 < y0 Initial program 30.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
if -7.40000000000000022e75 < y0 < -2.70000000000000014e-226Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
if -2.70000000000000014e-226 < y0 < 2.4499999999999999e-166Initial program 30.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
if 2.4499999999999999e-166 < y0 < 0.016Initial program 30.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
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 (- (* y1 y4) (* y0 y5)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (- (* j x) (* k z)))
(t_4
(*
y0
(-
(fma -1.0 (* y5 (- (* k y2) (* j y3))) (* c (- (* x y2) (* y3 z))))
(* b t_3))))
(t_5 (- (* c y4) (* a y5))))
(if (<= y0 -2.5e+89)
t_4
(if (<= y0 -2.8e-125)
(* y2 (- (fma k t_1 (* x t_2)) (* t t_5)))
(if (<= y0 4.7e-212)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 (- (* j t) (* k y))))
(* y1 t_3))))
(if (<= y0 0.016)
(* -1.0 (* y3 (- (fma j t_1 (* z t_2)) (* y t_5))))
t_4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = (c * y0) - (a * y1);
double t_3 = (j * x) - (k * z);
double t_4 = y0 * (fma(-1.0, (y5 * ((k * y2) - (j * y3))), (c * ((x * y2) - (y3 * z)))) - (b * t_3));
double t_5 = (c * y4) - (a * y5);
double tmp;
if (y0 <= -2.5e+89) {
tmp = t_4;
} else if (y0 <= -2.8e-125) {
tmp = y2 * (fma(k, t_1, (x * t_2)) - (t * t_5));
} else if (y0 <= 4.7e-212) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * ((j * t) - (k * y)))) - (y1 * t_3)));
} else if (y0 <= 0.016) {
tmp = -1.0 * (y3 * (fma(j, t_1, (z * t_2)) - (y * t_5)));
} 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(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(j * x) - Float64(k * z)) t_4 = Float64(y0 * Float64(fma(-1.0, Float64(y5 * Float64(Float64(k * y2) - Float64(j * y3))), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(b * t_3))) t_5 = Float64(Float64(c * y4) - Float64(a * y5)) tmp = 0.0 if (y0 <= -2.5e+89) tmp = t_4; elseif (y0 <= -2.8e-125) tmp = Float64(y2 * Float64(fma(k, t_1, Float64(x * t_2)) - Float64(t * t_5))); elseif (y0 <= 4.7e-212) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y1 * t_3)))); elseif (y0 <= 0.016) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_1, Float64(z * t_2)) - Float64(y * t_5)))); 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[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y0 * N[(N[(-1.0 * N[(y5 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -2.5e+89], t$95$4, If[LessEqual[y0, -2.8e-125], N[(y2 * N[(N[(k * t$95$1 + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 4.7e-212], 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 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 0.016], N[(-1.0 * N[(y3 * N[(N[(j * t$95$1 + N[(z * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := j \cdot x - k \cdot z\\
t_4 := y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot t\_3\right)\\
t_5 := c \cdot y4 - a \cdot y5\\
\mathbf{if}\;y0 \leq -2.5 \cdot 10^{+89}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y0 \leq -2.8 \cdot 10^{-125}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_1, x \cdot t\_2\right) - t \cdot t\_5\right)\\
\mathbf{elif}\;y0 \leq 4.7 \cdot 10^{-212}:\\
\;\;\;\;-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 t\_3\right)\right)\\
\mathbf{elif}\;y0 \leq 0.016:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_1, z \cdot t\_2\right) - y \cdot t\_5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y0 < -2.49999999999999992e89 or 0.016 < y0 Initial program 30.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
if -2.49999999999999992e89 < y0 < -2.8e-125Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
if -2.8e-125 < y0 < 4.69999999999999998e-212Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
if 4.69999999999999998e-212 < y0 < 0.016Initial program 30.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
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 (- (* j t) (* k y)))
(t_2 (- (* x y) (* t z)))
(t_3 (* b (fma a t_2 (fma y0 (- (* k z) (* j x)) (* y4 t_1))))))
(if (<= z -7.8e+124)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -1.6e+50)
t_3
(if (<= z -2.9e-237)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= z 1.1e-121)
t_3
(if (<= z 4.8e+160)
(*
-1.0
(* i (- (fma c t_2 (* y5 t_1)) (* y1 (- (* j x) (* k z))))))
(* a (* z (fma -1.0 (* b t) (* y1 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 = (x * y) - (t * z);
double t_3 = b * fma(a, t_2, fma(y0, ((k * z) - (j * x)), (y4 * t_1)));
double tmp;
if (z <= -7.8e+124) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -1.6e+50) {
tmp = t_3;
} else if (z <= -2.9e-237) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (z <= 1.1e-121) {
tmp = t_3;
} else if (z <= 4.8e+160) {
tmp = -1.0 * (i * (fma(c, t_2, (y5 * t_1)) - (y1 * ((j * x) - (k * z)))));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * 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(x * y) - Float64(t * z)) t_3 = Float64(b * fma(a, t_2, fma(y0, Float64(Float64(k * z) - Float64(j * x)), Float64(y4 * t_1)))) tmp = 0.0 if (z <= -7.8e+124) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -1.6e+50) tmp = t_3; elseif (z <= -2.9e-237) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (z <= 1.1e-121) tmp = t_3; elseif (z <= 4.8e+160) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_2, Float64(y5 * t_1)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(a * t$95$2 + N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+124], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.6e+50], t$95$3, If[LessEqual[z, -2.9e-237], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e-121], t$95$3, If[LessEqual[z, 4.8e+160], N[(-1.0 * N[(i * N[(N[(c * t$95$2 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := x \cdot y - t \cdot z\\
t_3 := b \cdot \mathsf{fma}\left(a, t\_2, \mathsf{fma}\left(y0, k \cdot z - j \cdot x, y4 \cdot t\_1\right)\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+124}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{+50}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-237}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-121}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+160}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_2, y5 \cdot t\_1\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -7.8000000000000001e124Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -7.8000000000000001e124 < z < -1.59999999999999991e50 or -2.90000000000000011e-237 < z < 1.10000000000000011e-121Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y0 around 0
lower-fma.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6438.9
Applied rewrites38.9%
if -1.59999999999999991e50 < z < -2.90000000000000011e-237Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
if 1.10000000000000011e-121 < z < 4.8000000000000003e160Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
if 4.8000000000000003e160 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
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 (- (* x y) (* t z)))
(t_2
(*
b
(fma
a
t_1
(fma y0 (- (* k z) (* j x)) (* y4 (- (* j t) (* k y))))))))
(if (<= z -7.8e+124)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -0.13)
t_2
(if (<= z -2.8e-237)
(* y2 (- (* -1.0 (* k (* y0 y5))) (* t (- (* c y4) (* a y5)))))
(if (<= z 1.25e-121)
t_2
(if (<= z 4.2e-40)
(* y1 (fma -1.0 (* i (* k z)) (/ (* i (* k (* y y5))) y1)))
(if (<= z 6.2e+201)
(* a (* b t_1))
(* a (* z (fma -1.0 (* b t) (* y1 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 = (x * y) - (t * z);
double t_2 = b * fma(a, t_1, fma(y0, ((k * z) - (j * x)), (y4 * ((j * t) - (k * y)))));
double tmp;
if (z <= -7.8e+124) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -0.13) {
tmp = t_2;
} else if (z <= -2.8e-237) {
tmp = y2 * ((-1.0 * (k * (y0 * y5))) - (t * ((c * y4) - (a * y5))));
} else if (z <= 1.25e-121) {
tmp = t_2;
} else if (z <= 4.2e-40) {
tmp = y1 * fma(-1.0, (i * (k * z)), ((i * (k * (y * y5))) / y1));
} else if (z <= 6.2e+201) {
tmp = a * (b * t_1);
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * 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(x * y) - Float64(t * z)) t_2 = Float64(b * fma(a, t_1, fma(y0, Float64(Float64(k * z) - Float64(j * x)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))))) tmp = 0.0 if (z <= -7.8e+124) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -0.13) tmp = t_2; elseif (z <= -2.8e-237) tmp = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (z <= 1.25e-121) tmp = t_2; elseif (z <= 4.2e-40) tmp = Float64(y1 * fma(-1.0, Float64(i * Float64(k * z)), Float64(Float64(i * Float64(k * Float64(y * y5))) / y1))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * t_1)); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * t$95$1 + N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+124], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.13], t$95$2, If[LessEqual[z, -2.8e-237], N[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-121], t$95$2, If[LessEqual[z, 4.2e-40], N[(y1 * N[(-1.0 * N[(i * N[(k * z), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := b \cdot \mathsf{fma}\left(a, t\_1, \mathsf{fma}\left(y0, k \cdot z - j \cdot x, y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+124}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -0.13:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-237}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-121}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-40}:\\
\;\;\;\;y1 \cdot \mathsf{fma}\left(-1, i \cdot \left(k \cdot z\right), \frac{i \cdot \left(k \cdot \left(y \cdot y5\right)\right)}{y1}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -7.8000000000000001e124Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -7.8000000000000001e124 < z < -0.13 or -2.79999999999999997e-237 < z < 1.24999999999999997e-121Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y0 around 0
lower-fma.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6438.9
Applied rewrites38.9%
if -0.13 < z < -2.79999999999999997e-237Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6431.1
Applied rewrites31.1%
if 1.24999999999999997e-121 < z < 4.20000000000000036e-40Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6424.9
Applied rewrites24.9%
if 4.20000000000000036e-40 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
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 (* y2 (- (* -1.0 (* k (* y0 y5))) (* t (- (* c y4) (* a y5)))))))
(if (<= z -7e+117)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -0.185)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= z -4.9e-237)
t_1
(if (<= z 2.8e-285)
(* a (* y (- (* b x) (* y3 y5))))
(if (<= z 1.7e-123)
t_1
(if (<= z 4.2e-40)
(* y1 (fma -1.0 (* i (* k z)) (/ (* i (* k (* y y5))) y1)))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 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 = y2 * ((-1.0 * (k * (y0 * y5))) - (t * ((c * y4) - (a * y5))));
double tmp;
if (z <= -7e+117) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -0.185) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (z <= -4.9e-237) {
tmp = t_1;
} else if (z <= 2.8e-285) {
tmp = a * (y * ((b * x) - (y3 * y5)));
} else if (z <= 1.7e-123) {
tmp = t_1;
} else if (z <= 4.2e-40) {
tmp = y1 * fma(-1.0, (i * (k * z)), ((i * (k * (y * y5))) / y1));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) tmp = 0.0 if (z <= -7e+117) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -0.185) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (z <= -4.9e-237) tmp = t_1; elseif (z <= 2.8e-285) tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); elseif (z <= 1.7e-123) tmp = t_1; elseif (z <= 4.2e-40) tmp = Float64(y1 * fma(-1.0, Float64(i * Float64(k * z)), Float64(Float64(i * Float64(k * Float64(y * y5))) / y1))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * 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[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+117], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.185], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.9e-237], t$95$1, If[LessEqual[z, 2.8e-285], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-123], t$95$1, If[LessEqual[z, 4.2e-40], N[(y1 * N[(-1.0 * N[(i * N[(k * z), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+117}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -0.185:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-285}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-40}:\\
\;\;\;\;y1 \cdot \mathsf{fma}\left(-1, i \cdot \left(k \cdot z\right), \frac{i \cdot \left(k \cdot \left(y \cdot y5\right)\right)}{y1}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -6.99999999999999965e117Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -6.99999999999999965e117 < z < -0.185Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -0.185 < z < -4.9000000000000001e-237 or 2.79999999999999991e-285 < z < 1.7e-123Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6431.1
Applied rewrites31.1%
if -4.9000000000000001e-237 < z < 2.79999999999999991e-285Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.7e-123 < z < 4.20000000000000036e-40Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6424.9
Applied rewrites24.9%
if 4.20000000000000036e-40 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -7e+117)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -0.185)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= z -1.5e-243)
(* y2 (- (* -1.0 (* k (* y0 y5))) (* t (- (* c y4) (* a y5)))))
(if (<= z 1.25e-121)
(* b (- (* y4 (- (* j t) (* k y))) (* y0 (- (* j x) (* k z)))))
(if (<= z 4.2e-40)
(* y1 (fma -1.0 (* i (* k z)) (/ (* i (* k (* y y5))) y1)))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -7e+117) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -0.185) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (z <= -1.5e-243) {
tmp = y2 * ((-1.0 * (k * (y0 * y5))) - (t * ((c * y4) - (a * y5))));
} else if (z <= 1.25e-121) {
tmp = b * ((y4 * ((j * t) - (k * y))) - (y0 * ((j * x) - (k * z))));
} else if (z <= 4.2e-40) {
tmp = y1 * fma(-1.0, (i * (k * z)), ((i * (k * (y * y5))) / y1));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -7e+117) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -0.185) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (z <= -1.5e-243) tmp = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (z <= 1.25e-121) tmp = Float64(b * Float64(Float64(y4 * Float64(Float64(j * t) - Float64(k * y))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (z <= 4.2e-40) tmp = Float64(y1 * fma(-1.0, Float64(i * Float64(k * z)), Float64(Float64(i * Float64(k * Float64(y * y5))) / y1))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -7e+117], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.185], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.5e-243], N[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-121], N[(b * N[(N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-40], N[(y1 * N[(-1.0 * N[(i * N[(k * z), $MachinePrecision]), $MachinePrecision] + N[(N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+117}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -0.185:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-243}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-121}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-40}:\\
\;\;\;\;y1 \cdot \mathsf{fma}\left(-1, i \cdot \left(k \cdot z\right), \frac{i \cdot \left(k \cdot \left(y \cdot y5\right)\right)}{y1}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -6.99999999999999965e117Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -6.99999999999999965e117 < z < -0.185Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -0.185 < z < -1.5000000000000001e-243Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6431.1
Applied rewrites31.1%
if -1.5000000000000001e-243 < z < 1.24999999999999997e-121Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around 0
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6433.7
Applied rewrites33.7%
if 1.24999999999999997e-121 < z < 4.20000000000000036e-40Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6424.9
Applied rewrites24.9%
if 4.20000000000000036e-40 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.35e+75)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -5.9e-99)
(* y2 (* -1.0 (* y5 (- (* k y0) (* a t)))))
(if (<= z 7.4e-233)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 2.55e-176)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= z 1e-40)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.35e+75) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.9e-99) {
tmp = y2 * (-1.0 * (y5 * ((k * y0) - (a * t))));
} else if (z <= 7.4e-233) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 2.55e-176) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.35e+75) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -5.9e-99) tmp = Float64(y2 * Float64(-1.0 * Float64(y5 * Float64(Float64(k * y0) - Float64(a * t))))); elseif (z <= 7.4e-233) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 2.55e-176) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (z <= 1e-40) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.35e+75], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.9e-99], N[(y2 * N[(-1.0 * N[(y5 * N[(N[(k * y0), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.4e-233], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e-176], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-40], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+75}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -5.9 \cdot 10^{-99}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(y5 \cdot \left(k \cdot y0 - a \cdot t\right)\right)\right)\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{-233}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-176}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq 10^{-40}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -1.34999999999999999e75Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.34999999999999999e75 < z < -5.8999999999999999e-99Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -5.8999999999999999e-99 < z < 7.3999999999999996e-233Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 7.3999999999999996e-233 < z < 2.5500000000000001e-176Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 2.5500000000000001e-176 < z < 9.9999999999999993e-41Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 9.9999999999999993e-41 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
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 (* b (* -1.0 (* k (- (* y y4) (* y0 z)))))))
(if (<= z -7e+117)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -2e-31)
t_1
(if (<= z 7.4e-233)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 2.55e-176)
t_1
(if (<= z 1e-40)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 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 = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
double tmp;
if (z <= -7e+117) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -2e-31) {
tmp = t_1;
} else if (z <= 7.4e-233) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 2.55e-176) {
tmp = t_1;
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
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(k * Float64(Float64(y * y4) - Float64(y0 * z))))) tmp = 0.0 if (z <= -7e+117) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -2e-31) tmp = t_1; elseif (z <= 7.4e-233) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 2.55e-176) tmp = t_1; elseif (z <= 1e-40) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * 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[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+117], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2e-31], t$95$1, If[LessEqual[z, 7.4e-233], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e-176], t$95$1, If[LessEqual[z, 1e-40], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+117}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{-233}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{-176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 10^{-40}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -6.99999999999999965e117Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -6.99999999999999965e117 < z < -2e-31 or 7.3999999999999996e-233 < z < 2.5500000000000001e-176Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -2e-31 < z < 7.3999999999999996e-233Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 2.5500000000000001e-176 < z < 9.9999999999999993e-41Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 9.9999999999999993e-41 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -7e+117)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -0.185)
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))
(if (<= z -4.9e-237)
(* y2 (- (* -1.0 (* k (* y0 y5))) (* t (- (* c y4) (* a y5)))))
(if (<= z 2.4e-17)
(* b (* y (fma -1.0 (* k y4) (* a x))))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 y3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -7e+117) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -0.185) {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
} else if (z <= -4.9e-237) {
tmp = y2 * ((-1.0 * (k * (y0 * y5))) - (t * ((c * y4) - (a * y5))));
} else if (z <= 2.4e-17) {
tmp = b * (y * fma(-1.0, (k * y4), (a * x)));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -7e+117) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -0.185) tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); elseif (z <= -4.9e-237) tmp = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (z <= 2.4e-17) tmp = Float64(b * Float64(y * fma(-1.0, Float64(k * y4), Float64(a * x)))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -7e+117], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.185], N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.9e-237], N[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-17], N[(b * N[(y * N[(-1.0 * N[(k * y4), $MachinePrecision] + N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+117}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -0.185:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{-237}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-17}:\\
\;\;\;\;b \cdot \left(y \cdot \mathsf{fma}\left(-1, k \cdot y4, a \cdot x\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -6.99999999999999965e117Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -6.99999999999999965e117 < z < -0.185Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -0.185 < z < -4.9000000000000001e-237Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6431.1
Applied rewrites31.1%
if -4.9000000000000001e-237 < z < 2.39999999999999986e-17Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.5
Applied rewrites27.5%
if 2.39999999999999986e-17 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -3.35e+125)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -1.05e-29)
(* b (* y (fma -1.0 (* k y4) (* a x))))
(if (<= z 5.6e-228)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 3.1e-44)
(* b (* x (- (* a y) (* j y0))))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 y3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3.35e+125) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -1.05e-29) {
tmp = b * (y * fma(-1.0, (k * y4), (a * x)));
} else if (z <= 5.6e-228) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 3.1e-44) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -3.35e+125) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -1.05e-29) tmp = Float64(b * Float64(y * fma(-1.0, Float64(k * y4), Float64(a * x)))); elseif (z <= 5.6e-228) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 3.1e-44) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -3.35e+125], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.05e-29], N[(b * N[(y * N[(-1.0 * N[(k * y4), $MachinePrecision] + N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-228], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-44], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.35 \cdot 10^{+125}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{-29}:\\
\;\;\;\;b \cdot \left(y \cdot \mathsf{fma}\left(-1, k \cdot y4, a \cdot x\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -3.3500000000000002e125Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -3.3500000000000002e125 < z < -1.04999999999999995e-29Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.5
Applied rewrites27.5%
if -1.04999999999999995e-29 < z < 5.6000000000000005e-228Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 5.6000000000000005e-228 < z < 3.09999999999999984e-44Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 3.09999999999999984e-44 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -9e+74)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -5.4e-5)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= z 5.6e-228)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 3.1e-44)
(* b (* x (- (* a y) (* j y0))))
(if (<= z 6.2e+201)
(* a (* b (- (* x y) (* t z))))
(* a (* z (fma -1.0 (* b t) (* y1 y3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -9e+74) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.4e-5) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (z <= 5.6e-228) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 3.1e-44) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (z <= 6.2e+201) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -9e+74) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -5.4e-5) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (z <= 5.6e-228) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 3.1e-44) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); elseif (z <= 6.2e+201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -9e+74], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e-5], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-228], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-44], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+74}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-5}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -8.9999999999999999e74Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -8.9999999999999999e74 < z < -5.3999999999999998e-5Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
if -5.3999999999999998e-5 < z < 5.6000000000000005e-228Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 5.6000000000000005e-228 < z < 3.09999999999999984e-44Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 3.09999999999999984e-44 < z < 6.19999999999999961e201Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 6.19999999999999961e201 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
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 (* i (* k (- (* y y5) (* y1 z))))))
(if (<= k -6.8e-65)
t_1
(if (<= k 2.4e-179)
(* b (* a (* t (- (/ (* x y) t) z))))
(if (<= k 3.1e+107)
(* a (* -1.0 (* y2 (- (* x y1) (* t y5)))))
(if (<= k 3.5e+209)
t_1
(* b (* -1.0 (* k (- (* y y4) (* y0 z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (y1 * z)));
double tmp;
if (k <= -6.8e-65) {
tmp = t_1;
} else if (k <= 2.4e-179) {
tmp = b * (a * (t * (((x * y) / t) - z)));
} else if (k <= 3.1e+107) {
tmp = a * (-1.0 * (y2 * ((x * y1) - (t * y5))));
} else if (k <= 3.5e+209) {
tmp = t_1;
} else {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * ((y * y5) - (y1 * z)))
if (k <= (-6.8d-65)) then
tmp = t_1
else if (k <= 2.4d-179) then
tmp = b * (a * (t * (((x * y) / t) - z)))
else if (k <= 3.1d+107) then
tmp = a * ((-1.0d0) * (y2 * ((x * y1) - (t * y5))))
else if (k <= 3.5d+209) then
tmp = t_1
else
tmp = b * ((-1.0d0) * (k * ((y * y4) - (y0 * z))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (y1 * z)));
double tmp;
if (k <= -6.8e-65) {
tmp = t_1;
} else if (k <= 2.4e-179) {
tmp = b * (a * (t * (((x * y) / t) - z)));
} else if (k <= 3.1e+107) {
tmp = a * (-1.0 * (y2 * ((x * y1) - (t * y5))));
} else if (k <= 3.5e+209) {
tmp = t_1;
} else {
tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * ((y * y5) - (y1 * z))) tmp = 0 if k <= -6.8e-65: tmp = t_1 elif k <= 2.4e-179: tmp = b * (a * (t * (((x * y) / t) - z))) elif k <= 3.1e+107: tmp = a * (-1.0 * (y2 * ((x * y1) - (t * y5)))) elif k <= 3.5e+209: tmp = t_1 else: tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z)))) 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(k * Float64(Float64(y * y5) - Float64(y1 * z)))) tmp = 0.0 if (k <= -6.8e-65) tmp = t_1; elseif (k <= 2.4e-179) tmp = Float64(b * Float64(a * Float64(t * Float64(Float64(Float64(x * y) / t) - z)))); elseif (k <= 3.1e+107) tmp = Float64(a * Float64(-1.0 * Float64(y2 * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (k <= 3.5e+209) tmp = t_1; else tmp = Float64(b * Float64(-1.0 * Float64(k * Float64(Float64(y * y4) - Float64(y0 * z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * ((y * y5) - (y1 * z))); tmp = 0.0; if (k <= -6.8e-65) tmp = t_1; elseif (k <= 2.4e-179) tmp = b * (a * (t * (((x * y) / t) - z))); elseif (k <= 3.1e+107) tmp = a * (-1.0 * (y2 * ((x * y1) - (t * y5)))); elseif (k <= 3.5e+209) tmp = t_1; else tmp = b * (-1.0 * (k * ((y * y4) - (y0 * z)))); 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[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -6.8e-65], t$95$1, If[LessEqual[k, 2.4e-179], N[(b * N[(a * N[(t * N[(N[(N[(x * y), $MachinePrecision] / t), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.1e+107], N[(a * N[(-1.0 * N[(y2 * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.5e+209], t$95$1, N[(b * N[(-1.0 * N[(k * N[(N[(y * y4), $MachinePrecision] - N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{if}\;k \leq -6.8 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 2.4 \cdot 10^{-179}:\\
\;\;\;\;b \cdot \left(a \cdot \left(t \cdot \left(\frac{x \cdot y}{t} - z\right)\right)\right)\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{+107}:\\
\;\;\;\;a \cdot \left(-1 \cdot \left(y2 \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;k \leq 3.5 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(-1 \cdot \left(k \cdot \left(y \cdot y4 - y0 \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if k < -6.79999999999999973e-65 or 3.10000000000000026e107 < k < 3.5000000000000003e209Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -6.79999999999999973e-65 < k < 2.4e-179Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.5
Applied rewrites26.5%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lift-*.f6428.7
Applied rewrites28.7%
if 2.4e-179 < k < 3.10000000000000026e107Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y2 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 3.5000000000000003e209 < k Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (- (* y y5) (* y1 z))))))
(if (<= k -2e+78)
t_1
(if (<= k -7.6e-171)
(* i (* y (fma -1.0 (* c x) (* k y5))))
(if (<= k 1.1e-179)
(* a (* b (- (* x y) (* t z))))
(if (<= k 3.1e+107)
(* a (* -1.0 (* y2 (- (* x y1) (* t y5)))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * ((y * y5) - (y1 * z)));
double tmp;
if (k <= -2e+78) {
tmp = t_1;
} else if (k <= -7.6e-171) {
tmp = i * (y * fma(-1.0, (c * x), (k * y5)));
} else if (k <= 1.1e-179) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (k <= 3.1e+107) {
tmp = a * (-1.0 * (y2 * ((x * y1) - (t * y5))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))) tmp = 0.0 if (k <= -2e+78) tmp = t_1; elseif (k <= -7.6e-171) tmp = Float64(i * Float64(y * fma(-1.0, Float64(c * x), Float64(k * y5)))); elseif (k <= 1.1e-179) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (k <= 3.1e+107) tmp = Float64(a * Float64(-1.0 * Float64(y2 * Float64(Float64(x * y1) - Float64(t * 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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2e+78], t$95$1, If[LessEqual[k, -7.6e-171], N[(i * N[(y * N[(-1.0 * N[(c * x), $MachinePrecision] + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.1e-179], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.1e+107], N[(a * N[(-1.0 * N[(y2 * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{if}\;k \leq -2 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -7.6 \cdot 10^{-171}:\\
\;\;\;\;i \cdot \left(y \cdot \mathsf{fma}\left(-1, c \cdot x, k \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq 1.1 \cdot 10^{-179}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{+107}:\\
\;\;\;\;a \cdot \left(-1 \cdot \left(y2 \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -2.00000000000000002e78 or 3.10000000000000026e107 < k Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -2.00000000000000002e78 < k < -7.60000000000000043e-171Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -7.60000000000000043e-171 < k < 1.10000000000000002e-179Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 1.10000000000000002e-179 < k < 3.10000000000000026e107Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y2 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -9e+74)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -5.4e-5)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= z 5.6e-228)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 3.1e-44)
(* b (* x (- (* a y) (* j y0))))
(* a (* b (- (* x y) (* t z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -9e+74) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.4e-5) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (z <= 5.6e-228) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 3.1e-44) {
tmp = b * (x * ((a * y) - (j * y0)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-9d+74)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= (-5.4d-5)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (z <= 5.6d-228) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 3.1d-44) then
tmp = b * (x * ((a * y) - (j * y0)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -9e+74) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.4e-5) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (z <= 5.6e-228) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 3.1e-44) {
tmp = b * (x * ((a * y) - (j * y0)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -9e+74: tmp = i * (z * ((c * t) - (k * y1))) elif z <= -5.4e-5: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif z <= 5.6e-228: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 3.1e-44: tmp = b * (x * ((a * y) - (j * y0))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -9e+74) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -5.4e-5) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (z <= 5.6e-228) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 3.1e-44) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -9e+74) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= -5.4e-5) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (z <= 5.6e-228) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 3.1e-44) tmp = b * (x * ((a * y) - (j * y0))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -9e+74], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e-5], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-228], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-44], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+74}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-5}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -8.9999999999999999e74Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -8.9999999999999999e74 < z < -5.3999999999999998e-5Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
if -5.3999999999999998e-5 < z < 5.6000000000000005e-228Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 5.6000000000000005e-228 < z < 3.09999999999999984e-44Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 3.09999999999999984e-44 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -9e+74)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -5.4e-5)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= z 4.5e-262)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 1e-40)
(* c (* y2 (- (* x y0) (* t y4))))
(* a (* b (- (* x y) (* t z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -9e+74) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.4e-5) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (z <= 4.5e-262) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-9d+74)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= (-5.4d-5)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (z <= 4.5d-262) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 1d-40) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -9e+74) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -5.4e-5) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (z <= 4.5e-262) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -9e+74: tmp = i * (z * ((c * t) - (k * y1))) elif z <= -5.4e-5: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif z <= 4.5e-262: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 1e-40: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -9e+74) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -5.4e-5) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (z <= 4.5e-262) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 1e-40) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -9e+74) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= -5.4e-5) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (z <= 4.5e-262) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 1e-40) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -9e+74], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.4e-5], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-262], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-40], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+74}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-5}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-262}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 10^{-40}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -8.9999999999999999e74Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -8.9999999999999999e74 < z < -5.3999999999999998e-5Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.3
Applied rewrites27.3%
if -5.3999999999999998e-5 < z < 4.49999999999999998e-262Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 4.49999999999999998e-262 < z < 9.9999999999999993e-41Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 9.9999999999999993e-41 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.2e+75)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 4.5e-262)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 1e-40)
(* c (* y2 (- (* x y0) (* t y4))))
(* a (* b (- (* x y) (* t z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.2e+75) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 4.5e-262) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1.2d+75)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 4.5d-262) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 1d-40) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.2e+75) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 4.5e-262) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1e-40) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.2e+75: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 4.5e-262: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 1e-40: tmp = c * (y2 * ((x * y0) - (t * y4))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.2e+75) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 4.5e-262) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 1e-40) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1.2e+75) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 4.5e-262) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 1e-40) tmp = c * (y2 * ((x * y0) - (t * y4))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.2e+75], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-262], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-40], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+75}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-262}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 10^{-40}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.2e75Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.2e75 < z < 4.49999999999999998e-262Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 4.49999999999999998e-262 < z < 9.9999999999999993e-41Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if 9.9999999999999993e-41 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* z (- (* c t) (* k y1))))))
(if (<= z -1.2e+75)
t_1
(if (<= z 33000.0)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 9.5e+157) t_1 (* a (* z (* y1 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 = i * (z * ((c * t) - (k * y1)));
double tmp;
if (z <= -1.2e+75) {
tmp = t_1;
} else if (z <= 33000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 9.5e+157) {
tmp = t_1;
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (z * ((c * t) - (k * y1)))
if (z <= (-1.2d+75)) then
tmp = t_1
else if (z <= 33000.0d0) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 9.5d+157) then
tmp = t_1
else
tmp = a * (z * (y1 * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (z * ((c * t) - (k * y1)));
double tmp;
if (z <= -1.2e+75) {
tmp = t_1;
} else if (z <= 33000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 9.5e+157) {
tmp = t_1;
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (z * ((c * t) - (k * y1))) tmp = 0 if z <= -1.2e+75: tmp = t_1 elif z <= 33000.0: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 9.5e+157: tmp = t_1 else: tmp = a * (z * (y1 * y3)) 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(z * Float64(Float64(c * t) - Float64(k * y1)))) tmp = 0.0 if (z <= -1.2e+75) tmp = t_1; elseif (z <= 33000.0) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 9.5e+157) tmp = t_1; else tmp = Float64(a * Float64(z * Float64(y1 * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (z * ((c * t) - (k * y1))); tmp = 0.0; if (z <= -1.2e+75) tmp = t_1; elseif (z <= 33000.0) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 9.5e+157) tmp = t_1; else tmp = a * (z * (y1 * y3)); 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[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.2e+75], t$95$1, If[LessEqual[z, 33000.0], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+157], t$95$1, N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{+75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 33000:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+157}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -1.2e75 or 33000 < z < 9.4999999999999996e157Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.2e75 < z < 33000Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 9.4999999999999996e157 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.2e+75)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 20000.0)
(* a (* y5 (- (* t y2) (* y y3))))
(* a (* b (- (* x y) (* t z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.2e+75) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 20000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1.2d+75)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 20000.0d0) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else
tmp = a * (b * ((x * y) - (t * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.2e+75) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 20000.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = a * (b * ((x * y) - (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.2e+75: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 20000.0: tmp = a * (y5 * ((t * y2) - (y * y3))) else: tmp = a * (b * ((x * y) - (t * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.2e+75) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 20000.0) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1.2e+75) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 20000.0) tmp = a * (y5 * ((t * y2) - (y * y3))); else tmp = a * (b * ((x * y) - (t * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.2e+75], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 20000.0], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+75}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 20000:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.2e75Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.2e75 < z < 2e4Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y5 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if 2e4 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (- (* y y5) (* y1 z))))))
(if (<= k -5.5e-86)
t_1
(if (<= k -1.55e-257)
(* a (* b (* x y)))
(if (<= k 6.2e-134) (* a (* z (* y1 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 = i * (k * ((y * y5) - (y1 * z)));
double tmp;
if (k <= -5.5e-86) {
tmp = t_1;
} else if (k <= -1.55e-257) {
tmp = a * (b * (x * y));
} else if (k <= 6.2e-134) {
tmp = a * (z * (y1 * 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 = i * (k * ((y * y5) - (y1 * z)))
if (k <= (-5.5d-86)) then
tmp = t_1
else if (k <= (-1.55d-257)) then
tmp = a * (b * (x * y))
else if (k <= 6.2d-134) then
tmp = a * (z * (y1 * 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 = i * (k * ((y * y5) - (y1 * z)));
double tmp;
if (k <= -5.5e-86) {
tmp = t_1;
} else if (k <= -1.55e-257) {
tmp = a * (b * (x * y));
} else if (k <= 6.2e-134) {
tmp = a * (z * (y1 * 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 = i * (k * ((y * y5) - (y1 * z))) tmp = 0 if k <= -5.5e-86: tmp = t_1 elif k <= -1.55e-257: tmp = a * (b * (x * y)) elif k <= 6.2e-134: tmp = a * (z * (y1 * 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(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))) tmp = 0.0 if (k <= -5.5e-86) tmp = t_1; elseif (k <= -1.55e-257) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (k <= 6.2e-134) tmp = Float64(a * Float64(z * Float64(y1 * 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 = i * (k * ((y * y5) - (y1 * z))); tmp = 0.0; if (k <= -5.5e-86) tmp = t_1; elseif (k <= -1.55e-257) tmp = a * (b * (x * y)); elseif (k <= 6.2e-134) tmp = a * (z * (y1 * 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[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5.5e-86], t$95$1, If[LessEqual[k, -1.55e-257], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.2e-134], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{if}\;k \leq -5.5 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -1.55 \cdot 10^{-257}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;k \leq 6.2 \cdot 10^{-134}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -5.5e-86 or 6.20000000000000012e-134 < k Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -5.5e-86 < k < -1.55000000000000004e-257Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
if -1.55000000000000004e-257 < k < 6.20000000000000012e-134Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -2.7e-25) (* i (* z (- (* c t) (* k y1)))) (if (<= z 7e+175) (* i (* k (- (* y y5) (* y1 z)))) (* a (* z (* y1 y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2.7e-25) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 7e+175) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-2.7d-25)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 7d+175) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else
tmp = a * (z * (y1 * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2.7e-25) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 7e+175) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -2.7e-25: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 7e+175: tmp = i * (k * ((y * y5) - (y1 * z))) else: tmp = a * (z * (y1 * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -2.7e-25) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 7e+175) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); else tmp = Float64(a * Float64(z * Float64(y1 * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -2.7e-25) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 7e+175) tmp = i * (k * ((y * y5) - (y1 * z))); else tmp = a * (z * (y1 * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -2.7e-25], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+175], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-25}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+175}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -2.70000000000000016e-25Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -2.70000000000000016e-25 < z < 7.0000000000000006e175Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 7.0000000000000006e175 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 -2.9e+180)
(* i (* y1 (- (* j x) (* k z))))
(if (<= y1 -2.35e+89)
(* a (* z (* y1 y3)))
(* i (* k (- (* y y5) (* y1 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 (y1 <= -2.9e+180) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (y1 <= -2.35e+89) {
tmp = a * (z * (y1 * y3));
} else {
tmp = i * (k * ((y * y5) - (y1 * 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 (y1 <= (-2.9d+180)) then
tmp = i * (y1 * ((j * x) - (k * z)))
else if (y1 <= (-2.35d+89)) then
tmp = a * (z * (y1 * y3))
else
tmp = i * (k * ((y * y5) - (y1 * 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 (y1 <= -2.9e+180) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (y1 <= -2.35e+89) {
tmp = a * (z * (y1 * y3));
} else {
tmp = i * (k * ((y * y5) - (y1 * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -2.9e+180: tmp = i * (y1 * ((j * x) - (k * z))) elif y1 <= -2.35e+89: tmp = a * (z * (y1 * y3)) else: tmp = i * (k * ((y * y5) - (y1 * 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 (y1 <= -2.9e+180) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (y1 <= -2.35e+89) tmp = Float64(a * Float64(z * Float64(y1 * y3))); else tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * 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 (y1 <= -2.9e+180) tmp = i * (y1 * ((j * x) - (k * z))); elseif (y1 <= -2.35e+89) tmp = a * (z * (y1 * y3)); else tmp = i * (k * ((y * y5) - (y1 * 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[y1, -2.9e+180], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -2.35e+89], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -2.9 \cdot 10^{+180}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;y1 \leq -2.35 \cdot 10^{+89}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\end{array}
\end{array}
if y1 < -2.90000000000000007e180Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.7
Applied rewrites26.7%
if -2.90000000000000007e180 < y1 < -2.35000000000000011e89Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
if -2.35000000000000011e89 < y1 Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* k (* y y5)))))
(if (<= k -1.75e-77)
t_1
(if (<= k 3.2e-239)
(* a (* b (* x y)))
(if (<= k 3.4e-133) (* a (* y1 (* y3 z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (k <= -1.75e-77) {
tmp = t_1;
} else if (k <= 3.2e-239) {
tmp = a * (b * (x * y));
} else if (k <= 3.4e-133) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * (y * y5))
if (k <= (-1.75d-77)) then
tmp = t_1
else if (k <= 3.2d-239) then
tmp = a * (b * (x * y))
else if (k <= 3.4d-133) then
tmp = a * (y1 * (y3 * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (k <= -1.75e-77) {
tmp = t_1;
} else if (k <= 3.2e-239) {
tmp = a * (b * (x * y));
} else if (k <= 3.4e-133) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * (y * y5)) tmp = 0 if k <= -1.75e-77: tmp = t_1 elif k <= 3.2e-239: tmp = a * (b * (x * y)) elif k <= 3.4e-133: tmp = a * (y1 * (y3 * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(y * y5))) tmp = 0.0 if (k <= -1.75e-77) tmp = t_1; elseif (k <= 3.2e-239) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (k <= 3.4e-133) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * (y * y5)); tmp = 0.0; if (k <= -1.75e-77) tmp = t_1; elseif (k <= 3.2e-239) tmp = a * (b * (x * y)); elseif (k <= 3.4e-133) tmp = a * (y1 * (y3 * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.75e-77], t$95$1, If[LessEqual[k, 3.2e-239], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.4e-133], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -1.75 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{-239}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;k \leq 3.4 \cdot 10^{-133}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1.75000000000000006e-77 or 3.40000000000000006e-133 < k Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.2
Applied rewrites17.2%
if -1.75000000000000006e-77 < k < 3.1999999999999999e-239Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
if 3.1999999999999999e-239 < k < 3.40000000000000006e-133Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -3.4e+56) (* i (* k (* -1.0 (* y1 z)))) (if (<= z 2e+157) (* i (* k (* y y5))) (* a (* z (* y1 y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3.4e+56) {
tmp = i * (k * (-1.0 * (y1 * z)));
} else if (z <= 2e+157) {
tmp = i * (k * (y * y5));
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-3.4d+56)) then
tmp = i * (k * ((-1.0d0) * (y1 * z)))
else if (z <= 2d+157) then
tmp = i * (k * (y * y5))
else
tmp = a * (z * (y1 * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3.4e+56) {
tmp = i * (k * (-1.0 * (y1 * z)));
} else if (z <= 2e+157) {
tmp = i * (k * (y * y5));
} else {
tmp = a * (z * (y1 * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -3.4e+56: tmp = i * (k * (-1.0 * (y1 * z))) elif z <= 2e+157: tmp = i * (k * (y * y5)) else: tmp = a * (z * (y1 * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -3.4e+56) tmp = Float64(i * Float64(k * Float64(-1.0 * Float64(y1 * z)))); elseif (z <= 2e+157) tmp = Float64(i * Float64(k * Float64(y * y5))); else tmp = Float64(a * Float64(z * Float64(y1 * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -3.4e+56) tmp = i * (k * (-1.0 * (y1 * z))); elseif (z <= 2e+157) tmp = i * (k * (y * y5)); else tmp = a * (z * (y1 * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -3.4e+56], N[(i * N[(k * N[(-1.0 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+157], N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+56}:\\
\;\;\;\;i \cdot \left(k \cdot \left(-1 \cdot \left(y1 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+157}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if z < -3.40000000000000001e56Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around 0
lower-*.f64N/A
lift-*.f6417.4
Applied rewrites17.4%
if -3.40000000000000001e56 < z < 1.99999999999999997e157Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.2
Applied rewrites17.2%
if 1.99999999999999997e157 < z Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* k (* y y5))))) (if (<= y -4.6e-58) t_1 (if (<= y 500000000.0) (* a (* z (* y1 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 = i * (k * (y * y5));
double tmp;
if (y <= -4.6e-58) {
tmp = t_1;
} else if (y <= 500000000.0) {
tmp = a * (z * (y1 * 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 = i * (k * (y * y5))
if (y <= (-4.6d-58)) then
tmp = t_1
else if (y <= 500000000.0d0) then
tmp = a * (z * (y1 * 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 = i * (k * (y * y5));
double tmp;
if (y <= -4.6e-58) {
tmp = t_1;
} else if (y <= 500000000.0) {
tmp = a * (z * (y1 * 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 = i * (k * (y * y5)) tmp = 0 if y <= -4.6e-58: tmp = t_1 elif y <= 500000000.0: tmp = a * (z * (y1 * 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(i * Float64(k * Float64(y * y5))) tmp = 0.0 if (y <= -4.6e-58) tmp = t_1; elseif (y <= 500000000.0) tmp = Float64(a * Float64(z * Float64(y1 * 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 = i * (k * (y * y5)); tmp = 0.0; if (y <= -4.6e-58) tmp = t_1; elseif (y <= 500000000.0) tmp = a * (z * (y1 * 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[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e-58], t$95$1, If[LessEqual[y, 500000000.0], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 500000000:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.5999999999999998e-58 or 5e8 < y Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.2
Applied rewrites17.2%
if -4.5999999999999998e-58 < y < 5e8Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
Taylor expanded in t around 0
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* k (* y y5))))) (if (<= k -1.75e-77) t_1 (if (<= k 3.1e-136) (* a (* b (* x y))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (k <= -1.75e-77) {
tmp = t_1;
} else if (k <= 3.1e-136) {
tmp = a * (b * (x * y));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (k * (y * y5))
if (k <= (-1.75d-77)) then
tmp = t_1
else if (k <= 3.1d-136) then
tmp = a * (b * (x * y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (k <= -1.75e-77) {
tmp = t_1;
} else if (k <= 3.1e-136) {
tmp = a * (b * (x * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (k * (y * y5)) tmp = 0 if k <= -1.75e-77: tmp = t_1 elif k <= 3.1e-136: tmp = a * (b * (x * y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(y * y5))) tmp = 0.0 if (k <= -1.75e-77) tmp = t_1; elseif (k <= 3.1e-136) tmp = Float64(a * Float64(b * Float64(x * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (k * (y * y5)); tmp = 0.0; if (k <= -1.75e-77) tmp = t_1; elseif (k <= 3.1e-136) tmp = a * (b * (x * y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.75e-77], t$95$1, If[LessEqual[k, 3.1e-136], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -1.75 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 3.1 \cdot 10^{-136}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -1.75000000000000006e-77 or 3.1e-136 < k Initial program 30.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.2
Applied rewrites17.2%
if -1.75000000000000006e-77 < k < 3.1e-136Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.2
Applied rewrites17.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* 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.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.2
Applied rewrites17.2%
herbie shell --seed 2025139
(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)))))