
(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)));
}
real(8) function code(x, y, z, t, a, b)
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]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 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)));
}
real(8) function code(x, y, z, t, a, b)
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]
\begin{array}{l}
\\
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (* z (- b y)))) (t_2 (/ (- t a) (- b y))))
(if (<= z -7.4e+81)
t_2
(if (<= z -1.7e-247)
(* x (+ (/ y t_1) (/ (/ (* z (- t a)) x) t_1)))
(if (<= z 9.5e+114) (/ (+ (/ z (/ 1.0 (- t a))) (* y x)) t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -7.4e+81) {
tmp = t_2;
} else if (z <= -1.7e-247) {
tmp = x * ((y / t_1) + (((z * (t - a)) / x) / t_1));
} else if (z <= 9.5e+114) {
tmp = ((z / (1.0 / (t - a))) + (y * x)) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 = y + (z * (b - y))
t_2 = (t - a) / (b - y)
if (z <= (-7.4d+81)) then
tmp = t_2
else if (z <= (-1.7d-247)) then
tmp = x * ((y / t_1) + (((z * (t - a)) / x) / t_1))
else if (z <= 9.5d+114) then
tmp = ((z / (1.0d0 / (t - a))) + (y * x)) / 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 = y + (z * (b - y));
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -7.4e+81) {
tmp = t_2;
} else if (z <= -1.7e-247) {
tmp = x * ((y / t_1) + (((z * (t - a)) / x) / t_1));
} else if (z <= 9.5e+114) {
tmp = ((z / (1.0 / (t - a))) + (y * x)) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y + (z * (b - y)) t_2 = (t - a) / (b - y) tmp = 0 if z <= -7.4e+81: tmp = t_2 elif z <= -1.7e-247: tmp = x * ((y / t_1) + (((z * (t - a)) / x) / t_1)) elif z <= 9.5e+114: tmp = ((z / (1.0 / (t - a))) + (y * x)) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(z * Float64(b - y))) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -7.4e+81) tmp = t_2; elseif (z <= -1.7e-247) tmp = Float64(x * Float64(Float64(y / t_1) + Float64(Float64(Float64(z * Float64(t - a)) / x) / t_1))); elseif (z <= 9.5e+114) tmp = Float64(Float64(Float64(z / Float64(1.0 / Float64(t - a))) + Float64(y * x)) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y + (z * (b - y)); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -7.4e+81) tmp = t_2; elseif (z <= -1.7e-247) tmp = x * ((y / t_1) + (((z * (t - a)) / x) / t_1)); elseif (z <= 9.5e+114) tmp = ((z / (1.0 / (t - a))) + (y * x)) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.4e+81], t$95$2, If[LessEqual[z, -1.7e-247], N[(x * N[(N[(y / t$95$1), $MachinePrecision] + N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+114], N[(N[(N[(z / N[(1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + z \cdot \left(b - y\right)\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-247}:\\
\;\;\;\;x \cdot \left(\frac{y}{t\_1} + \frac{\frac{z \cdot \left(t - a\right)}{x}}{t\_1}\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+114}:\\
\;\;\;\;\frac{\frac{z}{\frac{1}{t - a}} + y \cdot x}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -7.4000000000000001e81 or 9.5000000000000001e114 < z Initial program 39.9%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.0%
Simplified87.0%
if -7.4000000000000001e81 < z < -1.7000000000000001e-247Initial program 81.1%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6481.0%
Applied egg-rr81.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6486.8%
Simplified86.8%
if -1.7000000000000001e-247 < z < 9.5000000000000001e114Initial program 89.4%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6489.5%
Applied egg-rr89.5%
Final simplification87.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* z (- t a))) (t_2 (/ (- t a) (- b y))))
(if (<= z -1.02e+33)
t_2
(if (<= z -1.3e-91)
(/ t_1 (+ y (* z (- b y))))
(if (<= z 0.0022) (* x (+ 1.0 (/ t_1 (* y x)))) t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (t - a);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -1.02e+33) {
tmp = t_2;
} else if (z <= -1.3e-91) {
tmp = t_1 / (y + (z * (b - y)));
} else if (z <= 0.0022) {
tmp = x * (1.0 + (t_1 / (y * x)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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)
t_2 = (t - a) / (b - y)
if (z <= (-1.02d+33)) then
tmp = t_2
else if (z <= (-1.3d-91)) then
tmp = t_1 / (y + (z * (b - y)))
else if (z <= 0.0022d0) then
tmp = x * (1.0d0 + (t_1 / (y * x)))
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);
double t_2 = (t - a) / (b - y);
double tmp;
if (z <= -1.02e+33) {
tmp = t_2;
} else if (z <= -1.3e-91) {
tmp = t_1 / (y + (z * (b - y)));
} else if (z <= 0.0022) {
tmp = x * (1.0 + (t_1 / (y * x)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (t - a) t_2 = (t - a) / (b - y) tmp = 0 if z <= -1.02e+33: tmp = t_2 elif z <= -1.3e-91: tmp = t_1 / (y + (z * (b - y))) elif z <= 0.0022: tmp = x * (1.0 + (t_1 / (y * x))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(t - a)) t_2 = Float64(Float64(t - a) / Float64(b - y)) tmp = 0.0 if (z <= -1.02e+33) tmp = t_2; elseif (z <= -1.3e-91) tmp = Float64(t_1 / Float64(y + Float64(z * Float64(b - y)))); elseif (z <= 0.0022) tmp = Float64(x * Float64(1.0 + Float64(t_1 / Float64(y * x)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (t - a); t_2 = (t - a) / (b - y); tmp = 0.0; if (z <= -1.02e+33) tmp = t_2; elseif (z <= -1.3e-91) tmp = t_1 / (y + (z * (b - y))); elseif (z <= 0.0022) tmp = x * (1.0 + (t_1 / (y * x))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.02e+33], t$95$2, If[LessEqual[z, -1.3e-91], N[(t$95$1 / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0022], N[(x * N[(1.0 + N[(t$95$1 / N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(t - a\right)\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.02 \cdot 10^{+33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-91}:\\
\;\;\;\;\frac{t\_1}{y + z \cdot \left(b - y\right)}\\
\mathbf{elif}\;z \leq 0.0022:\\
\;\;\;\;x \cdot \left(1 + \frac{t\_1}{y \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.02000000000000001e33 or 0.00220000000000000013 < z Initial program 48.5%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6481.4%
Simplified81.4%
if -1.02000000000000001e33 < z < -1.30000000000000007e-91Initial program 93.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f6466.3%
Simplified66.3%
if -1.30000000000000007e-91 < z < 0.00220000000000000013Initial program 85.6%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6485.6%
Applied egg-rr85.6%
Taylor expanded in z around 0
Simplified62.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6467.1%
Simplified67.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -9.5e+81)
t_1
(if (<= z 9.5e+114)
(/ (+ (* z (- t a)) (* y x)) (+ 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 <= -9.5e+81) {
tmp = t_1;
} else if (z <= 9.5e+114) {
tmp = ((z * (t - a)) + (y * x)) / (y + (z * (b - y)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 <= (-9.5d+81)) then
tmp = t_1
else if (z <= 9.5d+114) then
tmp = ((z * (t - a)) + (y * x)) / (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 <= -9.5e+81) {
tmp = t_1;
} else if (z <= 9.5e+114) {
tmp = ((z * (t - a)) + (y * x)) / (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 <= -9.5e+81: tmp = t_1 elif z <= 9.5e+114: tmp = ((z * (t - a)) + (y * x)) / (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 <= -9.5e+81) tmp = t_1; elseif (z <= 9.5e+114) tmp = Float64(Float64(Float64(z * Float64(t - a)) + Float64(y * x)) / 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 <= -9.5e+81) tmp = t_1; elseif (z <= 9.5e+114) tmp = ((z * (t - a)) + (y * x)) / (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, -9.5e+81], t$95$1, If[LessEqual[z, 9.5e+114], N[(N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+114}:\\
\;\;\;\;\frac{z \cdot \left(t - a\right) + y \cdot x}{y + z \cdot \left(b - y\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.50000000000000083e81 or 9.5000000000000001e114 < z Initial program 39.9%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6487.0%
Simplified87.0%
if -9.50000000000000083e81 < z < 9.5000000000000001e114Initial program 85.7%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -3.9e-64)
t_1
(if (<= z 0.0022) (* x (+ 1.0 (/ (* z (- t a)) (* 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.9e-64) {
tmp = t_1;
} else if (z <= 0.0022) {
tmp = x * (1.0 + ((z * (t - a)) / (y * x)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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.9d-64)) then
tmp = t_1
else if (z <= 0.0022d0) then
tmp = x * (1.0d0 + ((z * (t - a)) / (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.9e-64) {
tmp = t_1;
} else if (z <= 0.0022) {
tmp = x * (1.0 + ((z * (t - a)) / (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.9e-64: tmp = t_1 elif z <= 0.0022: tmp = x * (1.0 + ((z * (t - a)) / (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.9e-64) tmp = t_1; elseif (z <= 0.0022) tmp = Float64(x * Float64(1.0 + Float64(Float64(z * Float64(t - a)) / Float64(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.9e-64) tmp = t_1; elseif (z <= 0.0022) tmp = x * (1.0 + ((z * (t - a)) / (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, -3.9e-64], t$95$1, If[LessEqual[z, 0.0022], N[(x * N[(1.0 + N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 0.0022:\\
\;\;\;\;x \cdot \left(1 + \frac{z \cdot \left(t - a\right)}{y \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.8999999999999997e-64 or 0.00220000000000000013 < z Initial program 54.8%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.6%
Simplified76.6%
if -3.8999999999999997e-64 < z < 0.00220000000000000013Initial program 86.6%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6486.6%
Applied egg-rr86.6%
Taylor expanded in z around 0
Simplified62.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6466.1%
Simplified66.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (- t a) (- b y))))
(if (<= z -7.2e-65)
t_1
(if (<= z 1.92e-116)
(/ (- (* y x) (* z a)) y)
(if (<= z 0.0019) (/ x (- 1.0 z)) 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 <= -7.2e-65) {
tmp = t_1;
} else if (z <= 1.92e-116) {
tmp = ((y * x) - (z * a)) / y;
} else if (z <= 0.0019) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 <= (-7.2d-65)) then
tmp = t_1
else if (z <= 1.92d-116) then
tmp = ((y * x) - (z * a)) / y
else if (z <= 0.0019d0) then
tmp = x / (1.0d0 - z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -7.2e-65) {
tmp = t_1;
} else if (z <= 1.92e-116) {
tmp = ((y * x) - (z * a)) / y;
} else if (z <= 0.0019) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -7.2e-65: tmp = t_1 elif z <= 1.92e-116: tmp = ((y * x) - (z * a)) / y elif z <= 0.0019: tmp = x / (1.0 - z) 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 <= -7.2e-65) tmp = t_1; elseif (z <= 1.92e-116) tmp = Float64(Float64(Float64(y * x) - Float64(z * a)) / y); elseif (z <= 0.0019) tmp = Float64(x / Float64(1.0 - z)); 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 <= -7.2e-65) tmp = t_1; elseif (z <= 1.92e-116) tmp = ((y * x) - (z * a)) / y; elseif (z <= 0.0019) tmp = x / (1.0 - z); 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, -7.2e-65], t$95$1, If[LessEqual[z, 1.92e-116], N[(N[(N[(y * x), $MachinePrecision] - N[(z * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[z, 0.0019], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -7.2 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.92 \cdot 10^{-116}:\\
\;\;\;\;\frac{y \cdot x - z \cdot a}{y}\\
\mathbf{elif}\;z \leq 0.0019:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.1999999999999996e-65 or 0.0019 < z Initial program 55.1%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.8%
Simplified76.8%
if -7.1999999999999996e-65 < z < 1.92000000000000011e-116Initial program 90.0%
flip--N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
clear-numN/A
flip--N/A
/-lowering-/.f64N/A
--lowering--.f6490.0%
Applied egg-rr90.0%
Taylor expanded in z around 0
Simplified63.7%
Taylor expanded in t around 0
/-lowering-/.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6452.6%
Simplified52.6%
if 1.92000000000000011e-116 < z < 0.0019Initial program 66.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6476.9%
Simplified76.9%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.05e+128) (/ t b) (if (<= z -5e-50) (/ (- 0.0 a) b) (if (<= z 0.0021) x (/ t b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.05e+128) {
tmp = t / b;
} else if (z <= -5e-50) {
tmp = (0.0 - a) / b;
} else if (z <= 0.0021) {
tmp = x;
} else {
tmp = t / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 <= (-1.05d+128)) then
tmp = t / b
else if (z <= (-5d-50)) then
tmp = (0.0d0 - a) / b
else if (z <= 0.0021d0) then
tmp = 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 <= -1.05e+128) {
tmp = t / b;
} else if (z <= -5e-50) {
tmp = (0.0 - a) / b;
} else if (z <= 0.0021) {
tmp = x;
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.05e+128: tmp = t / b elif z <= -5e-50: tmp = (0.0 - a) / b elif z <= 0.0021: tmp = x else: tmp = t / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.05e+128) tmp = Float64(t / b); elseif (z <= -5e-50) tmp = Float64(Float64(0.0 - a) / b); elseif (z <= 0.0021) tmp = 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 <= -1.05e+128) tmp = t / b; elseif (z <= -5e-50) tmp = (0.0 - a) / b; elseif (z <= 0.0021) tmp = x; else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.05e+128], N[(t / b), $MachinePrecision], If[LessEqual[z, -5e-50], N[(N[(0.0 - a), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[z, 0.0021], x, N[(t / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+128}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq -5 \cdot 10^{-50}:\\
\;\;\;\;\frac{0 - a}{b}\\
\mathbf{elif}\;z \leq 0.0021:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -1.05e128 or 0.00209999999999999987 < z Initial program 51.2%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6431.8%
Simplified31.8%
Taylor expanded in t around inf
/-lowering-/.f6431.1%
Simplified31.1%
if -1.05e128 < z < -4.99999999999999968e-50Initial program 62.0%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.3%
Simplified41.3%
Taylor expanded in a around inf
mul-1-negN/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f6431.0%
Simplified31.0%
if -4.99999999999999968e-50 < z < 0.00209999999999999987Initial program 86.2%
Taylor expanded in z around 0
Simplified50.9%
Final simplification40.3%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (- t a) (- b y)))) (if (<= z -6.3e-68) t_1 (if (<= z 0.022) (/ x (- 1.0 z)) 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 <= -6.3e-68) {
tmp = t_1;
} else if (z <= 0.022) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 <= (-6.3d-68)) then
tmp = t_1
else if (z <= 0.022d0) then
tmp = x / (1.0d0 - z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - a) / (b - y);
double tmp;
if (z <= -6.3e-68) {
tmp = t_1;
} else if (z <= 0.022) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - a) / (b - y) tmp = 0 if z <= -6.3e-68: tmp = t_1 elif z <= 0.022: tmp = x / (1.0 - z) 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 <= -6.3e-68) tmp = t_1; elseif (z <= 0.022) tmp = Float64(x / Float64(1.0 - z)); 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 <= -6.3e-68) tmp = t_1; elseif (z <= 0.022) tmp = x / (1.0 - z); 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, -6.3e-68], t$95$1, If[LessEqual[z, 0.022], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -6.3 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 0.022:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.2999999999999998e-68 or 0.021999999999999999 < z Initial program 55.1%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.8%
Simplified76.8%
if -6.2999999999999998e-68 < z < 0.021999999999999999Initial program 86.5%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6452.5%
Simplified52.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (- 1.0 z)))) (if (<= y -1.45e+50) t_1 (if (<= y 1.4e-42) (/ (- t a) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 - z);
double tmp;
if (y <= -1.45e+50) {
tmp = t_1;
} else if (y <= 1.4e-42) {
tmp = (t - a) / b;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 = x / (1.0d0 - z)
if (y <= (-1.45d+50)) then
tmp = t_1
else if (y <= 1.4d-42) then
tmp = (t - a) / 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 = x / (1.0 - z);
double tmp;
if (y <= -1.45e+50) {
tmp = t_1;
} else if (y <= 1.4e-42) {
tmp = (t - a) / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 - z) tmp = 0 if y <= -1.45e+50: tmp = t_1 elif y <= 1.4e-42: tmp = (t - a) / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 - z)) tmp = 0.0 if (y <= -1.45e+50) tmp = t_1; elseif (y <= 1.4e-42) tmp = Float64(Float64(t - a) / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (1.0 - z); tmp = 0.0; if (y <= -1.45e+50) tmp = t_1; elseif (y <= 1.4e-42) tmp = (t - a) / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.45e+50], t$95$1, If[LessEqual[y, 1.4e-42], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 - z}\\
\mathbf{if}\;y \leq -1.45 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-42}:\\
\;\;\;\;\frac{t - a}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.45e50 or 1.39999999999999999e-42 < y Initial program 52.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6457.5%
Simplified57.5%
if -1.45e50 < y < 1.39999999999999999e-42Initial program 83.9%
Taylor expanded in y around 0
/-lowering-/.f64N/A
--lowering--.f6452.6%
Simplified52.6%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ t (- b y)))) (if (<= z -7e+85) t_1 (if (<= z 6000000000000.0) (/ x (- 1.0 z)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -7e+85) {
tmp = t_1;
} else if (z <= 6000000000000.0) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 / (b - y)
if (z <= (-7d+85)) then
tmp = t_1
else if (z <= 6000000000000.0d0) then
tmp = x / (1.0d0 - z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -7e+85) {
tmp = t_1;
} else if (z <= 6000000000000.0) {
tmp = x / (1.0 - z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -7e+85: tmp = t_1 elif z <= 6000000000000.0: tmp = x / (1.0 - z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -7e+85) tmp = t_1; elseif (z <= 6000000000000.0) tmp = Float64(x / Float64(1.0 - z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -7e+85) tmp = t_1; elseif (z <= 6000000000000.0) tmp = x / (1.0 - z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+85], t$95$1, If[LessEqual[z, 6000000000000.0], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -7 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6000000000000:\\
\;\;\;\;\frac{x}{1 - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.0000000000000001e85 or 6e12 < z Initial program 49.6%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6484.8%
Simplified84.8%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6449.1%
Simplified49.1%
if -7.0000000000000001e85 < z < 6e12Initial program 83.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
mul-1-negN/A
unsub-negN/A
--lowering--.f6446.9%
Simplified46.9%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ t (- b y)))) (if (<= z -1.6e-65) t_1 (if (<= z 0.0019) x t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t / (b - y);
double tmp;
if (z <= -1.6e-65) {
tmp = t_1;
} else if (z <= 0.0019) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 / (b - y)
if (z <= (-1.6d-65)) then
tmp = t_1
else if (z <= 0.0019d0) then
tmp = 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 / (b - y);
double tmp;
if (z <= -1.6e-65) {
tmp = t_1;
} else if (z <= 0.0019) {
tmp = x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = t / (b - y) tmp = 0 if z <= -1.6e-65: tmp = t_1 elif z <= 0.0019: tmp = x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(t / Float64(b - y)) tmp = 0.0 if (z <= -1.6e-65) tmp = t_1; elseif (z <= 0.0019) tmp = x; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = t / (b - y); tmp = 0.0; if (z <= -1.6e-65) tmp = t_1; elseif (z <= 0.0019) tmp = x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e-65], t$95$1, If[LessEqual[z, 0.0019], x, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{b - y}\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 0.0019:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.6e-65 or 0.0019 < z Initial program 55.1%
Taylor expanded in z around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.8%
Simplified76.8%
Taylor expanded in t around inf
/-lowering-/.f64N/A
--lowering--.f6443.3%
Simplified43.3%
if -1.6e-65 < z < 0.0019Initial program 86.5%
Taylor expanded in z around 0
Simplified51.3%
(FPCore (x y z t a b) :precision binary64 (if (<= z -3e-64) (/ t b) (if (<= z 0.0027) x (/ t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3e-64) {
tmp = t / b;
} else if (z <= 0.0027) {
tmp = x;
} else {
tmp = t / b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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 <= (-3d-64)) then
tmp = t / b
else if (z <= 0.0027d0) then
tmp = 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 <= -3e-64) {
tmp = t / b;
} else if (z <= 0.0027) {
tmp = x;
} else {
tmp = t / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3e-64: tmp = t / b elif z <= 0.0027: tmp = x else: tmp = t / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3e-64) tmp = Float64(t / b); elseif (z <= 0.0027) tmp = 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 <= -3e-64) tmp = t / b; elseif (z <= 0.0027) tmp = x; else tmp = t / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3e-64], N[(t / b), $MachinePrecision], If[LessEqual[z, 0.0027], x, N[(t / b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-64}:\\
\;\;\;\;\frac{t}{b}\\
\mathbf{elif}\;z \leq 0.0027:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{b}\\
\end{array}
\end{array}
if z < -3.0000000000000001e-64 or 0.0027000000000000001 < z Initial program 55.1%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6435.3%
Simplified35.3%
Taylor expanded in t around inf
/-lowering-/.f6428.3%
Simplified28.3%
if -3.0000000000000001e-64 < z < 0.0027000000000000001Initial program 86.5%
Taylor expanded in z around 0
Simplified51.3%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
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
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 69.1%
Taylor expanded in z around 0
Simplified25.6%
(FPCore (x y z t a b) :precision binary64 (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
real(8) function code(x, y, z, t, a, b)
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 = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)));
}
def code(x, y, z, t, a, b): return (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z)))
function code(x, y, z, t, a, b) return Float64(Float64(Float64(Float64(z * t) + Float64(y * x)) / Float64(y + Float64(z * Float64(b - y)))) - Float64(a / Float64(Float64(b - y) + Float64(y / z)))) end
function tmp = code(x, y, z, t, a, b) tmp = (((z * t) + (y * x)) / (y + (z * (b - y)))) - (a / ((b - y) + (y / z))); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(z * t), $MachinePrecision] + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a / N[(N[(b - y), $MachinePrecision] + N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{z \cdot t + y \cdot x}{y + z \cdot \left(b - y\right)} - \frac{a}{\left(b - y\right) + \frac{y}{z}}
\end{array}
herbie shell --seed 2024138
(FPCore (x y z t a b)
:name "Development.Shake.Progress:decay from shake-0.15.5"
:precision binary64
:alt
(! :herbie-platform default (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
(/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))