
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a)
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
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a)
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
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t))))
(t_2 (/ 1.0 (- y x)))
(t_3
(-
(/ (+ (/ x (- y x)) (/ t (- t a))) t_2)
(/ (/ z (- t a)) t_2))))
(if (<= t_1 -1e-230)
t_3
(if (<= t_1 1e-299)
(-
(+ y (* -1.0 (/ (* z (- y x)) t)))
(* -1.0 (/ (* a (- y x)) t)))
t_3))))double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double t_2 = 1.0 / (y - x);
double t_3 = (((x / (y - x)) + (t / (t - a))) / t_2) - ((z / (t - a)) / t_2);
double tmp;
if (t_1 <= -1e-230) {
tmp = t_3;
} else if (t_1 <= 1e-299) {
tmp = (y + (-1.0 * ((z * (y - x)) / t))) - (-1.0 * ((a * (y - x)) / t));
} else {
tmp = t_3;
}
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)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
t_2 = 1.0d0 / (y - x)
t_3 = (((x / (y - x)) + (t / (t - a))) / t_2) - ((z / (t - a)) / t_2)
if (t_1 <= (-1d-230)) then
tmp = t_3
else if (t_1 <= 1d-299) then
tmp = (y + ((-1.0d0) * ((z * (y - x)) / t))) - ((-1.0d0) * ((a * (y - x)) / t))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double t_2 = 1.0 / (y - x);
double t_3 = (((x / (y - x)) + (t / (t - a))) / t_2) - ((z / (t - a)) / t_2);
double tmp;
if (t_1 <= -1e-230) {
tmp = t_3;
} else if (t_1 <= 1e-299) {
tmp = (y + (-1.0 * ((z * (y - x)) / t))) - (-1.0 * ((a * (y - x)) / t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) t_2 = 1.0 / (y - x) t_3 = (((x / (y - x)) + (t / (t - a))) / t_2) - ((z / (t - a)) / t_2) tmp = 0 if t_1 <= -1e-230: tmp = t_3 elif t_1 <= 1e-299: tmp = (y + (-1.0 * ((z * (y - x)) / t))) - (-1.0 * ((a * (y - x)) / t)) else: tmp = t_3 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) t_2 = Float64(1.0 / Float64(y - x)) t_3 = Float64(Float64(Float64(Float64(x / Float64(y - x)) + Float64(t / Float64(t - a))) / t_2) - Float64(Float64(z / Float64(t - a)) / t_2)) tmp = 0.0 if (t_1 <= -1e-230) tmp = t_3; elseif (t_1 <= 1e-299) tmp = Float64(Float64(y + Float64(-1.0 * Float64(Float64(z * Float64(y - x)) / t))) - Float64(-1.0 * Float64(Float64(a * Float64(y - x)) / t))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); t_2 = 1.0 / (y - x); t_3 = (((x / (y - x)) + (t / (t - a))) / t_2) - ((z / (t - a)) / t_2); tmp = 0.0; if (t_1 <= -1e-230) tmp = t_3; elseif (t_1 <= 1e-299) tmp = (y + (-1.0 * ((z * (y - x)) / t))) - (-1.0 * ((a * (y - x)) / t)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 / N[(y - x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(x / N[(y - x), $MachinePrecision]), $MachinePrecision] + N[(t / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision] - N[(N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-230], t$95$3, If[LessEqual[t$95$1, 1e-299], N[(N[(y + N[(-1.0 * N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(N[(a * N[(y - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
t_2 := \frac{1}{y - x}\\
t_3 := \frac{\frac{x}{y - x} + \frac{t}{t - a}}{t\_2} - \frac{\frac{z}{t - a}}{t\_2}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-230}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_1 \leq 10^{-299}:\\
\;\;\;\;\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-230 or 9.9999999999999999e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.5%
lift-/.f64N/A
frac-2negN/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f64N/A
lift-*.f64N/A
distribute-lft-neg-inN/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6468.5%
Applied rewrites68.5%
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
div-flip-revN/A
lower-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lift--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lift--.f64N/A
frac-2neg-revN/A
lower-/.f6480.9%
Applied rewrites80.9%
lift-/.f64N/A
lift--.f64N/A
lift-/.f64N/A
mult-flipN/A
associate-/r*N/A
lower-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lift--.f64N/A
sub-negate-revN/A
frac-2negN/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f6484.9%
Applied rewrites84.9%
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
lift-/.f64N/A
lift--.f64N/A
div-subN/A
associate-+r-N/A
div-subN/A
lower--.f64N/A
Applied rewrites88.5%
if -1e-230 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999999e-300Initial program 68.5%
Taylor expanded in t around inf
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--.f6446.0%
Applied rewrites46.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -1e-230)
(fma (/ (- x y) (- t a)) (- z t) x)
(if (<= t_1 1e-299)
(-
(+ y (* -1.0 (/ (* z (- y x)) t)))
(* -1.0 (/ (* a (- y x)) t)))
(fma (/ (- t z) (- t a)) (- y x) x)))))double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -1e-230) {
tmp = fma(((x - y) / (t - a)), (z - t), x);
} else if (t_1 <= 1e-299) {
tmp = (y + (-1.0 * ((z * (y - x)) / t))) - (-1.0 * ((a * (y - x)) / t));
} else {
tmp = fma(((t - z) / (t - a)), (y - x), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -1e-230) tmp = fma(Float64(Float64(x - y) / Float64(t - a)), Float64(z - t), x); elseif (t_1 <= 1e-299) tmp = Float64(Float64(y + Float64(-1.0 * Float64(Float64(z * Float64(y - x)) / t))) - Float64(-1.0 * Float64(Float64(a * Float64(y - x)) / t))); else tmp = fma(Float64(Float64(t - z) / Float64(t - a)), Float64(y - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-230], N[(N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 1e-299], N[(N[(y + N[(-1.0 * N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(N[(a * N[(y - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-230}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - y}{t - a}, z - t, x\right)\\
\mathbf{elif}\;t\_1 \leq 10^{-299}:\\
\;\;\;\;\left(y + -1 \cdot \frac{z \cdot \left(y - x\right)}{t}\right) - -1 \cdot \frac{a \cdot \left(y - x\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{t - a}, y - x, x\right)\\
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-230Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
mult-flipN/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
mult-flip-revN/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6480.8%
Applied rewrites80.8%
if -1e-230 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999999e-300Initial program 68.5%
Taylor expanded in t around inf
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--.f6446.0%
Applied rewrites46.0%
if 9.9999999999999999e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -1e-230)
(fma (/ (- x y) (- t a)) (- z t) x)
(if (<= t_1 1e-299)
(+ y (* -1.0 (/ (- (* z (- y x)) (* a (- y x))) t)))
(fma (/ (- t z) (- t a)) (- y x) x)))))double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -1e-230) {
tmp = fma(((x - y) / (t - a)), (z - t), x);
} else if (t_1 <= 1e-299) {
tmp = y + (-1.0 * (((z * (y - x)) - (a * (y - x))) / t));
} else {
tmp = fma(((t - z) / (t - a)), (y - x), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -1e-230) tmp = fma(Float64(Float64(x - y) / Float64(t - a)), Float64(z - t), x); elseif (t_1 <= 1e-299) tmp = Float64(y + Float64(-1.0 * Float64(Float64(Float64(z * Float64(y - x)) - Float64(a * Float64(y - x))) / t))); else tmp = fma(Float64(Float64(t - z) / Float64(t - a)), Float64(y - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-230], N[(N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 1e-299], N[(y + N[(-1.0 * N[(N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] - N[(a * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-230}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - y}{t - a}, z - t, x\right)\\
\mathbf{elif}\;t\_1 \leq 10^{-299}:\\
\;\;\;\;y + -1 \cdot \frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{t - a}, y - x, x\right)\\
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-230Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
mult-flipN/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
mult-flip-revN/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6480.8%
Applied rewrites80.8%
if -1e-230 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999999e-300Initial program 68.5%
Taylor expanded in t around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6447.0%
Applied rewrites47.0%
if 9.9999999999999999e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 -1e-230)
(fma (/ (- x y) (- t a)) (- z t) x)
(if (<= t_1 1e-299)
(/ (* y (- t z)) (- t a))
(fma (/ (- t z) (- t a)) (- y x) x)))))double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -1e-230) {
tmp = fma(((x - y) / (t - a)), (z - t), x);
} else if (t_1 <= 1e-299) {
tmp = (y * (t - z)) / (t - a);
} else {
tmp = fma(((t - z) / (t - a)), (y - x), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -1e-230) tmp = fma(Float64(Float64(x - y) / Float64(t - a)), Float64(z - t), x); elseif (t_1 <= 1e-299) tmp = Float64(Float64(y * Float64(t - z)) / Float64(t - a)); else tmp = fma(Float64(Float64(t - z) / Float64(t - a)), Float64(y - x), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e-230], N[(N[(N[(x - y), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$1, 1e-299], N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-230}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - y}{t - a}, z - t, x\right)\\
\mathbf{elif}\;t\_1 \leq 10^{-299}:\\
\;\;\;\;\frac{y \cdot \left(t - z\right)}{t - a}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{t - a}, y - x, x\right)\\
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-230Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
mult-flipN/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
mult-flip-revN/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6480.8%
Applied rewrites80.8%
if -1e-230 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999999e-300Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6439.5%
Applied rewrites39.5%
if 9.9999999999999999e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t z) (- t a)) (- y x) x))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 -1e-230)
t_1
(if (<= t_2 1e-299) (/ (* y (- t z)) (- t a)) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / (t - a)), (y - x), x);
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -1e-230) {
tmp = t_1;
} else if (t_2 <= 1e-299) {
tmp = (y * (t - z)) / (t - a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / Float64(t - a)), Float64(y - x), x) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -1e-230) tmp = t_1; elseif (t_2 <= 1e-299) tmp = Float64(Float64(y * Float64(t - z)) / Float64(t - a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-230], t$95$1, If[LessEqual[t$95$2, 1e-299], N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t - a}, y - x, x\right)\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-230}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{-299}:\\
\;\;\;\;\frac{y \cdot \left(t - z\right)}{t - a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-230 or 9.9999999999999999e-300 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
if -1e-230 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999999e-300Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6439.5%
Applied rewrites39.5%
(FPCore (x y z t a) :precision binary64 (if (<= t 3.5e+146) (fma (/ (- t z) (- t a)) (- y x) x) (* y (- (/ z (- a t)) (/ t (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= 3.5e+146) {
tmp = fma(((t - z) / (t - a)), (y - x), x);
} else {
tmp = y * ((z / (a - t)) - (t / (a - t)));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (t <= 3.5e+146) tmp = fma(Float64(Float64(t - z) / Float64(t - a)), Float64(y - x), x); else tmp = Float64(y * Float64(Float64(z / Float64(a - t)) - Float64(t / Float64(a - t)))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, 3.5e+146], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision] - N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;t \leq 3.5 \cdot 10^{+146}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{t - a}, y - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(\frac{z}{a - t} - \frac{t}{a - t}\right)\\
\end{array}
if t < 3.5000000000000001e146Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
if 3.5000000000000001e146 < t Initial program 68.5%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6451.7%
Applied rewrites51.7%
(FPCore (x y z t a)
:precision binary64
(if (<= y -2.4e-90)
(+ x (/ (- z t) (/ (- a t) y)))
(if (<= y 2.8e-56)
(+ x (/ (* z (- y x)) (- a t)))
(fma (/ (- t z) (- t a)) y x))))double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.4e-90) {
tmp = x + ((z - t) / ((a - t) / y));
} else if (y <= 2.8e-56) {
tmp = x + ((z * (y - x)) / (a - t));
} else {
tmp = fma(((t - z) / (t - a)), y, x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.4e-90) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / y))); elseif (y <= 2.8e-56) tmp = Float64(x + Float64(Float64(z * Float64(y - x)) / Float64(a - t))); else tmp = fma(Float64(Float64(t - z) / Float64(t - a)), y, x); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.4e-90], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e-56], N[(x + N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{-90}:\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-56}:\\
\;\;\;\;x + \frac{z \cdot \left(y - x\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{t - a}, y, x\right)\\
\end{array}
if y < -2.4000000000000002e-90Initial program 68.5%
lift-/.f64N/A
frac-2negN/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f64N/A
lift-*.f64N/A
distribute-lft-neg-inN/A
lift--.f64N/A
sub-negate-revN/A
lower-*.f64N/A
lower--.f6468.5%
Applied rewrites68.5%
lift-/.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
div-flip-revN/A
lower-/.f64N/A
lift--.f64N/A
sub-negate-revN/A
lift--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lift--.f64N/A
frac-2neg-revN/A
lower-/.f6480.9%
Applied rewrites80.9%
Taylor expanded in x around 0
Applied rewrites64.5%
if -2.4000000000000002e-90 < y < 2.7999999999999999e-56Initial program 68.5%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6455.5%
Applied rewrites55.5%
if 2.7999999999999999e-56 < y Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in x around 0
Applied rewrites67.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t z) (- t a)) y x)))
(if (<= y -2.4e-90)
t_1
(if (<= y 2.8e-56) (+ x (/ (* z (- y x)) (- a t))) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / (t - a)), y, x);
double tmp;
if (y <= -2.4e-90) {
tmp = t_1;
} else if (y <= 2.8e-56) {
tmp = x + ((z * (y - x)) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / Float64(t - a)), y, x) tmp = 0.0 if (y <= -2.4e-90) tmp = t_1; elseif (y <= 2.8e-56) tmp = Float64(x + Float64(Float64(z * Float64(y - x)) / Float64(a - t))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[y, -2.4e-90], t$95$1, If[LessEqual[y, 2.8e-56], N[(x + N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t - a}, y, x\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-56}:\\
\;\;\;\;x + \frac{z \cdot \left(y - x\right)}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -2.4000000000000002e-90 or 2.7999999999999999e-56 < y Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in x around 0
Applied rewrites67.9%
if -2.4000000000000002e-90 < y < 2.7999999999999999e-56Initial program 68.5%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f6455.5%
Applied rewrites55.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t z) (- t a)) y x)))
(if (<= y -1.4e-34)
t_1
(if (<= y 3.1e-96) (fma (/ x (- t a)) (- z t) x) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / (t - a)), y, x);
double tmp;
if (y <= -1.4e-34) {
tmp = t_1;
} else if (y <= 3.1e-96) {
tmp = fma((x / (t - a)), (z - t), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / Float64(t - a)), y, x) tmp = 0.0 if (y <= -1.4e-34) tmp = t_1; elseif (y <= 3.1e-96) tmp = fma(Float64(x / Float64(t - a)), Float64(z - t), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[y, -1.4e-34], t$95$1, If[LessEqual[y, 3.1e-96], N[(N[(x / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t - a}, y, x\right)\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{-34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-96}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t - a}, z - t, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -1.4e-34 or 3.0999999999999999e-96 < y Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in x around 0
Applied rewrites67.9%
if -1.4e-34 < y < 3.0999999999999999e-96Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
mult-flipN/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-fma.f64N/A
mult-flip-revN/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6480.8%
Applied rewrites80.8%
Taylor expanded in x around inf
lower-/.f64N/A
lower--.f6442.1%
Applied rewrites42.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (- 1.0 (/ z t)) (- y x) x)))
(if (<= t -21000000000.0)
t_1
(if (<= t 1.25e+14) (+ x (* (/ (- y x) a) z)) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma((1.0 - (z / t)), (y - x), x);
double tmp;
if (t <= -21000000000.0) {
tmp = t_1;
} else if (t <= 1.25e+14) {
tmp = x + (((y - x) / a) * z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(1.0 - Float64(z / t)), Float64(y - x), x) tmp = 0.0 if (t <= -21000000000.0) tmp = t_1; elseif (t <= 1.25e+14) tmp = Float64(x + Float64(Float64(Float64(y - x) / a) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -21000000000.0], t$95$1, If[LessEqual[t, 1.25e+14], N[(x + N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - \frac{z}{t}, y - x, x\right)\\
\mathbf{if}\;t \leq -21000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{+14}:\\
\;\;\;\;x + \frac{y - x}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -2.1e10 or 1.25e14 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
lift-/.f64N/A
lift--.f64N/A
div-subN/A
*-inversesN/A
lower--.f64N/A
lower-/.f6440.0%
Applied rewrites40.0%
if -2.1e10 < t < 1.25e14Initial program 68.5%
Taylor expanded in t around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.5%
Applied rewrites44.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6448.3%
Applied rewrites48.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t z) t) y x)))
(if (<= t -2.2e+18)
t_1
(if (<= t 11000.0) (+ x (* (/ (- y x) a) z)) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / t), y, x);
double tmp;
if (t <= -2.2e+18) {
tmp = t_1;
} else if (t <= 11000.0) {
tmp = x + (((y - x) / a) * z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / t), y, x) tmp = 0.0 if (t <= -2.2e+18) tmp = t_1; elseif (t <= 11000.0) tmp = Float64(x + Float64(Float64(Float64(y - x) / a) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[t, -2.2e+18], t$95$1, If[LessEqual[t, 11000.0], N[(x + N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t}, y, x\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 11000:\\
\;\;\;\;x + \frac{y - x}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -2.2e18 or 11000 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in x around 0
Applied rewrites43.5%
if -2.2e18 < t < 11000Initial program 68.5%
Taylor expanded in t around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.5%
Applied rewrites44.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6448.3%
Applied rewrites48.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t z) t) y x)))
(if (<= t -2.2e+18)
t_1
(if (<= t 11000.0) (fma (/ z a) (- y x) x) t_1))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / t), y, x);
double tmp;
if (t <= -2.2e+18) {
tmp = t_1;
} else if (t <= 11000.0) {
tmp = fma((z / a), (y - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / t), y, x) tmp = 0.0 if (t <= -2.2e+18) tmp = t_1; elseif (t <= 11000.0) tmp = fma(Float64(z / a), Float64(y - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[t, -2.2e+18], t$95$1, If[LessEqual[t, 11000.0], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t}, y, x\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 11000:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -2.2e18 or 11000 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in x around 0
Applied rewrites43.5%
if -2.2e18 < t < 11000Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in t around 0
lower-/.f6449.5%
Applied rewrites49.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ (- t z) t) y x))) (if (<= t -2400.0) t_1 (if (<= t 1.5e-16) (+ x (* (/ y a) z)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - z) / t), y, x);
double tmp;
if (t <= -2400.0) {
tmp = t_1;
} else if (t <= 1.5e-16) {
tmp = x + ((y / a) * z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - z) / t), y, x) tmp = 0.0 if (t <= -2400.0) tmp = t_1; elseif (t <= 1.5e-16) tmp = Float64(x + Float64(Float64(y / a) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - z), $MachinePrecision] / t), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[t, -2400.0], t$95$1, If[LessEqual[t, 1.5e-16], N[(x + N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - z}{t}, y, x\right)\\
\mathbf{if}\;t \leq -2400:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{-16}:\\
\;\;\;\;x + \frac{y}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -2400 or 1.5e-16 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in x around 0
Applied rewrites43.5%
if -2400 < t < 1.5e-16Initial program 68.5%
Taylor expanded in t around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.5%
Applied rewrites44.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6448.3%
Applied rewrites48.3%
Taylor expanded in x around 0
Applied rewrites40.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma 1.0 (- y x) x)))
(if (<= t -1.4e+126)
t_1
(if (<= t -2.95)
(/ (* x (- z a)) t)
(if (<= t 3100.0) (+ x (* (/ y a) z)) t_1)))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(1.0, (y - x), x);
double tmp;
if (t <= -1.4e+126) {
tmp = t_1;
} else if (t <= -2.95) {
tmp = (x * (z - a)) / t;
} else if (t <= 3100.0) {
tmp = x + ((y / a) * z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(1.0, Float64(y - x), x) tmp = 0.0 if (t <= -1.4e+126) tmp = t_1; elseif (t <= -2.95) tmp = Float64(Float64(x * Float64(z - a)) / t); elseif (t <= 3100.0) tmp = Float64(x + Float64(Float64(y / a) * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.4e+126], t$95$1, If[LessEqual[t, -2.95], N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 3100.0], N[(x + N[(N[(y / a), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(1, y - x, x\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.95:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t \leq 3100:\\
\;\;\;\;x + \frac{y}{a} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -1.4e126 or 3100 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in z around 0
Applied rewrites19.8%
if -1.4e126 < t < -2.9500000000000002Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around -inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f6420.2%
Applied rewrites20.2%
if -2.9500000000000002 < t < 3100Initial program 68.5%
Taylor expanded in t around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.5%
Applied rewrites44.5%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6448.3%
Applied rewrites48.3%
Taylor expanded in x around 0
Applied rewrites40.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma 1.0 (- y x) x)))
(if (<= t -1.4e+126)
t_1
(if (<= t -2.95)
(/ (* x (- z a)) t)
(if (<= t 5.8e-5) (* x (+ 1.0 (/ t a))) t_1)))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(1.0, (y - x), x);
double tmp;
if (t <= -1.4e+126) {
tmp = t_1;
} else if (t <= -2.95) {
tmp = (x * (z - a)) / t;
} else if (t <= 5.8e-5) {
tmp = x * (1.0 + (t / a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(1.0, Float64(y - x), x) tmp = 0.0 if (t <= -1.4e+126) tmp = t_1; elseif (t <= -2.95) tmp = Float64(Float64(x * Float64(z - a)) / t); elseif (t <= 5.8e-5) tmp = Float64(x * Float64(1.0 + Float64(t / a))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.4e+126], t$95$1, If[LessEqual[t, -2.95], N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 5.8e-5], N[(x * N[(1.0 + N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(1, y - x, x\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.95:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(1 + \frac{t}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -1.4e126 or 5.8e-5 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in z around 0
Applied rewrites19.8%
if -1.4e126 < t < -2.9500000000000002Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around -inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f6420.2%
Applied rewrites20.2%
if -2.9500000000000002 < t < 5.8e-5Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around 0
Applied rewrites26.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma 1.0 (- y x) x)))
(if (<= t -1.4e+126)
t_1
(if (<= t -2.95)
(/ (* x (- z a)) t)
(if (<= t 10000000000000.0) (* x 1.0) t_1)))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(1.0, (y - x), x);
double tmp;
if (t <= -1.4e+126) {
tmp = t_1;
} else if (t <= -2.95) {
tmp = (x * (z - a)) / t;
} else if (t <= 10000000000000.0) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(1.0, Float64(y - x), x) tmp = 0.0 if (t <= -1.4e+126) tmp = t_1; elseif (t <= -2.95) tmp = Float64(Float64(x * Float64(z - a)) / t); elseif (t <= 10000000000000.0) tmp = Float64(x * 1.0); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.4e+126], t$95$1, If[LessEqual[t, -2.95], N[(N[(x * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 10000000000000.0], N[(x * 1.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(1, y - x, x\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.95:\\
\;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t \leq 10000000000000:\\
\;\;\;\;x \cdot 1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -1.4e126 or 1e13 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in z around 0
Applied rewrites19.8%
if -1.4e126 < t < -2.9500000000000002Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around -inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f6420.2%
Applied rewrites20.2%
if -2.9500000000000002 < t < 1e13Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around 0
Applied rewrites25.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma 1.0 (- y x) x)))
(if (<= t -6.8e+107)
t_1
(if (<= t -2.95)
(/ (* x z) t)
(if (<= t 10000000000000.0) (* x 1.0) t_1)))))double code(double x, double y, double z, double t, double a) {
double t_1 = fma(1.0, (y - x), x);
double tmp;
if (t <= -6.8e+107) {
tmp = t_1;
} else if (t <= -2.95) {
tmp = (x * z) / t;
} else if (t <= 10000000000000.0) {
tmp = x * 1.0;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(1.0, Float64(y - x), x) tmp = 0.0 if (t <= -6.8e+107) tmp = t_1; elseif (t <= -2.95) tmp = Float64(Float64(x * z) / t); elseif (t <= 10000000000000.0) tmp = Float64(x * 1.0); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -6.8e+107], t$95$1, If[LessEqual[t, -2.95], N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 10000000000000.0], N[(x * 1.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(1, y - x, x\right)\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.95:\\
\;\;\;\;\frac{x \cdot z}{t}\\
\mathbf{elif}\;t \leq 10000000000000:\\
\;\;\;\;x \cdot 1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -6.7999999999999994e107 or 1e13 < t Initial program 68.5%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
frac-2negN/A
lift--.f64N/A
sub-negate-revN/A
lower-/.f64N/A
lower--.f64N/A
lift--.f64N/A
sub-negate-revN/A
lower--.f6485.0%
Applied rewrites85.0%
Taylor expanded in a around 0
lower-/.f64N/A
lower--.f6440.0%
Applied rewrites40.0%
Taylor expanded in z around 0
Applied rewrites19.8%
if -6.7999999999999994e107 < t < -2.9500000000000002Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in a around 0
lower-/.f64N/A
lower-*.f6416.9%
Applied rewrites16.9%
if -2.9500000000000002 < t < 1e13Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around 0
Applied rewrites25.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.02e-52) (* x 1.0) (if (<= a 2e-30) (* (/ z t) x) (* x 1.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-52) {
tmp = x * 1.0;
} else if (a <= 2e-30) {
tmp = (z / t) * x;
} else {
tmp = x * 1.0;
}
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)
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) :: tmp
if (a <= (-1.02d-52)) then
tmp = x * 1.0d0
else if (a <= 2d-30) then
tmp = (z / t) * x
else
tmp = x * 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-52) {
tmp = x * 1.0;
} else if (a <= 2e-30) {
tmp = (z / t) * x;
} else {
tmp = x * 1.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.02e-52: tmp = x * 1.0 elif a <= 2e-30: tmp = (z / t) * x else: tmp = x * 1.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.02e-52) tmp = Float64(x * 1.0); elseif (a <= 2e-30) tmp = Float64(Float64(z / t) * x); else tmp = Float64(x * 1.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.02e-52) tmp = x * 1.0; elseif (a <= 2e-30) tmp = (z / t) * x; else tmp = x * 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.02e-52], N[(x * 1.0), $MachinePrecision], If[LessEqual[a, 2e-30], N[(N[(z / t), $MachinePrecision] * x), $MachinePrecision], N[(x * 1.0), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;a \leq -1.02 \cdot 10^{-52}:\\
\;\;\;\;x \cdot 1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-30}:\\
\;\;\;\;\frac{z}{t} \cdot x\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1\\
\end{array}
if a < -1.0200000000000001e-52 or 2.0000000000000002e-30 < a Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around 0
Applied rewrites25.1%
if -1.0200000000000001e-52 < a < 2.0000000000000002e-30Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in a around 0
lower-/.f64N/A
lower-*.f6416.9%
Applied rewrites16.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6419.2%
Applied rewrites19.2%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.02e-52) (* x 1.0) (if (<= a 2e-30) (* z (/ x t)) (* x 1.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-52) {
tmp = x * 1.0;
} else if (a <= 2e-30) {
tmp = z * (x / t);
} else {
tmp = x * 1.0;
}
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)
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) :: tmp
if (a <= (-1.02d-52)) then
tmp = x * 1.0d0
else if (a <= 2d-30) then
tmp = z * (x / t)
else
tmp = x * 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.02e-52) {
tmp = x * 1.0;
} else if (a <= 2e-30) {
tmp = z * (x / t);
} else {
tmp = x * 1.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.02e-52: tmp = x * 1.0 elif a <= 2e-30: tmp = z * (x / t) else: tmp = x * 1.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.02e-52) tmp = Float64(x * 1.0); elseif (a <= 2e-30) tmp = Float64(z * Float64(x / t)); else tmp = Float64(x * 1.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.02e-52) tmp = x * 1.0; elseif (a <= 2e-30) tmp = z * (x / t); else tmp = x * 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.02e-52], N[(x * 1.0), $MachinePrecision], If[LessEqual[a, 2e-30], N[(z * N[(x / t), $MachinePrecision]), $MachinePrecision], N[(x * 1.0), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;a \leq -1.02 \cdot 10^{-52}:\\
\;\;\;\;x \cdot 1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-30}:\\
\;\;\;\;z \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1\\
\end{array}
if a < -1.0200000000000001e-52 or 2.0000000000000002e-30 < a Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around 0
Applied rewrites25.1%
if -1.0200000000000001e-52 < a < 2.0000000000000002e-30Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in a around 0
lower-/.f64N/A
lower-*.f6416.9%
Applied rewrites16.9%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
frac-2neg-revN/A
lift-neg.f64N/A
lower-*.f64N/A
lift-neg.f64N/A
frac-2neg-revN/A
lower-/.f6418.1%
Applied rewrites18.1%
(FPCore (x y z t a) :precision binary64 (* x 1.0))
double code(double x, double y, double z, double t, double a) {
return x * 1.0;
}
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)
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
code = x * 1.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return x * 1.0;
}
def code(x, y, z, t, a): return x * 1.0
function code(x, y, z, t, a) return Float64(x * 1.0) end
function tmp = code(x, y, z, t, a) tmp = x * 1.0; end
code[x_, y_, z_, t_, a_] := N[(x * 1.0), $MachinePrecision]
x \cdot 1
Initial program 68.5%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6447.5%
Applied rewrites47.5%
Taylor expanded in z around 0
lower-*.f64N/A
lower-+.f64N/A
lower-/.f64N/A
lower--.f6425.4%
Applied rewrites25.4%
Taylor expanded in t around inf
Applied rewrites2.8%
Taylor expanded in t around 0
Applied rewrites25.1%
herbie shell --seed 2025212
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
(+ x (/ (* (- y x) (- z t)) (- a t))))