
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 INFINITY)
t_1
(* (- i) (- (fma j y (- (/ (* z (- (* x y) (* b c))) i))) (* b a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = -i * (fma(j, y, -((z * ((x * y) - (b * c))) / i)) - (b * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(-i) * Float64(fma(j, y, Float64(-Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) / i))) - Float64(b * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[((-i) * N[(N[(j * y + (-N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision])), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(j, y, -\frac{z \cdot \left(x \cdot y - b \cdot c\right)}{i}\right) - b \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in i around -inf
Applied rewrites34.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.5
Applied rewrites55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- a) i (* c z))))
(if (<= t -1.72e-37)
(- (fma (- a) (* t x) (* (fma (- i) y (* c t)) j)) (* (- a) (* i b)))
(if (<= t 1.55e+106)
(fma (fma (- a) t (* z y)) x (* (- b) t_1))
(if (<= t 4.9e+234)
(- (fma (- a) (* t x) (* (* j t) c)) (* t_1 b))
(* (- i) (* j (- y (/ (* c t) i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, i, (c * z));
double tmp;
if (t <= -1.72e-37) {
tmp = fma(-a, (t * x), (fma(-i, y, (c * t)) * j)) - (-a * (i * b));
} else if (t <= 1.55e+106) {
tmp = fma(fma(-a, t, (z * y)), x, (-b * t_1));
} else if (t <= 4.9e+234) {
tmp = fma(-a, (t * x), ((j * t) * c)) - (t_1 * b);
} else {
tmp = -i * (j * (y - ((c * t) / i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-a), i, Float64(c * z)) tmp = 0.0 if (t <= -1.72e-37) tmp = Float64(fma(Float64(-a), Float64(t * x), Float64(fma(Float64(-i), y, Float64(c * t)) * j)) - Float64(Float64(-a) * Float64(i * b))); elseif (t <= 1.55e+106) tmp = fma(fma(Float64(-a), t, Float64(z * y)), x, Float64(Float64(-b) * t_1)); elseif (t <= 4.9e+234) tmp = Float64(fma(Float64(-a), Float64(t * x), Float64(Float64(j * t) * c)) - Float64(t_1 * b)); else tmp = Float64(Float64(-i) * Float64(j * Float64(y - Float64(Float64(c * t) / i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.72e-37], N[(N[((-a) * N[(t * x), $MachinePrecision] + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[((-a) * N[(i * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.55e+106], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[((-b) * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.9e+234], N[(N[((-a) * N[(t * x), $MachinePrecision] + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision], N[((-i) * N[(j * N[(y - N[(N[(c * t), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, i, c \cdot z\right)\\
\mathbf{if}\;t \leq -1.72 \cdot 10^{-37}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right) - \left(-a\right) \cdot \left(i \cdot b\right)\\
\mathbf{elif}\;t \leq 1.55 \cdot 10^{+106}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, t, z \cdot y\right), x, \left(-b\right) \cdot t\_1\right)\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{+234}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \left(j \cdot t\right) \cdot c\right) - t\_1 \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(j \cdot \left(y - \frac{c \cdot t}{i}\right)\right)\\
\end{array}
\end{array}
if t < -1.72000000000000008e-37Initial program 68.2%
Taylor expanded in z around 0
lower--.f64N/A
Applied rewrites64.9%
if -1.72000000000000008e-37 < t < 1.55e106Initial program 79.7%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.5%
if 1.55e106 < t < 4.89999999999999989e234Initial program 67.0%
Taylor expanded in y around 0
lower--.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.9%
if 4.89999999999999989e234 < t Initial program 55.5%
Taylor expanded in i around -inf
Applied rewrites58.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6451.3
Applied rewrites51.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- b) (fma (- a) i (* c z)))) (t_2 (fma (- a) (* t x) t_1)))
(if (<= j -1e+36)
(+ (* (* z y) x) (* j (- (* c t) (* i y))))
(if (<= j -5.2e-227)
t_2
(if (<= j 3.1e-7)
(fma (* y z) x t_1)
(if (<= j 5.6e+110) t_2 (* (- i) (* j (- y (/ (* c t) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -b * fma(-a, i, (c * z));
double t_2 = fma(-a, (t * x), t_1);
double tmp;
if (j <= -1e+36) {
tmp = ((z * y) * x) + (j * ((c * t) - (i * y)));
} else if (j <= -5.2e-227) {
tmp = t_2;
} else if (j <= 3.1e-7) {
tmp = fma((y * z), x, t_1);
} else if (j <= 5.6e+110) {
tmp = t_2;
} else {
tmp = -i * (j * (y - ((c * t) / i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-b) * fma(Float64(-a), i, Float64(c * z))) t_2 = fma(Float64(-a), Float64(t * x), t_1) tmp = 0.0 if (j <= -1e+36) tmp = Float64(Float64(Float64(z * y) * x) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (j <= -5.2e-227) tmp = t_2; elseif (j <= 3.1e-7) tmp = fma(Float64(y * z), x, t_1); elseif (j <= 5.6e+110) tmp = t_2; else tmp = Float64(Float64(-i) * Float64(j * Float64(y - Float64(Float64(c * t) / i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-b) * N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-a) * N[(t * x), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[j, -1e+36], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.2e-227], t$95$2, If[LessEqual[j, 3.1e-7], N[(N[(y * z), $MachinePrecision] * x + t$95$1), $MachinePrecision], If[LessEqual[j, 5.6e+110], t$95$2, N[((-i) * N[(j * N[(y - N[(N[(c * t), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-b\right) \cdot \mathsf{fma}\left(-a, i, c \cdot z\right)\\
t_2 := \mathsf{fma}\left(-a, t \cdot x, t\_1\right)\\
\mathbf{if}\;j \leq -1 \cdot 10^{+36}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;j \leq -5.2 \cdot 10^{-227}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, t\_1\right)\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(j \cdot \left(y - \frac{c \cdot t}{i}\right)\right)\\
\end{array}
\end{array}
if j < -1.00000000000000004e36Initial program 74.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6465.8
Applied rewrites65.8%
if -1.00000000000000004e36 < j < -5.20000000000000023e-227 or 3.1e-7 < j < 5.59999999999999973e110Initial program 74.3%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6424.2
Applied rewrites24.2%
Taylor expanded in y around 0
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lift-neg.f64N/A
lift-*.f64N/A
mul-1-negN/A
mul-1-negN/A
distribute-lft-neg-outN/A
distribute-lft-neg-outN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites55.3%
if -5.20000000000000023e-227 < j < 3.1e-7Initial program 73.2%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.1%
Taylor expanded in y around inf
lower-*.f6460.3
Applied rewrites60.3%
if 5.59999999999999973e110 < j Initial program 72.4%
Taylor expanded in i around -inf
Applied rewrites64.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6462.8
Applied rewrites62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- a) i (* c z))))
(if (<= j -4e+37)
(+ (* (* z y) x) (* j (- (* c t) (* i y))))
(if (<= j -4.3e-117)
(- (fma (- a) (* t x) (* (* j t) c)) (* t_1 b))
(if (<= j 2.2e+132)
(fma (fma (- a) t (* z y)) x (* (- b) t_1))
(* (- i) (* j (- y (/ (* c t) i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, i, (c * z));
double tmp;
if (j <= -4e+37) {
tmp = ((z * y) * x) + (j * ((c * t) - (i * y)));
} else if (j <= -4.3e-117) {
tmp = fma(-a, (t * x), ((j * t) * c)) - (t_1 * b);
} else if (j <= 2.2e+132) {
tmp = fma(fma(-a, t, (z * y)), x, (-b * t_1));
} else {
tmp = -i * (j * (y - ((c * t) / i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-a), i, Float64(c * z)) tmp = 0.0 if (j <= -4e+37) tmp = Float64(Float64(Float64(z * y) * x) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (j <= -4.3e-117) tmp = Float64(fma(Float64(-a), Float64(t * x), Float64(Float64(j * t) * c)) - Float64(t_1 * b)); elseif (j <= 2.2e+132) tmp = fma(fma(Float64(-a), t, Float64(z * y)), x, Float64(Float64(-b) * t_1)); else tmp = Float64(Float64(-i) * Float64(j * Float64(y - Float64(Float64(c * t) / i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4e+37], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e-117], N[(N[((-a) * N[(t * x), $MachinePrecision] + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.2e+132], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[((-b) * t$95$1), $MachinePrecision]), $MachinePrecision], N[((-i) * N[(j * N[(y - N[(N[(c * t), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, i, c \cdot z\right)\\
\mathbf{if}\;j \leq -4 \cdot 10^{+37}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-117}:\\
\;\;\;\;\mathsf{fma}\left(-a, t \cdot x, \left(j \cdot t\right) \cdot c\right) - t\_1 \cdot b\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+132}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, t, z \cdot y\right), x, \left(-b\right) \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(j \cdot \left(y - \frac{c \cdot t}{i}\right)\right)\\
\end{array}
\end{array}
if j < -3.99999999999999982e37Initial program 74.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6466.0
Applied rewrites66.0%
if -3.99999999999999982e37 < j < -4.3e-117Initial program 74.2%
Taylor expanded in y around 0
lower--.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.2%
if -4.3e-117 < j < 2.19999999999999989e132Initial program 73.7%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.6%
if 2.19999999999999989e132 < j Initial program 72.0%
Taylor expanded in i around -inf
Applied rewrites64.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6464.0
Applied rewrites64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.12e+36)
(+ (* (* z y) x) (* j (- (* c t) (* i y))))
(if (<= j 2.2e+132)
(fma (fma (- a) t (* z y)) x (* (- b) (fma (- a) i (* c z))))
(* (- i) (* j (- y (/ (* c t) i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.12e+36) {
tmp = ((z * y) * x) + (j * ((c * t) - (i * y)));
} else if (j <= 2.2e+132) {
tmp = fma(fma(-a, t, (z * y)), x, (-b * fma(-a, i, (c * z))));
} else {
tmp = -i * (j * (y - ((c * t) / i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.12e+36) tmp = Float64(Float64(Float64(z * y) * x) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (j <= 2.2e+132) tmp = fma(fma(Float64(-a), t, Float64(z * y)), x, Float64(Float64(-b) * fma(Float64(-a), i, Float64(c * z)))); else tmp = Float64(Float64(-i) * Float64(j * Float64(y - Float64(Float64(c * t) / i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.12e+36], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.2e+132], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[((-b) * N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-i) * N[(j * N[(y - N[(N[(c * t), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.12 \cdot 10^{+36}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+132}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-a, t, z \cdot y\right), x, \left(-b\right) \cdot \mathsf{fma}\left(-a, i, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(j \cdot \left(y - \frac{c \cdot t}{i}\right)\right)\\
\end{array}
\end{array}
if j < -1.11999999999999999e36Initial program 74.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6465.8
Applied rewrites65.8%
if -1.11999999999999999e36 < j < 2.19999999999999989e132Initial program 73.8%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.0%
if 2.19999999999999989e132 < j Initial program 72.0%
Taylor expanded in i around -inf
Applied rewrites64.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6464.0
Applied rewrites64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)) (t_2 (* j (- (* c t) (* i y)))))
(if (<= x -6.5e+125)
t_1
(if (<= x -2.5e-72)
(+ (- (* (* c b) z)) t_2)
(if (<= x 1.25e+35) (+ (* (* i b) a) t_2) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double t_2 = j * ((c * t) - (i * y));
double tmp;
if (x <= -6.5e+125) {
tmp = t_1;
} else if (x <= -2.5e-72) {
tmp = -((c * b) * z) + t_2;
} else if (x <= 1.25e+35) {
tmp = ((i * b) * a) + t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) t_2 = Float64(j * Float64(Float64(c * t) - Float64(i * y))) tmp = 0.0 if (x <= -6.5e+125) tmp = t_1; elseif (x <= -2.5e-72) tmp = Float64(Float64(-Float64(Float64(c * b) * z)) + t_2); elseif (x <= 1.25e+35) tmp = Float64(Float64(Float64(i * b) * a) + t_2); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e+125], t$95$1, If[LessEqual[x, -2.5e-72], N[((-N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]) + t$95$2), $MachinePrecision], If[LessEqual[x, 1.25e+35], N[(N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
t_2 := j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.5 \cdot 10^{-72}:\\
\;\;\;\;\left(-\left(c \cdot b\right) \cdot z\right) + t\_2\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+35}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -6.4999999999999999e125 or 1.25000000000000005e35 < x Initial program 71.9%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.8
Applied rewrites63.8%
if -6.4999999999999999e125 < x < -2.4999999999999998e-72Initial program 75.8%
Taylor expanded in c around inf
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6449.6
Applied rewrites49.6%
if -2.4999999999999998e-72 < x < 1.25000000000000005e35Initial program 74.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6460.4
Applied rewrites60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -6.5e+125)
t_1
(if (<= x 1.25e+35) (+ (* (* i b) a) (* j (- (* c t) (* i y)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -6.5e+125) {
tmp = t_1;
} else if (x <= 1.25e+35) {
tmp = ((i * b) * a) + (j * ((c * t) - (i * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -6.5e+125) tmp = t_1; elseif (x <= 1.25e+35) tmp = Float64(Float64(Float64(i * b) * a) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.5e+125], t$95$1, If[LessEqual[x, 1.25e+35], N[(N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+35}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -6.4999999999999999e125 or 1.25000000000000005e35 < x Initial program 71.9%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.8
Applied rewrites63.8%
if -6.4999999999999999e125 < x < 1.25000000000000005e35Initial program 74.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6457.6
Applied rewrites57.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) x (* j c)) t)))
(if (<= t -5.8e-37)
t_1
(if (<= t 1.4e+114)
(fma (* y z) x (* (- b) (fma (- a) i (* c z))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, x, (j * c)) * t;
double tmp;
if (t <= -5.8e-37) {
tmp = t_1;
} else if (t <= 1.4e+114) {
tmp = fma((y * z), x, (-b * fma(-a, i, (c * z))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), x, Float64(j * c)) * t) tmp = 0.0 if (t <= -5.8e-37) tmp = t_1; elseif (t <= 1.4e+114) tmp = fma(Float64(y * z), x, Float64(Float64(-b) * fma(Float64(-a), i, Float64(c * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.8e-37], t$95$1, If[LessEqual[t, 1.4e+114], N[(N[(y * z), $MachinePrecision] * x + N[((-b) * N[((-a) * i + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, \left(-b\right) \cdot \mathsf{fma}\left(-a, i, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.80000000000000009e-37 or 1.4e114 < t Initial program 66.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.4
Applied rewrites62.4%
if -5.80000000000000009e-37 < t < 1.4e114Initial program 79.6%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.4%
Taylor expanded in y around inf
lower-*.f6458.1
Applied rewrites58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma (- t) x (* b i)))))
(if (<= a -2.9e-47)
t_1
(if (<= a -3.8e-227)
(* (fma i a (* (- c) z)) b)
(if (<= a -1.5e-304)
(* x (* y z))
(if (<= a 3.3e-83) (* c (* j t)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(-t, x, (b * i));
double tmp;
if (a <= -2.9e-47) {
tmp = t_1;
} else if (a <= -3.8e-227) {
tmp = fma(i, a, (-c * z)) * b;
} else if (a <= -1.5e-304) {
tmp = x * (y * z);
} else if (a <= 3.3e-83) {
tmp = c * (j * t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(Float64(-t), x, Float64(b * i))) tmp = 0.0 if (a <= -2.9e-47) tmp = t_1; elseif (a <= -3.8e-227) tmp = Float64(fma(i, a, Float64(Float64(-c) * z)) * b); elseif (a <= -1.5e-304) tmp = Float64(x * Float64(y * z)); elseif (a <= 3.3e-83) tmp = Float64(c * Float64(j * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[((-t) * x + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e-47], t$95$1, If[LessEqual[a, -3.8e-227], N[(N[(i * a + N[((-c) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, -1.5e-304], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-83], N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(-t, x, b \cdot i\right)\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{-47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-227}:\\
\;\;\;\;\mathsf{fma}\left(i, a, \left(-c\right) \cdot z\right) \cdot b\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-304}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-83}:\\
\;\;\;\;c \cdot \left(j \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.9e-47 or 3.2999999999999999e-83 < a Initial program 69.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.2%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6430.9
Applied rewrites30.9%
Taylor expanded in a around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f6455.2
Applied rewrites55.2%
if -2.9e-47 < a < -3.8000000000000001e-227Initial program 81.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6434.5
Applied rewrites34.5%
if -3.8000000000000001e-227 < a < -1.5000000000000001e-304Initial program 80.4%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6424.6
Applied rewrites24.6%
if -1.5000000000000001e-304 < a < 3.2999999999999999e-83Initial program 80.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6433.5
Applied rewrites33.5%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.5e-24)
(* (* c j) t)
(if (<= j -2.7e-232)
(- (* (* b c) z))
(if (<= j 2100.0)
(* (* x y) z)
(if (<= j 3.5e+131) (* (- a) (* t x)) (* c (* j t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e-24) {
tmp = (c * j) * t;
} else if (j <= -2.7e-232) {
tmp = -((b * c) * z);
} else if (j <= 2100.0) {
tmp = (x * y) * z;
} else if (j <= 3.5e+131) {
tmp = -a * (t * x);
} else {
tmp = c * (j * t);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-7.5d-24)) then
tmp = (c * j) * t
else if (j <= (-2.7d-232)) then
tmp = -((b * c) * z)
else if (j <= 2100.0d0) then
tmp = (x * y) * z
else if (j <= 3.5d+131) then
tmp = -a * (t * x)
else
tmp = c * (j * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e-24) {
tmp = (c * j) * t;
} else if (j <= -2.7e-232) {
tmp = -((b * c) * z);
} else if (j <= 2100.0) {
tmp = (x * y) * z;
} else if (j <= 3.5e+131) {
tmp = -a * (t * x);
} else {
tmp = c * (j * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -7.5e-24: tmp = (c * j) * t elif j <= -2.7e-232: tmp = -((b * c) * z) elif j <= 2100.0: tmp = (x * y) * z elif j <= 3.5e+131: tmp = -a * (t * x) else: tmp = c * (j * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.5e-24) tmp = Float64(Float64(c * j) * t); elseif (j <= -2.7e-232) tmp = Float64(-Float64(Float64(b * c) * z)); elseif (j <= 2100.0) tmp = Float64(Float64(x * y) * z); elseif (j <= 3.5e+131) tmp = Float64(Float64(-a) * Float64(t * x)); else tmp = Float64(c * Float64(j * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -7.5e-24) tmp = (c * j) * t; elseif (j <= -2.7e-232) tmp = -((b * c) * z); elseif (j <= 2100.0) tmp = (x * y) * z; elseif (j <= 3.5e+131) tmp = -a * (t * x); else tmp = c * (j * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.5e-24], N[(N[(c * j), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, -2.7e-232], (-N[(N[(b * c), $MachinePrecision] * z), $MachinePrecision]), If[LessEqual[j, 2100.0], N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 3.5e+131], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{-24}:\\
\;\;\;\;\left(c \cdot j\right) \cdot t\\
\mathbf{elif}\;j \leq -2.7 \cdot 10^{-232}:\\
\;\;\;\;-\left(b \cdot c\right) \cdot z\\
\mathbf{elif}\;j \leq 2100:\\
\;\;\;\;\left(x \cdot y\right) \cdot z\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{+131}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot t\right)\\
\end{array}
\end{array}
if j < -7.50000000000000007e-24Initial program 74.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.0
Applied rewrites46.0%
Taylor expanded in x around 0
lower-*.f6432.9
Applied rewrites32.9%
if -7.50000000000000007e-24 < j < -2.6999999999999999e-232Initial program 72.6%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in c around inf
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6425.5
Applied rewrites25.5%
if -2.6999999999999999e-232 < j < 2100Initial program 73.2%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.7%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.7
Applied rewrites25.7%
Taylor expanded in y around inf
associate-*r*N/A
lower-*.f64N/A
lift-*.f6424.0
Applied rewrites24.0%
if 2100 < j < 3.4999999999999999e131Initial program 76.8%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6422.5
Applied rewrites22.5%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lift-neg.f64N/A
lift-*.f6422.5
Applied rewrites22.5%
if 3.4999999999999999e131 < j Initial program 72.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.6
Applied rewrites50.6%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6440.3
Applied rewrites40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma y x (* (- b) c)) z)))
(if (<= z -1.5e-14)
t_1
(if (<= z -1.3e-285)
(* a (fma (- t) x (* b i)))
(if (<= z 4.3e+20) (* (fma (- a) x (* j c)) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(y, x, (-b * c)) * z;
double tmp;
if (z <= -1.5e-14) {
tmp = t_1;
} else if (z <= -1.3e-285) {
tmp = a * fma(-t, x, (b * i));
} else if (z <= 4.3e+20) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(y, x, Float64(Float64(-b) * c)) * z) tmp = 0.0 if (z <= -1.5e-14) tmp = t_1; elseif (z <= -1.3e-285) tmp = Float64(a * fma(Float64(-t), x, Float64(b * i))); elseif (z <= 4.3e+20) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.5e-14], t$95$1, If[LessEqual[z, -1.3e-285], N[(a * N[((-t) * x + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+20], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-285}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(-t, x, b \cdot i\right)\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+20}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.4999999999999999e-14 or 4.3e20 < z Initial program 66.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6458.2
Applied rewrites58.2%
if -1.4999999999999999e-14 < z < -1.3000000000000001e-285Initial program 80.4%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
Taylor expanded in a around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f6447.0
Applied rewrites47.0%
if -1.3000000000000001e-285 < z < 4.3e20Initial program 80.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.0
Applied rewrites46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma (- t) x (* b i)))))
(if (<= a -5.2e-139)
t_1
(if (<= a -1.85e-302)
(- (* (* b c) z))
(if (<= a 3.3e-83) (* c (* j t)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(-t, x, (b * i));
double tmp;
if (a <= -5.2e-139) {
tmp = t_1;
} else if (a <= -1.85e-302) {
tmp = -((b * c) * z);
} else if (a <= 3.3e-83) {
tmp = c * (j * t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(Float64(-t), x, Float64(b * i))) tmp = 0.0 if (a <= -5.2e-139) tmp = t_1; elseif (a <= -1.85e-302) tmp = Float64(-Float64(Float64(b * c) * z)); elseif (a <= 3.3e-83) tmp = Float64(c * Float64(j * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[((-t) * x + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e-139], t$95$1, If[LessEqual[a, -1.85e-302], (-N[(N[(b * c), $MachinePrecision] * z), $MachinePrecision]), If[LessEqual[a, 3.3e-83], N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(-t, x, b \cdot i\right)\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.85 \cdot 10^{-302}:\\
\;\;\;\;-\left(b \cdot c\right) \cdot z\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-83}:\\
\;\;\;\;c \cdot \left(j \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.1999999999999996e-139 or 3.2999999999999999e-83 < a Initial program 70.4%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6429.2
Applied rewrites29.2%
Taylor expanded in a around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f6451.9
Applied rewrites51.9%
if -5.1999999999999996e-139 < a < -1.85e-302Initial program 81.4%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f648.0
Applied rewrites8.0%
Taylor expanded in c around inf
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if -1.85e-302 < a < 3.2999999999999999e-83Initial program 80.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6433.7
Applied rewrites33.7%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6427.7
Applied rewrites27.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x y) z)))
(if (<= z -1.9e+262)
(* (* c j) t)
(if (<= z -3.45e-15)
t_1
(if (<= z -1.42e-285)
(* a (* b i))
(if (<= z 1.7e+43) (* c (* j t)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * z;
double tmp;
if (z <= -1.9e+262) {
tmp = (c * j) * t;
} else if (z <= -3.45e-15) {
tmp = t_1;
} else if (z <= -1.42e-285) {
tmp = a * (b * i);
} else if (z <= 1.7e+43) {
tmp = c * (j * t);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * y) * z
if (z <= (-1.9d+262)) then
tmp = (c * j) * t
else if (z <= (-3.45d-15)) then
tmp = t_1
else if (z <= (-1.42d-285)) then
tmp = a * (b * i)
else if (z <= 1.7d+43) then
tmp = c * (j * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * z;
double tmp;
if (z <= -1.9e+262) {
tmp = (c * j) * t;
} else if (z <= -3.45e-15) {
tmp = t_1;
} else if (z <= -1.42e-285) {
tmp = a * (b * i);
} else if (z <= 1.7e+43) {
tmp = c * (j * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * y) * z tmp = 0 if z <= -1.9e+262: tmp = (c * j) * t elif z <= -3.45e-15: tmp = t_1 elif z <= -1.42e-285: tmp = a * (b * i) elif z <= 1.7e+43: tmp = c * (j * t) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * y) * z) tmp = 0.0 if (z <= -1.9e+262) tmp = Float64(Float64(c * j) * t); elseif (z <= -3.45e-15) tmp = t_1; elseif (z <= -1.42e-285) tmp = Float64(a * Float64(b * i)); elseif (z <= 1.7e+43) tmp = Float64(c * Float64(j * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * y) * z; tmp = 0.0; if (z <= -1.9e+262) tmp = (c * j) * t; elseif (z <= -3.45e-15) tmp = t_1; elseif (z <= -1.42e-285) tmp = a * (b * i); elseif (z <= 1.7e+43) tmp = c * (j * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.9e+262], N[(N[(c * j), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -3.45e-15], t$95$1, If[LessEqual[z, -1.42e-285], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+43], N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y\right) \cdot z\\
\mathbf{if}\;z \leq -1.9 \cdot 10^{+262}:\\
\;\;\;\;\left(c \cdot j\right) \cdot t\\
\mathbf{elif}\;z \leq -3.45 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.42 \cdot 10^{-285}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(j \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.90000000000000017e262Initial program 55.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6429.0
Applied rewrites29.0%
Taylor expanded in x around 0
lower-*.f6414.6
Applied rewrites14.6%
if -1.90000000000000017e262 < z < -3.45000000000000005e-15 or 1.70000000000000006e43 < z Initial program 67.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6419.7
Applied rewrites19.7%
Taylor expanded in y around inf
associate-*r*N/A
lower-*.f64N/A
lift-*.f6431.0
Applied rewrites31.0%
if -3.45000000000000005e-15 < z < -1.42e-285Initial program 80.4%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.0%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if -1.42e-285 < z < 1.70000000000000006e43Initial program 80.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.8
Applied rewrites45.8%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -2.2e+19)
t_1
(if (<= x 102000000.0) (* (fma j t (* (- b) z)) c) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -2.2e+19) {
tmp = t_1;
} else if (x <= 102000000.0) {
tmp = fma(j, t, (-b * z)) * c;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -2.2e+19) tmp = t_1; elseif (x <= 102000000.0) tmp = Float64(fma(j, t, Float64(Float64(-b) * z)) * c); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.2e+19], t$95$1, If[LessEqual[x, 102000000.0], N[(N[(j * t + N[((-b) * z), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 102000000:\\
\;\;\;\;\mathsf{fma}\left(j, t, \left(-b\right) \cdot z\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.2e19 or 1.02e8 < x Initial program 73.4%
Taylor expanded in x around inf
*-commutativeN/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.4
Applied rewrites59.4%
if -2.2e19 < x < 1.02e8Initial program 73.8%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6446.4
Applied rewrites46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma y x (* (- b) c)) z)))
(if (<= z -1.5e-14)
t_1
(if (<= z 280000000000.0) (* a (fma (- t) x (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(y, x, (-b * c)) * z;
double tmp;
if (z <= -1.5e-14) {
tmp = t_1;
} else if (z <= 280000000000.0) {
tmp = a * fma(-t, x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(y, x, Float64(Float64(-b) * c)) * z) tmp = 0.0 if (z <= -1.5e-14) tmp = t_1; elseif (z <= 280000000000.0) tmp = Float64(a * fma(Float64(-t), x, Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * x + N[((-b) * c), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.5e-14], t$95$1, If[LessEqual[z, 280000000000.0], N[(a * N[((-t) * x + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \left(-b\right) \cdot c\right) \cdot z\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 280000000000:\\
\;\;\;\;a \cdot \mathsf{fma}\left(-t, x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.4999999999999999e-14 or 2.8e11 < z Initial program 66.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6457.9
Applied rewrites57.9%
if -1.4999999999999999e-14 < z < 2.8e11Initial program 80.6%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.5
Applied rewrites25.5%
Taylor expanded in a around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f6446.3
Applied rewrites46.3%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (fma j t (* (- b) z)) c))) (if (<= c -7e-64) t_1 (if (<= c 2.8e-30) (* a (fma (- t) x (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, t, (-b * z)) * c;
double tmp;
if (c <= -7e-64) {
tmp = t_1;
} else if (c <= 2.8e-30) {
tmp = a * fma(-t, x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(j, t, Float64(Float64(-b) * z)) * c) tmp = 0.0 if (c <= -7e-64) tmp = t_1; elseif (c <= 2.8e-30) tmp = Float64(a * fma(Float64(-t), x, Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * t + N[((-b) * z), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -7e-64], t$95$1, If[LessEqual[c, 2.8e-30], N[(a * N[((-t) * x + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-b\right) \cdot z\right) \cdot c\\
\mathbf{if}\;c \leq -7 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{-30}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(-t, x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -7.0000000000000006e-64 or 2.79999999999999988e-30 < c Initial program 68.1%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f6456.5
Applied rewrites56.5%
if -7.0000000000000006e-64 < c < 2.79999999999999988e-30Initial program 81.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in a around inf
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
lower-*.f6446.8
Applied rewrites46.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -7.5e-24)
(* (* c j) t)
(if (<= j -2.7e-232)
(- (* (* b c) z))
(if (<= j 4.8e+24) (* (* x y) z) (* c (* j t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e-24) {
tmp = (c * j) * t;
} else if (j <= -2.7e-232) {
tmp = -((b * c) * z);
} else if (j <= 4.8e+24) {
tmp = (x * y) * z;
} else {
tmp = c * (j * t);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-7.5d-24)) then
tmp = (c * j) * t
else if (j <= (-2.7d-232)) then
tmp = -((b * c) * z)
else if (j <= 4.8d+24) then
tmp = (x * y) * z
else
tmp = c * (j * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e-24) {
tmp = (c * j) * t;
} else if (j <= -2.7e-232) {
tmp = -((b * c) * z);
} else if (j <= 4.8e+24) {
tmp = (x * y) * z;
} else {
tmp = c * (j * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -7.5e-24: tmp = (c * j) * t elif j <= -2.7e-232: tmp = -((b * c) * z) elif j <= 4.8e+24: tmp = (x * y) * z else: tmp = c * (j * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.5e-24) tmp = Float64(Float64(c * j) * t); elseif (j <= -2.7e-232) tmp = Float64(-Float64(Float64(b * c) * z)); elseif (j <= 4.8e+24) tmp = Float64(Float64(x * y) * z); else tmp = Float64(c * Float64(j * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -7.5e-24) tmp = (c * j) * t; elseif (j <= -2.7e-232) tmp = -((b * c) * z); elseif (j <= 4.8e+24) tmp = (x * y) * z; else tmp = c * (j * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.5e-24], N[(N[(c * j), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, -2.7e-232], (-N[(N[(b * c), $MachinePrecision] * z), $MachinePrecision]), If[LessEqual[j, 4.8e+24], N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision], N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{-24}:\\
\;\;\;\;\left(c \cdot j\right) \cdot t\\
\mathbf{elif}\;j \leq -2.7 \cdot 10^{-232}:\\
\;\;\;\;-\left(b \cdot c\right) \cdot z\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+24}:\\
\;\;\;\;\left(x \cdot y\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(j \cdot t\right)\\
\end{array}
\end{array}
if j < -7.50000000000000007e-24Initial program 74.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.0
Applied rewrites46.0%
Taylor expanded in x around 0
lower-*.f6432.9
Applied rewrites32.9%
if -7.50000000000000007e-24 < j < -2.6999999999999999e-232Initial program 72.6%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.6%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in c around inf
mul-1-negN/A
lower-neg.f64N/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6425.5
Applied rewrites25.5%
if -2.6999999999999999e-232 < j < 4.8000000000000001e24Initial program 73.3%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y around inf
associate-*r*N/A
lower-*.f64N/A
lift-*.f6423.7
Applied rewrites23.7%
if 4.8000000000000001e24 < j Initial program 74.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.4
Applied rewrites46.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6434.0
Applied rewrites34.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* j t))))
(if (<= t -6000000000.0)
t_1
(if (<= t -2.6e-250)
(* a (* b i))
(if (<= t 3.15e+119) (* x (* y z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (j * t);
double tmp;
if (t <= -6000000000.0) {
tmp = t_1;
} else if (t <= -2.6e-250) {
tmp = a * (b * i);
} else if (t <= 3.15e+119) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (j * t)
if (t <= (-6000000000.0d0)) then
tmp = t_1
else if (t <= (-2.6d-250)) then
tmp = a * (b * i)
else if (t <= 3.15d+119) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (j * t);
double tmp;
if (t <= -6000000000.0) {
tmp = t_1;
} else if (t <= -2.6e-250) {
tmp = a * (b * i);
} else if (t <= 3.15e+119) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (j * t) tmp = 0 if t <= -6000000000.0: tmp = t_1 elif t <= -2.6e-250: tmp = a * (b * i) elif t <= 3.15e+119: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(j * t)) tmp = 0.0 if (t <= -6000000000.0) tmp = t_1; elseif (t <= -2.6e-250) tmp = Float64(a * Float64(b * i)); elseif (t <= 3.15e+119) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (j * t); tmp = 0.0; if (t <= -6000000000.0) tmp = t_1; elseif (t <= -2.6e-250) tmp = a * (b * i); elseif (t <= 3.15e+119) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6000000000.0], t$95$1, If[LessEqual[t, -2.6e-250], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.15e+119], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(j \cdot t\right)\\
\mathbf{if}\;t \leq -6000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-250}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 3.15 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6e9 or 3.1499999999999999e119 < t Initial program 64.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6437.3
Applied rewrites37.3%
if -6e9 < t < -2.60000000000000008e-250Initial program 79.1%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.0%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if -2.60000000000000008e-250 < t < 3.1499999999999999e119Initial program 79.7%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6424.4
Applied rewrites24.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* j t)))) (if (<= t -6000000000.0) t_1 (if (<= t 1.4e+48) (* a (* b i)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (j * t);
double tmp;
if (t <= -6000000000.0) {
tmp = t_1;
} else if (t <= 1.4e+48) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (j * t)
if (t <= (-6000000000.0d0)) then
tmp = t_1
else if (t <= 1.4d+48) then
tmp = a * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (j * t);
double tmp;
if (t <= -6000000000.0) {
tmp = t_1;
} else if (t <= 1.4e+48) {
tmp = a * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (j * t) tmp = 0 if t <= -6000000000.0: tmp = t_1 elif t <= 1.4e+48: tmp = a * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(j * t)) tmp = 0.0 if (t <= -6000000000.0) tmp = t_1; elseif (t <= 1.4e+48) tmp = Float64(a * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (j * t); tmp = 0.0; if (t <= -6000000000.0) tmp = t_1; elseif (t <= 1.4e+48) tmp = a * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6000000000.0], t$95$1, If[LessEqual[t, 1.4e+48], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(j \cdot t\right)\\
\mathbf{if}\;t \leq -6000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+48}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6e9 or 1.40000000000000006e48 < t Initial program 65.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.8
Applied rewrites62.8%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6436.1
Applied rewrites36.1%
if -6e9 < t < 1.40000000000000006e48Initial program 80.5%
Taylor expanded in j around 0
fp-cancel-sub-sign-invN/A
*-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
mul-1-negN/A
associate-*r*N/A
+-commutativeN/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.2%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* j t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (j * 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, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = c * (j * t)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (j * t);
}
def code(x, y, z, t, a, b, c, i, j): return c * (j * t)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(j * t)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (j * t); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(j \cdot t\right)
\end{array}
Initial program 73.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
mul-1-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6440.4
Applied rewrites40.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6422.7
Applied rewrites22.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2025095
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))