
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
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
code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
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
code = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
(t_2 (fma y (/ b t) (+ 1.0 a))))
(if (<= t_1 (- INFINITY))
(fma (/ z t) (/ y t_2) (/ x t_2))
(if (<= t_1 5e+306)
t_1
(if (<= t_1 INFINITY)
(* (/ y (fma (fma (/ b t) y a) t t)) z)
(/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double t_2 = fma(y, (b / t), (1.0 + a));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma((z / t), (y / t_2), (x / t_2));
} else if (t_1 <= 5e+306) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) t_2 = fma(y, Float64(b / t), Float64(1.0 + a)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(Float64(z / t), Float64(y / t_2), Float64(x / t_2)); elseif (t_1 <= 5e+306) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z / t), $MachinePrecision] * N[(y / t$95$2), $MachinePrecision] + N[(x / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
t_2 := \mathsf{fma}\left(y, \frac{b}{t}, 1 + a\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, \frac{y}{t\_2}, \frac{x}{t\_2}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 33.2%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites60.3%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 90.5%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 30.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f645.5
Applied rewrites5.5%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6483.0
Applied rewrites83.0%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
(t_2 (fma b (/ y t) (+ 1.0 a))))
(if (<= t_1 (- INFINITY))
(fma (/ z t) (/ y t_2) (/ x t_2))
(if (<= t_1 5e+306)
t_1
(if (<= t_1 INFINITY)
(* (/ y (fma (fma (/ b t) y a) t t)) z)
(/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double t_2 = fma(b, (y / t), (1.0 + a));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma((z / t), (y / t_2), (x / t_2));
} else if (t_1 <= 5e+306) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) t_2 = fma(b, Float64(y / t), Float64(1.0 + a)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(Float64(z / t), Float64(y / t_2), Float64(x / t_2)); elseif (t_1 <= 5e+306) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(z / t), $MachinePrecision] * N[(y / t$95$2), $MachinePrecision] + N[(x / t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
t_2 := \mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, \frac{y}{t\_2}, \frac{x}{t\_2}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 33.2%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites60.3%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 90.5%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 30.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f645.5
Applied rewrites5.5%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6483.0
Applied rewrites83.0%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 (- INFINITY))
(/ (fma (/ z t) y x) (fma (/ b t) y (+ a 1.0)))
(if (<= t_1 5e+306)
t_1
(if (<= t_1 INFINITY)
(* (/ y (fma (fma (/ b t) y a) t t)) z)
(/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma((z / t), y, x) / fma((b / t), y, (a + 1.0));
} else if (t_1 <= 5e+306) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(fma(Float64(z / t), y, x) / fma(Float64(b / t), y, Float64(a + 1.0))); elseif (t_1 <= 5e+306) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / N[(N[(b / t), $MachinePrecision] * y + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 33.2%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites60.3%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites58.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 90.5%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 30.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f645.5
Applied rewrites5.5%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6483.0
Applied rewrites83.0%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))) (t_2 (/ t_1 (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_2 (- INFINITY))
(/ (fma (/ z t) y x) (fma (/ b t) y (+ a 1.0)))
(if (<= t_2 5e+306)
(/ t_1 (fma y (/ b t) (+ 1.0 a)))
(if (<= t_2 INFINITY)
(* (/ y (fma (fma (/ b t) y a) t t)) z)
(/ z b))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double t_2 = t_1 / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = fma((z / t), y, x) / fma((b / t), y, (a + 1.0));
} else if (t_2 <= 5e+306) {
tmp = t_1 / fma(y, (b / t), (1.0 + a));
} else if (t_2 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) t_2 = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(fma(Float64(z / t), y, x) / fma(Float64(b / t), y, Float64(a + 1.0))); elseif (t_2 <= 5e+306) tmp = Float64(t_1 / fma(y, Float64(b / t), Float64(1.0 + a))); elseif (t_2 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / N[(N[(b / t), $MachinePrecision] * y + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+306], N[(t$95$1 / N[(y * N[(b / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t\_1}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;\frac{t\_1}{\mathsf{fma}\left(y, \frac{b}{t}, 1 + a\right)}\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 33.2%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites60.3%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.2
Applied rewrites80.2%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites58.1%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 90.5%
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6489.3
Applied rewrites89.3%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 30.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f645.5
Applied rewrites5.5%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6483.0
Applied rewrites83.0%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 5e+292)
(/ (fma (/ z t) y x) (fma (/ b t) y (+ a 1.0)))
(if (<= t_1 INFINITY) (* (/ y (fma (fma (/ b t) y a) t t)) z) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= 5e+292) {
tmp = fma((z / t), y, x) / fma((b / t), y, (a + 1.0));
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= 5e+292) tmp = Float64(fma(Float64(z / t), y, x) / fma(Float64(b / t), y, Float64(a + 1.0))); elseif (t_1 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+292], N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / N[(N[(b / t), $MachinePrecision] * y + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+292}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{\mathsf{fma}\left(\frac{b}{t}, y, a + 1\right)}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.9999999999999996e292Initial program 86.3%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites82.5%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6485.2
Applied rewrites85.2%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6483.9
Applied rewrites83.9%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites83.5%
if 4.9999999999999996e292 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 34.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.9%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f648.0
Applied rewrites8.0%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6478.3
Applied rewrites78.3%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 5e+292)
(/ (fma y (/ z t) x) (fma b (/ y t) (+ 1.0 a)))
(if (<= t_1 INFINITY) (* (/ y (fma (fma (/ b t) y a) t t)) z) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= 5e+292) {
tmp = fma(y, (z / t), x) / fma(b, (y / t), (1.0 + a));
} else if (t_1 <= ((double) INFINITY)) {
tmp = (y / fma(fma((b / t), y, a), t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= 5e+292) tmp = Float64(fma(y, Float64(z / t), x) / fma(b, Float64(y / t), Float64(1.0 + a))); elseif (t_1 <= Inf) tmp = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+292], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+292}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.9999999999999996e292Initial program 86.3%
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6483.5
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6483.4
Applied rewrites83.4%
if 4.9999999999999996e292 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 34.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.9%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f648.0
Applied rewrites8.0%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6478.3
Applied rewrites78.3%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
lower-/.f6495.8
Applied rewrites95.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (/ b t) y a))
(t_2 (+ x (/ (* y z) t)))
(t_3 (/ t_2 (+ 1.0 a)))
(t_4 (/ t_2 (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_4 -2e+287)
(* (/ (/ y t) (fma b (/ y t) (+ 1.0 a))) z)
(if (<= t_4 -4e-21)
t_3
(if (<= t_4 2e-290)
(/ (fma (/ z t) y x) t_1)
(if (<= t_4 5e+306)
t_3
(if (<= t_4 INFINITY) (* (/ y (fma t_1 t t)) z) (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((b / t), y, a);
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / (1.0 + a);
double t_4 = t_2 / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_4 <= -2e+287) {
tmp = ((y / t) / fma(b, (y / t), (1.0 + a))) * z;
} else if (t_4 <= -4e-21) {
tmp = t_3;
} else if (t_4 <= 2e-290) {
tmp = fma((z / t), y, x) / t_1;
} else if (t_4 <= 5e+306) {
tmp = t_3;
} else if (t_4 <= ((double) INFINITY)) {
tmp = (y / fma(t_1, t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(b / t), y, a) t_2 = Float64(x + Float64(Float64(y * z) / t)) t_3 = Float64(t_2 / Float64(1.0 + a)) t_4 = Float64(t_2 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_4 <= -2e+287) tmp = Float64(Float64(Float64(y / t) / fma(b, Float64(y / t), Float64(1.0 + a))) * z); elseif (t_4 <= -4e-21) tmp = t_3; elseif (t_4 <= 2e-290) tmp = Float64(fma(Float64(z / t), y, x) / t_1); elseif (t_4 <= 5e+306) tmp = t_3; elseif (t_4 <= Inf) tmp = Float64(Float64(y / fma(t_1, t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, -2e+287], N[(N[(N[(y / t), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t$95$4, -4e-21], t$95$3, If[LessEqual[t$95$4, 2e-290], N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t$95$4, 5e+306], t$95$3, If[LessEqual[t$95$4, Infinity], N[(N[(y / N[(t$95$1 * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{b}{t}, y, a\right)\\
t_2 := x + \frac{y \cdot z}{t}\\
t_3 := \frac{t\_2}{1 + a}\\
t_4 := \frac{t\_2}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_4 \leq -2 \cdot 10^{+287}:\\
\;\;\;\;\frac{\frac{y}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)} \cdot z\\
\mathbf{elif}\;t\_4 \leq -4 \cdot 10^{-21}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_4 \leq 2 \cdot 10^{-290}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{t\_1}\\
\mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(t\_1, t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -2.0000000000000002e287Initial program 38.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.4%
Taylor expanded in x around 0
lift-/.f6467.0
Applied rewrites67.0%
if -2.0000000000000002e287 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -3.99999999999999963e-21 or 2.0000000000000001e-290 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 99.4%
Taylor expanded in y around 0
lower-+.f6475.7
Applied rewrites75.7%
if -3.99999999999999963e-21 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e-290Initial program 77.4%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites79.5%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.1
Applied rewrites80.1%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6478.9
Applied rewrites78.9%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites81.0%
Taylor expanded in a around inf
Applied rewrites68.8%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 99.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.9%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f6442.2
Applied rewrites42.2%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6431.6
Applied rewrites31.6%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 30.1%
Taylor expanded in y around inf
lower-/.f6451.8
Applied rewrites51.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (/ b t) y a))
(t_2 (+ x (/ (* y z) t)))
(t_3 (/ t_2 (+ 1.0 a)))
(t_4 (/ t_2 (+ (+ a 1.0) (/ (* y b) t))))
(t_5 (/ (fma (/ z t) y x) t_1)))
(if (<= t_4 (- INFINITY))
t_5
(if (<= t_4 -4e-21)
t_3
(if (<= t_4 2e-290)
t_5
(if (<= t_4 5e+306)
t_3
(if (<= t_4 INFINITY) (* (/ y (fma t_1 t t)) z) (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((b / t), y, a);
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / (1.0 + a);
double t_4 = t_2 / ((a + 1.0) + ((y * b) / t));
double t_5 = fma((z / t), y, x) / t_1;
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = t_5;
} else if (t_4 <= -4e-21) {
tmp = t_3;
} else if (t_4 <= 2e-290) {
tmp = t_5;
} else if (t_4 <= 5e+306) {
tmp = t_3;
} else if (t_4 <= ((double) INFINITY)) {
tmp = (y / fma(t_1, t, t)) * z;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(b / t), y, a) t_2 = Float64(x + Float64(Float64(y * z) / t)) t_3 = Float64(t_2 / Float64(1.0 + a)) t_4 = Float64(t_2 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) t_5 = Float64(fma(Float64(z / t), y, x) / t_1) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = t_5; elseif (t_4 <= -4e-21) tmp = t_3; elseif (t_4 <= 2e-290) tmp = t_5; elseif (t_4 <= 5e+306) tmp = t_3; elseif (t_4 <= Inf) tmp = Float64(Float64(y / fma(t_1, t, t)) * z); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], t$95$5, If[LessEqual[t$95$4, -4e-21], t$95$3, If[LessEqual[t$95$4, 2e-290], t$95$5, If[LessEqual[t$95$4, 5e+306], t$95$3, If[LessEqual[t$95$4, Infinity], N[(N[(y / N[(t$95$1 * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{b}{t}, y, a\right)\\
t_2 := x + \frac{y \cdot z}{t}\\
t_3 := \frac{t\_2}{1 + a}\\
t_4 := \frac{t\_2}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
t_5 := \frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{t\_1}\\
\mathbf{if}\;t\_4 \leq -\infty:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t\_4 \leq -4 \cdot 10^{-21}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_4 \leq 2 \cdot 10^{-290}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;t\_4 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(t\_1, t, t\right)} \cdot z\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0 or -3.99999999999999963e-21 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e-290Initial program 70.3%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites76.5%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6480.1
Applied rewrites80.1%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6479.1
Applied rewrites79.1%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites77.4%
Taylor expanded in a around inf
Applied rewrites65.2%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -3.99999999999999963e-21 or 2.0000000000000001e-290 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 99.4%
Taylor expanded in y around 0
lower-+.f6475.9
Applied rewrites75.9%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 70.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.8%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f6435.9
Applied rewrites35.9%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6450.0
Applied rewrites50.0%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 99.4%
Taylor expanded in y around inf
lower-/.f6414.7
Applied rewrites14.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t)))
(t_2 (/ t_1 (+ 1.0 a)))
(t_3 (/ t_1 (+ (+ a 1.0) (/ (* y b) t))))
(t_4 (* (/ y (fma (fma (/ b t) y a) t t)) z)))
(if (<= t_3 -2e+287)
t_4
(if (<= t_3 -5e-89)
t_2
(if (<= t_3 2e-290)
(/ x (fma b (/ y t) (+ 1.0 a)))
(if (<= t_3 5e+306) t_2 (if (<= t_3 INFINITY) t_4 (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double t_2 = t_1 / (1.0 + a);
double t_3 = t_1 / ((a + 1.0) + ((y * b) / t));
double t_4 = (y / fma(fma((b / t), y, a), t, t)) * z;
double tmp;
if (t_3 <= -2e+287) {
tmp = t_4;
} else if (t_3 <= -5e-89) {
tmp = t_2;
} else if (t_3 <= 2e-290) {
tmp = x / fma(b, (y / t), (1.0 + a));
} else if (t_3 <= 5e+306) {
tmp = t_2;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_4;
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) t_2 = Float64(t_1 / Float64(1.0 + a)) t_3 = Float64(t_1 / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) t_4 = Float64(Float64(y / fma(fma(Float64(b / t), y, a), t, t)) * z) tmp = 0.0 if (t_3 <= -2e+287) tmp = t_4; elseif (t_3 <= -5e-89) tmp = t_2; elseif (t_3 <= 2e-290) tmp = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a))); elseif (t_3 <= 5e+306) tmp = t_2; elseif (t_3 <= Inf) tmp = t_4; else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y / N[(N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[t$95$3, -2e+287], t$95$4, If[LessEqual[t$95$3, -5e-89], t$95$2, If[LessEqual[t$95$3, 2e-290], N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+306], t$95$2, If[LessEqual[t$95$3, Infinity], t$95$4, N[(z / b), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t\_1}{1 + a}\\
t_3 := \frac{t\_1}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
t_4 := \frac{y}{\mathsf{fma}\left(\mathsf{fma}\left(\frac{b}{t}, y, a\right), t, t\right)} \cdot z\\
\mathbf{if}\;t\_3 \leq -2 \cdot 10^{+287}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-89}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{-290}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -2.0000000000000002e287 or 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 34.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.3%
Taylor expanded in y around 0
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f646.8
Applied rewrites6.8%
Taylor expanded in x around 0
lower-/.f64N/A
distribute-rgt-inN/A
*-lft-identityN/A
+-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
associate-*l/N/A
lower-fma.f64N/A
lift-/.f6480.5
Applied rewrites80.5%
if -2.0000000000000002e287 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -4.99999999999999967e-89 or 2.0000000000000001e-290 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 99.5%
Taylor expanded in y around 0
lower-+.f6475.0
Applied rewrites75.0%
if -4.99999999999999967e-89 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e-290Initial program 73.8%
Taylor expanded in x around inf
lower-/.f64N/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6464.9
Applied rewrites64.9%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 99.5%
Taylor expanded in y around inf
lower-/.f6415.5
Applied rewrites15.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (fma (/ z t) y x) (fma (/ b t) y a))))
(if (<= a -2.6e-5)
t_1
(if (<= a 0.42) (/ (+ x (/ (* y z) t)) (fma b (/ y t) 1.0)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((z / t), y, x) / fma((b / t), y, a);
double tmp;
if (a <= -2.6e-5) {
tmp = t_1;
} else if (a <= 0.42) {
tmp = (x + ((y * z) / t)) / fma(b, (y / t), 1.0);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(Float64(z / t), y, x) / fma(Float64(b / t), y, a)) tmp = 0.0 if (a <= -2.6e-5) tmp = t_1; elseif (a <= 0.42) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / fma(b, Float64(y / t), 1.0)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision] / N[(N[(b / t), $MachinePrecision] * y + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e-5], t$95$1, If[LessEqual[a, 0.42], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(b * N[(y / t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(\frac{z}{t}, y, x\right)}{\mathsf{fma}\left(\frac{b}{t}, y, a\right)}\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 0.42:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{\mathsf{fma}\left(b, \frac{y}{t}, 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.59999999999999984e-5 or 0.419999999999999984 < a Initial program 74.0%
lift-/.f64N/A
lift-+.f64N/A
lift-*.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
frac-2negN/A
*-commutativeN/A
frac-2negN/A
associate-+r+N/A
+-commutativeN/A
div-add-revN/A
associate-/r*N/A
Applied rewrites74.7%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6477.8
Applied rewrites77.8%
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift-+.f6476.6
Applied rewrites76.6%
lift-/.f64N/A
lift-fma.f64N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
lift-fma.f64N/A
div-add-revN/A
+-commutativeN/A
Applied rewrites74.9%
Taylor expanded in a around inf
Applied rewrites73.5%
if -2.59999999999999984e-5 < a < 0.419999999999999984Initial program 75.5%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6474.2
Applied rewrites74.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (fma t (/ x y) z) b)))
(if (<= y -1.4e+107)
t_1
(if (<= y 9.2e-29) (/ (+ x (/ (* y z) t)) (+ 1.0 a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(t, (x / y), z) / b;
double tmp;
if (y <= -1.4e+107) {
tmp = t_1;
} else if (y <= 9.2e-29) {
tmp = (x + ((y * z) / t)) / (1.0 + a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(t, Float64(x / y), z) / b) tmp = 0.0 if (y <= -1.4e+107) tmp = t_1; elseif (y <= 9.2e-29) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(1.0 + a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t * N[(x / y), $MachinePrecision] + z), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -1.4e+107], t$95$1, If[LessEqual[y, 9.2e-29], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(1.0 + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-29}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{1 + a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.39999999999999992e107 or 9.19999999999999965e-29 < y Initial program 54.1%
Taylor expanded in y around inf
lower-/.f6452.5
Applied rewrites52.5%
Taylor expanded in b around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6429.0
Applied rewrites29.0%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6461.8
Applied rewrites61.8%
if -1.39999999999999992e107 < y < 9.19999999999999965e-29Initial program 91.1%
Taylor expanded in y around 0
lower-+.f6472.7
Applied rewrites72.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (fma y (/ z t) x) (+ 1.0 a))))
(if (<= t -6.2e-100)
t_1
(if (<= t 2.55e-118) (/ (fma t (/ x y) z) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, (z / t), x) / (1.0 + a);
double tmp;
if (t <= -6.2e-100) {
tmp = t_1;
} else if (t <= 2.55e-118) {
tmp = fma(t, (x / y), z) / b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(y, Float64(z / t), x) / Float64(1.0 + a)) tmp = 0.0 if (t <= -6.2e-100) tmp = t_1; elseif (t <= 2.55e-118) tmp = Float64(fma(t, Float64(x / y), z) / b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.2e-100], t$95$1, If[LessEqual[t, 2.55e-118], N[(N[(t * N[(x / y), $MachinePrecision] + z), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{1 + a}\\
\mathbf{if}\;t \leq -6.2 \cdot 10^{-100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{-118}:\\
\;\;\;\;\frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.1999999999999997e-100 or 2.54999999999999982e-118 < t Initial program 80.8%
Taylor expanded in b around 0
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6469.7
Applied rewrites69.7%
if -6.1999999999999997e-100 < t < 2.54999999999999982e-118Initial program 62.0%
Taylor expanded in y around inf
lower-/.f6458.3
Applied rewrites58.3%
Taylor expanded in b around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6442.7
Applied rewrites42.7%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6463.7
Applied rewrites63.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 -2e+287)
(/ (fma y (/ z t) x) a)
(if (<= t_1 5e+306) (/ x (fma b (/ y t) (+ 1.0 a))) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -2e+287) {
tmp = fma(y, (z / t), x) / a;
} else if (t_1 <= 5e+306) {
tmp = x / fma(b, (y / t), (1.0 + a));
} else {
tmp = z / b;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= -2e+287) tmp = Float64(fma(y, Float64(z / t), x) / a); elseif (t_1 <= 5e+306) tmp = Float64(x / fma(b, Float64(y / t), Float64(1.0 + a))); else tmp = Float64(z / b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+287], N[(N[(y * N[(z / t), $MachinePrecision] + x), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], N[(x / N[(b * N[(y / t), $MachinePrecision] + N[(1.0 + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+287}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y, \frac{z}{t}, x\right)}{a}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(b, \frac{y}{t}, 1 + a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -2.0000000000000002e287Initial program 38.2%
Taylor expanded in a around inf
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6429.5
Applied rewrites29.5%
if -2.0000000000000002e287 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 4.99999999999999993e306Initial program 90.4%
Taylor expanded in x around inf
lower-/.f64N/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
associate-/l*N/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-+.f6464.9
Applied rewrites64.9%
if 4.99999999999999993e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 11.1%
Taylor expanded in y around inf
lower-/.f6479.6
Applied rewrites79.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (fma t (/ x y) z) b))) (if (<= y -2.75e+45) t_1 (if (<= y 9e-29) (/ x (+ 1.0 a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(t, (x / y), z) / b;
double tmp;
if (y <= -2.75e+45) {
tmp = t_1;
} else if (y <= 9e-29) {
tmp = x / (1.0 + a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(t, Float64(x / y), z) / b) tmp = 0.0 if (y <= -2.75e+45) tmp = t_1; elseif (y <= 9e-29) tmp = Float64(x / Float64(1.0 + a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t * N[(x / y), $MachinePrecision] + z), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -2.75e+45], t$95$1, If[LessEqual[y, 9e-29], N[(x / N[(1.0 + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(t, \frac{x}{y}, z\right)}{b}\\
\mathbf{if}\;y \leq -2.75 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-29}:\\
\;\;\;\;\frac{x}{1 + a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.75e45 or 8.9999999999999996e-29 < y Initial program 56.0%
Taylor expanded in y around inf
lower-/.f6450.9
Applied rewrites50.9%
Taylor expanded in b around inf
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lower-*.f6429.2
Applied rewrites29.2%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6460.5
Applied rewrites60.5%
if -2.75e45 < y < 8.9999999999999996e-29Initial program 92.8%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6458.4
Applied rewrites58.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ 1.0 a)))) (if (<= t -5.4e-78) t_1 (if (<= t 56.0) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 + a);
double tmp;
if (t <= -5.4e-78) {
tmp = t_1;
} else if (t <= 56.0) {
tmp = z / b;
} 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)
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) :: t_1
real(8) :: tmp
t_1 = x / (1.0d0 + a)
if (t <= (-5.4d-78)) then
tmp = t_1
else if (t <= 56.0d0) then
tmp = z / b
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 t_1 = x / (1.0 + a);
double tmp;
if (t <= -5.4e-78) {
tmp = t_1;
} else if (t <= 56.0) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 + a) tmp = 0 if t <= -5.4e-78: tmp = t_1 elif t <= 56.0: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 + a)) tmp = 0.0 if (t <= -5.4e-78) tmp = t_1; elseif (t <= 56.0) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (1.0 + a); tmp = 0.0; if (t <= -5.4e-78) tmp = t_1; elseif (t <= 56.0) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.4e-78], t$95$1, If[LessEqual[t, 56.0], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 + a}\\
\mathbf{if}\;t \leq -5.4 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 56:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.39999999999999987e-78 or 56 < t Initial program 81.8%
Taylor expanded in y around 0
lower-/.f64N/A
lower-+.f6457.5
Applied rewrites57.5%
if -5.39999999999999987e-78 < t < 56Initial program 65.6%
Taylor expanded in y around inf
lower-/.f6454.1
Applied rewrites54.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y -5.9e-62) (/ z b) (if (<= y 9e-29) x (/ z b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.9e-62) {
tmp = z / b;
} else if (y <= 9e-29) {
tmp = x;
} else {
tmp = z / b;
}
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)
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) :: tmp
if (y <= (-5.9d-62)) then
tmp = z / b
else if (y <= 9d-29) then
tmp = x
else
tmp = z / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.9e-62) {
tmp = z / b;
} else if (y <= 9e-29) {
tmp = x;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -5.9e-62: tmp = z / b elif y <= 9e-29: tmp = x else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -5.9e-62) tmp = Float64(z / b); elseif (y <= 9e-29) tmp = x; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -5.9e-62) tmp = z / b; elseif (y <= 9e-29) tmp = x; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -5.9e-62], N[(z / b), $MachinePrecision], If[LessEqual[y, 9e-29], x, N[(z / b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9 \cdot 10^{-62}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-29}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -5.9000000000000004e-62 or 8.9999999999999996e-29 < y Initial program 60.1%
Taylor expanded in y around inf
lower-/.f6447.9
Applied rewrites47.9%
if -5.9000000000000004e-62 < y < 8.9999999999999996e-29Initial program 94.8%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6448.0
Applied rewrites48.0%
Taylor expanded in y around 0
Applied rewrites29.2%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
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)
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
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 74.8%
Taylor expanded in a around 0
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6444.8
Applied rewrites44.8%
Taylor expanded in y around 0
Applied rewrites19.2%
herbie shell --seed 2025130
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))