
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
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)
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
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
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)
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
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i))
(t_2 (+ c (* y (+ b (* y (+ a y))))))
(t_3 (pow t_2 2.0))
(t_4 (+ (- (/ (- (- z) (* (- a) x)) y)) x))
(t_5 (* y t_2))
(t_6 (+ z (* x y))))
(if (<= y -3.8e+47)
t_4
(if (<= y 2.4e+32)
(fma
y
(/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
(/ t t_1))
(if (<= y 4e+71)
(fma
y
(fma
-1.0
(*
i
(fma
27464.7644705
(/ 1.0 (* y t_3))
(fma 230661.510616 (/ 1.0 (pow t_5 2.0)) (/ t_6 t_3))))
(fma 230661.510616 (/ 1.0 t_5) (/ (+ 27464.7644705 (* y t_6)) t_2)))
(/ t (fma (+ c (* (* y y) (+ a y))) y i)))
(if (<= y 1.4e+105)
(*
x
(+
(/ 27464.7644705 (* a (* x y)))
(+
(/ 230661.510616 (* a (* x (* y y))))
(+ (/ t (* a (* x (* (* y y) y)))) (+ (/ y a) (/ z (* a x)))))))
t_4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_2 = c + (y * (b + (y * (a + y))));
double t_3 = pow(t_2, 2.0);
double t_4 = -((-z - (-a * x)) / y) + x;
double t_5 = y * t_2;
double t_6 = z + (x * y);
double tmp;
if (y <= -3.8e+47) {
tmp = t_4;
} else if (y <= 2.4e+32) {
tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
} else if (y <= 4e+71) {
tmp = fma(y, fma(-1.0, (i * fma(27464.7644705, (1.0 / (y * t_3)), fma(230661.510616, (1.0 / pow(t_5, 2.0)), (t_6 / t_3)))), fma(230661.510616, (1.0 / t_5), ((27464.7644705 + (y * t_6)) / t_2))), (t / fma((c + ((y * y) * (a + y))), y, i)));
} else if (y <= 1.4e+105) {
tmp = x * ((27464.7644705 / (a * (x * y))) + ((230661.510616 / (a * (x * (y * y)))) + ((t / (a * (x * ((y * y) * y)))) + ((y / a) + (z / (a * x))))));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_2 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(a + y))))) t_3 = t_2 ^ 2.0 t_4 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) t_5 = Float64(y * t_2) t_6 = Float64(z + Float64(x * y)) tmp = 0.0 if (y <= -3.8e+47) tmp = t_4; elseif (y <= 2.4e+32) tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1)); elseif (y <= 4e+71) tmp = fma(y, fma(-1.0, Float64(i * fma(27464.7644705, Float64(1.0 / Float64(y * t_3)), fma(230661.510616, Float64(1.0 / (t_5 ^ 2.0)), Float64(t_6 / t_3)))), fma(230661.510616, Float64(1.0 / t_5), Float64(Float64(27464.7644705 + Float64(y * t_6)) / t_2))), Float64(t / fma(Float64(c + Float64(Float64(y * y) * Float64(a + y))), y, i))); elseif (y <= 1.4e+105) tmp = Float64(x * Float64(Float64(27464.7644705 / Float64(a * Float64(x * y))) + Float64(Float64(230661.510616 / Float64(a * Float64(x * Float64(y * y)))) + Float64(Float64(t / Float64(a * Float64(x * Float64(Float64(y * y) * y)))) + Float64(Float64(y / a) + Float64(z / Float64(a * x))))))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(b + N[(y * N[(a + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Power[t$95$2, 2.0], $MachinePrecision]}, Block[{t$95$4 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, Block[{t$95$5 = N[(y * t$95$2), $MachinePrecision]}, Block[{t$95$6 = N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+47], t$95$4, If[LessEqual[y, 2.4e+32], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+71], N[(y * N[(-1.0 * N[(i * N[(27464.7644705 * N[(1.0 / N[(y * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 * N[(1.0 / N[Power[t$95$5, 2.0], $MachinePrecision]), $MachinePrecision] + N[(t$95$6 / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 * N[(1.0 / t$95$5), $MachinePrecision] + N[(N[(27464.7644705 + N[(y * t$95$6), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(c + N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+105], N[(x * N[(N[(27464.7644705 / N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(230661.510616 / N[(a * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(a * N[(x * N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / a), $MachinePrecision] + N[(z / N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\\
t_3 := {t\_2}^{2}\\
t_4 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
t_5 := y \cdot t\_2\\
t_6 := z + x \cdot y\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+32}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+71}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(-1, i \cdot \mathsf{fma}\left(27464.7644705, \frac{1}{y \cdot t\_3}, \mathsf{fma}\left(230661.510616, \frac{1}{{t\_5}^{2}}, \frac{t\_6}{t\_3}\right)\right), \mathsf{fma}\left(230661.510616, \frac{1}{t\_5}, \frac{27464.7644705 + y \cdot t\_6}{t\_2}\right)\right), \frac{t}{\mathsf{fma}\left(c + \left(y \cdot y\right) \cdot \left(a + y\right), y, i\right)}\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \left(\frac{27464.7644705}{a \cdot \left(x \cdot y\right)} + \left(\frac{230661.510616}{a \cdot \left(x \cdot \left(y \cdot y\right)\right)} + \left(\frac{t}{a \cdot \left(x \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)} + \left(\frac{y}{a} + \frac{z}{a \cdot x}\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y < -3.8000000000000003e47 or 1.4000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.8000000000000003e47 < y < 2.39999999999999991e32Initial program 55.7%
Applied rewrites56.4%
if 2.39999999999999991e32 < y < 4.0000000000000002e71Initial program 55.7%
Applied rewrites56.4%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
lift-+.f6452.3
Applied rewrites52.3%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
lift-+.f6450.6
Applied rewrites50.6%
Taylor expanded in i around 0
Applied rewrites27.1%
if 4.0000000000000002e71 < y < 1.4000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-+.f64N/A
Applied rewrites13.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i))
(t_2 (+ c (* y (+ b (* y (+ a y))))))
(t_3 (pow t_2 2.0))
(t_4 (/ t t_1))
(t_5 (+ (- (/ (- (- z) (* (- a) x)) y)) x))
(t_6 (* y t_2))
(t_7 (+ z (* x y))))
(if (<= y -3.8e+47)
t_5
(if (<= y 8.5e+30)
(fma
y
(/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
t_4)
(if (<= y 4e+71)
(fma
y
(fma
-1.0
(*
i
(fma
27464.7644705
(/ 1.0 (* y t_3))
(fma 230661.510616 (/ 1.0 (pow t_6 2.0)) (/ t_7 t_3))))
(fma 230661.510616 (/ 1.0 t_6) (/ (+ 27464.7644705 (* y t_7)) t_2)))
t_4)
(if (<= y 1.4e+105)
(*
x
(+
(/ 27464.7644705 (* a (* x y)))
(+
(/ 230661.510616 (* a (* x (* y y))))
(+ (/ t (* a (* x (* (* y y) y)))) (+ (/ y a) (/ z (* a x)))))))
t_5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_2 = c + (y * (b + (y * (a + y))));
double t_3 = pow(t_2, 2.0);
double t_4 = t / t_1;
double t_5 = -((-z - (-a * x)) / y) + x;
double t_6 = y * t_2;
double t_7 = z + (x * y);
double tmp;
if (y <= -3.8e+47) {
tmp = t_5;
} else if (y <= 8.5e+30) {
tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), t_4);
} else if (y <= 4e+71) {
tmp = fma(y, fma(-1.0, (i * fma(27464.7644705, (1.0 / (y * t_3)), fma(230661.510616, (1.0 / pow(t_6, 2.0)), (t_7 / t_3)))), fma(230661.510616, (1.0 / t_6), ((27464.7644705 + (y * t_7)) / t_2))), t_4);
} else if (y <= 1.4e+105) {
tmp = x * ((27464.7644705 / (a * (x * y))) + ((230661.510616 / (a * (x * (y * y)))) + ((t / (a * (x * ((y * y) * y)))) + ((y / a) + (z / (a * x))))));
} else {
tmp = t_5;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_2 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(a + y))))) t_3 = t_2 ^ 2.0 t_4 = Float64(t / t_1) t_5 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) t_6 = Float64(y * t_2) t_7 = Float64(z + Float64(x * y)) tmp = 0.0 if (y <= -3.8e+47) tmp = t_5; elseif (y <= 8.5e+30) tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), t_4); elseif (y <= 4e+71) tmp = fma(y, fma(-1.0, Float64(i * fma(27464.7644705, Float64(1.0 / Float64(y * t_3)), fma(230661.510616, Float64(1.0 / (t_6 ^ 2.0)), Float64(t_7 / t_3)))), fma(230661.510616, Float64(1.0 / t_6), Float64(Float64(27464.7644705 + Float64(y * t_7)) / t_2))), t_4); elseif (y <= 1.4e+105) tmp = Float64(x * Float64(Float64(27464.7644705 / Float64(a * Float64(x * y))) + Float64(Float64(230661.510616 / Float64(a * Float64(x * Float64(y * y)))) + Float64(Float64(t / Float64(a * Float64(x * Float64(Float64(y * y) * y)))) + Float64(Float64(y / a) + Float64(z / Float64(a * x))))))); else tmp = t_5; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(b + N[(y * N[(a + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Power[t$95$2, 2.0], $MachinePrecision]}, Block[{t$95$4 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$5 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, Block[{t$95$6 = N[(y * t$95$2), $MachinePrecision]}, Block[{t$95$7 = N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+47], t$95$5, If[LessEqual[y, 8.5e+30], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + t$95$4), $MachinePrecision], If[LessEqual[y, 4e+71], N[(y * N[(-1.0 * N[(i * N[(27464.7644705 * N[(1.0 / N[(y * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 * N[(1.0 / N[Power[t$95$6, 2.0], $MachinePrecision]), $MachinePrecision] + N[(t$95$7 / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(230661.510616 * N[(1.0 / t$95$6), $MachinePrecision] + N[(N[(27464.7644705 + N[(y * t$95$7), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision], If[LessEqual[y, 1.4e+105], N[(x * N[(N[(27464.7644705 / N[(a * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(230661.510616 / N[(a * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(a * N[(x * N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / a), $MachinePrecision] + N[(z / N[(a * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := c + y \cdot \left(b + y \cdot \left(a + y\right)\right)\\
t_3 := {t\_2}^{2}\\
t_4 := \frac{t}{t\_1}\\
t_5 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
t_6 := y \cdot t\_2\\
t_7 := z + x \cdot y\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+30}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, t\_4\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+71}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(-1, i \cdot \mathsf{fma}\left(27464.7644705, \frac{1}{y \cdot t\_3}, \mathsf{fma}\left(230661.510616, \frac{1}{{t\_6}^{2}}, \frac{t\_7}{t\_3}\right)\right), \mathsf{fma}\left(230661.510616, \frac{1}{t\_6}, \frac{27464.7644705 + y \cdot t\_7}{t\_2}\right)\right), t\_4\right)\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \left(\frac{27464.7644705}{a \cdot \left(x \cdot y\right)} + \left(\frac{230661.510616}{a \cdot \left(x \cdot \left(y \cdot y\right)\right)} + \left(\frac{t}{a \cdot \left(x \cdot \left(\left(y \cdot y\right) \cdot y\right)\right)} + \left(\frac{y}{a} + \frac{z}{a \cdot x}\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y < -3.8000000000000003e47 or 1.4000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.8000000000000003e47 < y < 8.4999999999999995e30Initial program 55.7%
Applied rewrites56.4%
if 8.4999999999999995e30 < y < 4.0000000000000002e71Initial program 55.7%
Applied rewrites56.4%
Taylor expanded in i around 0
Applied rewrites30.6%
if 4.0000000000000002e71 < y < 1.4000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lower-+.f64N/A
Applied rewrites13.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -3.8e+47)
t_2
(if (<= y 8.9e+55)
(fma
y
(/ (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) t_1)
(/ t t_1))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.8e+47) {
tmp = t_2;
} else if (y <= 8.9e+55) {
tmp = fma(y, (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), (t / t_1));
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -3.8e+47) tmp = t_2; elseif (y <= 8.9e+55) tmp = fma(y, Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) / t_1), Float64(t / t_1)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -3.8e+47], t$95$2, If[LessEqual[y, 8.9e+55], N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right)}{t\_1}, \frac{t}{t\_1}\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.8000000000000003e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.8000000000000003e47 < y < 8.9000000000000002e55Initial program 55.7%
Applied rewrites56.4%
if 8.9000000000000002e55 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -3.8e+47)
t_1
(if (<= y 4e+51)
(/
(+
(* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)
t)
(+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.8e+47) {
tmp = t_1;
} else if (y <= 4e+51) {
tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
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) :: t_1
real(8) :: tmp
t_1 = -((-z - (-a * x)) / y) + x
if (y <= (-3.8d+47)) then
tmp = t_1
else if (y <= 4d+51) then
tmp = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
else if (y <= 1.3d+105) then
tmp = y * ((x / a) + (z / (a * y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.8e+47) {
tmp = t_1;
} else if (y <= 4e+51) {
tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = -((-z - (-a * x)) / y) + x tmp = 0 if y <= -3.8e+47: tmp = t_1 elif y <= 4e+51: tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i) elif y <= 1.3e+105: tmp = y * ((x / a) + (z / (a * y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -3.8e+47) tmp = t_1; elseif (y <= 4e+51) tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = -((-z - (-a * x)) / y) + x; tmp = 0.0; if (y <= -3.8e+47) tmp = t_1; elseif (y <= 4e+51) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); elseif (y <= 1.3e+105) tmp = y * ((x / a) + (z / (a * y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -3.8e+47], t$95$1, If[LessEqual[y, 4e+51], N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+51}:\\
\;\;\;\;\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.8000000000000003e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.8000000000000003e47 < y < 4e51Initial program 55.7%
if 4e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -3.8e+47)
t_1
(if (<= y 3e+51)
(/
(fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)
(fma (fma (* y y) (+ a y) c) y i))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.8e+47) {
tmp = t_1;
} else if (y <= 3e+51) {
tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma((y * y), (a + y), c), y, i);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -3.8e+47) tmp = t_1; elseif (y <= 3e+51) tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -3.8e+47], t$95$1, If[LessEqual[y, 3e+51], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+51}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, a + y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.8000000000000003e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.8000000000000003e47 < y < 3e51Initial program 55.7%
Taylor expanded in b around 0
lower-/.f64N/A
Applied rewrites50.0%
if 3e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (+ a y) y b)) (t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -3.1e+47)
t_2
(if (<= y 2e-30)
(/
(fma (fma (fma (* y y) x 27464.7644705) y 230661.510616) y t)
(fma (fma t_1 y c) y i))
(if (<= y 4.4e+51)
(/
(fma (fma (fma (fma y x z) y 27464.7644705) y 230661.510616) y t)
(fma (* y y) t_1 i))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma((a + y), y, b);
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.1e+47) {
tmp = t_2;
} else if (y <= 2e-30) {
tmp = fma(fma(fma((y * y), x, 27464.7644705), y, 230661.510616), y, t) / fma(fma(t_1, y, c), y, i);
} else if (y <= 4.4e+51) {
tmp = fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma((y * y), t_1, i);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(Float64(a + y), y, b) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -3.1e+47) tmp = t_2; elseif (y <= 2e-30) tmp = Float64(fma(fma(fma(Float64(y * y), x, 27464.7644705), y, 230661.510616), y, t) / fma(fma(t_1, y, c), y, i)); elseif (y <= 4.4e+51) tmp = Float64(fma(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(Float64(y * y), t_1, i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -3.1e+47], t$95$2, If[LessEqual[y, 2e-30], N[(N[(N[(N[(N[(y * y), $MachinePrecision] * x + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(t$95$1 * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+51], N[(N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(y * y), $MachinePrecision] * t$95$1 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a + y, y, b\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+47}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-30}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, x, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(t\_1, y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+51}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(y \cdot y, t\_1, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.1000000000000001e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.1000000000000001e47 < y < 2e-30Initial program 55.7%
Taylor expanded in z around 0
lower-/.f64N/A
Applied rewrites51.1%
if 2e-30 < y < 4.39999999999999984e51Initial program 55.7%
Taylor expanded in c around 0
lower-/.f64N/A
Applied rewrites43.3%
if 4.39999999999999984e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma (fma (fma (+ a y) y b) y c) y i))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -3.1e+47)
t_2
(if (<= y 0.0031)
(/ (fma (fma (fma (* y y) x 27464.7644705) y 230661.510616) y t) t_1)
(if (<= y 2.7e+51)
(* (* (* y y) y) (/ z t_1))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(fma(fma((a + y), y, b), y, c), y, i);
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -3.1e+47) {
tmp = t_2;
} else if (y <= 0.0031) {
tmp = fma(fma(fma((y * y), x, 27464.7644705), y, 230661.510616), y, t) / t_1;
} else if (y <= 2.7e+51) {
tmp = ((y * y) * y) * (z / t_1);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(fma(fma(Float64(a + y), y, b), y, c), y, i) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -3.1e+47) tmp = t_2; elseif (y <= 0.0031) tmp = Float64(fma(fma(fma(Float64(y * y), x, 27464.7644705), y, 230661.510616), y, t) / t_1); elseif (y <= 2.7e+51) tmp = Float64(Float64(Float64(y * y) * y) * Float64(z / t_1)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -3.1e+47], t$95$2, If[LessEqual[y, 0.0031], N[(N[(N[(N[(N[(y * y), $MachinePrecision] * x + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.7e+51], N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+47}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 0.0031:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, x, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{t\_1}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+51}:\\
\;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{t\_1}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.1000000000000001e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -3.1000000000000001e47 < y < 0.00309999999999999989Initial program 55.7%
Taylor expanded in z around 0
lower-/.f64N/A
Applied rewrites51.1%
if 0.00309999999999999989 < y < 2.69999999999999992e51Initial program 55.7%
Taylor expanded in z around inf
associate-/l*N/A
lower-*.f64N/A
unpow3N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites11.2%
if 2.69999999999999992e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -5e+45)
t_1
(if (<= y -2.6e-11)
(/
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* x y))))))
(* a (* y y)))
(if (<= y 7e-5)
(/
(fma 230661.510616 y t)
(+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
(if (<= y 2.7e+51)
(* (* (* y y) y) (/ z (fma (fma (fma (+ a y) y b) y c) y i)))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -5e+45) {
tmp = t_1;
} else if (y <= -2.6e-11) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (x * y)))))) / (a * (y * y));
} else if (y <= 7e-5) {
tmp = fma(230661.510616, y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
} else if (y <= 2.7e+51) {
tmp = ((y * y) * y) * (z / fma(fma(fma((a + y), y, b), y, c), y, i));
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -5e+45) tmp = t_1; elseif (y <= -2.6e-11) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(x * y)))))) / Float64(a * Float64(y * y))); elseif (y <= 7e-5) tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)); elseif (y <= 2.7e+51) tmp = Float64(Float64(Float64(y * y) * y) * Float64(z / fma(fma(fma(Float64(a + y), y, b), y, c), y, i))); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5e+45], t$95$1, If[LessEqual[y, -2.6e-11], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-5], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+51], N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * N[(z / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-11}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)}{a \cdot \left(y \cdot y\right)}\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-5}:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+51}:\\
\;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5e45 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -5e45 < y < -2.6000000000000001e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in t around 0
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lift-*.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f645.6
Applied rewrites5.6%
if -2.6000000000000001e-11 < y < 6.9999999999999994e-5Initial program 55.7%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6447.5
Applied rewrites47.5%
if 6.9999999999999994e-5 < y < 2.69999999999999992e51Initial program 55.7%
Taylor expanded in z around inf
associate-/l*N/A
lower-*.f64N/A
unpow3N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites11.2%
if 2.69999999999999992e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -1.75e+47)
t_1
(if (<= y 0.00165)
(/
(fma (fma 27464.7644705 y 230661.510616) y t)
(+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
(if (<= y 2.7e+51)
(* (* (* y y) y) (/ z (fma (fma (fma (+ a y) y b) y c) y i)))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -1.75e+47) {
tmp = t_1;
} else if (y <= 0.00165) {
tmp = fma(fma(27464.7644705, y, 230661.510616), y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
} else if (y <= 2.7e+51) {
tmp = ((y * y) * y) * (z / fma(fma(fma((a + y), y, b), y, c), y, i));
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -1.75e+47) tmp = t_1; elseif (y <= 0.00165) tmp = Float64(fma(fma(27464.7644705, y, 230661.510616), y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)); elseif (y <= 2.7e+51) tmp = Float64(Float64(Float64(y * y) * y) * Float64(z / fma(fma(fma(Float64(a + y), y, b), y, c), y, i))); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -1.75e+47], t$95$1, If[LessEqual[y, 0.00165], N[(N[(N[(27464.7644705 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+51], N[(N[(N[(y * y), $MachinePrecision] * y), $MachinePrecision] * N[(z / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+51}:\\
\;\;\;\;\left(\left(y \cdot y\right) \cdot y\right) \cdot \frac{z}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.75000000000000008e47 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -1.75000000000000008e47 < y < 0.00165Initial program 55.7%
Taylor expanded in y around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
lower-fma.f6447.5
Applied rewrites47.5%
if 0.00165 < y < 2.69999999999999992e51Initial program 55.7%
Taylor expanded in z around inf
associate-/l*N/A
lower-*.f64N/A
unpow3N/A
unpow2N/A
lower-*.f64N/A
unpow2N/A
lower-*.f64N/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
Applied rewrites11.2%
if 2.69999999999999992e51 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* a (* y y))) (t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -5e+45)
t_2
(if (<= y -2.6e-11)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* x y)))))) t_1)
(if (<= y 0.0031)
(/
(fma 230661.510616 y t)
(+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))
(if (<= y 1.3e+105)
(* y (+ (/ 27464.7644705 t_1) (+ (/ x a) (/ z (* a y)))))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a * (y * y);
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -5e+45) {
tmp = t_2;
} else if (y <= -2.6e-11) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (x * y)))))) / t_1;
} else if (y <= 0.0031) {
tmp = fma(230661.510616, y, t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
} else if (y <= 1.3e+105) {
tmp = y * ((27464.7644705 / t_1) + ((x / a) + (z / (a * y))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a * Float64(y * y)) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -5e+45) tmp = t_2; elseif (y <= -2.6e-11) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(x * y)))))) / t_1); elseif (y <= 0.0031) tmp = Float64(fma(230661.510616, y, t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(27464.7644705 / t_1) + Float64(Float64(x / a) + Float64(z / Float64(a * y))))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5e+45], t$95$2, If[LessEqual[y, -2.6e-11], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 0.0031], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(27464.7644705 / t$95$1), $MachinePrecision] + N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot y\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-11}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)}{t\_1}\\
\mathbf{elif}\;y \leq 0.0031:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{27464.7644705}{t\_1} + \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5e45 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -5e45 < y < -2.6000000000000001e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in t around 0
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lift-*.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f645.6
Applied rewrites5.6%
if -2.6000000000000001e-11 < y < 0.00309999999999999989Initial program 55.7%
Taylor expanded in y around 0
+-commutativeN/A
lower-fma.f6447.5
Applied rewrites47.5%
if 0.00309999999999999989 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6410.7
Applied rewrites10.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* a (* y y))) (t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -5e+45)
t_2
(if (<= y -2.6e-11)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* x y)))))) t_1)
(if (<= y 0.00165)
(/ (fma 230661.510616 y t) (fma (fma (* y y) (+ a y) c) y i))
(if (<= y 1.3e+105)
(* y (+ (/ 27464.7644705 t_1) (+ (/ x a) (/ z (* a y)))))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a * (y * y);
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -5e+45) {
tmp = t_2;
} else if (y <= -2.6e-11) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (x * y)))))) / t_1;
} else if (y <= 0.00165) {
tmp = fma(230661.510616, y, t) / fma(fma((y * y), (a + y), c), y, i);
} else if (y <= 1.3e+105) {
tmp = y * ((27464.7644705 / t_1) + ((x / a) + (z / (a * y))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a * Float64(y * y)) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -5e+45) tmp = t_2; elseif (y <= -2.6e-11) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(x * y)))))) / t_1); elseif (y <= 0.00165) tmp = Float64(fma(230661.510616, y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(27464.7644705 / t_1) + Float64(Float64(x / a) + Float64(z / Float64(a * y))))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5e+45], t$95$2, If[LessEqual[y, -2.6e-11], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 0.00165], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(27464.7644705 / t$95$1), $MachinePrecision] + N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot y\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-11}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)}{t\_1}\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, a + y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{27464.7644705}{t\_1} + \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5e45 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -5e45 < y < -2.6000000000000001e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in t around 0
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lift-*.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f645.6
Applied rewrites5.6%
if -2.6000000000000001e-11 < y < 0.00165Initial program 55.7%
Taylor expanded in b around 0
lower-/.f64N/A
Applied rewrites50.0%
Taylor expanded in y around 0
Applied rewrites43.9%
if 0.00165 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6410.7
Applied rewrites10.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -5e+45)
t_1
(if (<= y -2.6e-11)
(/
(+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* x y))))))
(* a (* y y)))
(if (<= y 0.00165)
(/ (fma 230661.510616 y t) (fma (fma (* y y) (+ a y) c) y i))
(if (<= y 1.3e+105) (* y (+ (/ x a) (/ z (* a y)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -5e+45) {
tmp = t_1;
} else if (y <= -2.6e-11) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (x * y)))))) / (a * (y * y));
} else if (y <= 0.00165) {
tmp = fma(230661.510616, y, t) / fma(fma((y * y), (a + y), c), y, i);
} else if (y <= 1.3e+105) {
tmp = y * ((x / a) + (z / (a * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -5e+45) tmp = t_1; elseif (y <= -2.6e-11) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(x * y)))))) / Float64(a * Float64(y * y))); elseif (y <= 0.00165) tmp = Float64(fma(230661.510616, y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i)); elseif (y <= 1.3e+105) tmp = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -5e+45], t$95$1, If[LessEqual[y, -2.6e-11], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00165], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -5 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-11}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + x \cdot y\right)\right)}{a \cdot \left(y \cdot y\right)}\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, a + y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5e45 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -5e45 < y < -2.6000000000000001e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in t around 0
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lift-*.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f645.6
Applied rewrites5.6%
if -2.6000000000000001e-11 < y < 0.00165Initial program 55.7%
Taylor expanded in b around 0
lower-/.f64N/A
Applied rewrites50.0%
Taylor expanded in y around 0
Applied rewrites43.9%
if 0.00165 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (/ x a) (/ z (* a y)))))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -8.5e+46)
t_2
(if (<= y -2.6e-11)
t_1
(if (<= y 0.00165)
(/ (fma 230661.510616 y t) (fma (fma (* y y) (+ a y) c) y i))
(if (<= y 1.3e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((x / a) + (z / (a * y)));
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -8.5e+46) {
tmp = t_2;
} else if (y <= -2.6e-11) {
tmp = t_1;
} else if (y <= 0.00165) {
tmp = fma(230661.510616, y, t) / fma(fma((y * y), (a + y), c), y, i);
} else if (y <= 1.3e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -8.5e+46) tmp = t_2; elseif (y <= -2.6e-11) tmp = t_1; elseif (y <= 0.00165) tmp = Float64(fma(230661.510616, y, t) / fma(fma(Float64(y * y), Float64(a + y), c), y, i)); elseif (y <= 1.3e+105) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -8.5e+46], t$95$2, If[LessEqual[y, -2.6e-11], t$95$1, If[LessEqual[y, 0.00165], N[(N[(230661.510616 * y + t), $MachinePrecision] / N[(N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, a + y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.4999999999999996e46 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -8.4999999999999996e46 < y < -2.6000000000000001e-11 or 0.00165 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
if -2.6000000000000001e-11 < y < 0.00165Initial program 55.7%
Taylor expanded in b around 0
lower-/.f64N/A
Applied rewrites50.0%
Taylor expanded in y around 0
Applied rewrites43.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (/ x a) (/ z (* a y)))))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -8.5e+46)
t_2
(if (<= y -2.25e-11)
t_1
(if (<= y 0.0031)
(/ t (fma (fma (fma (+ a y) y b) y c) y i))
(if (<= y 1.3e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((x / a) + (z / (a * y)));
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -8.5e+46) {
tmp = t_2;
} else if (y <= -2.25e-11) {
tmp = t_1;
} else if (y <= 0.0031) {
tmp = t / fma(fma(fma((a + y), y, b), y, c), y, i);
} else if (y <= 1.3e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -8.5e+46) tmp = t_2; elseif (y <= -2.25e-11) tmp = t_1; elseif (y <= 0.0031) tmp = Float64(t / fma(fma(fma(Float64(a + y), y, b), y, c), y, i)); elseif (y <= 1.3e+105) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -8.5e+46], t$95$2, If[LessEqual[y, -2.25e-11], t$95$1, If[LessEqual[y, 0.0031], N[(t / N[(N[(N[(N[(a + y), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.25 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.0031:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(a + y, y, b\right), y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.4999999999999996e46 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -8.4999999999999996e46 < y < -2.25e-11 or 0.00309999999999999989 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
if -2.25e-11 < y < 0.00309999999999999989Initial program 55.7%
Taylor expanded in t around inf
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
*-commutativeN/A
+-commutativeN/A
+-commutativeN/A
lower-fma.f64N/A
lower-fma.f64N/A
+-commutativeN/A
lower-+.f6440.6
Applied rewrites40.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (/ x a) (/ z (* a y)))))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -8.5e+46)
t_2
(if (<= y -2.25e-11)
t_1
(if (<= y 0.00165)
(/ t (fma (fma (* y y) (+ a y) c) y i))
(if (<= y 1.3e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((x / a) + (z / (a * y)));
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -8.5e+46) {
tmp = t_2;
} else if (y <= -2.25e-11) {
tmp = t_1;
} else if (y <= 0.00165) {
tmp = t / fma(fma((y * y), (a + y), c), y, i);
} else if (y <= 1.3e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -8.5e+46) tmp = t_2; elseif (y <= -2.25e-11) tmp = t_1; elseif (y <= 0.00165) tmp = Float64(t / fma(fma(Float64(y * y), Float64(a + y), c), y, i)); elseif (y <= 1.3e+105) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -8.5e+46], t$95$2, If[LessEqual[y, -2.25e-11], t$95$1, If[LessEqual[y, 0.00165], N[(t / N[(N[(N[(y * y), $MachinePrecision] * N[(a + y), $MachinePrecision] + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.25 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.00165:\\
\;\;\;\;\frac{t}{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot y, a + y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.4999999999999996e46 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -8.4999999999999996e46 < y < -2.25e-11 or 0.00165 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
if -2.25e-11 < y < 0.00165Initial program 55.7%
Taylor expanded in b around 0
lower-/.f64N/A
Applied rewrites50.0%
Taylor expanded in y around 0
Applied rewrites37.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (/ x a) (/ z (* a y)))))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -8.5e+46)
t_2
(if (<= y -2.55e-11)
t_1
(if (<= y 9.5e-10)
(/ (fma (fma (* y z) y 230661.510616) y t) i)
(if (<= y 1.3e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((x / a) + (z / (a * y)));
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -8.5e+46) {
tmp = t_2;
} else if (y <= -2.55e-11) {
tmp = t_1;
} else if (y <= 9.5e-10) {
tmp = fma(fma((y * z), y, 230661.510616), y, t) / i;
} else if (y <= 1.3e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -8.5e+46) tmp = t_2; elseif (y <= -2.55e-11) tmp = t_1; elseif (y <= 9.5e-10) tmp = Float64(fma(fma(Float64(y * z), y, 230661.510616), y, t) / i); elseif (y <= 1.3e+105) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -8.5e+46], t$95$2, If[LessEqual[y, -2.55e-11], t$95$1, If[LessEqual[y, 9.5e-10], N[(N[(N[(N[(y * z), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 1.3e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.55 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-10}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(y \cdot z, y, 230661.510616\right), y, t\right)}{i}\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.4999999999999996e46 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -8.4999999999999996e46 < y < -2.54999999999999992e-11 or 9.50000000000000028e-10 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
if -2.54999999999999992e-11 < y < 9.50000000000000028e-10Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in z around inf
lower-*.f6432.9
Applied rewrites32.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ (/ x a) (/ z (* a y)))))
(t_2 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -8.5e+46)
t_2
(if (<= y -1.3e-11)
t_1
(if (<= y 1.95e-43)
(fma 230661.510616 (/ y i) (/ t i))
(if (<= y 1.3e+105) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * ((x / a) + (z / (a * y)));
double t_2 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -8.5e+46) {
tmp = t_2;
} else if (y <= -1.3e-11) {
tmp = t_1;
} else if (y <= 1.95e-43) {
tmp = fma(230661.510616, (y / i), (t / i));
} else if (y <= 1.3e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(Float64(x / a) + Float64(z / Float64(a * y)))) t_2 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -8.5e+46) tmp = t_2; elseif (y <= -1.3e-11) tmp = t_1; elseif (y <= 1.95e-43) tmp = fma(230661.510616, Float64(y / i), Float64(t / i)); elseif (y <= 1.3e+105) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(N[(x / a), $MachinePrecision] + N[(z / N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -8.5e+46], t$95$2, If[LessEqual[y, -1.3e-11], t$95$1, If[LessEqual[y, 1.95e-43], N[(230661.510616 * N[(y / i), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(\frac{x}{a} + \frac{z}{a \cdot y}\right)\\
t_2 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-43}:\\
\;\;\;\;\mathsf{fma}\left(230661.510616, \frac{y}{i}, \frac{t}{i}\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.4999999999999996e46 or 1.3000000000000001e105 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -8.4999999999999996e46 < y < -1.3e-11 or 1.95e-43 < y < 1.3000000000000001e105Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6411.3
Applied rewrites11.3%
if -1.3e-11 < y < 1.95e-43Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in y around 0
lower-fma.f64N/A
lower-/.f64N/A
lower-/.f6431.7
Applied rewrites31.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (- (/ (- (- z) (* (- a) x)) y)) x)))
(if (<= y -2.9e+46)
t_1
(if (<= y -6e-44)
(/ (* x y) a)
(if (<= y 1.25e+28)
(/ (fma (fma 27464.7644705 y 230661.510616) y t) i)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = -((-z - (-a * x)) / y) + x;
double tmp;
if (y <= -2.9e+46) {
tmp = t_1;
} else if (y <= -6e-44) {
tmp = (x * y) / a;
} else if (y <= 1.25e+28) {
tmp = fma(fma(27464.7644705, y, 230661.510616), y, t) / i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(-Float64(Float64(Float64(-z) - Float64(Float64(-a) * x)) / y)) + x) tmp = 0.0 if (y <= -2.9e+46) tmp = t_1; elseif (y <= -6e-44) tmp = Float64(Float64(x * y) / a); elseif (y <= 1.25e+28) tmp = Float64(fma(fma(27464.7644705, y, 230661.510616), y, t) / i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[((-N[(N[((-z) - N[((-a) * x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]) + x), $MachinePrecision]}, If[LessEqual[y, -2.9e+46], t$95$1, If[LessEqual[y, -6e-44], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, 1.25e+28], N[(N[(N[(27464.7644705 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-\frac{\left(-z\right) - \left(-a\right) \cdot x}{y}\right) + x\\
\mathbf{if}\;y \leq -2.9 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-44}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+28}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.9000000000000002e46 or 1.24999999999999989e28 < y Initial program 55.7%
Taylor expanded in y around -inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower--.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f6431.3
Applied rewrites31.3%
if -2.9000000000000002e46 < y < -6.0000000000000005e-44Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-/.f64N/A
lift-*.f649.5
Applied rewrites9.5%
if -6.0000000000000005e-44 < y < 1.24999999999999989e28Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in y around 0
Applied rewrites31.8%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.3e-11)
(/ z a)
(if (<= y 3.2e+56)
(/ (fma (fma 27464.7644705 y 230661.510616) y t) i)
(/ (* x y) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.3e-11) {
tmp = z / a;
} else if (y <= 3.2e+56) {
tmp = fma(fma(27464.7644705, y, 230661.510616), y, t) / i;
} else {
tmp = (x * y) / a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.3e-11) tmp = Float64(z / a); elseif (y <= 3.2e+56) tmp = Float64(fma(fma(27464.7644705, y, 230661.510616), y, t) / i); else tmp = Float64(Float64(x * y) / a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.3e-11], N[(z / a), $MachinePrecision], If[LessEqual[y, 3.2e+56], N[(N[(N[(27464.7644705 * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / i), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-11}:\\
\;\;\;\;\frac{z}{a}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+56}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(27464.7644705, y, 230661.510616\right), y, t\right)}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\end{array}
\end{array}
if y < -1.3e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
if -1.3e-11 < y < 3.20000000000000003e56Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in y around 0
Applied rewrites31.8%
if 3.20000000000000003e56 < y Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-/.f64N/A
lift-*.f649.5
Applied rewrites9.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.3e-11) (/ z a) (if (<= y 2.45e-43) (fma 230661.510616 (/ y i) (/ t i)) (/ (* x y) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.3e-11) {
tmp = z / a;
} else if (y <= 2.45e-43) {
tmp = fma(230661.510616, (y / i), (t / i));
} else {
tmp = (x * y) / a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.3e-11) tmp = Float64(z / a); elseif (y <= 2.45e-43) tmp = fma(230661.510616, Float64(y / i), Float64(t / i)); else tmp = Float64(Float64(x * y) / a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.3e-11], N[(z / a), $MachinePrecision], If[LessEqual[y, 2.45e-43], N[(230661.510616 * N[(y / i), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-11}:\\
\;\;\;\;\frac{z}{a}\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-43}:\\
\;\;\;\;\mathsf{fma}\left(230661.510616, \frac{y}{i}, \frac{t}{i}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\end{array}
\end{array}
if y < -1.3e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
if -1.3e-11 < y < 2.44999999999999994e-43Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in y around 0
lower-fma.f64N/A
lower-/.f64N/A
lower-/.f6431.7
Applied rewrites31.7%
if 2.44999999999999994e-43 < y Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-/.f64N/A
lift-*.f649.5
Applied rewrites9.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.3e-11) (/ z a) (if (<= y 2.45e-43) (/ (fma 230661.510616 y t) i) (/ (* x y) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.3e-11) {
tmp = z / a;
} else if (y <= 2.45e-43) {
tmp = fma(230661.510616, y, t) / i;
} else {
tmp = (x * y) / a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.3e-11) tmp = Float64(z / a); elseif (y <= 2.45e-43) tmp = Float64(fma(230661.510616, y, t) / i); else tmp = Float64(Float64(x * y) / a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.3e-11], N[(z / a), $MachinePrecision], If[LessEqual[y, 2.45e-43], N[(N[(230661.510616 * y + t), $MachinePrecision] / i), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.3 \cdot 10^{-11}:\\
\;\;\;\;\frac{z}{a}\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-43}:\\
\;\;\;\;\frac{\mathsf{fma}\left(230661.510616, y, t\right)}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\end{array}
\end{array}
if y < -1.3e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
if -1.3e-11 < y < 2.44999999999999994e-43Initial program 55.7%
Taylor expanded in i around inf
lower-/.f64N/A
Applied rewrites34.1%
Taylor expanded in y around 0
Applied rewrites31.8%
if 2.44999999999999994e-43 < y Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-/.f64N/A
lift-*.f649.5
Applied rewrites9.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4.5e-11) (/ z a) (if (<= y 5.3e+45) (/ t i) (/ (* x y) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.5e-11) {
tmp = z / a;
} else if (y <= 5.3e+45) {
tmp = t / i;
} else {
tmp = (x * y) / a;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if (y <= (-4.5d-11)) then
tmp = z / a
else if (y <= 5.3d+45) then
tmp = t / i
else
tmp = (x * y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.5e-11) {
tmp = z / a;
} else if (y <= 5.3e+45) {
tmp = t / i;
} else {
tmp = (x * y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.5e-11: tmp = z / a elif y <= 5.3e+45: tmp = t / i else: tmp = (x * y) / a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.5e-11) tmp = Float64(z / a); elseif (y <= 5.3e+45) tmp = Float64(t / i); else tmp = Float64(Float64(x * y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4.5e-11) tmp = z / a; elseif (y <= 5.3e+45) tmp = t / i; else tmp = (x * y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.5e-11], N[(z / a), $MachinePrecision], If[LessEqual[y, 5.3e+45], N[(t / i), $MachinePrecision], N[(N[(x * y), $MachinePrecision] / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{-11}:\\
\;\;\;\;\frac{z}{a}\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{+45}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot y}{a}\\
\end{array}
\end{array}
if y < -4.5e-11Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
if -4.5e-11 < y < 5.29999999999999991e45Initial program 55.7%
Taylor expanded in y around 0
lower-/.f6428.6
Applied rewrites28.6%
if 5.29999999999999991e45 < y Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in x around inf
lower-/.f64N/A
lift-*.f649.5
Applied rewrites9.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4.5e-11) (/ z a) (if (<= y 2.7e-11) (/ t i) (/ z a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.5e-11) {
tmp = z / a;
} else if (y <= 2.7e-11) {
tmp = t / i;
} else {
tmp = z / a;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if (y <= (-4.5d-11)) then
tmp = z / a
else if (y <= 2.7d-11) then
tmp = t / i
else
tmp = z / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -4.5e-11) {
tmp = z / a;
} else if (y <= 2.7e-11) {
tmp = t / i;
} else {
tmp = z / a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.5e-11: tmp = z / a elif y <= 2.7e-11: tmp = t / i else: tmp = z / a return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.5e-11) tmp = Float64(z / a); elseif (y <= 2.7e-11) tmp = Float64(t / i); else tmp = Float64(z / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -4.5e-11) tmp = z / a; elseif (y <= 2.7e-11) tmp = t / i; else tmp = z / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.5e-11], N[(z / a), $MachinePrecision], If[LessEqual[y, 2.7e-11], N[(t / i), $MachinePrecision], N[(z / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{-11}:\\
\;\;\;\;\frac{z}{a}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-11}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{a}\\
\end{array}
\end{array}
if y < -4.5e-11 or 2.70000000000000005e-11 < y Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
if -4.5e-11 < y < 2.70000000000000005e-11Initial program 55.7%
Taylor expanded in y around 0
lower-/.f6428.6
Applied rewrites28.6%
(FPCore (x y z t a b c i) :precision binary64 (/ z a))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return z / a;
}
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)
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
code = z / a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return z / a;
}
def code(x, y, z, t, a, b, c, i): return z / a
function code(x, y, z, t, a, b, c, i) return Float64(z / a) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = z / a; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(z / a), $MachinePrecision]
\begin{array}{l}
\\
\frac{z}{a}
\end{array}
Initial program 55.7%
Taylor expanded in a around inf
lower-/.f64N/A
Applied rewrites6.3%
Taylor expanded in z around inf
lower-/.f647.9
Applied rewrites7.9%
herbie shell --seed 2025128
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))