
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b): return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))) end
function tmp = code(x, y, z, t, a, b) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<=
z
-400000000000000023713520496325948014825449955068181315459400297931998311313895922608093186032072498276607168949173531792918788654058329604096)
t_1
(if (<= z 12000000000000000424738068522656016135872315392)
(134-z0z1z2z3z4 (/ 1 (+ (* (- b y) z) y)) y x (- a t) z)
t_1))))\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -400000000000000023713520496325948014825449955068181315459400297931998311313895922608093186032072498276607168949173531792918788654058329604096:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 12000000000000000424738068522656016135872315392:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -4.0000000000000002e140 or 1.2e46 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -4.0000000000000002e140 < z < 1.2e46Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
(t_2 (/ (- t a) (- b y))))
(if (<= z -80000000000000007247757312)
t_2
(if (<=
z
-2634444444371165/16996415770136547158066822609678996074546979767265021542382212422412913915547271767653200072487337141404458543559888032491090538804886631661104639320530795262202600666732583009015300096)
t_1
(if (<=
z
6540714869423179/18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496)
(134-z0z1z2z3z4 (/ 1 (+ (* b z) y)) y x a z)
(if (<= z 16500000000000000) t_1 t_2))))))\begin{array}{l}
t_1 := \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -80000000000000007247757312:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq \frac{-2634444444371165}{16996415770136547158066822609678996074546979767265021542382212422412913915547271767653200072487337141404458543559888032491090538804886631661104639320530795262202600666732583009015300096}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{b \cdot z + y}\right), y, x, a, z\right)\\
\mathbf{elif}\;z \leq 16500000000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
if z < -8.0000000000000007e25 or 1.65e16 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -8.0000000000000007e25 < z < -1.5500000000000001e-169 or 3.5e-181 < z < 1.65e16Initial program 66.3%
if -1.5500000000000001e-169 < z < 3.5e-181Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in t around 0
Applied rewrites57.8%
Taylor expanded in y around 0
Applied rewrites49.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -4986819005910345/151115727451828646838272)
t_1
(if (<=
z
6540714869423179/18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496)
(134-z0z1z2z3z4 (/ 1 (+ (* (- b y) z) y)) y x a z)
(if (<= z 16500000000000000)
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y))))
t_1)))))\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-4986819005910345}{151115727451828646838272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, a, z\right)\\
\mathbf{elif}\;z \leq 16500000000000000:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -3.2999999999999998e-8 or 1.65e16 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -3.2999999999999998e-8 < z < 3.5e-181Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in t around 0
Applied rewrites57.8%
if 3.5e-181 < z < 1.65e16Initial program 66.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -80000000000000007247757312)
t_1
(if (<= z 16500000000000000)
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y))))
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -8e+25) {
tmp = t_1;
} else if (z <= 1.65e+16) {
tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / (b - y)
if (z <= (-8d+25)) then
tmp = t_1
else if (z <= 1.65d+16) then
tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -8e+25) {
tmp = t_1;
} else if (z <= 1.65e+16) {
tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -8e+25: tmp = t_1 elif z <= 1.65e+16: tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -8e+25) tmp = t_1; elseif (z <= 1.65e+16) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -8e+25) tmp = t_1; elseif (z <= 1.65e+16) tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -80000000000000007247757312], t$95$1, If[LessEqual[z, 16500000000000000], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -80000000000000007247757312:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 16500000000000000:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -8.0000000000000007e25 or 1.65e16 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -8.0000000000000007e25 < z < 1.65e16Initial program 66.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -82000)
t_1
(if (<= z 5404319552844595/4503599627370496)
(/ (+ (* x y) (* z (- t a))) (+ y (* z b)))
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -82000.0) {
tmp = t_1;
} else if (z <= 1.2) {
tmp = ((x * y) + (z * (t - a))) / (y + (z * b));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / (b - y)
if (z <= (-82000.0d0)) then
tmp = t_1
else if (z <= 1.2d0) then
tmp = ((x * y) + (z * (t - a))) / (y + (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -82000.0) {
tmp = t_1;
} else if (z <= 1.2) {
tmp = ((x * y) + (z * (t - a))) / (y + (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -82000.0: tmp = t_1 elif z <= 1.2: tmp = ((x * y) + (z * (t - a))) / (y + (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -82000.0) tmp = t_1; elseif (z <= 1.2) tmp = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -82000.0) tmp = t_1; elseif (z <= 1.2) tmp = ((x * y) + (z * (t - a))) / (y + (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -82000], t$95$1, If[LessEqual[z, 5404319552844595/4503599627370496], N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -82000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{5404319552844595}{4503599627370496}:\\
\;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -82000 or 1.2 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -82000 < z < 1.2Initial program 66.3%
Taylor expanded in y around 0
Applied rewrites57.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -5902958103587057/4722366482869645213696)
t_1
(if (<=
z
-1802560036253105/11629419588729710248789180926208072549658261770997088964503843186890228609814366773219056811420217048972200345700258846936553626057834496)
(/ (- (* x y) (* a z)) (+ (* z b) y))
(if (<= z 5451911701461569/2596148429267413814265248164610048)
(134-z0z1z2z3z4 (/ 1 y) y x (- a t) z)
t_1)))))\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-5902958103587057}{4722366482869645213696}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{-1802560036253105}{11629419588729710248789180926208072549658261770997088964503843186890228609814366773219056811420217048972200345700258846936553626057834496}:\\
\;\;\;\;\frac{x \cdot y - a \cdot z}{z \cdot b + y}\\
\mathbf{elif}\;z \leq \frac{5451911701461569}{2596148429267413814265248164610048}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, \left(a - t\right), z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -1.2500000000000001e-6 or 2.1e-18 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -1.2500000000000001e-6 < z < -1.5499999999999999e-121Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in t around 0
Applied rewrites57.8%
Taylor expanded in y around 0
Applied rewrites49.6%
lift-134-z0z1z2z3z4N/A
*-commutativeN/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6441.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6441.9%
Applied rewrites41.9%
if -1.5499999999999999e-121 < z < 2.1e-18Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in z around 0
lower-/.f6437.9%
Applied rewrites37.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -3659834024223975/1180591620717411303424)
t_1
(if (<=
z
1094449103198247/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976)
(134-z0z1z2z3z4 (/ 1 y) y x a z)
(if (<= z 16500000000000000)
(/ (* z (- t a)) (+ y (* z (- b y))))
t_1)))))\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-3659834024223975}{1180591620717411303424}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{1094449103198247}{3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, a, z\right)\\
\mathbf{elif}\;z \leq 16500000000000000:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -3.1e-6 or 1.65e16 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -3.1e-6 < z < 2.9e-154Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in t around 0
Applied rewrites57.8%
Taylor expanded in z around 0
lower-/.f6431.9%
Applied rewrites31.9%
if 2.9e-154 < z < 1.65e16Initial program 66.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f6441.9%
Applied rewrites41.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* z (- t a)) (+ y (* z (- b y)))))
(t_2 (/ (- t a) (- b y))))
(if (<= z -80000000000000007247757312)
t_2
(if (<=
z
-3630826122770869/32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792)
t_1
(if (<=
z
1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744)
(* (/ y (+ (* z b) y)) x)
(if (<= z 950000000) t_1 t_2))))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * (t - a)) / (y + (z * (b - y)));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -8e+25) {
tmp = t_2;
} else if (z <= -1.12e-163) {
tmp = t_1;
} else if (z <= 1.7e-153) {
tmp = (y / ((z * b) + y)) * x;
} else if (z <= 950000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * (t - a)) / (y + (z * (b - y)))
t_2 = (t - a) / (b - y)
if (z <= (-8d+25)) then
tmp = t_2
else if (z <= (-1.12d-163)) then
tmp = t_1
else if (z <= 1.7d-153) then
tmp = (y / ((z * b) + y)) * x
else if (z <= 950000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * (t - a)) / (y + (z * (b - y)));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -8e+25) {
tmp = t_2;
} else if (z <= -1.12e-163) {
tmp = t_1;
} else if (z <= 1.7e-153) {
tmp = (y / ((z * b) + y)) * x;
} else if (z <= 950000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * (t - a)) / (y + (z * (b - y))) t_2 = (t - a) / (b - y) tmp = 0 if z <= -8e+25: tmp = t_2 elif z <= -1.12e-163: tmp = t_1 elif z <= 1.7e-153: tmp = (y / ((z * b) + y)) * x elif z <= 950000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y)))) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -8e+25) tmp = t_2; elseif (z <= -1.12e-163) tmp = t_1; elseif (z <= 1.7e-153) tmp = Float64(Float64(y / Float64(Float64(z * b) + y)) * x); elseif (z <= 950000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * (t - a)) / (y + (z * (b - y))); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -8e+25) tmp = t_2; elseif (z <= -1.12e-163) tmp = t_1; elseif (z <= 1.7e-153) tmp = (y / ((z * b) + y)) * x; elseif (z <= 950000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -80000000000000007247757312], t$95$2, If[LessEqual[z, -3630826122770869/32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792], t$95$1, If[LessEqual[z, 1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744], N[(N[(y / N[(N[(z * b), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 950000000], t$95$1, t$95$2]]]]]]
\begin{array}{l}
t_1 := \frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -80000000000000007247757312:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq \frac{-3630826122770869}{32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{1603934030549155}{943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744}:\\
\;\;\;\;\frac{y}{z \cdot b + y} \cdot x\\
\mathbf{elif}\;z \leq 950000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
if z < -8.0000000000000007e25 or 9.5e8 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -8.0000000000000007e25 < z < -1.12e-163 or 1.6999999999999999e-153 < z < 9.5e8Initial program 66.3%
Taylor expanded in x around 0
lower-*.f64N/A
lower--.f6441.9%
Applied rewrites41.9%
if -1.12e-163 < z < 1.6999999999999999e-153Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in y around 0
Applied rewrites32.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -5902958103587057/4722366482869645213696)
t_1
(if (<= z 5451911701461569/2596148429267413814265248164610048)
(/ (- (* x y) (* a z)) (+ (* z b) y))
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.25e-6) {
tmp = t_1;
} else if (z <= 2.1e-18) {
tmp = ((x * y) - (a * z)) / ((z * b) + y);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / (b - y)
if (z <= (-1.25d-6)) then
tmp = t_1
else if (z <= 2.1d-18) then
tmp = ((x * y) - (a * z)) / ((z * b) + y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -1.25e-6) {
tmp = t_1;
} else if (z <= 2.1e-18) {
tmp = ((x * y) - (a * z)) / ((z * b) + y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -1.25e-6: tmp = t_1 elif z <= 2.1e-18: tmp = ((x * y) - (a * z)) / ((z * b) + y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1.25e-6) tmp = t_1; elseif (z <= 2.1e-18) tmp = Float64(Float64(Float64(x * y) - Float64(a * z)) / Float64(Float64(z * b) + y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -1.25e-6) tmp = t_1; elseif (z <= 2.1e-18) tmp = ((x * y) - (a * z)) / ((z * b) + y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5902958103587057/4722366482869645213696], t$95$1, If[LessEqual[z, 5451911701461569/2596148429267413814265248164610048], N[(N[(N[(x * y), $MachinePrecision] - N[(a * z), $MachinePrecision]), $MachinePrecision] / N[(N[(z * b), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-5902958103587057}{4722366482869645213696}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{5451911701461569}{2596148429267413814265248164610048}:\\
\;\;\;\;\frac{x \cdot y - a \cdot z}{z \cdot b + y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -1.2500000000000001e-6 or 2.1e-18 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -1.2500000000000001e-6 < z < 2.1e-18Initial program 66.3%
lift-/.f64N/A
mult-flipN/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
lift--.f64N/A
sub-negate-revN/A
*-commutativeN/A
lower-134-z0z1z2z3z4N/A
Applied rewrites80.5%
Taylor expanded in t around 0
Applied rewrites57.8%
Taylor expanded in y around 0
Applied rewrites49.6%
lift-134-z0z1z2z3z4N/A
*-commutativeN/A
lift-/.f64N/A
mult-flip-revN/A
lower-/.f64N/A
lower--.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6441.9%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6441.9%
Applied rewrites41.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<=
z
-775019052315365/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976)
t_1
(if (<=
z
6642173867685913/30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808)
(* (/ y (+ (* z b) y)) x)
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -3.3e-94) {
tmp = t_1;
} else if (z <= 2.2e-154) {
tmp = (y / ((z * b) + y)) * 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, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / (b - y)
if (z <= (-3.3d-94)) then
tmp = t_1
else if (z <= 2.2d-154) then
tmp = (y / ((z * b) + y)) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -3.3e-94) {
tmp = t_1;
} else if (z <= 2.2e-154) {
tmp = (y / ((z * b) + y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -3.3e-94: tmp = t_1 elif z <= 2.2e-154: tmp = (y / ((z * b) + y)) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -3.3e-94) tmp = t_1; elseif (z <= 2.2e-154) tmp = Float64(Float64(y / Float64(Float64(z * b) + y)) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -3.3e-94) tmp = t_1; elseif (z <= 2.2e-154) tmp = (y / ((z * b) + y)) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -775019052315365/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976], t$95$1, If[LessEqual[z, 6642173867685913/30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808], N[(N[(y / N[(N[(z * b), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-775019052315365}{2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{6642173867685913}{30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808}:\\
\;\;\;\;\frac{y}{z \cdot b + y} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -3.3000000000000001e-94 or 2.2000000000000001e-154 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -3.3000000000000001e-94 < z < 2.2000000000000001e-154Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in y around 0
Applied rewrites32.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<=
z
-775019052315365/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976)
t_1
(if (<=
z
6491215370693051/30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808)
(* 1 x)
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -3.3e-94) {
tmp = t_1;
} else if (z <= 2.15e-154) {
tmp = 1.0 * 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, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / (b - y)
if (z <= (-3.3d-94)) then
tmp = t_1
else if (z <= 2.15d-154) then
tmp = 1.0d0 * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -3.3e-94) {
tmp = t_1;
} else if (z <= 2.15e-154) {
tmp = 1.0 * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -3.3e-94: tmp = t_1 elif z <= 2.15e-154: tmp = 1.0 * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -3.3e-94) tmp = t_1; elseif (z <= 2.15e-154) tmp = Float64(1.0 * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / (b - y); tmp = 0.0; if (z <= -3.3e-94) tmp = t_1; elseif (z <= 2.15e-154) tmp = 1.0 * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -775019052315365/2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976], t$95$1, If[LessEqual[z, 6491215370693051/30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808], N[(1 * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq \frac{-775019052315365}{2348542582773833227889480596789337027375682548908319870707290971532209025114608443463698998384768703031934976}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{6491215370693051}{30191699398572330817932436647906151127335369763331523427009650401964993299137190816689013801421270140331747000246110759198164677039398341060491474011461568349195162615808}:\\
\;\;\;\;1 \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -3.3000000000000001e-94 or 2.15e-154 < z Initial program 66.3%
Taylor expanded in z around inf
lower-/.f64N/A
lower--.f64N/A
lower--.f6452.4%
Applied rewrites52.4%
if -3.3000000000000001e-94 < z < 2.15e-154Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in z around 0
Applied rewrites24.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) b)))
(if (<=
z
-2408173546789575/573374653997517877902705223825521735199141247292070280934397209846730719022121202017504638277531421638656)
t_1
(if (<=
z
1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744)
(* 1 x)
t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / b;
double tmp;
if (z <= -4.2e-90) {
tmp = t_1;
} else if (z <= 1.7e-153) {
tmp = 1.0 * 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, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t - a) / b
if (z <= (-4.2d-90)) then
tmp = t_1
else if (z <= 1.7d-153) then
tmp = 1.0d0 * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / b;
double tmp;
if (z <= -4.2e-90) {
tmp = t_1;
} else if (z <= 1.7e-153) {
tmp = 1.0 * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / b tmp = 0 if z <= -4.2e-90: tmp = t_1 elif z <= 1.7e-153: tmp = 1.0 * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - a) / b) tmp = 0.0 if (z <= -4.2e-90) tmp = t_1; elseif (z <= 1.7e-153) tmp = Float64(1.0 * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - a) / b; tmp = 0.0; if (z <= -4.2e-90) tmp = t_1; elseif (z <= 1.7e-153) tmp = 1.0 * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[z, -2408173546789575/573374653997517877902705223825521735199141247292070280934397209846730719022121202017504638277531421638656], t$95$1, If[LessEqual[z, 1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744], N[(1 * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \frac{t - a}{b}\\
\mathbf{if}\;z \leq \frac{-2408173546789575}{573374653997517877902705223825521735199141247292070280934397209846730719022121202017504638277531421638656}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq \frac{1603934030549155}{943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744}:\\
\;\;\;\;1 \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -4.1999999999999998e-90 or 1.6999999999999999e-153 < z Initial program 66.3%
Taylor expanded in y around 0
lower-/.f64N/A
lower--.f6436.0%
Applied rewrites36.0%
if -4.1999999999999998e-90 < z < 1.6999999999999999e-153Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in z around 0
Applied rewrites24.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5312662293228351/147573952589676412928)
(/ t b)
(if (<= z 5996272065288561/19342813113834066795298816)
(* 1 x)
(/ t b))))double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.6e-5) {
tmp = t / b;
} else if (z <= 3.1e-10) {
tmp = 1.0 * x;
} else {
tmp = t / b;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3.6d-5)) then
tmp = t / b
else if (z <= 3.1d-10) then
tmp = 1.0d0 * x
else
tmp = t / b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.6e-5) {
tmp = t / b;
} else if (z <= 3.1e-10) {
tmp = 1.0 * x;
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3.6e-5: tmp = t / b elif z <= 3.1e-10: tmp = 1.0 * x else: tmp = t / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.6e-5) tmp = Float64(t / b); elseif (z <= 3.1e-10) tmp = Float64(1.0 * x); else tmp = Float64(t / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3.6e-5) tmp = t / b; elseif (z <= 3.1e-10) tmp = 1.0 * x; else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5312662293228351/147573952589676412928], N[(t / b), $MachinePrecision], If[LessEqual[z, 5996272065288561/19342813113834066795298816], N[(1 * x), $MachinePrecision], N[(t / b), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;z \leq \frac{-5312662293228351}{147573952589676412928}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq \frac{5996272065288561}{19342813113834066795298816}:\\
\;\;\;\;1 \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
if z < -3.6000000000000001e-5 or 3.1000000000000002e-10 < z Initial program 66.3%
Taylor expanded in y around 0
lower-/.f64N/A
lower--.f6436.0%
Applied rewrites36.0%
Taylor expanded in t around inf
lower-/.f6420.9%
Applied rewrites20.9%
if -3.6000000000000001e-5 < z < 3.1000000000000002e-10Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in z around 0
Applied rewrites24.9%
(FPCore (x y z t a b) :precision binary64 (* 1 x))
double code(double x, double y, double z, double t, double a, double b) {
return 1.0 * 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, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = 1.0d0 * x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return 1.0 * x;
}
def code(x, y, z, t, a, b): return 1.0 * x
function code(x, y, z, t, a, b) return Float64(1.0 * x) end
function tmp = code(x, y, z, t, a, b) tmp = 1.0 * x; end
code[x_, y_, z_, t_, a_, b_] := N[(1 * x), $MachinePrecision]
1 \cdot x
Initial program 66.3%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower--.f6428.9%
Applied rewrites28.9%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lower-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lower-/.f6435.6%
lift-*.f64N/A
*-commutativeN/A
lift-*.f6435.6%
Applied rewrites35.6%
Taylor expanded in z around 0
Applied rewrites24.9%
herbie shell --seed 2025271 -o generate:evaluate
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))