
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
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)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
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)
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
code = ((((x * 9.0d0) * y) - (((z * 4.0d0) * t) * a)) + b) / (z * c)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c);
}
def code(x, y, z, t, a, b, c): return ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c)
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(Float64(x * 9.0) * y) - Float64(Float64(Float64(z * 4.0) * t) * a)) + b) / Float64(z * c)) end
function tmp = code(x, y, z, t, a, b, c) tmp = ((((x * 9.0) * y) - (((z * 4.0) * t) * a)) + b) / (z * c); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(z * 4.0), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision] / N[(z * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}
\end{array}
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= c_m 9.5e+68)
(/ (fma (* -4.0 a) t (/ (fma (* 9.0 x) y b) z)) c_m)
(fma -4.0 (* a (/ t c_m)) (/ (fma (* y x) 9.0 b) (* c_m z))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (c_m <= 9.5e+68) {
tmp = fma((-4.0 * a), t, (fma((9.0 * x), y, b) / z)) / c_m;
} else {
tmp = fma(-4.0, (a * (t / c_m)), (fma((y * x), 9.0, b) / (c_m * z)));
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (c_m <= 9.5e+68) tmp = Float64(fma(Float64(-4.0 * a), t, Float64(fma(Float64(9.0 * x), y, b) / z)) / c_m); else tmp = fma(-4.0, Float64(a * Float64(t / c_m)), Float64(fma(Float64(y * x), 9.0, b) / Float64(c_m * z))); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[c$95$m, 9.5e+68], N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(N[(N[(9.0 * x), $MachinePrecision] * y + b), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], N[(-4.0 * N[(a * N[(t / c$95$m), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * x), $MachinePrecision] * 9.0 + b), $MachinePrecision] / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;c\_m \leq 9.5 \cdot 10^{+68}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{\mathsf{fma}\left(9 \cdot x, y, b\right)}{z}\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-4, a \cdot \frac{t}{c\_m}, \frac{\mathsf{fma}\left(y \cdot x, 9, b\right)}{c\_m \cdot z}\right)\\
\end{array}
\end{array}
if c < 9.50000000000000069e68Initial program 89.2%
Taylor expanded in b around inf
Applied rewrites38.3%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6436.4
Applied rewrites36.4%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6496.0
Applied rewrites96.0%
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6495.9
Applied rewrites95.9%
if 9.50000000000000069e68 < c Initial program 66.0%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6477.2
Applied rewrites77.2%
lift-*.f64N/A
lift-/.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6482.2
Applied rewrites82.2%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= (* (* x 9.0) y) 1e+244)
(/ (fma (* a t) -4.0 (/ (fma (* 9.0 x) y b) z)) c_m)
(- (* (/ (- (* (/ x c_m) -9.0) (/ b (* c_m y))) z) y)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (((x * 9.0) * y) <= 1e+244) {
tmp = fma((a * t), -4.0, (fma((9.0 * x), y, b) / z)) / c_m;
} else {
tmp = -(((((x / c_m) * -9.0) - (b / (c_m * y))) / z) * y);
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (Float64(Float64(x * 9.0) * y) <= 1e+244) tmp = Float64(fma(Float64(a * t), -4.0, Float64(fma(Float64(9.0 * x), y, b) / z)) / c_m); else tmp = Float64(-Float64(Float64(Float64(Float64(Float64(x / c_m) * -9.0) - Float64(b / Float64(c_m * y))) / z) * y)); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision], 1e+244], N[(N[(N[(a * t), $MachinePrecision] * -4.0 + N[(N[(N[(9.0 * x), $MachinePrecision] * y + b), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], (-N[(N[(N[(N[(N[(x / c$95$m), $MachinePrecision] * -9.0), $MachinePrecision] - N[(b / N[(c$95$m * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] * y), $MachinePrecision])]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;\left(x \cdot 9\right) \cdot y \leq 10^{+244}:\\
\;\;\;\;\frac{\mathsf{fma}\left(a \cdot t, -4, \frac{\mathsf{fma}\left(9 \cdot x, y, b\right)}{z}\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;-\frac{\frac{x}{c\_m} \cdot -9 - \frac{b}{c\_m \cdot y}}{z} \cdot y\\
\end{array}
\end{array}
if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1.00000000000000007e244Initial program 81.3%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6486.1
Applied rewrites86.1%
Taylor expanded in c around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lift-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
*-commutativeN/A
*-commutativeN/A
+-commutativeN/A
lower-/.f64N/A
lift-fma.f64N/A
lift-*.f6488.2
Applied rewrites88.2%
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lift-*.f6488.2
Applied rewrites88.2%
if 1.00000000000000007e244 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) Initial program 69.5%
Taylor expanded in y around -inf
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.4%
Taylor expanded in z around 0
lower-/.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lower-*.f6483.7
Applied rewrites83.7%
c\_m = (fabs.f64 c) c\_s = (copysign.f64 #s(literal 1 binary64) c) (FPCore (c_s x y z t a b c_m) :precision binary64 (* c_s (/ (fma (* -4.0 a) t (/ (fma (* 9.0 x) y b) z)) c_m)))
c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (fma((-4.0 * a), t, (fma((9.0 * x), y, b) / z)) / c_m);
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) return Float64(c_s * Float64(fma(Float64(-4.0 * a), t, Float64(fma(Float64(9.0 * x), y, b) / z)) / c_m)) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(N[(N[(9.0 * x), $MachinePrecision] * y + b), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{\mathsf{fma}\left(9 \cdot x, y, b\right)}{z}\right)}{c\_m}
\end{array}
Initial program 80.2%
Taylor expanded in b around inf
Applied rewrites36.1%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6434.1
Applied rewrites34.1%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6487.4
Applied rewrites87.4%
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f6487.4
Applied rewrites87.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (fma (* -4.0 a) t (/ b z)) c_m)))
(*
c_s
(if (<= b -2.65e+42)
t_1
(if (<= b 3.2e+90)
(/ (fma (* -4.0 a) t (* (/ (* y x) z) 9.0)) c_m)
t_1)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = fma((-4.0 * a), t, (b / z)) / c_m;
double tmp;
if (b <= -2.65e+42) {
tmp = t_1;
} else if (b <= 3.2e+90) {
tmp = fma((-4.0 * a), t, (((y * x) / z) * 9.0)) / c_m;
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(fma(Float64(-4.0 * a), t, Float64(b / z)) / c_m) tmp = 0.0 if (b <= -2.65e+42) tmp = t_1; elseif (b <= 3.2e+90) tmp = Float64(fma(Float64(-4.0 * a), t, Float64(Float64(Float64(y * x) / z) * 9.0)) / c_m); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -2.65e+42], t$95$1, If[LessEqual[b, 3.2e+90], N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision] * 9.0), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{b}{z}\right)}{c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.65 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+90}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{y \cdot x}{z} \cdot 9\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -2.65000000000000014e42 or 3.19999999999999998e90 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites55.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6453.6
Applied rewrites53.6%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6484.0
Applied rewrites84.0%
Taylor expanded in x around 0
Applied rewrites73.2%
if -2.65000000000000014e42 < b < 3.19999999999999998e90Initial program 81.0%
Taylor expanded in b around inf
Applied rewrites22.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6421.1
Applied rewrites21.1%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6489.7
Applied rewrites89.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lift-*.f6477.0
Applied rewrites77.0%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (fma (* -4.0 a) t (/ b z)) c_m)))
(*
c_s
(if (<= b -2.65e+42)
t_1
(if (<= b 3.2e+90)
(/ (fma (* a t) -4.0 (/ (* (* y x) 9.0) z)) c_m)
t_1)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = fma((-4.0 * a), t, (b / z)) / c_m;
double tmp;
if (b <= -2.65e+42) {
tmp = t_1;
} else if (b <= 3.2e+90) {
tmp = fma((a * t), -4.0, (((y * x) * 9.0) / z)) / c_m;
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(fma(Float64(-4.0 * a), t, Float64(b / z)) / c_m) tmp = 0.0 if (b <= -2.65e+42) tmp = t_1; elseif (b <= 3.2e+90) tmp = Float64(fma(Float64(a * t), -4.0, Float64(Float64(Float64(y * x) * 9.0) / z)) / c_m); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -2.65e+42], t$95$1, If[LessEqual[b, 3.2e+90], N[(N[(N[(a * t), $MachinePrecision] * -4.0 + N[(N[(N[(y * x), $MachinePrecision] * 9.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{b}{z}\right)}{c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -2.65 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+90}:\\
\;\;\;\;\frac{\mathsf{fma}\left(a \cdot t, -4, \frac{\left(y \cdot x\right) \cdot 9}{z}\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -2.65000000000000014e42 or 3.19999999999999998e90 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites55.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6453.6
Applied rewrites53.6%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6484.0
Applied rewrites84.0%
Taylor expanded in x around 0
Applied rewrites73.2%
if -2.65000000000000014e42 < b < 3.19999999999999998e90Initial program 81.0%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6486.2
Applied rewrites86.2%
Taylor expanded in c around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lift-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
*-commutativeN/A
*-commutativeN/A
+-commutativeN/A
lower-/.f64N/A
lift-fma.f64N/A
lift-*.f6489.4
Applied rewrites89.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lift-*.f6476.6
Applied rewrites76.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ (fma (/ (* y x) c_m) 9.0 (/ b c_m)) z))
(t_2 (/ (fma (* -4.0 a) t (/ b z)) c_m)))
(*
c_s
(if (<= z -5.5e+84)
t_2
(if (<= z 5e-143)
t_1
(if (<= z 7.8e+37)
(/ (fma (* -4.0 a) (* t z) b) (* z c_m))
(if (<= z 2.3e+94) t_1 t_2)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = fma(((y * x) / c_m), 9.0, (b / c_m)) / z;
double t_2 = fma((-4.0 * a), t, (b / z)) / c_m;
double tmp;
if (z <= -5.5e+84) {
tmp = t_2;
} else if (z <= 5e-143) {
tmp = t_1;
} else if (z <= 7.8e+37) {
tmp = fma((-4.0 * a), (t * z), b) / (z * c_m);
} else if (z <= 2.3e+94) {
tmp = t_1;
} else {
tmp = t_2;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(fma(Float64(Float64(y * x) / c_m), 9.0, Float64(b / c_m)) / z) t_2 = Float64(fma(Float64(-4.0 * a), t, Float64(b / z)) / c_m) tmp = 0.0 if (z <= -5.5e+84) tmp = t_2; elseif (z <= 5e-143) tmp = t_1; elseif (z <= 7.8e+37) tmp = Float64(fma(Float64(-4.0 * a), Float64(t * z), b) / Float64(z * c_m)); elseif (z <= 2.3e+94) tmp = t_1; else tmp = t_2; end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(N[(N[(y * x), $MachinePrecision] / c$95$m), $MachinePrecision] * 9.0 + N[(b / c$95$m), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]}, N[(c$95$s * If[LessEqual[z, -5.5e+84], t$95$2, If[LessEqual[z, 5e-143], t$95$1, If[LessEqual[z, 7.8e+37], N[(N[(N[(-4.0 * a), $MachinePrecision] * N[(t * z), $MachinePrecision] + b), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+94], t$95$1, t$95$2]]]]), $MachinePrecision]]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(\frac{y \cdot x}{c\_m}, 9, \frac{b}{c\_m}\right)}{z}\\
t_2 := \frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{b}{z}\right)}{c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+37}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4 \cdot a, t \cdot z, b\right)}{z \cdot c\_m}\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
\end{array}
if z < -5.5000000000000004e84 or 2.3e94 < z Initial program 56.9%
Taylor expanded in b around inf
Applied rewrites21.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6425.4
Applied rewrites25.4%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6487.9
Applied rewrites87.9%
Taylor expanded in x around 0
Applied rewrites74.5%
if -5.5000000000000004e84 < z < 5.0000000000000002e-143 or 7.7999999999999997e37 < z < 2.3e94Initial program 93.0%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6486.9
Applied rewrites86.9%
Taylor expanded in z around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-/.f6473.8
Applied rewrites73.8%
if 5.0000000000000002e-143 < z < 7.7999999999999997e37Initial program 92.3%
Taylor expanded in x around 0
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
*-commutativeN/A
lower--.f64N/A
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f6461.5
Applied rewrites61.5%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(*
c_s
(if (<= x -1.55e+79)
(/ (fma (* y (/ x c_m)) 9.0 (/ b c_m)) z)
(/ (fma (* -4.0 a) t (/ b z)) c_m))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double tmp;
if (x <= -1.55e+79) {
tmp = fma((y * (x / c_m)), 9.0, (b / c_m)) / z;
} else {
tmp = fma((-4.0 * a), t, (b / z)) / c_m;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) tmp = 0.0 if (x <= -1.55e+79) tmp = Float64(fma(Float64(y * Float64(x / c_m)), 9.0, Float64(b / c_m)) / z); else tmp = Float64(fma(Float64(-4.0 * a), t, Float64(b / z)) / c_m); end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * If[LessEqual[x, -1.55e+79], N[(N[(N[(y * N[(x / c$95$m), $MachinePrecision]), $MachinePrecision] * 9.0 + N[(b / c$95$m), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;x \leq -1.55 \cdot 10^{+79}:\\
\;\;\;\;\frac{\mathsf{fma}\left(y \cdot \frac{x}{c\_m}, 9, \frac{b}{c\_m}\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{b}{z}\right)}{c\_m}\\
\end{array}
\end{array}
if x < -1.5499999999999999e79Initial program 76.1%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6478.3
Applied rewrites78.3%
Taylor expanded in z around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-/.f6464.8
Applied rewrites64.8%
lift-*.f64N/A
lift-/.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6468.0
Applied rewrites68.0%
if -1.5499999999999999e79 < x Initial program 81.2%
Taylor expanded in b around inf
Applied rewrites38.3%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6436.3
Applied rewrites36.3%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6488.7
Applied rewrites88.7%
Taylor expanded in x around 0
Applied rewrites68.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (- (* (* (/ (/ x c_m) z) -9.0) y))) (t_2 (* (* x 9.0) y)))
(*
c_s
(if (<= t_2 -7.1e+112)
t_1
(if (<= t_2 2e+112) (/ (fma (* -4.0 a) t (/ b z)) c_m) t_1)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = -((((x / c_m) / z) * -9.0) * y);
double t_2 = (x * 9.0) * y;
double tmp;
if (t_2 <= -7.1e+112) {
tmp = t_1;
} else if (t_2 <= 2e+112) {
tmp = fma((-4.0 * a), t, (b / z)) / c_m;
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(-Float64(Float64(Float64(Float64(x / c_m) / z) * -9.0) * y)) t_2 = Float64(Float64(x * 9.0) * y) tmp = 0.0 if (t_2 <= -7.1e+112) tmp = t_1; elseif (t_2 <= 2e+112) tmp = Float64(fma(Float64(-4.0 * a), t, Float64(b / z)) / c_m); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = (-N[(N[(N[(N[(x / c$95$m), $MachinePrecision] / z), $MachinePrecision] * -9.0), $MachinePrecision] * y), $MachinePrecision])}, Block[{t$95$2 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$2, -7.1e+112], t$95$1, If[LessEqual[t$95$2, 2e+112], N[(N[(N[(-4.0 * a), $MachinePrecision] * t + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], t$95$1]]), $MachinePrecision]]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := -\left(\frac{\frac{x}{c\_m}}{z} \cdot -9\right) \cdot y\\
t_2 := \left(x \cdot 9\right) \cdot y\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_2 \leq -7.1 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+112}:\\
\;\;\;\;\frac{\mathsf{fma}\left(-4 \cdot a, t, \frac{b}{z}\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -7.1e112 or 1.9999999999999999e112 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) Initial program 75.1%
Taylor expanded in y around -inf
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f64N/A
lift-*.f6468.9
Applied rewrites68.9%
lift-*.f64N/A
lift-/.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6471.9
Applied rewrites71.9%
if -7.1e112 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1.9999999999999999e112Initial program 82.9%
Taylor expanded in b around inf
Applied rewrites45.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6443.3
Applied rewrites43.3%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6491.7
Applied rewrites91.7%
Taylor expanded in x around 0
Applied rewrites79.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (- (* (* (/ (/ x c_m) z) -9.0) y))) (t_2 (* (* x 9.0) y)))
(*
c_s
(if (<= t_2 -7.1e+112)
t_1
(if (<= t_2 2e+112) (/ (fma (* a t) -4.0 (/ b z)) c_m) t_1)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = -((((x / c_m) / z) * -9.0) * y);
double t_2 = (x * 9.0) * y;
double tmp;
if (t_2 <= -7.1e+112) {
tmp = t_1;
} else if (t_2 <= 2e+112) {
tmp = fma((a * t), -4.0, (b / z)) / c_m;
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(-Float64(Float64(Float64(Float64(x / c_m) / z) * -9.0) * y)) t_2 = Float64(Float64(x * 9.0) * y) tmp = 0.0 if (t_2 <= -7.1e+112) tmp = t_1; elseif (t_2 <= 2e+112) tmp = Float64(fma(Float64(a * t), -4.0, Float64(b / z)) / c_m); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = (-N[(N[(N[(N[(x / c$95$m), $MachinePrecision] / z), $MachinePrecision] * -9.0), $MachinePrecision] * y), $MachinePrecision])}, Block[{t$95$2 = N[(N[(x * 9.0), $MachinePrecision] * y), $MachinePrecision]}, N[(c$95$s * If[LessEqual[t$95$2, -7.1e+112], t$95$1, If[LessEqual[t$95$2, 2e+112], N[(N[(N[(a * t), $MachinePrecision] * -4.0 + N[(b / z), $MachinePrecision]), $MachinePrecision] / c$95$m), $MachinePrecision], t$95$1]]), $MachinePrecision]]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := -\left(\frac{\frac{x}{c\_m}}{z} \cdot -9\right) \cdot y\\
t_2 := \left(x \cdot 9\right) \cdot y\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_2 \leq -7.1 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+112}:\\
\;\;\;\;\frac{\mathsf{fma}\left(a \cdot t, -4, \frac{b}{z}\right)}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if (*.f64 (*.f64 x #s(literal 9 binary64)) y) < -7.1e112 or 1.9999999999999999e112 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) Initial program 75.1%
Taylor expanded in y around -inf
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f64N/A
lift-*.f6468.9
Applied rewrites68.9%
lift-*.f64N/A
lift-/.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6471.9
Applied rewrites71.9%
if -7.1e112 < (*.f64 (*.f64 x #s(literal 9 binary64)) y) < 1.9999999999999999e112Initial program 82.9%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6489.2
Applied rewrites89.2%
Taylor expanded in c around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lift-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
*-commutativeN/A
*-commutativeN/A
+-commutativeN/A
lower-/.f64N/A
lift-fma.f64N/A
lift-*.f6491.3
Applied rewrites91.3%
Taylor expanded in x around 0
Applied rewrites79.3%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ b (* z c_m))))
(*
c_s
(if (<= b -1.25e+45)
t_1
(if (<= b -4.4e-76)
(* (* (/ a c_m) -4.0) t)
(if (<= b 5.1e+45)
(/ (* (/ (* y x) c_m) 9.0) z)
(if (<= b 5.8e+196) (* -4.0 (/ (* a t) c_m)) t_1)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -4.4e-76) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 5.1e+45) {
tmp = (((y * x) / c_m) * 9.0) / z;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
real(8) :: t_1
real(8) :: tmp
t_1 = b / (z * c_m)
if (b <= (-1.25d+45)) then
tmp = t_1
else if (b <= (-4.4d-76)) then
tmp = ((a / c_m) * (-4.0d0)) * t
else if (b <= 5.1d+45) then
tmp = (((y * x) / c_m) * 9.0d0) / z
else if (b <= 5.8d+196) then
tmp = (-4.0d0) * ((a * t) / c_m)
else
tmp = t_1
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -4.4e-76) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 5.1e+45) {
tmp = (((y * x) / c_m) * 9.0) / z;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = b / (z * c_m) tmp = 0 if b <= -1.25e+45: tmp = t_1 elif b <= -4.4e-76: tmp = ((a / c_m) * -4.0) * t elif b <= 5.1e+45: tmp = (((y * x) / c_m) * 9.0) / z elif b <= 5.8e+196: tmp = -4.0 * ((a * t) / c_m) else: tmp = t_1 return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(b / Float64(z * c_m)) tmp = 0.0 if (b <= -1.25e+45) tmp = t_1; elseif (b <= -4.4e-76) tmp = Float64(Float64(Float64(a / c_m) * -4.0) * t); elseif (b <= 5.1e+45) tmp = Float64(Float64(Float64(Float64(y * x) / c_m) * 9.0) / z); elseif (b <= 5.8e+196) tmp = Float64(-4.0 * Float64(Float64(a * t) / c_m)); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = b / (z * c_m); tmp = 0.0; if (b <= -1.25e+45) tmp = t_1; elseif (b <= -4.4e-76) tmp = ((a / c_m) * -4.0) * t; elseif (b <= 5.1e+45) tmp = (((y * x) / c_m) * 9.0) / z; elseif (b <= 5.8e+196) tmp = -4.0 * ((a * t) / c_m); else tmp = t_1; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -1.25e+45], t$95$1, If[LessEqual[b, -4.4e-76], N[(N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 5.1e+45], N[(N[(N[(N[(y * x), $MachinePrecision] / c$95$m), $MachinePrecision] * 9.0), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[b, 5.8e+196], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], t$95$1]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-76}:\\
\;\;\;\;\left(\frac{a}{c\_m} \cdot -4\right) \cdot t\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{+45}:\\
\;\;\;\;\frac{\frac{y \cdot x}{c\_m} \cdot 9}{z}\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+196}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -1.25e45 or 5.8e196 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites57.5%
if -1.25e45 < b < -4.39999999999999999e-76Initial program 80.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f6442.2
Applied rewrites42.2%
if -4.39999999999999999e-76 < b < 5.0999999999999997e45Initial program 81.1%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower-*.f64N/A
+-commutativeN/A
associate-*r/N/A
div-addN/A
lower-/.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6486.1
Applied rewrites86.1%
Taylor expanded in z around 0
lower-/.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-/.f6453.7
Applied rewrites53.7%
Taylor expanded in x around 0
lift-/.f6416.9
Applied rewrites16.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lift-*.f6445.2
Applied rewrites45.2%
if 5.0999999999999997e45 < b < 5.8e196Initial program 79.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6433.5
Applied rewrites33.5%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ b (* z c_m))))
(*
c_s
(if (<= b -1.25e+45)
t_1
(if (<= b -1.2e-79)
(* (* (/ a c_m) -4.0) t)
(if (<= b 1.86e+46)
(/ (* (* y x) 9.0) (* z c_m))
(if (<= b 5.8e+196) (* -4.0 (/ (* a t) c_m)) t_1)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -1.2e-79) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 1.86e+46) {
tmp = ((y * x) * 9.0) / (z * c_m);
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
real(8) :: t_1
real(8) :: tmp
t_1 = b / (z * c_m)
if (b <= (-1.25d+45)) then
tmp = t_1
else if (b <= (-1.2d-79)) then
tmp = ((a / c_m) * (-4.0d0)) * t
else if (b <= 1.86d+46) then
tmp = ((y * x) * 9.0d0) / (z * c_m)
else if (b <= 5.8d+196) then
tmp = (-4.0d0) * ((a * t) / c_m)
else
tmp = t_1
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -1.2e-79) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 1.86e+46) {
tmp = ((y * x) * 9.0) / (z * c_m);
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = b / (z * c_m) tmp = 0 if b <= -1.25e+45: tmp = t_1 elif b <= -1.2e-79: tmp = ((a / c_m) * -4.0) * t elif b <= 1.86e+46: tmp = ((y * x) * 9.0) / (z * c_m) elif b <= 5.8e+196: tmp = -4.0 * ((a * t) / c_m) else: tmp = t_1 return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(b / Float64(z * c_m)) tmp = 0.0 if (b <= -1.25e+45) tmp = t_1; elseif (b <= -1.2e-79) tmp = Float64(Float64(Float64(a / c_m) * -4.0) * t); elseif (b <= 1.86e+46) tmp = Float64(Float64(Float64(y * x) * 9.0) / Float64(z * c_m)); elseif (b <= 5.8e+196) tmp = Float64(-4.0 * Float64(Float64(a * t) / c_m)); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = b / (z * c_m); tmp = 0.0; if (b <= -1.25e+45) tmp = t_1; elseif (b <= -1.2e-79) tmp = ((a / c_m) * -4.0) * t; elseif (b <= 1.86e+46) tmp = ((y * x) * 9.0) / (z * c_m); elseif (b <= 5.8e+196) tmp = -4.0 * ((a * t) / c_m); else tmp = t_1; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -1.25e+45], t$95$1, If[LessEqual[b, -1.2e-79], N[(N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 1.86e+46], N[(N[(N[(y * x), $MachinePrecision] * 9.0), $MachinePrecision] / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+196], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], t$95$1]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-79}:\\
\;\;\;\;\left(\frac{a}{c\_m} \cdot -4\right) \cdot t\\
\mathbf{elif}\;b \leq 1.86 \cdot 10^{+46}:\\
\;\;\;\;\frac{\left(y \cdot x\right) \cdot 9}{z \cdot c\_m}\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+196}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -1.25e45 or 5.8e196 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites57.5%
if -1.25e45 < b < -1.20000000000000003e-79Initial program 80.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f6442.8
Applied rewrites42.8%
if -1.20000000000000003e-79 < b < 1.8600000000000001e46Initial program 81.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6445.9
Applied rewrites45.9%
if 1.8600000000000001e46 < b < 5.8e196Initial program 79.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ b (* z c_m))))
(*
c_s
(if (<= b -1.25e+45)
t_1
(if (<= b -5.4e-83)
(* (* (/ a c_m) -4.0) t)
(if (<= b 1.86e+46)
(* (* (/ y (* c_m z)) x) 9.0)
(if (<= b 5.8e+196) (* -4.0 (/ (* a t) c_m)) t_1)))))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -5.4e-83) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 1.86e+46) {
tmp = ((y / (c_m * z)) * x) * 9.0;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
real(8) :: t_1
real(8) :: tmp
t_1 = b / (z * c_m)
if (b <= (-1.25d+45)) then
tmp = t_1
else if (b <= (-5.4d-83)) then
tmp = ((a / c_m) * (-4.0d0)) * t
else if (b <= 1.86d+46) then
tmp = ((y / (c_m * z)) * x) * 9.0d0
else if (b <= 5.8d+196) then
tmp = (-4.0d0) * ((a * t) / c_m)
else
tmp = t_1
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -1.25e+45) {
tmp = t_1;
} else if (b <= -5.4e-83) {
tmp = ((a / c_m) * -4.0) * t;
} else if (b <= 1.86e+46) {
tmp = ((y / (c_m * z)) * x) * 9.0;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = b / (z * c_m) tmp = 0 if b <= -1.25e+45: tmp = t_1 elif b <= -5.4e-83: tmp = ((a / c_m) * -4.0) * t elif b <= 1.86e+46: tmp = ((y / (c_m * z)) * x) * 9.0 elif b <= 5.8e+196: tmp = -4.0 * ((a * t) / c_m) else: tmp = t_1 return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(b / Float64(z * c_m)) tmp = 0.0 if (b <= -1.25e+45) tmp = t_1; elseif (b <= -5.4e-83) tmp = Float64(Float64(Float64(a / c_m) * -4.0) * t); elseif (b <= 1.86e+46) tmp = Float64(Float64(Float64(y / Float64(c_m * z)) * x) * 9.0); elseif (b <= 5.8e+196) tmp = Float64(-4.0 * Float64(Float64(a * t) / c_m)); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = b / (z * c_m); tmp = 0.0; if (b <= -1.25e+45) tmp = t_1; elseif (b <= -5.4e-83) tmp = ((a / c_m) * -4.0) * t; elseif (b <= 1.86e+46) tmp = ((y / (c_m * z)) * x) * 9.0; elseif (b <= 5.8e+196) tmp = -4.0 * ((a * t) / c_m); else tmp = t_1; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -1.25e+45], t$95$1, If[LessEqual[b, -5.4e-83], N[(N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 1.86e+46], N[(N[(N[(y / N[(c$95$m * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * 9.0), $MachinePrecision], If[LessEqual[b, 5.8e+196], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], t$95$1]]]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.4 \cdot 10^{-83}:\\
\;\;\;\;\left(\frac{a}{c\_m} \cdot -4\right) \cdot t\\
\mathbf{elif}\;b \leq 1.86 \cdot 10^{+46}:\\
\;\;\;\;\left(\frac{y}{c\_m \cdot z} \cdot x\right) \cdot 9\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+196}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -1.25e45 or 5.8e196 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites57.5%
if -1.25e45 < b < -5.39999999999999982e-83Initial program 80.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f6442.7
Applied rewrites42.7%
if -5.39999999999999982e-83 < b < 1.8600000000000001e46Initial program 81.1%
Taylor expanded in b around inf
Applied rewrites19.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6417.7
Applied rewrites17.7%
Taylor expanded in x around 0
fp-cancel-sub-sign-invN/A
metadata-evalN/A
+-commutativeN/A
associate-*r/N/A
*-commutativeN/A
*-commutativeN/A
div-addN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-/.f6490.2
Applied rewrites90.2%
Taylor expanded in x around inf
associate-*r/N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-/.f64N/A
lift-*.f6445.9
Applied rewrites45.9%
if 1.8600000000000001e46 < b < 5.8e196Initial program 79.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6433.6
Applied rewrites33.6%
c\_m = (fabs.f64 c) c\_s = (copysign.f64 #s(literal 1 binary64) c) (FPCore (c_s x y z t a b c_m) :precision binary64 (let* ((t_1 (* (* (/ a c_m) -4.0) t))) (* c_s (if (<= a -5.8e-111) t_1 (if (<= a 1.8e+73) (/ b (* z c_m)) t_1)))))
c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = ((a / c_m) * -4.0) * t;
double tmp;
if (a <= -5.8e-111) {
tmp = t_1;
} else if (a <= 1.8e+73) {
tmp = b / (z * c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
real(8) :: t_1
real(8) :: tmp
t_1 = ((a / c_m) * (-4.0d0)) * t
if (a <= (-5.8d-111)) then
tmp = t_1
else if (a <= 1.8d+73) then
tmp = b / (z * c_m)
else
tmp = t_1
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = ((a / c_m) * -4.0) * t;
double tmp;
if (a <= -5.8e-111) {
tmp = t_1;
} else if (a <= 1.8e+73) {
tmp = b / (z * c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = ((a / c_m) * -4.0) * t tmp = 0 if a <= -5.8e-111: tmp = t_1 elif a <= 1.8e+73: tmp = b / (z * c_m) else: tmp = t_1 return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(Float64(Float64(a / c_m) * -4.0) * t) tmp = 0.0 if (a <= -5.8e-111) tmp = t_1; elseif (a <= 1.8e+73) tmp = Float64(b / Float64(z * c_m)); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = ((a / c_m) * -4.0) * t; tmp = 0.0; if (a <= -5.8e-111) tmp = t_1; elseif (a <= 1.8e+73) tmp = b / (z * c_m); else tmp = t_1; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(N[(N[(a / c$95$m), $MachinePrecision] * -4.0), $MachinePrecision] * t), $MachinePrecision]}, N[(c$95$s * If[LessEqual[a, -5.8e-111], t$95$1, If[LessEqual[a, 1.8e+73], N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \left(\frac{a}{c\_m} \cdot -4\right) \cdot t\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;a \leq -5.8 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+73}:\\
\;\;\;\;\frac{b}{z \cdot c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if a < -5.80000000000000003e-111 or 1.7999999999999999e73 < a Initial program 79.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
lift-/.f6455.7
Applied rewrites55.7%
if -5.80000000000000003e-111 < a < 1.7999999999999999e73Initial program 81.4%
Taylor expanded in b around inf
Applied rewrites44.4%
c\_m = (fabs.f64 c)
c\_s = (copysign.f64 #s(literal 1 binary64) c)
(FPCore (c_s x y z t a b c_m)
:precision binary64
(let* ((t_1 (/ b (* z c_m))))
(*
c_s
(if (<= b -3.1e+42)
t_1
(if (<= b 5.8e+196) (* -4.0 (/ (* a t) c_m)) t_1)))))c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -3.1e+42) {
tmp = t_1;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
real(8) :: t_1
real(8) :: tmp
t_1 = b / (z * c_m)
if (b <= (-3.1d+42)) then
tmp = t_1
else if (b <= 5.8d+196) then
tmp = (-4.0d0) * ((a * t) / c_m)
else
tmp = t_1
end if
code = c_s * tmp
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
double t_1 = b / (z * c_m);
double tmp;
if (b <= -3.1e+42) {
tmp = t_1;
} else if (b <= 5.8e+196) {
tmp = -4.0 * ((a * t) / c_m);
} else {
tmp = t_1;
}
return c_s * tmp;
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): t_1 = b / (z * c_m) tmp = 0 if b <= -3.1e+42: tmp = t_1 elif b <= 5.8e+196: tmp = -4.0 * ((a * t) / c_m) else: tmp = t_1 return c_s * tmp
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) t_1 = Float64(b / Float64(z * c_m)) tmp = 0.0 if (b <= -3.1e+42) tmp = t_1; elseif (b <= 5.8e+196) tmp = Float64(-4.0 * Float64(Float64(a * t) / c_m)); else tmp = t_1; end return Float64(c_s * tmp) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp_2 = code(c_s, x, y, z, t, a, b, c_m) t_1 = b / (z * c_m); tmp = 0.0; if (b <= -3.1e+42) tmp = t_1; elseif (b <= 5.8e+196) tmp = -4.0 * ((a * t) / c_m); else tmp = t_1; end tmp_2 = c_s * tmp; end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := Block[{t$95$1 = N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]}, N[(c$95$s * If[LessEqual[b, -3.1e+42], t$95$1, If[LessEqual[b, 5.8e+196], N[(-4.0 * N[(N[(a * t), $MachinePrecision] / c$95$m), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
\begin{array}{l}
t_1 := \frac{b}{z \cdot c\_m}\\
c\_s \cdot \begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+42}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+196}:\\
\;\;\;\;-4 \cdot \frac{a \cdot t}{c\_m}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
\end{array}
if b < -3.1000000000000002e42 or 5.8e196 < b Initial program 79.2%
Taylor expanded in b around inf
Applied rewrites57.3%
if -3.1000000000000002e42 < b < 5.8e196Initial program 80.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-/.f64N/A
lower-*.f6443.1
Applied rewrites43.1%
c\_m = (fabs.f64 c) c\_s = (copysign.f64 #s(literal 1 binary64) c) (FPCore (c_s x y z t a b c_m) :precision binary64 (* c_s (/ b (* z c_m))))
c\_m = fabs(c);
c\_s = copysign(1.0, c);
double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (z * c_m));
}
c\_m = private
c\_s = private
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(c_s, x, y, z, t, a, b, c_m)
use fmin_fmax_functions
real(8), intent (in) :: c_s
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_m
code = c_s * (b / (z * c_m))
end function
c\_m = Math.abs(c);
c\_s = Math.copySign(1.0, c);
public static double code(double c_s, double x, double y, double z, double t, double a, double b, double c_m) {
return c_s * (b / (z * c_m));
}
c\_m = math.fabs(c) c\_s = math.copysign(1.0, c) def code(c_s, x, y, z, t, a, b, c_m): return c_s * (b / (z * c_m))
c\_m = abs(c) c\_s = copysign(1.0, c) function code(c_s, x, y, z, t, a, b, c_m) return Float64(c_s * Float64(b / Float64(z * c_m))) end
c\_m = abs(c); c\_s = sign(c) * abs(1.0); function tmp = code(c_s, x, y, z, t, a, b, c_m) tmp = c_s * (b / (z * c_m)); end
c\_m = N[Abs[c], $MachinePrecision]
c\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[c]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[c$95$s_, x_, y_, z_, t_, a_, b_, c$95$m_] := N[(c$95$s * N[(b / N[(z * c$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
c\_m = \left|c\right|
\\
c\_s = \mathsf{copysign}\left(1, c\right)
\\
c\_s \cdot \frac{b}{z \cdot c\_m}
\end{array}
Initial program 80.2%
Taylor expanded in b around inf
Applied rewrites36.1%
herbie shell --seed 2025117
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
(/ (+ (- (* (* x 9.0) y) (* (* (* z 4.0) t) a)) b) (* z c)))