
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, 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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, 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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* j (- (* c a) (* y i)))))
(if (<= (+ (- t_1 (* b (- (* c z) (* t i)))) t_2) INFINITY)
(+ (- t_1 (134-z0z1z2z3z4 b z c t i)) t_2)
(* j (- (* a c) (* i y))))))\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;\left(t\_1 - b \cdot \left(c \cdot z - t \cdot i\right)\right) + t\_2 \leq \infty:\\
\;\;\;\;\left(t\_1 - \mathsf{134\_z0z1z2z3z4}\left(b, z, c, t, i\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 73.9%
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
sub-negate-revN/A
lift--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
remove-double-negN/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-134-z0z1z2z3z478.1%
Applied rewrites78.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))))
(if (<= (+ t_1 (* j (- (* c a) (* y i)))) INFINITY)
(+ t_1 (134-z0z1z2z3z4 j c a y i))
(* j (- (* a c) (* i y))))))\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\\
\mathbf{if}\;t\_1 + j \cdot \left(c \cdot a - y \cdot i\right) \leq \infty:\\
\;\;\;\;t\_1 + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 73.9%
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
sub-negate-revN/A
lift--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
remove-double-negN/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z478.1%
Applied rewrites78.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
(* j (- (* c a) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* j (- (* a c) (* i y))))))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) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (i * y));
}
return tmp;
}
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) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = j * ((a * c) - (i * y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = j * ((a * c) - (i * y)) 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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); 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) - (t * i)))) + (j * ((c * a) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = j * ((a * c) - (i * y)); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 73.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i)))))
(if (<=
j
-2561194933379311/26959946667150639794667015087019630673637144422540572481103610249216)
(+ (134-z0z1z2z3z4 t i b x a) t_1)
(if (<=
j
1210964111994553/6210072369202835740595917953850010221027544068466786444556208152104203810745507545323513635314585911801950922788524292824686320176459257565777149100164724556817819904083399622201061142526393779301051996774865875003571387415264231424)
(-
(+ (* -1 (* a (* t x))) (* a (* c j)))
(* b (- (* c z) (* i t))))
(if (<=
j
1725436586697641/6901746346790563787434755862277025452451108972170386555162524223799296)
(+
(* -1 (* t (- (* a x) (* b i))))
(134-z0z1z2z3z4 j c a y i))
(+ (* z (- (* x y) (* b c))) t_1))))))\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;j \leq \frac{-2561194933379311}{26959946667150639794667015087019630673637144422540572481103610249216}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(t, i, b, x, a\right) + t\_1\\
\mathbf{elif}\;j \leq \frac{1210964111994553}{6210072369202835740595917953850010221027544068466786444556208152104203810745507545323513635314585911801950922788524292824686320176459257565777149100164724556817819904083399622201061142526393779301051996774865875003571387415264231424}:\\
\;\;\;\;\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)\\
\mathbf{elif}\;j \leq \frac{1725436586697641}{6901746346790563787434755862277025452451108972170386555162524223799296}:\\
\;\;\;\;-1 \cdot \left(t \cdot \left(a \cdot x - b \cdot i\right)\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\end{array}
if j < -9.5000000000000008e-53Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
distribute-rgt-neg-inN/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
add-flipN/A
sub-negateN/A
distribute-lft-neg-outN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z462.8%
Applied rewrites62.8%
if -9.5000000000000008e-53 < j < 1.95e-217Initial program 73.9%
Taylor expanded in y around 0
lower--.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6458.6%
Applied rewrites58.6%
if 1.95e-217 < j < 2.5000000000000001e-55Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
if 2.5000000000000001e-55 < j Initial program 73.9%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.4%
Applied rewrites59.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2 (+ (* z (- (* x y) (* b c))) t_1)))
(if (<=
c
-1968499104217263/803469022129495137770981046170581301261101496891396417650688)
t_2
(if (<= c 82000000000000000000)
(+ (134-z0z1z2z3z4 t i b x a) t_1)
(if (<=
c
69999999999999996580030472474645924373724123228303516896266087234014582066249714282948715224206381596671128141369967796948637772753867451648450151483935177956392565768613975005440655767603603570688)
t_2
(134-z0z1z2z3z4 c j a z b))))))\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\mathbf{if}\;c \leq \frac{-1968499104217263}{803469022129495137770981046170581301261101496891396417650688}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 82000000000000000000:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(t, i, b, x, a\right) + t\_1\\
\mathbf{elif}\;c \leq 69999999999999996580030472474645924373724123228303516896266087234014582066249714282948715224206381596671128141369967796948637772753867451648450151483935177956392565768613975005440655767603603570688:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -2.4499999999999999e-45 or 8.2e19 < c < 6.9999999999999997e196Initial program 73.9%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.4%
Applied rewrites59.4%
if -2.4499999999999999e-45 < c < 8.2e19Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
distribute-rgt-neg-inN/A
lift--.f64N/A
lift-*.f64N/A
fp-cancel-sub-sign-invN/A
add-flipN/A
sub-negateN/A
distribute-lft-neg-outN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z462.8%
Applied rewrites62.8%
if 6.9999999999999997e196 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
j
1725436586697641/6901746346790563787434755862277025452451108972170386555162524223799296)
(+ (* -1 (* t (- (* a x) (* b i)))) (134-z0z1z2z3z4 j c a y i))
(+ (* z (- (* x y) (* b c))) (* j (- (* c a) (* y i))))))\begin{array}{l}
\mathbf{if}\;j \leq \frac{1725436586697641}{6901746346790563787434755862277025452451108972170386555162524223799296}:\\
\;\;\;\;-1 \cdot \left(t \cdot \left(a \cdot x - b \cdot i\right)\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\end{array}
if j < 2.5000000000000001e-55Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
if 2.5000000000000001e-55 < j Initial program 73.9%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.4%
Applied rewrites59.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2 (+ (* b (* i t)) (134-z0z1z2z3z4 j c a y i))))
(if (<=
i
-6600000000000000170498070795170432660144950935994891604555722343977806925614311324299607146496)
t_2
(if (<= i 749999999999999941246189568)
(+ (* z (- (* x y) (* b c))) t_1)
(if (<=
i
27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600)
t_2
(+ (* -1 (* b (* c z))) t_1))))))\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := b \cdot \left(i \cdot t\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{if}\;i \leq -6600000000000000170498070795170432660144950935994891604555722343977806925614311324299607146496:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 749999999999999941246189568:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\mathbf{elif}\;i \leq 27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(b \cdot \left(c \cdot z\right)\right) + t\_1\\
\end{array}
if i < -6.6000000000000002e93 or 7.4999999999999994e26 < i < 2.7000000000000001e214Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6451.7%
Applied rewrites51.7%
if -6.6000000000000002e93 < i < 7.4999999999999994e26Initial program 73.9%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.4%
Applied rewrites59.4%
if 2.7000000000000001e214 < i Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6450.0%
Applied rewrites50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* i t)) (134-z0z1z2z3z4 j c a y i))))
(if (<=
i
-55000000000000000981369353015810551861615715402103866681329908659147537121280)
t_1
(if (<=
i
8620287417370625/11972621413014756705924586149611790497021399392059392)
(+ (* j (- (* a c) (* i y))) (* x (- (* y z) (* a t))))
(if (<=
i
27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600)
t_1
(+ (* -1 (* b (* c z))) (* j (- (* c a) (* y i)))))))))\begin{array}{l}
t_1 := b \cdot \left(i \cdot t\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{if}\;i \leq -55000000000000000981369353015810551861615715402103866681329908659147537121280:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq \frac{8620287417370625}{11972621413014756705924586149611790497021399392059392}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)\\
\mathbf{elif}\;i \leq 27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(b \cdot \left(c \cdot z\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\end{array}
if i < -5.5000000000000001e76 or 7.2000000000000001e-37 < i < 2.7000000000000001e214Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6451.7%
Applied rewrites51.7%
if -5.5000000000000001e76 < i < 7.2000000000000001e-37Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
if 2.7000000000000001e214 < i Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6450.0%
Applied rewrites50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* i t)) (134-z0z1z2z3z4 j c a y i))))
(if (<=
i
-749999999999999992703876120785120969834346383151554625536)
t_1
(if (<=
i
8612299728833109/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728)
(+ (* a (* c j)) (134-z0z1z2z3z4 x z y t a))
(if (<=
i
27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600)
t_1
(+ (* -1 (* b (* c z))) (* j (- (* c a) (* y i)))))))))\begin{array}{l}
t_1 := b \cdot \left(i \cdot t\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{if}\;i \leq -749999999999999992703876120785120969834346383151554625536:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq \frac{8612299728833109}{273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + \mathsf{134\_z0z1z2z3z4}\left(x, z, y, t, a\right)\\
\mathbf{elif}\;i \leq 27000000000000000922834500647727241045210369510666415635740567789841827394974450876641813549004880291063176848469465534841235627977264177678370097423367893744448087470656798904802291653415713371904815015478794649600:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(b \cdot \left(c \cdot z\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\end{array}
if i < -7.4999999999999999e56 or 3.1499999999999998e-83 < i < 2.7000000000000001e214Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6451.7%
Applied rewrites51.7%
if -7.4999999999999999e56 < i < 3.1499999999999998e-83Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
sub-negate-revN/A
lift--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
remove-double-negN/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z453.4%
Applied rewrites53.4%
if 2.7000000000000001e214 < i Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6450.0%
Applied rewrites50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* b (* i t)) (134-z0z1z2z3z4 j c a y i))))
(if (<=
i
-749999999999999992703876120785120969834346383151554625536)
t_1
(if (<=
i
8612299728833109/273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728)
(+ (* a (* c j)) (134-z0z1z2z3z4 x z y t a))
(if (<=
i
36000000000000001230446000863636321393613826014221887514320757053122436526632601168855751398673173721417569131292620713121647503969685570237826796564490524992597449960875731873069722204554284495873086687305059532800)
t_1
(* j (- (* a c) (* i y))))))))\begin{array}{l}
t_1 := b \cdot \left(i \cdot t\right) + \mathsf{134\_z0z1z2z3z4}\left(j, c, a, y, i\right)\\
\mathbf{if}\;i \leq -749999999999999992703876120785120969834346383151554625536:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq \frac{8612299728833109}{273406340597876490546562778389702670669146178861651554553221325801244124899921990402939147127881728}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + \mathsf{134\_z0z1z2z3z4}\left(x, z, y, t, a\right)\\
\mathbf{elif}\;i \leq 36000000000000001230446000863636321393613826014221887514320757053122436526632601168855751398673173721417569131292620713121647503969685570237826796564490524992597449960875731873069722204554284495873086687305059532800:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\end{array}
if i < -7.4999999999999999e56 or 3.1499999999999998e-83 < i < 3.6000000000000001e214Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-134-z0z1z2z3z462.7%
Applied rewrites62.7%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6451.7%
Applied rewrites51.7%
if -7.4999999999999999e56 < i < 3.1499999999999998e-83Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
sub-negate-revN/A
lift--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
remove-double-negN/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z453.4%
Applied rewrites53.4%
if 3.6000000000000001e214 < i Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-8021834716940879/102844034832575377634685573909834406561420991602098741459288064)
(+ (* -1 (* b (* c z))) (* j (- (* c a) (* y i))))
(if (<= c 11500000000000001048576)
(+ (* -1 (* t (- (* a x) (* b i)))) (* j (* a c)))
(134-z0z1z2z3z4 c j a z b))))\begin{array}{l}
\mathbf{if}\;c \leq \frac{-8021834716940879}{102844034832575377634685573909834406561420991602098741459288064}:\\
\;\;\;\;-1 \cdot \left(b \cdot \left(c \cdot z\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{elif}\;c \leq 11500000000000001048576:\\
\;\;\;\;-1 \cdot \left(t \cdot \left(a \cdot x - b \cdot i\right)\right) + j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -7.7999999999999996e-47Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6450.0%
Applied rewrites50.0%
if -7.7999999999999996e-47 < c < 1.1500000000000001e22Initial program 73.9%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.3%
Applied rewrites59.3%
Taylor expanded in y around 0
lower-*.f6449.4%
Applied rewrites49.4%
if 1.1500000000000001e22 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832)
(* c (- (* a j) (* b z)))
(if (<=
c
-2639280756911205/3105036184601417870297958976925005110513772034233393222278104076052101905372753772661756817657292955900975461394262146412343160088229628782888574550082362278408909952041699811100530571263196889650525998387432937501785693707632115712)
(+ (* b (* i t)) (* j (- (* c a) (* y i))))
(if (<= c 1720000000)
(* -1 (* i (- (* j y) (* b t))))
(134-z0z1z2z3z4 c j a z b)))))\begin{array}{l}
\mathbf{if}\;c \leq -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;c \leq \frac{-2639280756911205}{3105036184601417870297958976925005110513772034233393222278104076052101905372753772661756817657292955900975461394262146412343160088229628782888574550082362278408909952041699811100530571263196889650525998387432937501785693707632115712}:\\
\;\;\;\;b \cdot \left(i \cdot t\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{elif}\;c \leq 1720000000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot y - b \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -3.3999999999999998e189Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -3.3999999999999998e189 < c < -8.4999999999999994e-217Initial program 73.9%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f6449.8%
Applied rewrites49.8%
if -8.4999999999999994e-217 < c < 1.72e9Initial program 73.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if 1.72e9 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-1220000000000000007013907797317579868768389929320174277104788231821610384184081590843392043250260152214957873851109129026390557322570104832)
(* c (- (* a j) (* b z)))
(if (<= c 1720000000)
(* -1 (* i (- (* j y) (* b t))))
(134-z0z1z2z3z4 c j a z b))))\begin{array}{l}
\mathbf{if}\;c \leq -1220000000000000007013907797317579868768389929320174277104788231821610384184081590843392043250260152214957873851109129026390557322570104832:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;c \leq 1720000000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot y - b \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -1.22e138Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -1.22e138 < c < 1.72e9Initial program 73.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if 1.72e9 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832)
(* c (- (* a j) (* b z)))
(if (<= c -2149999999999999937085440)
(* j (- (* a c) (* i y)))
(if (<= c 1720000000)
(134-z0z1z2z3z4 y z x j i)
(134-z0z1z2z3z4 c j a z b)))))\begin{array}{l}
\mathbf{if}\;c \leq -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;c \leq -2149999999999999937085440:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;c \leq 1720000000:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(y, z, x, j, i\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -3.3999999999999998e189Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -3.3999999999999998e189 < c < -2.1499999999999999e24Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if -2.1499999999999999e24 < c < 1.72e9Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
lift-*.f64N/A
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
metadata-evalN/A
*-lft-identityN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.0%
Applied rewrites39.0%
if 1.72e9 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832)
(* c (- (* a j) (* b z)))
(if (<=
c
-4099067742394941/17822033662586700072817076584766762987864173856439687228824970773044043621908896041038721919208482030385321521771853153557377752817872804680674458280164899172859354196719784961261227313463296)
(* j (- (* a c) (* i y)))
(if (<= c 872305872233851/20769187434139310514121985316880384)
(* (- (* z x) (* j i)) y)
(134-z0z1z2z3z4 c j a z b)))))\begin{array}{l}
\mathbf{if}\;c \leq -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832:\\
\;\;\;\;c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{elif}\;c \leq \frac{-4099067742394941}{17822033662586700072817076584766762987864173856439687228824970773044043621908896041038721919208482030385321521771853153557377752817872804680674458280164899172859354196719784961261227313463296}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;c \leq \frac{872305872233851}{20769187434139310514121985316880384}:\\
\;\;\;\;\left(z \cdot x - j \cdot i\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(c, j, a, z, b\right)\\
\end{array}
if c < -3.3999999999999998e189Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -3.3999999999999998e189 < c < -2.3e-175Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if -2.3e-175 < c < 4.1999999999999998e-20Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6439.6%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
lower--.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
metadata-evalN/A
*-lft-identity39.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6439.6%
Applied rewrites39.6%
if 4.1999999999999998e-20 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
distribute-lft-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lift-*.f64N/A
*-commutativeN/A
lower-134-z0z1z2z3z439.5%
Applied rewrites39.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))))
(if (<=
c
-3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832)
t_1
(if (<=
c
-4099067742394941/17822033662586700072817076584766762987864173856439687228824970773044043621908896041038721919208482030385321521771853153557377752817872804680674458280164899172859354196719784961261227313463296)
(* j (- (* a c) (* i y)))
(if (<= c 872305872233851/20769187434139310514121985316880384)
(* (- (* z x) (* j 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 = c * ((a * j) - (b * z));
double tmp;
if (c <= -3.4e+189) {
tmp = t_1;
} else if (c <= -2.3e-175) {
tmp = j * ((a * c) - (i * y));
} else if (c <= 4.2e-20) {
tmp = ((z * x) - (j * i)) * y;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
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 * ((a * j) - (b * z))
if (c <= (-3.4d+189)) then
tmp = t_1
else if (c <= (-2.3d-175)) then
tmp = j * ((a * c) - (i * y))
else if (c <= 4.2d-20) then
tmp = ((z * x) - (j * i)) * y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -3.4e+189) {
tmp = t_1;
} else if (c <= -2.3e-175) {
tmp = j * ((a * c) - (i * y));
} else if (c <= 4.2e-20) {
tmp = ((z * x) - (j * i)) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) tmp = 0 if c <= -3.4e+189: tmp = t_1 elif c <= -2.3e-175: tmp = j * ((a * c) - (i * y)) elif c <= 4.2e-20: tmp = ((z * x) - (j * i)) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -3.4e+189) tmp = t_1; elseif (c <= -2.3e-175) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); elseif (c <= 4.2e-20) tmp = Float64(Float64(Float64(z * x) - Float64(j * i)) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -3.4e+189) tmp = t_1; elseif (c <= -2.3e-175) tmp = j * ((a * c) - (i * y)); elseif (c <= 4.2e-20) tmp = ((z * x) - (j * i)) * y; 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[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832], t$95$1, If[LessEqual[c, -4099067742394941/17822033662586700072817076584766762987864173856439687228824970773044043621908896041038721919208482030385321521771853153557377752817872804680674458280164899172859354196719784961261227313463296], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 872305872233851/20769187434139310514121985316880384], N[(N[(N[(z * x), $MachinePrecision] - N[(j * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq \frac{-4099067742394941}{17822033662586700072817076584766762987864173856439687228824970773044043621908896041038721919208482030385321521771853153557377752817872804680674458280164899172859354196719784961261227313463296}:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{elif}\;c \leq \frac{872305872233851}{20769187434139310514121985316880384}:\\
\;\;\;\;\left(z \cdot x - j \cdot i\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if c < -3.3999999999999998e189 or 4.1999999999999998e-20 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -3.3999999999999998e189 < c < -2.3e-175Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if -2.3e-175 < c < 4.1999999999999998e-20Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6439.6%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
lower--.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
metadata-evalN/A
*-lft-identity39.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* b z)))))
(if (<=
c
-3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832)
t_1
(if (<= c 1720000000) (* j (- (* a c) (* 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 = c * ((a * j) - (b * z));
double tmp;
if (c <= -3.4e+189) {
tmp = t_1;
} else if (c <= 1720000000.0) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
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 * ((a * j) - (b * z))
if (c <= (-3.4d+189)) then
tmp = t_1
else if (c <= 1720000000.0d0) then
tmp = j * ((a * c) - (i * y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (b * z));
double tmp;
if (c <= -3.4e+189) {
tmp = t_1;
} else if (c <= 1720000000.0) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (b * z)) tmp = 0 if c <= -3.4e+189: tmp = t_1 elif c <= 1720000000.0: tmp = j * ((a * c) - (i * y)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(b * z))) tmp = 0.0 if (c <= -3.4e+189) tmp = t_1; elseif (c <= 1720000000.0) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (b * z)); tmp = 0.0; if (c <= -3.4e+189) tmp = t_1; elseif (c <= 1720000000.0) tmp = j * ((a * c) - (i * y)); 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[(N[(a * j), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832], t$95$1, If[LessEqual[c, 1720000000], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - b \cdot z\right)\\
\mathbf{if}\;c \leq -3399999999999999831186108956068229205858928944848587501332570464514623530847100049246365002819165417460259049247034162670765820368522630572013466729871336663874751765025393289173714528632832:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1720000000:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if c < -3.3999999999999998e189 or 1.72e9 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
if -3.3999999999999998e189 < c < 1.72e9Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z 16000000000000001252664646473539901476885764798177869824) (* j (- (* a c) (* i y))) (* (* (- z) b) c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 1.6e+55) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = (-z * b) * c;
}
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 (z <= 1.6d+55) then
tmp = j * ((a * c) - (i * y))
else
tmp = (-z * b) * c
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 (z <= 1.6e+55) {
tmp = j * ((a * c) - (i * y));
} else {
tmp = (-z * b) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= 1.6e+55: tmp = j * ((a * c) - (i * y)) else: tmp = (-z * b) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= 1.6e+55) tmp = Float64(j * Float64(Float64(a * c) - Float64(i * y))); else tmp = Float64(Float64(Float64(-z) * b) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= 1.6e+55) tmp = j * ((a * c) - (i * y)); else tmp = (-z * b) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, 16000000000000001252664646473539901476885764798177869824], N[(j * N[(N[(a * c), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;z \leq 16000000000000001252664646473539901476885764798177869824:\\
\;\;\;\;j \cdot \left(a \cdot c - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c\\
\end{array}
if z < 1.6000000000000001e55Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
if 1.6000000000000001e55 < z Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6422.6%
Applied rewrites22.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-outN/A
lower-*.f64N/A
lower-neg.f6422.6%
Applied rewrites22.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
c
-519999999999999984024814054874131613477481132868446090246168833440487479354929993962591122310850963336193220502083424121336613878622060544)
(* c (* a j))
(if (<= c 1720000000) (* -1 (* i (* j y))) (* (* (- z) b) c))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -5.2e+137) {
tmp = c * (a * j);
} else if (c <= 1720000000.0) {
tmp = -1.0 * (i * (j * y));
} else {
tmp = (-z * b) * c;
}
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 (c <= (-5.2d+137)) then
tmp = c * (a * j)
else if (c <= 1720000000.0d0) then
tmp = (-1.0d0) * (i * (j * y))
else
tmp = (-z * b) * c
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 (c <= -5.2e+137) {
tmp = c * (a * j);
} else if (c <= 1720000000.0) {
tmp = -1.0 * (i * (j * y));
} else {
tmp = (-z * b) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -5.2e+137: tmp = c * (a * j) elif c <= 1720000000.0: tmp = -1.0 * (i * (j * y)) else: tmp = (-z * b) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -5.2e+137) tmp = Float64(c * Float64(a * j)); elseif (c <= 1720000000.0) tmp = Float64(-1.0 * Float64(i * Float64(j * y))); else tmp = Float64(Float64(Float64(-z) * b) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -5.2e+137) tmp = c * (a * j); elseif (c <= 1720000000.0) tmp = -1.0 * (i * (j * y)); else tmp = (-z * b) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -519999999999999984024814054874131613477481132868446090246168833440487479354929993962591122310850963336193220502083424121336613878622060544], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1720000000], N[(-1 * N[(i * N[(j * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;c \leq -519999999999999984024814054874131613477481132868446090246168833440487479354929993962591122310850963336193220502083424121336613878622060544:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq 1720000000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c\\
\end{array}
if c < -5.1999999999999998e137Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around 0
lower-*.f6423.0%
Applied rewrites23.0%
if -5.1999999999999998e137 < c < 1.72e9Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6422.2%
Applied rewrites22.2%
if 1.72e9 < c Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6422.6%
Applied rewrites22.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-outN/A
lower-*.f64N/A
lower-neg.f6422.6%
Applied rewrites22.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
j
-5499829120098731/53919893334301279589334030174039261347274288845081144962207220498432)
(* c (* a j))
(if (<= j 38000000000000001390623291328167936)
(* (* (- z) b) c)
(* a (* c j)))))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.02e-52) {
tmp = c * (a * j);
} else if (j <= 3.8e+34) {
tmp = (-z * b) * c;
} else {
tmp = a * (c * j);
}
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 <= (-1.02d-52)) then
tmp = c * (a * j)
else if (j <= 3.8d+34) then
tmp = (-z * b) * c
else
tmp = a * (c * j)
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 <= -1.02e-52) {
tmp = c * (a * j);
} else if (j <= 3.8e+34) {
tmp = (-z * b) * c;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.02e-52: tmp = c * (a * j) elif j <= 3.8e+34: tmp = (-z * b) * c else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.02e-52) tmp = Float64(c * Float64(a * j)); elseif (j <= 3.8e+34) tmp = Float64(Float64(Float64(-z) * b) * c); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.02e-52) tmp = c * (a * j); elseif (j <= 3.8e+34) tmp = (-z * b) * c; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -5499829120098731/53919893334301279589334030174039261347274288845081144962207220498432], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 38000000000000001390623291328167936], N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;j \leq \frac{-5499829120098731}{53919893334301279589334030174039261347274288845081144962207220498432}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 38000000000000001390623291328167936:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
if j < -1.0200000000000001e-52Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around 0
lower-*.f6423.0%
Applied rewrites23.0%
if -1.0200000000000001e-52 < j < 3.8000000000000001e34Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6422.6%
Applied rewrites22.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-neg-outN/A
lower-*.f64N/A
lower-neg.f6422.6%
Applied rewrites22.6%
if 3.8000000000000001e34 < j Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6423.0%
Applied rewrites23.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
j
-5499829120098731/53919893334301279589334030174039261347274288845081144962207220498432)
(* c (* a j))
(if (<= j 38000000000000001390623291328167936)
(* (* (- c) b) z)
(* a (* c j)))))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.02e-52) {
tmp = c * (a * j);
} else if (j <= 3.8e+34) {
tmp = (-c * b) * z;
} else {
tmp = a * (c * j);
}
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 <= (-1.02d-52)) then
tmp = c * (a * j)
else if (j <= 3.8d+34) then
tmp = (-c * b) * z
else
tmp = a * (c * j)
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 <= -1.02e-52) {
tmp = c * (a * j);
} else if (j <= 3.8e+34) {
tmp = (-c * b) * z;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.02e-52: tmp = c * (a * j) elif j <= 3.8e+34: tmp = (-c * b) * z else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.02e-52) tmp = Float64(c * Float64(a * j)); elseif (j <= 3.8e+34) tmp = Float64(Float64(Float64(-c) * b) * z); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.02e-52) tmp = c * (a * j); elseif (j <= 3.8e+34) tmp = (-c * b) * z; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -5499829120098731/53919893334301279589334030174039261347274288845081144962207220498432], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 38000000000000001390623291328167936], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;j \leq \frac{-5499829120098731}{53919893334301279589334030174039261347274288845081144962207220498432}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 38000000000000001390623291328167936:\\
\;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
if j < -1.0200000000000001e-52Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around 0
lower-*.f6423.0%
Applied rewrites23.0%
if -1.0200000000000001e-52 < j < 3.8000000000000001e34Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f6422.6%
Applied rewrites22.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
lift-*.f64N/A
mul-1-negN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6422.3%
Applied rewrites22.3%
if 3.8000000000000001e34 < j Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6423.0%
Applied rewrites23.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
y
6400000000000000277614700637562790869057877279692411595467352251751147602493959110024472035328)
(* c (* a j))
(* (* y x) z)))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= 6.4e+93) {
tmp = c * (a * j);
} else {
tmp = (y * x) * z;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
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 (y <= 6.4d+93) then
tmp = c * (a * j)
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= 6.4e+93) {
tmp = c * (a * j);
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= 6.4e+93: tmp = c * (a * j) else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= 6.4e+93) tmp = Float64(c * Float64(a * j)); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= 6.4e+93) tmp = c * (a * j); else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, 6400000000000000277614700637562790869057877279692411595467352251751147602493959110024472035328], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;y \leq 6400000000000000277614700637562790869057877279692411595467352251751147602493959110024472035328:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
if y < 6.4000000000000003e93Initial program 73.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.7%
Applied rewrites39.7%
Taylor expanded in z around 0
lower-*.f6423.0%
Applied rewrites23.0%
if 6.4000000000000003e93 < y Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
Applied rewrites22.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<=
y
23999999999999999026001386952408705555807906151562834552073736235360894150822906212384768)
(* a (* c j))
(* (* y x) z)))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= 2.4e+88) {
tmp = a * (c * j);
} else {
tmp = (y * x) * z;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j)
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 (y <= 2.4d+88) then
tmp = a * (c * j)
else
tmp = (y * x) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= 2.4e+88) {
tmp = a * (c * j);
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= 2.4e+88: tmp = a * (c * j) else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= 2.4e+88) tmp = Float64(a * Float64(c * j)); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= 2.4e+88) tmp = a * (c * j); else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, 23999999999999999026001386952408705555807906151562834552073736235360894150822906212384768], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;y \leq 23999999999999999026001386952408705555807906151562834552073736235360894150822906212384768:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
if y < 2.3999999999999999e88Initial program 73.9%
Taylor expanded in b around 0
lower-+.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.8%
Applied rewrites59.8%
Taylor expanded in i around 0
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6451.3%
Applied rewrites51.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6423.0%
Applied rewrites23.0%
if 2.3999999999999999e88 < y Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
Applied rewrites22.6%
(FPCore (x y z t a b c i j) :precision binary64 (* (* y x) z))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (y * x) * z;
}
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 = (y * x) * z
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 (y * x) * z;
}
def code(x, y, z, t, a, b, c, i, j): return (y * x) * z
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(y * x) * z) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (y * x) * z; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]
\left(y \cdot x\right) \cdot z
Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6422.6%
Applied rewrites22.6%
(FPCore (x y z t a b c i j) :precision binary64 (* x (* y z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return x * (y * z);
}
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)
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);
}
def code(x, y, z, t, a, b, c, i, j): return x * (y * z)
function code(x, y, z, t, a, b, c, i, j) return Float64(x * Float64(y * z)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = x * (y * z); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]
x \cdot \left(y \cdot z\right)
Initial program 73.9%
Taylor expanded in y around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6439.6%
Applied rewrites39.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6422.9%
Applied rewrites22.9%
herbie shell --seed 2025271 -o generate:evaluate
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))