
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(y - z\right) \cdot \left(t - x\right)
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - z) * (t - x));
}
def code(x, y, z, t): return x + ((y - z) * (t - x))
function code(x, y, z, t) return Float64(x + Float64(Float64(y - z) * Float64(t - x))) end
function tmp = code(x, y, z, t) tmp = x + ((y - z) * (t - x)); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \left(y - z\right) \cdot \left(t - x\right)
(FPCore (x y z t) :precision binary64 (if (<= z -1.7e-23) (- x (* z (- t x))) (if (<= z 1.45e+26) (+ x (* y (- t x))) (* z (- x t)))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.7e-23) {
tmp = x - (z * (t - x));
} else if (z <= 1.45e+26) {
tmp = x + (y * (t - x));
} else {
tmp = z * (x - 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)
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) :: tmp
if (z <= (-1.7d-23)) then
tmp = x - (z * (t - x))
else if (z <= 1.45d+26) then
tmp = x + (y * (t - x))
else
tmp = z * (x - t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.7e-23) {
tmp = x - (z * (t - x));
} else if (z <= 1.45e+26) {
tmp = x + (y * (t - x));
} else {
tmp = z * (x - t);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.7e-23: tmp = x - (z * (t - x)) elif z <= 1.45e+26: tmp = x + (y * (t - x)) else: tmp = z * (x - t) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.7e-23) tmp = Float64(x - Float64(z * Float64(t - x))); elseif (z <= 1.45e+26) tmp = Float64(x + Float64(y * Float64(t - x))); else tmp = Float64(z * Float64(x - t)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.7e-23) tmp = x - (z * (t - x)); elseif (z <= 1.45e+26) tmp = x + (y * (t - x)); else tmp = z * (x - t); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.7e-23], N[(x - N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+26], N[(x + N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{-23}:\\
\;\;\;\;x - z \cdot \left(t - x\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+26}:\\
\;\;\;\;x + y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x - t\right)\\
\end{array}
if z < -1.7e-23Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
Taylor expanded in y around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f6460.7%
Applied rewrites60.7%
if -1.7e-23 < z < 1.45e26Initial program 100.0%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6459.6%
Applied rewrites59.6%
if 1.45e26 < z Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* y (- t x)))) (if (<= y -12.6) t_1 (if (<= y 4.8e+36) (- x (* z (- t x))) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -12.6) {
tmp = t_1;
} else if (y <= 4.8e+36) {
tmp = x - (z * (t - x));
} 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)
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) :: t_1
real(8) :: tmp
t_1 = y * (t - x)
if (y <= (-12.6d0)) then
tmp = t_1
else if (y <= 4.8d+36) then
tmp = x - (z * (t - x))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -12.6) {
tmp = t_1;
} else if (y <= 4.8e+36) {
tmp = x - (z * (t - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) tmp = 0 if y <= -12.6: tmp = t_1 elif y <= 4.8e+36: tmp = x - (z * (t - x)) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) tmp = 0.0 if (y <= -12.6) tmp = t_1; elseif (y <= 4.8e+36) tmp = Float64(x - Float64(z * Float64(t - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); tmp = 0.0; if (y <= -12.6) tmp = t_1; elseif (y <= 4.8e+36) tmp = x - (z * (t - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -12.6], t$95$1, If[LessEqual[y, 4.8e+36], N[(x - N[(z * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -12.6:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+36}:\\
\;\;\;\;x - z \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -12.6 or 4.7999999999999998e36 < y Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
sub-to-multN/A
lower-unsound-*.f64N/A
lower-unsound--.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6489.2%
Applied rewrites89.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6444.1%
Applied rewrites44.1%
if -12.6 < y < 4.7999999999999998e36Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
Taylor expanded in y around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f6460.7%
Applied rewrites60.7%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (* x y))) (t_2 (* z (- x t))))
(if (<= z -1.1e+127)
t_2
(if (<= z -165.0)
(* t (- y z))
(if (<= z -1.75e-163)
t_1
(if (<= z 3.1e-236)
(* y (- t x))
(if (<= z 1.45e+26) t_1 t_2)))))))double code(double x, double y, double z, double t) {
double t_1 = x - (x * y);
double t_2 = z * (x - t);
double tmp;
if (z <= -1.1e+127) {
tmp = t_2;
} else if (z <= -165.0) {
tmp = t * (y - z);
} else if (z <= -1.75e-163) {
tmp = t_1;
} else if (z <= 3.1e-236) {
tmp = y * (t - x);
} else if (z <= 1.45e+26) {
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)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x - (x * y)
t_2 = z * (x - t)
if (z <= (-1.1d+127)) then
tmp = t_2
else if (z <= (-165.0d0)) then
tmp = t * (y - z)
else if (z <= (-1.75d-163)) then
tmp = t_1
else if (z <= 3.1d-236) then
tmp = y * (t - x)
else if (z <= 1.45d+26) 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 t_1 = x - (x * y);
double t_2 = z * (x - t);
double tmp;
if (z <= -1.1e+127) {
tmp = t_2;
} else if (z <= -165.0) {
tmp = t * (y - z);
} else if (z <= -1.75e-163) {
tmp = t_1;
} else if (z <= 3.1e-236) {
tmp = y * (t - x);
} else if (z <= 1.45e+26) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t): t_1 = x - (x * y) t_2 = z * (x - t) tmp = 0 if z <= -1.1e+127: tmp = t_2 elif z <= -165.0: tmp = t * (y - z) elif z <= -1.75e-163: tmp = t_1 elif z <= 3.1e-236: tmp = y * (t - x) elif z <= 1.45e+26: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t) t_1 = Float64(x - Float64(x * y)) t_2 = Float64(z * Float64(x - t)) tmp = 0.0 if (z <= -1.1e+127) tmp = t_2; elseif (z <= -165.0) tmp = Float64(t * Float64(y - z)); elseif (z <= -1.75e-163) tmp = t_1; elseif (z <= 3.1e-236) tmp = Float64(y * Float64(t - x)); elseif (z <= 1.45e+26) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = x - (x * y); t_2 = z * (x - t); tmp = 0.0; if (z <= -1.1e+127) tmp = t_2; elseif (z <= -165.0) tmp = t * (y - z); elseif (z <= -1.75e-163) tmp = t_1; elseif (z <= 3.1e-236) tmp = y * (t - x); elseif (z <= 1.45e+26) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(x - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+127], t$95$2, If[LessEqual[z, -165.0], N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.75e-163], t$95$1, If[LessEqual[z, 3.1e-236], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+26], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
t_1 := x - x \cdot y\\
t_2 := z \cdot \left(x - t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+127}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -165:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;z \leq -1.75 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-236}:\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
if z < -1.1000000000000001e127 or 1.45e26 < z Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
if -1.1000000000000001e127 < z < -165Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
fp-cancel-sub-sign-invN/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
associate--r+N/A
*-commutativeN/A
lower--.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
sub-negate-revN/A
lift--.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Taylor expanded in t around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f6455.2%
Applied rewrites55.2%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6450.3%
Applied rewrites50.3%
if -165 < z < -1.7500000000000001e-163 or 3.0999999999999998e-236 < z < 1.45e26Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
fp-cancel-sub-sign-invN/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
associate--r+N/A
*-commutativeN/A
lower--.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
sub-negate-revN/A
lift--.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Taylor expanded in t around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f6455.2%
Applied rewrites55.2%
Taylor expanded in y around inf
lower-*.f6436.8%
Applied rewrites36.8%
if -1.7500000000000001e-163 < z < 3.0999999999999998e-236Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
sub-to-multN/A
lower-unsound-*.f64N/A
lower-unsound--.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6489.2%
Applied rewrites89.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6444.1%
Applied rewrites44.1%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* z (- x t))))
(if (<= z -1.1e+127)
t_1
(if (<= z -1.7e-23)
(* t (- y z))
(if (<= z 1.45e+26) (+ x (* y t)) t_1)))))double code(double x, double y, double z, double t) {
double t_1 = z * (x - t);
double tmp;
if (z <= -1.1e+127) {
tmp = t_1;
} else if (z <= -1.7e-23) {
tmp = t * (y - z);
} else if (z <= 1.45e+26) {
tmp = x + (y * 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)
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) :: t_1
real(8) :: tmp
t_1 = z * (x - t)
if (z <= (-1.1d+127)) then
tmp = t_1
else if (z <= (-1.7d-23)) then
tmp = t * (y - z)
else if (z <= 1.45d+26) then
tmp = x + (y * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = z * (x - t);
double tmp;
if (z <= -1.1e+127) {
tmp = t_1;
} else if (z <= -1.7e-23) {
tmp = t * (y - z);
} else if (z <= 1.45e+26) {
tmp = x + (y * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = z * (x - t) tmp = 0 if z <= -1.1e+127: tmp = t_1 elif z <= -1.7e-23: tmp = t * (y - z) elif z <= 1.45e+26: tmp = x + (y * t) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(z * Float64(x - t)) tmp = 0.0 if (z <= -1.1e+127) tmp = t_1; elseif (z <= -1.7e-23) tmp = Float64(t * Float64(y - z)); elseif (z <= 1.45e+26) tmp = Float64(x + Float64(y * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = z * (x - t); tmp = 0.0; if (z <= -1.1e+127) tmp = t_1; elseif (z <= -1.7e-23) tmp = t * (y - z); elseif (z <= 1.45e+26) tmp = x + (y * t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+127], t$95$1, If[LessEqual[z, -1.7e-23], N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.45e+26], N[(x + N[(y * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := z \cdot \left(x - t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+127}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-23}:\\
\;\;\;\;t \cdot \left(y - z\right)\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+26}:\\
\;\;\;\;x + y \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -1.1000000000000001e127 or 1.45e26 < z Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
if -1.1000000000000001e127 < z < -1.7e-23Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
fp-cancel-sub-sign-invN/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
associate--r+N/A
*-commutativeN/A
lower--.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
sub-negate-revN/A
lift--.f64N/A
lower-*.f6496.5%
Applied rewrites96.5%
Taylor expanded in t around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f6455.2%
Applied rewrites55.2%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f6450.3%
Applied rewrites50.3%
if -1.7e-23 < z < 1.45e26Initial program 100.0%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6459.6%
Applied rewrites59.6%
Taylor expanded in x around 0
Applied rewrites42.1%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* y (- t x)))) (if (<= y -12.6) t_1 (if (<= y 1.65e+48) (* z (- x t)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -12.6) {
tmp = t_1;
} else if (y <= 1.65e+48) {
tmp = z * (x - 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)
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) :: t_1
real(8) :: tmp
t_1 = y * (t - x)
if (y <= (-12.6d0)) then
tmp = t_1
else if (y <= 1.65d+48) then
tmp = z * (x - t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = y * (t - x);
double tmp;
if (y <= -12.6) {
tmp = t_1;
} else if (y <= 1.65e+48) {
tmp = z * (x - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = y * (t - x) tmp = 0 if y <= -12.6: tmp = t_1 elif y <= 1.65e+48: tmp = z * (x - t) else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(y * Float64(t - x)) tmp = 0.0 if (y <= -12.6) tmp = t_1; elseif (y <= 1.65e+48) tmp = Float64(z * Float64(x - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = y * (t - x); tmp = 0.0; if (y <= -12.6) tmp = t_1; elseif (y <= 1.65e+48) tmp = z * (x - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -12.6], t$95$1, If[LessEqual[y, 1.65e+48], N[(z * N[(x - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := y \cdot \left(t - x\right)\\
\mathbf{if}\;y \leq -12.6:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+48}:\\
\;\;\;\;z \cdot \left(x - t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -12.6 or 1.6500000000000001e48 < y Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
sub-to-multN/A
lower-unsound-*.f64N/A
lower-unsound--.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6489.2%
Applied rewrites89.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6444.1%
Applied rewrites44.1%
if -12.6 < y < 1.6500000000000001e48Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
(FPCore (x y z t) :precision binary64 (if (<= z -1.9e+127) (* x z) (if (<= z 1.45e+26) (* y (- t x)) (* x z))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.9e+127) {
tmp = x * z;
} else if (z <= 1.45e+26) {
tmp = y * (t - x);
} else {
tmp = 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)
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) :: tmp
if (z <= (-1.9d+127)) then
tmp = x * z
else if (z <= 1.45d+26) then
tmp = y * (t - x)
else
tmp = x * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -1.9e+127) {
tmp = x * z;
} else if (z <= 1.45e+26) {
tmp = y * (t - x);
} else {
tmp = x * z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -1.9e+127: tmp = x * z elif z <= 1.45e+26: tmp = y * (t - x) else: tmp = x * z return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -1.9e+127) tmp = Float64(x * z); elseif (z <= 1.45e+26) tmp = Float64(y * Float64(t - x)); else tmp = Float64(x * z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -1.9e+127) tmp = x * z; elseif (z <= 1.45e+26) tmp = y * (t - x); else tmp = x * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -1.9e+127], N[(x * z), $MachinePrecision], If[LessEqual[z, 1.45e+26], N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision], N[(x * z), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+127}:\\
\;\;\;\;x \cdot z\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{+26}:\\
\;\;\;\;y \cdot \left(t - x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot z\\
\end{array}
if z < -1.8999999999999999e127 or 1.45e26 < z Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
Taylor expanded in x around inf
lower-*.f6422.5%
Applied rewrites22.5%
if -1.8999999999999999e127 < z < 1.45e26Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
sub-to-multN/A
lower-unsound-*.f64N/A
lower-unsound--.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6489.2%
Applied rewrites89.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f6444.1%
Applied rewrites44.1%
(FPCore (x y z t) :precision binary64 (* x z))
double code(double x, double y, double z, double t) {
return 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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * z
end function
public static double code(double x, double y, double z, double t) {
return x * z;
}
def code(x, y, z, t): return x * z
function code(x, y, z, t) return Float64(x * z) end
function tmp = code(x, y, z, t) tmp = x * z; end
code[x_, y_, z_, t_] := N[(x * z), $MachinePrecision]
x \cdot z
Initial program 100.0%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift--.f64N/A
sub-flipN/A
distribute-lft-inN/A
*-commutativeN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
associate-+r-N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
distribute-rgt-neg-outN/A
sub-flip-reverseN/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f6496.4%
Applied rewrites96.4%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6445.3%
Applied rewrites45.3%
Taylor expanded in x around inf
lower-*.f6422.5%
Applied rewrites22.5%
herbie shell --seed 2025258
(FPCore (x y z t)
:name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
:precision binary64
(+ x (* (- y z) (- t x))))