
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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 + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))
double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
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 + 1.0d0) + ((y * b) / t))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
}
def code(x, y, z, t, a, b): return (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t))
function code(x, y, z, t, a, b) return Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) end
function tmp = code(x, y, z, t, a, b) tmp = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t)))))
(if (<= t_1 -2e-300)
(/ (+ x (* z (/ y t))) (+ (+ a 1.0) (* b (/ y t))))
(if (or (<= t_1 0.0) (not (<= t_1 2e+299)))
(+ (/ z b) (/ (/ t (/ b x)) y))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -2e-300) {
tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t)));
} else if ((t_1 <= 0.0) || !(t_1 <= 2e+299)) {
tmp = (z / b) + ((t / (b / x)) / 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 = (x + ((y * z) / t)) / ((a + 1.0d0) + ((y * b) / t))
if (t_1 <= (-2d-300)) then
tmp = (x + (z * (y / t))) / ((a + 1.0d0) + (b * (y / t)))
else if ((t_1 <= 0.0d0) .or. (.not. (t_1 <= 2d+299))) then
tmp = (z / b) + ((t / (b / x)) / 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 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t));
double tmp;
if (t_1 <= -2e-300) {
tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t)));
} else if ((t_1 <= 0.0) || !(t_1 <= 2e+299)) {
tmp = (z / b) + ((t / (b / x)) / y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)) tmp = 0 if t_1 <= -2e-300: tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t))) elif (t_1 <= 0.0) or not (t_1 <= 2e+299): tmp = (z / b) + ((t / (b / x)) / y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(Float64(a + 1.0) + Float64(Float64(y * b) / t))) tmp = 0.0 if (t_1 <= -2e-300) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); elseif ((t_1 <= 0.0) || !(t_1 <= 2e+299)) tmp = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + ((y * z) / t)) / ((a + 1.0) + ((y * b) / t)); tmp = 0.0; if (t_1 <= -2e-300) tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t))); elseif ((t_1 <= 0.0) || ~((t_1 <= 2e+299))) tmp = (z / b) + ((t / (b / x)) / y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-300], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, 0.0], N[Not[LessEqual[t$95$1, 2e+299]], $MachinePrecision]], N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{\left(a + 1\right) + \frac{y \cdot b}{t}}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-300}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;t_1 \leq 0 \lor \neg \left(t_1 \leq 2 \cdot 10^{+299}\right):\\
\;\;\;\;\frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < -2.00000000000000005e-300Initial program 91.3%
*-commutative91.3%
associate-/l*94.3%
associate-*l/93.0%
Simplified93.0%
div-inv93.1%
clear-num93.2%
Applied egg-rr93.2%
if -2.00000000000000005e-300 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 0.0 or 2.0000000000000001e299 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) Initial program 30.7%
*-commutative30.7%
associate-/l*31.4%
associate-*l/43.7%
Simplified43.7%
Taylor expanded in y around -inf 58.7%
+-commutative58.7%
associate-*r/58.7%
distribute-lft-out--58.7%
associate-*r*58.7%
metadata-eval58.7%
*-lft-identity58.7%
Simplified64.7%
Taylor expanded in b around inf 72.0%
associate-/l*76.4%
Simplified76.4%
if 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a 1) (/.f64 (*.f64 y b) t))) < 2.0000000000000001e299Initial program 98.6%
Final simplification89.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ z b) (/ (* x (/ t b)) y)))
(t_2 (+ x (/ (* y z) t)))
(t_3 (/ t_2 a)))
(if (<= a -5.8e+30)
t_3
(if (<= a -2.6e-23)
t_1
(if (<= a -6.8e-301)
(+ x (/ y (/ t z)))
(if (<= a 1.85e-230)
t_1
(if (<= a 1.05e-100)
(/ x (+ 1.0 (* b (/ y t))))
(if (<= a 0.48) t_2 (if (<= a 1.5e+35) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z / b) + ((x * (t / b)) / y);
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / a;
double tmp;
if (a <= -5.8e+30) {
tmp = t_3;
} else if (a <= -2.6e-23) {
tmp = t_1;
} else if (a <= -6.8e-301) {
tmp = x + (y / (t / z));
} else if (a <= 1.85e-230) {
tmp = t_1;
} else if (a <= 1.05e-100) {
tmp = x / (1.0 + (b * (y / t)));
} else if (a <= 0.48) {
tmp = t_2;
} else if (a <= 1.5e+35) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = (z / b) + ((x * (t / b)) / y)
t_2 = x + ((y * z) / t)
t_3 = t_2 / a
if (a <= (-5.8d+30)) then
tmp = t_3
else if (a <= (-2.6d-23)) then
tmp = t_1
else if (a <= (-6.8d-301)) then
tmp = x + (y / (t / z))
else if (a <= 1.85d-230) then
tmp = t_1
else if (a <= 1.05d-100) then
tmp = x / (1.0d0 + (b * (y / t)))
else if (a <= 0.48d0) then
tmp = t_2
else if (a <= 1.5d+35) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z / b) + ((x * (t / b)) / y);
double t_2 = x + ((y * z) / t);
double t_3 = t_2 / a;
double tmp;
if (a <= -5.8e+30) {
tmp = t_3;
} else if (a <= -2.6e-23) {
tmp = t_1;
} else if (a <= -6.8e-301) {
tmp = x + (y / (t / z));
} else if (a <= 1.85e-230) {
tmp = t_1;
} else if (a <= 1.05e-100) {
tmp = x / (1.0 + (b * (y / t)));
} else if (a <= 0.48) {
tmp = t_2;
} else if (a <= 1.5e+35) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z / b) + ((x * (t / b)) / y) t_2 = x + ((y * z) / t) t_3 = t_2 / a tmp = 0 if a <= -5.8e+30: tmp = t_3 elif a <= -2.6e-23: tmp = t_1 elif a <= -6.8e-301: tmp = x + (y / (t / z)) elif a <= 1.85e-230: tmp = t_1 elif a <= 1.05e-100: tmp = x / (1.0 + (b * (y / t))) elif a <= 0.48: tmp = t_2 elif a <= 1.5e+35: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z / b) + Float64(Float64(x * Float64(t / b)) / y)) t_2 = Float64(x + Float64(Float64(y * z) / t)) t_3 = Float64(t_2 / a) tmp = 0.0 if (a <= -5.8e+30) tmp = t_3; elseif (a <= -2.6e-23) tmp = t_1; elseif (a <= -6.8e-301) tmp = Float64(x + Float64(y / Float64(t / z))); elseif (a <= 1.85e-230) tmp = t_1; elseif (a <= 1.05e-100) tmp = Float64(x / Float64(1.0 + Float64(b * Float64(y / t)))); elseif (a <= 0.48) tmp = t_2; elseif (a <= 1.5e+35) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z / b) + ((x * (t / b)) / y); t_2 = x + ((y * z) / t); t_3 = t_2 / a; tmp = 0.0; if (a <= -5.8e+30) tmp = t_3; elseif (a <= -2.6e-23) tmp = t_1; elseif (a <= -6.8e-301) tmp = x + (y / (t / z)); elseif (a <= 1.85e-230) tmp = t_1; elseif (a <= 1.05e-100) tmp = x / (1.0 + (b * (y / t))); elseif (a <= 0.48) tmp = t_2; elseif (a <= 1.5e+35) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(x * N[(t / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / a), $MachinePrecision]}, If[LessEqual[a, -5.8e+30], t$95$3, If[LessEqual[a, -2.6e-23], t$95$1, If[LessEqual[a, -6.8e-301], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-230], t$95$1, If[LessEqual[a, 1.05e-100], N[(x / N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.48], t$95$2, If[LessEqual[a, 1.5e+35], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{b} + \frac{x \cdot \frac{t}{b}}{y}\\
t_2 := x + \frac{y \cdot z}{t}\\
t_3 := \frac{t_2}{a}\\
\mathbf{if}\;a \leq -5.8 \cdot 10^{+30}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{-23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -6.8 \cdot 10^{-301}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-230}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-100}:\\
\;\;\;\;\frac{x}{1 + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;a \leq 0.48:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{+35}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -5.7999999999999996e30 or 1.49999999999999995e35 < a Initial program 72.9%
*-commutative72.9%
associate-/l*72.5%
associate-*l/77.5%
Simplified77.5%
Taylor expanded in a around inf 65.3%
if -5.7999999999999996e30 < a < -2.6e-23 or -6.8000000000000004e-301 < a < 1.84999999999999991e-230 or 0.47999999999999998 < a < 1.49999999999999995e35Initial program 63.6%
*-commutative63.6%
associate-/l*65.6%
associate-*l/68.2%
Simplified68.2%
Taylor expanded in y around -inf 67.9%
+-commutative67.9%
associate-*r/67.9%
distribute-lft-out--67.9%
associate-*r*67.9%
metadata-eval67.9%
*-lft-identity67.9%
Simplified70.4%
Taylor expanded in b around inf 71.0%
associate-*l/73.4%
*-commutative73.4%
Simplified73.4%
if -2.6e-23 < a < -6.8000000000000004e-301Initial program 70.4%
*-commutative70.4%
associate-/l*68.5%
associate-*l/71.7%
Simplified71.7%
Taylor expanded in b around 0 56.8%
*-un-lft-identity56.8%
associate-/l*58.6%
Applied egg-rr58.6%
Taylor expanded in a around 0 56.8%
*-un-lft-identity56.8%
associate-/l*58.6%
Applied egg-rr58.6%
if 1.84999999999999991e-230 < a < 1.05000000000000005e-100Initial program 83.8%
*-commutative83.8%
associate-/l*87.9%
associate-*l/91.8%
Simplified91.8%
Taylor expanded in x around inf 72.3%
Taylor expanded in a around 0 68.3%
associate-*l/72.3%
Simplified72.3%
if 1.05000000000000005e-100 < a < 0.47999999999999998Initial program 86.9%
*-commutative86.9%
associate-/l*87.0%
associate-*l/87.0%
Simplified87.0%
Taylor expanded in b around 0 75.4%
*-un-lft-identity75.4%
associate-/l*67.8%
Applied egg-rr67.8%
Taylor expanded in a around 0 66.0%
Final simplification65.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1e-199) (not (<= t 6e-104))) (/ (+ x (* z (/ y t))) (+ (+ a 1.0) (* b (/ y t)))) (+ (/ z b) (/ (/ t (/ b x)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1e-199) || !(t <= 6e-104)) {
tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
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 ((t <= (-1d-199)) .or. (.not. (t <= 6d-104))) then
tmp = (x + (z * (y / t))) / ((a + 1.0d0) + (b * (y / t)))
else
tmp = (z / b) + ((t / (b / x)) / y)
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 ((t <= -1e-199) || !(t <= 6e-104)) {
tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1e-199) or not (t <= 6e-104): tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t))) else: tmp = (z / b) + ((t / (b / x)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1e-199) || !(t <= 6e-104)) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1e-199) || ~((t <= 6e-104))) tmp = (x + (z * (y / t))) / ((a + 1.0) + (b * (y / t))); else tmp = (z / b) + ((t / (b / x)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1e-199], N[Not[LessEqual[t, 6e-104]], $MachinePrecision]], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-199} \lor \neg \left(t \leq 6 \cdot 10^{-104}\right):\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\end{array}
\end{array}
if t < -9.99999999999999982e-200 or 6.0000000000000005e-104 < t Initial program 81.0%
*-commutative81.0%
associate-/l*81.9%
associate-*l/87.4%
Simplified87.4%
div-inv87.4%
clear-num87.4%
Applied egg-rr87.4%
if -9.99999999999999982e-200 < t < 6.0000000000000005e-104Initial program 48.4%
*-commutative48.4%
associate-/l*45.8%
associate-*l/44.0%
Simplified44.0%
Taylor expanded in y around -inf 64.3%
+-commutative64.3%
associate-*r/64.3%
distribute-lft-out--64.3%
associate-*r*64.3%
metadata-eval64.3%
*-lft-identity64.3%
Simplified61.0%
Taylor expanded in b around inf 77.8%
associate-/l*73.1%
Simplified73.1%
Final simplification84.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))) (t_2 (/ t_1 a)))
(if (<= a -8.5e+26)
t_2
(if (<= a -9.2e-23)
(/ z b)
(if (<= a -1.32e-82)
(+ x (/ y (/ t z)))
(if (<= a 3.4e-107)
(/ x (+ 1.0 (* b (/ y t))))
(if (<= a 1.0) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double t_2 = t_1 / a;
double tmp;
if (a <= -8.5e+26) {
tmp = t_2;
} else if (a <= -9.2e-23) {
tmp = z / b;
} else if (a <= -1.32e-82) {
tmp = x + (y / (t / z));
} else if (a <= 3.4e-107) {
tmp = x / (1.0 + (b * (y / t)));
} else if (a <= 1.0) {
tmp = 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 = x + ((y * z) / t)
t_2 = t_1 / a
if (a <= (-8.5d+26)) then
tmp = t_2
else if (a <= (-9.2d-23)) then
tmp = z / b
else if (a <= (-1.32d-82)) then
tmp = x + (y / (t / z))
else if (a <= 3.4d-107) then
tmp = x / (1.0d0 + (b * (y / t)))
else if (a <= 1.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 = x + ((y * z) / t);
double t_2 = t_1 / a;
double tmp;
if (a <= -8.5e+26) {
tmp = t_2;
} else if (a <= -9.2e-23) {
tmp = z / b;
} else if (a <= -1.32e-82) {
tmp = x + (y / (t / z));
} else if (a <= 3.4e-107) {
tmp = x / (1.0 + (b * (y / t)));
} else if (a <= 1.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + ((y * z) / t) t_2 = t_1 / a tmp = 0 if a <= -8.5e+26: tmp = t_2 elif a <= -9.2e-23: tmp = z / b elif a <= -1.32e-82: tmp = x + (y / (t / z)) elif a <= 3.4e-107: tmp = x / (1.0 + (b * (y / t))) elif a <= 1.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) t_2 = Float64(t_1 / a) tmp = 0.0 if (a <= -8.5e+26) tmp = t_2; elseif (a <= -9.2e-23) tmp = Float64(z / b); elseif (a <= -1.32e-82) tmp = Float64(x + Float64(y / Float64(t / z))); elseif (a <= 3.4e-107) tmp = Float64(x / Float64(1.0 + Float64(b * Float64(y / t)))); elseif (a <= 1.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + ((y * z) / t); t_2 = t_1 / a; tmp = 0.0; if (a <= -8.5e+26) tmp = t_2; elseif (a <= -9.2e-23) tmp = z / b; elseif (a <= -1.32e-82) tmp = x + (y / (t / z)); elseif (a <= 3.4e-107) tmp = x / (1.0 + (b * (y / t))); elseif (a <= 1.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[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 / a), $MachinePrecision]}, If[LessEqual[a, -8.5e+26], t$95$2, If[LessEqual[a, -9.2e-23], N[(z / b), $MachinePrecision], If[LessEqual[a, -1.32e-82], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e-107], N[(x / N[(1.0 + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.0], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
t_2 := \frac{t_1}{a}\\
\mathbf{if}\;a \leq -8.5 \cdot 10^{+26}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-23}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq -1.32 \cdot 10^{-82}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-107}:\\
\;\;\;\;\frac{x}{1 + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;a \leq 1:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -8.5e26 or 1 < a Initial program 72.1%
*-commutative72.1%
associate-/l*71.7%
associate-*l/76.6%
Simplified76.6%
Taylor expanded in a around inf 63.2%
if -8.5e26 < a < -9.2000000000000004e-23Initial program 74.4%
*-commutative74.4%
associate-/l*80.4%
associate-*l/73.9%
Simplified73.9%
Taylor expanded in t around 0 61.5%
if -9.2000000000000004e-23 < a < -1.32e-82Initial program 62.9%
*-commutative62.9%
associate-/l*62.6%
associate-*l/68.7%
Simplified68.7%
Taylor expanded in b around 0 63.7%
*-un-lft-identity63.7%
associate-/l*70.0%
Applied egg-rr70.0%
Taylor expanded in a around 0 63.7%
*-un-lft-identity63.7%
associate-/l*70.0%
Applied egg-rr70.0%
if -1.32e-82 < a < 3.39999999999999994e-107Initial program 73.3%
*-commutative73.3%
associate-/l*73.3%
associate-*l/77.7%
Simplified77.7%
Taylor expanded in x around inf 59.1%
Taylor expanded in a around 0 55.6%
associate-*l/59.1%
Simplified59.1%
if 3.39999999999999994e-107 < a < 1Initial program 83.7%
*-commutative83.7%
associate-/l*83.7%
associate-*l/83.7%
Simplified83.7%
Taylor expanded in b around 0 72.5%
*-un-lft-identity72.5%
associate-/l*65.1%
Applied egg-rr65.1%
Taylor expanded in a around 0 63.4%
Final simplification62.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ z b) (/ (/ t (/ b x)) y))))
(if (<= b -2.6e+154)
t_1
(if (<= b -1.32e+113)
(/ x (+ (+ a 1.0) (* b (/ y t))))
(if (<= b -3.7e+67)
(+ (/ z b) (/ (* x (/ t b)) y))
(if (<= b 1.55e+47) (/ (+ x (/ (* y z) t)) (+ a 1.0)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z / b) + ((t / (b / x)) / y);
double tmp;
if (b <= -2.6e+154) {
tmp = t_1;
} else if (b <= -1.32e+113) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else if (b <= -3.7e+67) {
tmp = (z / b) + ((x * (t / b)) / y);
} else if (b <= 1.55e+47) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} 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 = (z / b) + ((t / (b / x)) / y)
if (b <= (-2.6d+154)) then
tmp = t_1
else if (b <= (-1.32d+113)) then
tmp = x / ((a + 1.0d0) + (b * (y / t)))
else if (b <= (-3.7d+67)) then
tmp = (z / b) + ((x * (t / b)) / y)
else if (b <= 1.55d+47) then
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
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 = (z / b) + ((t / (b / x)) / y);
double tmp;
if (b <= -2.6e+154) {
tmp = t_1;
} else if (b <= -1.32e+113) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else if (b <= -3.7e+67) {
tmp = (z / b) + ((x * (t / b)) / y);
} else if (b <= 1.55e+47) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z / b) + ((t / (b / x)) / y) tmp = 0 if b <= -2.6e+154: tmp = t_1 elif b <= -1.32e+113: tmp = x / ((a + 1.0) + (b * (y / t))) elif b <= -3.7e+67: tmp = (z / b) + ((x * (t / b)) / y) elif b <= 1.55e+47: tmp = (x + ((y * z) / t)) / (a + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)) tmp = 0.0 if (b <= -2.6e+154) tmp = t_1; elseif (b <= -1.32e+113) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); elseif (b <= -3.7e+67) tmp = Float64(Float64(z / b) + Float64(Float64(x * Float64(t / b)) / y)); elseif (b <= 1.55e+47) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z / b) + ((t / (b / x)) / y); tmp = 0.0; if (b <= -2.6e+154) tmp = t_1; elseif (b <= -1.32e+113) tmp = x / ((a + 1.0) + (b * (y / t))); elseif (b <= -3.7e+67) tmp = (z / b) + ((x * (t / b)) / y); elseif (b <= 1.55e+47) tmp = (x + ((y * z) / t)) / (a + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.6e+154], t$95$1, If[LessEqual[b, -1.32e+113], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.7e+67], N[(N[(z / b), $MachinePrecision] + N[(N[(x * N[(t / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.55e+47], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.32 \cdot 10^{+113}:\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{+67}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot \frac{t}{b}}{y}\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{+47}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.59999999999999989e154 or 1.55e47 < b Initial program 56.6%
*-commutative56.6%
associate-/l*57.6%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in y around -inf 55.3%
+-commutative55.3%
associate-*r/55.3%
distribute-lft-out--55.3%
associate-*r*55.3%
metadata-eval55.3%
*-lft-identity55.3%
Simplified63.2%
Taylor expanded in b around inf 67.7%
associate-/l*73.0%
Simplified73.0%
if -2.59999999999999989e154 < b < -1.31999999999999996e113Initial program 65.1%
*-commutative65.1%
associate-/l*65.3%
associate-*l/85.8%
Simplified85.8%
Taylor expanded in x around inf 65.5%
if -1.31999999999999996e113 < b < -3.6999999999999997e67Initial program 47.1%
*-commutative47.1%
associate-/l*46.3%
associate-*l/46.6%
Simplified46.6%
Taylor expanded in y around -inf 62.4%
+-commutative62.4%
associate-*r/62.4%
distribute-lft-out--62.4%
associate-*r*62.4%
metadata-eval62.4%
*-lft-identity62.4%
Simplified62.4%
Taylor expanded in b around inf 70.5%
associate-*l/70.5%
*-commutative70.5%
Simplified70.5%
if -3.6999999999999997e67 < b < 1.55e47Initial program 87.9%
*-commutative87.9%
associate-/l*87.5%
associate-*l/86.7%
Simplified86.7%
Taylor expanded in b around 0 78.6%
Final simplification75.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ z b) (/ (/ t (/ b x)) y))))
(if (<= b -1.6e+154)
t_1
(if (<= b -1.15e+106)
(/ (+ x (/ y (/ t z))) (+ a 1.0))
(if (<= b -1.65e+70)
(+ (/ z b) (/ (* x (/ t b)) y))
(if (<= b 6.5e+46) (/ (+ x (/ (* y z) t)) (+ a 1.0)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z / b) + ((t / (b / x)) / y);
double tmp;
if (b <= -1.6e+154) {
tmp = t_1;
} else if (b <= -1.15e+106) {
tmp = (x + (y / (t / z))) / (a + 1.0);
} else if (b <= -1.65e+70) {
tmp = (z / b) + ((x * (t / b)) / y);
} else if (b <= 6.5e+46) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} 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 = (z / b) + ((t / (b / x)) / y)
if (b <= (-1.6d+154)) then
tmp = t_1
else if (b <= (-1.15d+106)) then
tmp = (x + (y / (t / z))) / (a + 1.0d0)
else if (b <= (-1.65d+70)) then
tmp = (z / b) + ((x * (t / b)) / y)
else if (b <= 6.5d+46) then
tmp = (x + ((y * z) / t)) / (a + 1.0d0)
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 = (z / b) + ((t / (b / x)) / y);
double tmp;
if (b <= -1.6e+154) {
tmp = t_1;
} else if (b <= -1.15e+106) {
tmp = (x + (y / (t / z))) / (a + 1.0);
} else if (b <= -1.65e+70) {
tmp = (z / b) + ((x * (t / b)) / y);
} else if (b <= 6.5e+46) {
tmp = (x + ((y * z) / t)) / (a + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z / b) + ((t / (b / x)) / y) tmp = 0 if b <= -1.6e+154: tmp = t_1 elif b <= -1.15e+106: tmp = (x + (y / (t / z))) / (a + 1.0) elif b <= -1.65e+70: tmp = (z / b) + ((x * (t / b)) / y) elif b <= 6.5e+46: tmp = (x + ((y * z) / t)) / (a + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)) tmp = 0.0 if (b <= -1.6e+154) tmp = t_1; elseif (b <= -1.15e+106) tmp = Float64(Float64(x + Float64(y / Float64(t / z))) / Float64(a + 1.0)); elseif (b <= -1.65e+70) tmp = Float64(Float64(z / b) + Float64(Float64(x * Float64(t / b)) / y)); elseif (b <= 6.5e+46) tmp = Float64(Float64(x + Float64(Float64(y * z) / t)) / Float64(a + 1.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z / b) + ((t / (b / x)) / y); tmp = 0.0; if (b <= -1.6e+154) tmp = t_1; elseif (b <= -1.15e+106) tmp = (x + (y / (t / z))) / (a + 1.0); elseif (b <= -1.65e+70) tmp = (z / b) + ((x * (t / b)) / y); elseif (b <= 6.5e+46) tmp = (x + ((y * z) / t)) / (a + 1.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+154], t$95$1, If[LessEqual[b, -1.15e+106], N[(N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e+70], N[(N[(z / b), $MachinePrecision] + N[(N[(x * N[(t / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e+46], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{+106}:\\
\;\;\;\;\frac{x + \frac{y}{\frac{t}{z}}}{a + 1}\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{+70}:\\
\;\;\;\;\frac{z}{b} + \frac{x \cdot \frac{t}{b}}{y}\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+46}:\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t}}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.6e154 or 6.50000000000000008e46 < b Initial program 56.6%
*-commutative56.6%
associate-/l*57.6%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in y around -inf 55.3%
+-commutative55.3%
associate-*r/55.3%
distribute-lft-out--55.3%
associate-*r*55.3%
metadata-eval55.3%
*-lft-identity55.3%
Simplified63.2%
Taylor expanded in b around inf 67.7%
associate-/l*73.0%
Simplified73.0%
if -1.6e154 < b < -1.1500000000000001e106Initial program 65.1%
*-commutative65.1%
associate-/l*65.3%
associate-*l/85.8%
Simplified85.8%
Taylor expanded in b around 0 61.0%
*-un-lft-identity61.0%
associate-/l*67.8%
Applied egg-rr67.8%
if -1.1500000000000001e106 < b < -1.65000000000000008e70Initial program 47.1%
*-commutative47.1%
associate-/l*46.3%
associate-*l/46.6%
Simplified46.6%
Taylor expanded in y around -inf 62.4%
+-commutative62.4%
associate-*r/62.4%
distribute-lft-out--62.4%
associate-*r*62.4%
metadata-eval62.4%
*-lft-identity62.4%
Simplified62.4%
Taylor expanded in b around inf 70.5%
associate-*l/70.5%
*-commutative70.5%
Simplified70.5%
if -1.65000000000000008e70 < b < 6.50000000000000008e46Initial program 87.9%
*-commutative87.9%
associate-/l*87.5%
associate-*l/86.7%
Simplified86.7%
Taylor expanded in b around 0 78.6%
Final simplification75.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.1e+28) (not (<= b 9.2e+46))) (+ (/ z b) (/ (/ t (/ b x)) y)) (/ x (+ a 1.0))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.1e+28) || !(b <= 9.2e+46)) {
tmp = (z / b) + ((t / (b / x)) / y);
} else {
tmp = x / (a + 1.0);
}
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 ((b <= (-2.1d+28)) .or. (.not. (b <= 9.2d+46))) then
tmp = (z / b) + ((t / (b / x)) / y)
else
tmp = x / (a + 1.0d0)
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 ((b <= -2.1e+28) || !(b <= 9.2e+46)) {
tmp = (z / b) + ((t / (b / x)) / y);
} else {
tmp = x / (a + 1.0);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.1e+28) or not (b <= 9.2e+46): tmp = (z / b) + ((t / (b / x)) / y) else: tmp = x / (a + 1.0) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.1e+28) || !(b <= 9.2e+46)) tmp = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)); else tmp = Float64(x / Float64(a + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.1e+28) || ~((b <= 9.2e+46))) tmp = (z / b) + ((t / (b / x)) / y); else tmp = x / (a + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.1e+28], N[Not[LessEqual[b, 9.2e+46]], $MachinePrecision]], N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+28} \lor \neg \left(b \leq 9.2 \cdot 10^{+46}\right):\\
\;\;\;\;\frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a + 1}\\
\end{array}
\end{array}
if b < -2.09999999999999989e28 or 9.2000000000000002e46 < b Initial program 57.1%
*-commutative57.1%
associate-/l*57.6%
associate-*l/65.9%
Simplified65.9%
Taylor expanded in y around -inf 52.8%
+-commutative52.8%
associate-*r/52.8%
distribute-lft-out--52.8%
associate-*r*52.8%
metadata-eval52.8%
*-lft-identity52.8%
Simplified58.6%
Taylor expanded in b around inf 62.8%
associate-/l*66.6%
Simplified66.6%
if -2.09999999999999989e28 < b < 9.2000000000000002e46Initial program 89.3%
*-commutative89.3%
associate-/l*89.1%
associate-*l/88.2%
Simplified88.2%
Taylor expanded in t around inf 52.6%
Final simplification59.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.62e-49) (not (<= t 1.1e-102))) (/ x (+ 1.0 (+ a (/ (* y b) t)))) (+ (/ z b) (/ (/ t (/ b x)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.62e-49) || !(t <= 1.1e-102)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
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 ((t <= (-1.62d-49)) .or. (.not. (t <= 1.1d-102))) then
tmp = x / (1.0d0 + (a + ((y * b) / t)))
else
tmp = (z / b) + ((t / (b / x)) / y)
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 ((t <= -1.62e-49) || !(t <= 1.1e-102)) {
tmp = x / (1.0 + (a + ((y * b) / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.62e-49) or not (t <= 1.1e-102): tmp = x / (1.0 + (a + ((y * b) / t))) else: tmp = (z / b) + ((t / (b / x)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.62e-49) || !(t <= 1.1e-102)) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(Float64(y * b) / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.62e-49) || ~((t <= 1.1e-102))) tmp = x / (1.0 + (a + ((y * b) / t))); else tmp = (z / b) + ((t / (b / x)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.62e-49], N[Not[LessEqual[t, 1.1e-102]], $MachinePrecision]], N[(x / N[(1.0 + N[(a + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.62 \cdot 10^{-49} \lor \neg \left(t \leq 1.1 \cdot 10^{-102}\right):\\
\;\;\;\;\frac{x}{1 + \left(a + \frac{y \cdot b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\end{array}
\end{array}
if t < -1.62e-49 or 1.10000000000000006e-102 < t Initial program 82.0%
*-commutative82.0%
associate-/l*84.3%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in x around inf 61.1%
if -1.62e-49 < t < 1.10000000000000006e-102Initial program 56.1%
*-commutative56.1%
associate-/l*52.0%
associate-*l/50.7%
Simplified50.7%
Taylor expanded in y around -inf 60.3%
+-commutative60.3%
associate-*r/60.3%
distribute-lft-out--60.3%
associate-*r*60.3%
metadata-eval60.3%
*-lft-identity60.3%
Simplified58.0%
Taylor expanded in b around inf 71.2%
associate-/l*67.9%
Simplified67.9%
Final simplification63.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.4e-47) (not (<= t 1.1e-102))) (/ x (+ (+ a 1.0) (* b (/ y t)))) (+ (/ z b) (/ (/ t (/ b x)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.4e-47) || !(t <= 1.1e-102)) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
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 ((t <= (-1.4d-47)) .or. (.not. (t <= 1.1d-102))) then
tmp = x / ((a + 1.0d0) + (b * (y / t)))
else
tmp = (z / b) + ((t / (b / x)) / y)
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 ((t <= -1.4e-47) || !(t <= 1.1e-102)) {
tmp = x / ((a + 1.0) + (b * (y / t)));
} else {
tmp = (z / b) + ((t / (b / x)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.4e-47) or not (t <= 1.1e-102): tmp = x / ((a + 1.0) + (b * (y / t))) else: tmp = (z / b) + ((t / (b / x)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.4e-47) || !(t <= 1.1e-102)) tmp = Float64(x / Float64(Float64(a + 1.0) + Float64(b * Float64(y / t)))); else tmp = Float64(Float64(z / b) + Float64(Float64(t / Float64(b / x)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.4e-47) || ~((t <= 1.1e-102))) tmp = x / ((a + 1.0) + (b * (y / t))); else tmp = (z / b) + ((t / (b / x)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.4e-47], N[Not[LessEqual[t, 1.1e-102]], $MachinePrecision]], N[(x / N[(N[(a + 1.0), $MachinePrecision] + N[(b * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(t / N[(b / x), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-47} \lor \neg \left(t \leq 1.1 \cdot 10^{-102}\right):\\
\;\;\;\;\frac{x}{\left(a + 1\right) + b \cdot \frac{y}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{\frac{t}{\frac{b}{x}}}{y}\\
\end{array}
\end{array}
if t < -1.39999999999999996e-47 or 1.10000000000000006e-102 < t Initial program 82.0%
*-commutative82.0%
associate-/l*84.3%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in x around inf 64.5%
if -1.39999999999999996e-47 < t < 1.10000000000000006e-102Initial program 56.1%
*-commutative56.1%
associate-/l*52.0%
associate-*l/50.7%
Simplified50.7%
Taylor expanded in y around -inf 60.3%
+-commutative60.3%
associate-*r/60.3%
distribute-lft-out--60.3%
associate-*r*60.3%
metadata-eval60.3%
*-lft-identity60.3%
Simplified58.0%
Taylor expanded in b around inf 71.2%
associate-/l*67.9%
Simplified67.9%
Final simplification65.6%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.15e-41) (/ z b) (if (<= y 1.6e-185) (/ x a) (if (<= y 5e-155) (- x (* x a)) (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.15e-41) {
tmp = z / b;
} else if (y <= 1.6e-185) {
tmp = x / a;
} else if (y <= 5e-155) {
tmp = x - (x * a);
} else {
tmp = z / 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 (y <= (-2.15d-41)) then
tmp = z / b
else if (y <= 1.6d-185) then
tmp = x / a
else if (y <= 5d-155) then
tmp = x - (x * a)
else
tmp = z / 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 (y <= -2.15e-41) {
tmp = z / b;
} else if (y <= 1.6e-185) {
tmp = x / a;
} else if (y <= 5e-155) {
tmp = x - (x * a);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.15e-41: tmp = z / b elif y <= 1.6e-185: tmp = x / a elif y <= 5e-155: tmp = x - (x * a) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.15e-41) tmp = Float64(z / b); elseif (y <= 1.6e-185) tmp = Float64(x / a); elseif (y <= 5e-155) tmp = Float64(x - Float64(x * a)); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.15e-41) tmp = z / b; elseif (y <= 1.6e-185) tmp = x / a; elseif (y <= 5e-155) tmp = x - (x * a); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.15e-41], N[(z / b), $MachinePrecision], If[LessEqual[y, 1.6e-185], N[(x / a), $MachinePrecision], If[LessEqual[y, 5e-155], N[(x - N[(x * a), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.15 \cdot 10^{-41}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-185}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-155}:\\
\;\;\;\;x - x \cdot a\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -2.1499999999999999e-41 or 4.9999999999999999e-155 < y Initial program 63.4%
*-commutative63.4%
associate-/l*63.6%
associate-*l/69.1%
Simplified69.1%
Taylor expanded in t around 0 45.6%
if -2.1499999999999999e-41 < y < 1.5999999999999999e-185Initial program 93.5%
*-commutative93.5%
associate-/l*94.6%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in t around inf 60.3%
Taylor expanded in a around inf 36.4%
if 1.5999999999999999e-185 < y < 4.9999999999999999e-155Initial program 100.0%
*-commutative100.0%
associate-/l*86.8%
associate-*l/86.8%
Simplified86.8%
Taylor expanded in t around inf 72.7%
Taylor expanded in a around 0 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
Simplified72.9%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.4e-38) (/ z b) (if (<= y 3.2e-188) (/ x a) (if (<= y 3.3e-155) x (/ z b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.4e-38) {
tmp = z / b;
} else if (y <= 3.2e-188) {
tmp = x / a;
} else if (y <= 3.3e-155) {
tmp = x;
} else {
tmp = z / 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 (y <= (-2.4d-38)) then
tmp = z / b
else if (y <= 3.2d-188) then
tmp = x / a
else if (y <= 3.3d-155) then
tmp = x
else
tmp = z / 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 (y <= -2.4e-38) {
tmp = z / b;
} else if (y <= 3.2e-188) {
tmp = x / a;
} else if (y <= 3.3e-155) {
tmp = x;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.4e-38: tmp = z / b elif y <= 3.2e-188: tmp = x / a elif y <= 3.3e-155: tmp = x else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.4e-38) tmp = Float64(z / b); elseif (y <= 3.2e-188) tmp = Float64(x / a); elseif (y <= 3.3e-155) tmp = x; else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.4e-38) tmp = z / b; elseif (y <= 3.2e-188) tmp = x / a; elseif (y <= 3.3e-155) tmp = x; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.4e-38], N[(z / b), $MachinePrecision], If[LessEqual[y, 3.2e-188], N[(x / a), $MachinePrecision], If[LessEqual[y, 3.3e-155], x, N[(z / b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{-38}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-188}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-155}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if y < -2.40000000000000022e-38 or 3.29999999999999986e-155 < y Initial program 63.4%
*-commutative63.4%
associate-/l*63.6%
associate-*l/69.1%
Simplified69.1%
Taylor expanded in t around 0 45.6%
if -2.40000000000000022e-38 < y < 3.20000000000000022e-188Initial program 93.5%
*-commutative93.5%
associate-/l*94.6%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in t around inf 60.3%
Taylor expanded in a around inf 36.4%
if 3.20000000000000022e-188 < y < 3.29999999999999986e-155Initial program 100.0%
*-commutative100.0%
associate-/l*86.8%
associate-*l/86.8%
Simplified86.8%
Taylor expanded in b around 0 100.0%
*-un-lft-identity100.0%
associate-/l*86.3%
Applied egg-rr86.3%
Taylor expanded in a around 0 70.2%
Taylor expanded in y around 0 71.4%
Final simplification43.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -4.9e-51) (not (<= t 1.1e-102))) (/ x (+ a 1.0)) (/ z b)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -4.9e-51) || !(t <= 1.1e-102)) {
tmp = x / (a + 1.0);
} else {
tmp = z / 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 ((t <= (-4.9d-51)) .or. (.not. (t <= 1.1d-102))) then
tmp = x / (a + 1.0d0)
else
tmp = z / 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 ((t <= -4.9e-51) || !(t <= 1.1e-102)) {
tmp = x / (a + 1.0);
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -4.9e-51) or not (t <= 1.1e-102): tmp = x / (a + 1.0) else: tmp = z / b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -4.9e-51) || !(t <= 1.1e-102)) tmp = Float64(x / Float64(a + 1.0)); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -4.9e-51) || ~((t <= 1.1e-102))) tmp = x / (a + 1.0); else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -4.9e-51], N[Not[LessEqual[t, 1.1e-102]], $MachinePrecision]], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], N[(z / b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.9 \cdot 10^{-51} \lor \neg \left(t \leq 1.1 \cdot 10^{-102}\right):\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if t < -4.89999999999999974e-51 or 1.10000000000000006e-102 < t Initial program 82.0%
*-commutative82.0%
associate-/l*84.3%
associate-*l/90.6%
Simplified90.6%
Taylor expanded in t around inf 55.0%
if -4.89999999999999974e-51 < t < 1.10000000000000006e-102Initial program 56.1%
*-commutative56.1%
associate-/l*52.0%
associate-*l/50.7%
Simplified50.7%
Taylor expanded in t around 0 61.9%
Final simplification57.4%
(FPCore (x y z t a b) :precision binary64 (if (<= a -1.0) (/ x a) (if (<= a 1.0) x (/ x a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.0) {
tmp = x / a;
} else if (a <= 1.0) {
tmp = x;
} else {
tmp = x / a;
}
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 (a <= (-1.0d0)) then
tmp = x / a
else if (a <= 1.0d0) then
tmp = x
else
tmp = x / a
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 (a <= -1.0) {
tmp = x / a;
} else if (a <= 1.0) {
tmp = x;
} else {
tmp = x / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= -1.0: tmp = x / a elif a <= 1.0: tmp = x else: tmp = x / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -1.0) tmp = Float64(x / a); elseif (a <= 1.0) tmp = x; else tmp = Float64(x / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= -1.0) tmp = x / a; elseif (a <= 1.0) tmp = x; else tmp = x / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.0], N[(x / a), $MachinePrecision], If[LessEqual[a, 1.0], x, N[(x / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -1 or 1 < a Initial program 72.3%
*-commutative72.3%
associate-/l*72.6%
associate-*l/76.3%
Simplified76.3%
Taylor expanded in t around inf 43.4%
Taylor expanded in a around inf 43.4%
if -1 < a < 1Initial program 74.1%
*-commutative74.1%
associate-/l*74.0%
associate-*l/77.7%
Simplified77.7%
Taylor expanded in b around 0 53.9%
*-un-lft-identity53.9%
associate-/l*52.5%
Applied egg-rr52.5%
Taylor expanded in a around 0 52.1%
Taylor expanded in y around 0 37.7%
Final simplification40.5%
(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 73.2%
*-commutative73.2%
associate-/l*73.3%
associate-*l/77.0%
Simplified77.0%
Taylor expanded in b around 0 57.4%
*-un-lft-identity57.4%
associate-/l*56.7%
Applied egg-rr56.7%
Taylor expanded in a around 0 28.2%
Taylor expanded in y around 0 21.1%
Final simplification21.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(if (< t -1.3659085366310088e-271)
t_1
(if (< t 3.036967103737246e-130) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / 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 = 1.0d0 * ((x + ((y / t) * z)) * (1.0d0 / ((a + 1.0d0) + ((y / t) * b))))
if (t < (-1.3659085366310088d-271)) then
tmp = t_1
else if (t < 3.036967103737246d-130) then
tmp = 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 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b))));
double tmp;
if (t < -1.3659085366310088e-271) {
tmp = t_1;
} else if (t < 3.036967103737246e-130) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))) tmp = 0 if t < -1.3659085366310088e-271: tmp = t_1 elif t < 3.036967103737246e-130: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.0 * Float64(Float64(x + Float64(Float64(y / t) * z)) * Float64(1.0 / Float64(Float64(a + 1.0) + Float64(Float64(y / t) * b))))) tmp = 0.0 if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.0 * ((x + ((y / t) * z)) * (1.0 / ((a + 1.0) + ((y / t) * b)))); tmp = 0.0; if (t < -1.3659085366310088e-271) tmp = t_1; elseif (t < 3.036967103737246e-130) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.0 * N[(N[(x + N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(N[(a + 1.0), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.3659085366310088e-271], t$95$1, If[Less[t, 3.036967103737246e-130], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1 \cdot \left(\left(x + \frac{y}{t} \cdot z\right) \cdot \frac{1}{\left(a + 1\right) + \frac{y}{t} \cdot b}\right)\\
\mathbf{if}\;t < -1.3659085366310088 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < 3.036967103737246 \cdot 10^{-130}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023207
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(if (< t -1.3659085366310088e-271) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b))))) (if (< t 3.036967103737246e-130) (/ z b) (* 1.0 (* (+ x (* (/ y t) z)) (/ 1.0 (+ (+ a 1.0) (* (/ y t) b)))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))