
(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 18 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 (+ (/ (* y b) t) (+ a 1.0))) (t_2 (/ (+ x (/ (* y z) t)) t_1)))
(if (<= t_2 (- INFINITY))
(* z (+ (/ (/ x z) t_1) (/ (/ y t) t_1)))
(if (<= t_2 -1e-302)
t_2
(if (<= t_2 0.0)
(+ (/ z b) (/ (* t (/ x b)) y))
(if (<= t_2 2e+306)
t_2
(if (<= t_2 INFINITY) (/ (* y (/ z t_1)) t) (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = z * (((x / z) / t_1) + ((y / t) / t_1));
} else if (t_2 <= -1e-302) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = z * (((x / z) / t_1) + ((y / t) / t_1));
} else if (t_2 <= -1e-302) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y * b) / t) + (a + 1.0) t_2 = (x + ((y * z) / t)) / t_1 tmp = 0 if t_2 <= -math.inf: tmp = z * (((x / z) / t_1) + ((y / t) / t_1)) elif t_2 <= -1e-302: tmp = t_2 elif t_2 <= 0.0: tmp = (z / b) + ((t * (x / b)) / y) elif t_2 <= 2e+306: tmp = t_2 elif t_2 <= math.inf: tmp = (y * (z / t_1)) / t else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / t_1) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(Float64(x / z) / t_1) + Float64(Float64(y / t) / t_1))); elseif (t_2 <= -1e-302) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(Float64(z / b) + Float64(Float64(t * Float64(x / b)) / y)); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(Float64(y * Float64(z / t_1)) / t); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y * b) / t) + (a + 1.0); t_2 = (x + ((y * z) / t)) / t_1; tmp = 0.0; if (t_2 <= -Inf) tmp = z * (((x / z) / t_1) + ((y / t) / t_1)); elseif (t_2 <= -1e-302) tmp = t_2; elseif (t_2 <= 0.0) tmp = (z / b) + ((t * (x / b)) / y); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = (y * (z / t_1)) / t; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(z * N[(N[(N[(x / z), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e-302], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(z / b), $MachinePrecision] + N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+306], t$95$2, If[LessEqual[t$95$2, Infinity], N[(N[(y * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t} + \left(a + 1\right)\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{\frac{x}{z}}{t\_1} + \frac{\frac{y}{t}}{t\_1}\right)\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-302}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{z}{b} + \frac{t \cdot \frac{x}{b}}{y}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{y \cdot \frac{z}{t\_1}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 14.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6452.8%
Applied egg-rr52.8%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6452.5%
Applied egg-rr52.5%
Taylor expanded in z around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
+-commutativeN/A
associate-+l+N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Simplified91.8%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -9.9999999999999996e-303 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.00000000000000003e306Initial program 99.2%
if -9.9999999999999996e-303 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0Initial program 45.5%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified65.3%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6474.1%
Simplified74.1%
if 2.00000000000000003e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 48.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6448.1%
Applied egg-rr48.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6474.0%
Simplified74.0%
times-fracN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-+r+N/A
+-commutativeN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
/-lowering-/.f64100.0%
Simplified100.0%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ (* y b) t) (+ a 1.0)))
(t_2 (/ (+ x (/ (* y z) t)) t_1))
(t_3 (+ 1.0 (+ a (* y (/ b t))))))
(if (<= t_2 (- INFINITY))
(* z (+ (/ (/ x z) t_3) (/ (/ y t) t_3)))
(if (<= t_2 -1e-302)
t_2
(if (<= t_2 0.0)
(+ (/ z b) (/ (* t (/ x b)) y))
(if (<= t_2 2e+306)
t_2
(if (<= t_2 INFINITY) (/ (* y (/ z t_1)) t) (/ z b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double t_3 = 1.0 + (a + (y * (b / t)));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = z * (((x / z) / t_3) + ((y / t) / t_3));
} else if (t_2 <= -1e-302) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double t_3 = 1.0 + (a + (y * (b / t)));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = z * (((x / z) / t_3) + ((y / t) / t_3));
} else if (t_2 <= -1e-302) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y * b) / t) + (a + 1.0) t_2 = (x + ((y * z) / t)) / t_1 t_3 = 1.0 + (a + (y * (b / t))) tmp = 0 if t_2 <= -math.inf: tmp = z * (((x / z) / t_3) + ((y / t) / t_3)) elif t_2 <= -1e-302: tmp = t_2 elif t_2 <= 0.0: tmp = (z / b) + ((t * (x / b)) / y) elif t_2 <= 2e+306: tmp = t_2 elif t_2 <= math.inf: tmp = (y * (z / t_1)) / t else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / t_1) t_3 = Float64(1.0 + Float64(a + Float64(y * Float64(b / t)))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(z * Float64(Float64(Float64(x / z) / t_3) + Float64(Float64(y / t) / t_3))); elseif (t_2 <= -1e-302) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(Float64(z / b) + Float64(Float64(t * Float64(x / b)) / y)); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(Float64(y * Float64(z / t_1)) / t); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y * b) / t) + (a + 1.0); t_2 = (x + ((y * z) / t)) / t_1; t_3 = 1.0 + (a + (y * (b / t))); tmp = 0.0; if (t_2 <= -Inf) tmp = z * (((x / z) / t_3) + ((y / t) / t_3)); elseif (t_2 <= -1e-302) tmp = t_2; elseif (t_2 <= 0.0) tmp = (z / b) + ((t * (x / b)) / y); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = (y * (z / t_1)) / t; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(z * N[(N[(N[(x / z), $MachinePrecision] / t$95$3), $MachinePrecision] + N[(N[(y / t), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -1e-302], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(z / b), $MachinePrecision] + N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+306], t$95$2, If[LessEqual[t$95$2, Infinity], N[(N[(y * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t} + \left(a + 1\right)\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1}\\
t_3 := 1 + \left(a + y \cdot \frac{b}{t}\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;z \cdot \left(\frac{\frac{x}{z}}{t\_3} + \frac{\frac{y}{t}}{t\_3}\right)\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-302}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{z}{b} + \frac{t \cdot \frac{x}{b}}{y}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{y \cdot \frac{z}{t\_1}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -inf.0Initial program 14.2%
Taylor expanded in z around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
Simplified91.7%
if -inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -9.9999999999999996e-303 or 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.00000000000000003e306Initial program 99.2%
if -9.9999999999999996e-303 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0Initial program 45.5%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified65.3%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6474.1%
Simplified74.1%
if 2.00000000000000003e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 48.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6448.1%
Applied egg-rr48.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6474.0%
Simplified74.0%
times-fracN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-+r+N/A
+-commutativeN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
/-lowering-/.f64100.0%
Simplified100.0%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ (/ (* y b) t) (+ a 1.0))) (t_2 (/ (+ x (/ (* y z) t)) t_1)))
(if (<= t_2 -1e-302)
(/ (+ x (* z (/ y t))) t_1)
(if (<= t_2 0.0)
(+ (/ z b) (/ (* t (/ x b)) y))
(if (<= t_2 2e+306)
t_2
(if (<= t_2 INFINITY) (/ (* y (/ z t_1)) t) (/ z b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double tmp;
if (t_2 <= -1e-302) {
tmp = (x + (z * (y / t))) / t_1;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((y * b) / t) + (a + 1.0);
double t_2 = (x + ((y * z) / t)) / t_1;
double tmp;
if (t_2 <= -1e-302) {
tmp = (x + (z * (y / t))) / t_1;
} else if (t_2 <= 0.0) {
tmp = (z / b) + ((t * (x / b)) / y);
} else if (t_2 <= 2e+306) {
tmp = t_2;
} else if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = (y * (z / t_1)) / t;
} else {
tmp = z / b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((y * b) / t) + (a + 1.0) t_2 = (x + ((y * z) / t)) / t_1 tmp = 0 if t_2 <= -1e-302: tmp = (x + (z * (y / t))) / t_1 elif t_2 <= 0.0: tmp = (z / b) + ((t * (x / b)) / y) elif t_2 <= 2e+306: tmp = t_2 elif t_2 <= math.inf: tmp = (y * (z / t_1)) / t else: tmp = z / b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0)) t_2 = Float64(Float64(x + Float64(Float64(y * z) / t)) / t_1) tmp = 0.0 if (t_2 <= -1e-302) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / t_1); elseif (t_2 <= 0.0) tmp = Float64(Float64(z / b) + Float64(Float64(t * Float64(x / b)) / y)); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = Float64(Float64(y * Float64(z / t_1)) / t); else tmp = Float64(z / b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((y * b) / t) + (a + 1.0); t_2 = (x + ((y * z) / t)) / t_1; tmp = 0.0; if (t_2 <= -1e-302) tmp = (x + (z * (y / t))) / t_1; elseif (t_2 <= 0.0) tmp = (z / b) + ((t * (x / b)) / y); elseif (t_2 <= 2e+306) tmp = t_2; elseif (t_2 <= Inf) tmp = (y * (z / t_1)) / t; else tmp = z / b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-302], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(N[(z / b), $MachinePrecision] + N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+306], t$95$2, If[LessEqual[t$95$2, Infinity], N[(N[(y * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], N[(z / b), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot b}{t} + \left(a + 1\right)\\
t_2 := \frac{x + \frac{y \cdot z}{t}}{t\_1}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-302}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{t\_1}\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\frac{z}{b} + \frac{t \cdot \frac{x}{b}}{y}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+306}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\frac{y \cdot \frac{z}{t\_1}}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < -9.9999999999999996e-303Initial program 89.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6492.9%
Applied egg-rr92.9%
if -9.9999999999999996e-303 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 0.0Initial program 45.5%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified65.3%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6474.1%
Simplified74.1%
if 0.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < 2.00000000000000003e306Initial program 98.6%
if 2.00000000000000003e306 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) < +inf.0Initial program 48.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6448.1%
Applied egg-rr48.1%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6474.0%
Simplified74.0%
times-fracN/A
associate-*l/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-+r+N/A
+-commutativeN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.7%
Applied egg-rr99.7%
if +inf.0 < (/.f64 (+.f64 x (/.f64 (*.f64 y z) t)) (+.f64 (+.f64 a #s(literal 1 binary64)) (/.f64 (*.f64 y b) t))) Initial program 0.0%
Taylor expanded in y around inf
/-lowering-/.f64100.0%
Simplified100.0%
Final simplification92.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -9.5e+175)
(/ (+ z (* t (/ x y))) b)
(if (<= b -4e+90)
(/ x (+ (/ (* y b) t) (+ a 1.0)))
(if (<= b 1.62e+35)
(/ (+ x (* z (/ y t))) (+ a 1.0))
(if (<= b 4.5e+149)
(/ x (+ 1.0 (+ a (* y (/ b t)))))
(+ (/ z b) (/ (* t (/ x b)) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.5e+175) {
tmp = (z + (t * (x / y))) / b;
} else if (b <= -4e+90) {
tmp = x / (((y * b) / t) + (a + 1.0));
} else if (b <= 1.62e+35) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (b <= 4.5e+149) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (z / b) + ((t * (x / b)) / 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 (b <= (-9.5d+175)) then
tmp = (z + (t * (x / y))) / b
else if (b <= (-4d+90)) then
tmp = x / (((y * b) / t) + (a + 1.0d0))
else if (b <= 1.62d+35) then
tmp = (x + (z * (y / t))) / (a + 1.0d0)
else if (b <= 4.5d+149) then
tmp = x / (1.0d0 + (a + (y * (b / t))))
else
tmp = (z / b) + ((t * (x / b)) / 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 (b <= -9.5e+175) {
tmp = (z + (t * (x / y))) / b;
} else if (b <= -4e+90) {
tmp = x / (((y * b) / t) + (a + 1.0));
} else if (b <= 1.62e+35) {
tmp = (x + (z * (y / t))) / (a + 1.0);
} else if (b <= 4.5e+149) {
tmp = x / (1.0 + (a + (y * (b / t))));
} else {
tmp = (z / b) + ((t * (x / b)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.5e+175: tmp = (z + (t * (x / y))) / b elif b <= -4e+90: tmp = x / (((y * b) / t) + (a + 1.0)) elif b <= 1.62e+35: tmp = (x + (z * (y / t))) / (a + 1.0) elif b <= 4.5e+149: tmp = x / (1.0 + (a + (y * (b / t)))) else: tmp = (z / b) + ((t * (x / b)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.5e+175) tmp = Float64(Float64(z + Float64(t * Float64(x / y))) / b); elseif (b <= -4e+90) tmp = Float64(x / Float64(Float64(Float64(y * b) / t) + Float64(a + 1.0))); elseif (b <= 1.62e+35) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(a + 1.0)); elseif (b <= 4.5e+149) tmp = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))); else tmp = Float64(Float64(z / b) + Float64(Float64(t * Float64(x / b)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9.5e+175) tmp = (z + (t * (x / y))) / b; elseif (b <= -4e+90) tmp = x / (((y * b) / t) + (a + 1.0)); elseif (b <= 1.62e+35) tmp = (x + (z * (y / t))) / (a + 1.0); elseif (b <= 4.5e+149) tmp = x / (1.0 + (a + (y * (b / t)))); else tmp = (z / b) + ((t * (x / b)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.5e+175], N[(N[(z + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], If[LessEqual[b, -4e+90], N[(x / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.62e+35], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e+149], N[(x / N[(1.0 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z / b), $MachinePrecision] + N[(N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+175}:\\
\;\;\;\;\frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{elif}\;b \leq -4 \cdot 10^{+90}:\\
\;\;\;\;\frac{x}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{elif}\;b \leq 1.62 \cdot 10^{+35}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{a + 1}\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+149}:\\
\;\;\;\;\frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{z}{b} + \frac{t \cdot \frac{x}{b}}{y}\\
\end{array}
\end{array}
if b < -9.5000000000000006e175Initial program 48.7%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified68.2%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6480.9%
Simplified80.9%
if -9.5000000000000006e175 < b < -3.99999999999999987e90Initial program 89.7%
Taylor expanded in x around inf
Simplified80.1%
if -3.99999999999999987e90 < b < 1.62e35Initial program 81.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6483.9%
Applied egg-rr83.9%
Taylor expanded in y around 0
+-lowering-+.f6472.0%
Simplified72.0%
if 1.62e35 < b < 4.49999999999999982e149Initial program 82.6%
Taylor expanded in x around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6482.4%
Simplified82.4%
if 4.49999999999999982e149 < b Initial program 54.5%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified60.5%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6476.0%
Simplified76.0%
Final simplification75.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))))
(if (<= (+ a 1.0) 1.0)
(/ t_1 (+ a 1.0))
(if (<= (+ a 1.0) 4e+15)
(/ (+ x (/ z (/ t y))) (+ 1.0 (* y (/ b t))))
(/ t_1 a)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double tmp;
if ((a + 1.0) <= 1.0) {
tmp = t_1 / (a + 1.0);
} else if ((a + 1.0) <= 4e+15) {
tmp = (x + (z / (t / y))) / (1.0 + (y * (b / t)));
} else {
tmp = t_1 / 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) :: t_1
real(8) :: tmp
t_1 = x + ((y * z) / t)
if ((a + 1.0d0) <= 1.0d0) then
tmp = t_1 / (a + 1.0d0)
else if ((a + 1.0d0) <= 4d+15) then
tmp = (x + (z / (t / y))) / (1.0d0 + (y * (b / t)))
else
tmp = t_1 / a
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 tmp;
if ((a + 1.0) <= 1.0) {
tmp = t_1 / (a + 1.0);
} else if ((a + 1.0) <= 4e+15) {
tmp = (x + (z / (t / y))) / (1.0 + (y * (b / t)));
} else {
tmp = t_1 / a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + ((y * z) / t) tmp = 0 if (a + 1.0) <= 1.0: tmp = t_1 / (a + 1.0) elif (a + 1.0) <= 4e+15: tmp = (x + (z / (t / y))) / (1.0 + (y * (b / t))) else: tmp = t_1 / a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) tmp = 0.0 if (Float64(a + 1.0) <= 1.0) tmp = Float64(t_1 / Float64(a + 1.0)); elseif (Float64(a + 1.0) <= 4e+15) tmp = Float64(Float64(x + Float64(z / Float64(t / y))) / Float64(1.0 + Float64(y * Float64(b / t)))); else tmp = Float64(t_1 / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + ((y * z) / t); tmp = 0.0; if ((a + 1.0) <= 1.0) tmp = t_1 / (a + 1.0); elseif ((a + 1.0) <= 4e+15) tmp = (x + (z / (t / y))) / (1.0 + (y * (b / t))); else tmp = t_1 / a; 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]}, If[LessEqual[N[(a + 1.0), $MachinePrecision], 1.0], N[(t$95$1 / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a + 1.0), $MachinePrecision], 4e+15], N[(N[(x + N[(z / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
\mathbf{if}\;a + 1 \leq 1:\\
\;\;\;\;\frac{t\_1}{a + 1}\\
\mathbf{elif}\;a + 1 \leq 4 \cdot 10^{+15}:\\
\;\;\;\;\frac{x + \frac{z}{\frac{t}{y}}}{1 + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{a}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < 1Initial program 76.3%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6455.0%
Simplified55.0%
if 1 < (+.f64 a #s(literal 1 binary64)) < 4e15Initial program 99.2%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6470.7%
Simplified70.7%
*-commutativeN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6470.9%
Applied egg-rr70.9%
if 4e15 < (+.f64 a #s(literal 1 binary64)) Initial program 68.3%
Taylor expanded in a around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6465.2%
Simplified65.2%
Final simplification57.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ (* y z) t))))
(if (<= (+ a 1.0) 0.99)
(/ t_1 (+ a 1.0))
(if (<= (+ a 1.0) 4e+15)
(/ (+ x (* z (/ y t))) (+ 1.0 (/ (* y b) t)))
(/ t_1 a)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + ((y * z) / t);
double tmp;
if ((a + 1.0) <= 0.99) {
tmp = t_1 / (a + 1.0);
} else if ((a + 1.0) <= 4e+15) {
tmp = (x + (z * (y / t))) / (1.0 + ((y * b) / t));
} else {
tmp = t_1 / 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) :: t_1
real(8) :: tmp
t_1 = x + ((y * z) / t)
if ((a + 1.0d0) <= 0.99d0) then
tmp = t_1 / (a + 1.0d0)
else if ((a + 1.0d0) <= 4d+15) then
tmp = (x + (z * (y / t))) / (1.0d0 + ((y * b) / t))
else
tmp = t_1 / a
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 tmp;
if ((a + 1.0) <= 0.99) {
tmp = t_1 / (a + 1.0);
} else if ((a + 1.0) <= 4e+15) {
tmp = (x + (z * (y / t))) / (1.0 + ((y * b) / t));
} else {
tmp = t_1 / a;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + ((y * z) / t) tmp = 0 if (a + 1.0) <= 0.99: tmp = t_1 / (a + 1.0) elif (a + 1.0) <= 4e+15: tmp = (x + (z * (y / t))) / (1.0 + ((y * b) / t)) else: tmp = t_1 / a return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(y * z) / t)) tmp = 0.0 if (Float64(a + 1.0) <= 0.99) tmp = Float64(t_1 / Float64(a + 1.0)); elseif (Float64(a + 1.0) <= 4e+15) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(1.0 + Float64(Float64(y * b) / t))); else tmp = Float64(t_1 / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + ((y * z) / t); tmp = 0.0; if ((a + 1.0) <= 0.99) tmp = t_1 / (a + 1.0); elseif ((a + 1.0) <= 4e+15) tmp = (x + (z * (y / t))) / (1.0 + ((y * b) / t)); else tmp = t_1 / a; 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]}, If[LessEqual[N[(a + 1.0), $MachinePrecision], 0.99], N[(t$95$1 / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a + 1.0), $MachinePrecision], 4e+15], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{t}\\
\mathbf{if}\;a + 1 \leq 0.99:\\
\;\;\;\;\frac{t\_1}{a + 1}\\
\mathbf{elif}\;a + 1 \leq 4 \cdot 10^{+15}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{1 + \frac{y \cdot b}{t}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1}{a}\\
\end{array}
\end{array}
if (+.f64 a #s(literal 1 binary64)) < 0.98999999999999999Initial program 75.6%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6462.7%
Simplified62.7%
if 0.98999999999999999 < (+.f64 a #s(literal 1 binary64)) < 4e15Initial program 77.7%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6476.2%
Simplified76.2%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-*r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
associate-*r/N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6478.7%
Applied egg-rr78.7%
if 4e15 < (+.f64 a #s(literal 1 binary64)) Initial program 68.3%
Taylor expanded in a around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6465.2%
Simplified65.2%
Final simplification72.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (* t (/ x y))) b)))
(if (<= y -4.6e+135)
t_1
(if (<= y 7.8e+71)
(/ (+ x (/ z (/ t y))) (+ (/ (* y b) t) (+ a 1.0)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + (t * (x / y))) / b;
double tmp;
if (y <= -4.6e+135) {
tmp = t_1;
} else if (y <= 7.8e+71) {
tmp = (x + (z / (t / y))) / (((y * b) / 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 + (t * (x / y))) / b
if (y <= (-4.6d+135)) then
tmp = t_1
else if (y <= 7.8d+71) then
tmp = (x + (z / (t / y))) / (((y * b) / 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 + (t * (x / y))) / b;
double tmp;
if (y <= -4.6e+135) {
tmp = t_1;
} else if (y <= 7.8e+71) {
tmp = (x + (z / (t / y))) / (((y * b) / t) + (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + (t * (x / y))) / b tmp = 0 if y <= -4.6e+135: tmp = t_1 elif y <= 7.8e+71: tmp = (x + (z / (t / y))) / (((y * b) / t) + (a + 1.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(t * Float64(x / y))) / b) tmp = 0.0 if (y <= -4.6e+135) tmp = t_1; elseif (y <= 7.8e+71) tmp = Float64(Float64(x + Float64(z / Float64(t / y))) / Float64(Float64(Float64(y * b) / 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 + (t * (x / y))) / b; tmp = 0.0; if (y <= -4.6e+135) tmp = t_1; elseif (y <= 7.8e+71) tmp = (x + (z / (t / y))) / (((y * b) / 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 + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -4.6e+135], t$95$1, If[LessEqual[y, 7.8e+71], N[(N[(x + N[(z / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{if}\;y \leq -4.6 \cdot 10^{+135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{+71}:\\
\;\;\;\;\frac{x + \frac{z}{\frac{t}{y}}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.6000000000000002e135 or 7.8000000000000002e71 < y Initial program 36.8%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified57.4%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.1%
Simplified69.1%
if -4.6000000000000002e135 < y < 7.8000000000000002e71Initial program 92.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6492.2%
Applied egg-rr92.2%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6492.7%
Applied egg-rr92.7%
Final simplification85.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (* t (/ x y))) b)))
(if (<= y -4.9e+139)
t_1
(if (<= y 5.2e+71)
(/ (+ x (* z (/ y t))) (+ (/ (* y b) t) (+ a 1.0)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + (t * (x / y))) / b;
double tmp;
if (y <= -4.9e+139) {
tmp = t_1;
} else if (y <= 5.2e+71) {
tmp = (x + (z * (y / t))) / (((y * b) / 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 + (t * (x / y))) / b
if (y <= (-4.9d+139)) then
tmp = t_1
else if (y <= 5.2d+71) then
tmp = (x + (z * (y / t))) / (((y * b) / 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 + (t * (x / y))) / b;
double tmp;
if (y <= -4.9e+139) {
tmp = t_1;
} else if (y <= 5.2e+71) {
tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + (t * (x / y))) / b tmp = 0 if y <= -4.9e+139: tmp = t_1 elif y <= 5.2e+71: tmp = (x + (z * (y / t))) / (((y * b) / t) + (a + 1.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(t * Float64(x / y))) / b) tmp = 0.0 if (y <= -4.9e+139) tmp = t_1; elseif (y <= 5.2e+71) tmp = Float64(Float64(x + Float64(z * Float64(y / t))) / Float64(Float64(Float64(y * b) / 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 + (t * (x / y))) / b; tmp = 0.0; if (y <= -4.9e+139) tmp = t_1; elseif (y <= 5.2e+71) tmp = (x + (z * (y / t))) / (((y * b) / 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 + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -4.9e+139], t$95$1, If[LessEqual[y, 5.2e+71], N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{if}\;y \leq -4.9 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+71}:\\
\;\;\;\;\frac{x + z \cdot \frac{y}{t}}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.90000000000000023e139 or 5.19999999999999983e71 < y Initial program 36.8%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified57.4%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.1%
Simplified69.1%
if -4.90000000000000023e139 < y < 5.19999999999999983e71Initial program 92.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6492.2%
Applied egg-rr92.2%
Final simplification84.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ z (* t (/ x y))) b)))
(if (<= y -1e+78)
t_1
(if (<= y 5.5e+69) (/ x (+ (/ (* y b) t) (+ a 1.0))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + (t * (x / y))) / b;
double tmp;
if (y <= -1e+78) {
tmp = t_1;
} else if (y <= 5.5e+69) {
tmp = x / (((y * b) / 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 + (t * (x / y))) / b
if (y <= (-1d+78)) then
tmp = t_1
else if (y <= 5.5d+69) then
tmp = x / (((y * b) / 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 + (t * (x / y))) / b;
double tmp;
if (y <= -1e+78) {
tmp = t_1;
} else if (y <= 5.5e+69) {
tmp = x / (((y * b) / t) + (a + 1.0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + (t * (x / y))) / b tmp = 0 if y <= -1e+78: tmp = t_1 elif y <= 5.5e+69: tmp = x / (((y * b) / t) + (a + 1.0)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(t * Float64(x / y))) / b) tmp = 0.0 if (y <= -1e+78) tmp = t_1; elseif (y <= 5.5e+69) tmp = Float64(x / Float64(Float64(Float64(y * b) / 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 + (t * (x / y))) / b; tmp = 0.0; if (y <= -1e+78) tmp = t_1; elseif (y <= 5.5e+69) tmp = x / (((y * b) / 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 + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -1e+78], t$95$1, If[LessEqual[y, 5.5e+69], N[(x / N[(N[(N[(y * b), $MachinePrecision] / t), $MachinePrecision] + N[(a + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{if}\;y \leq -1 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+69}:\\
\;\;\;\;\frac{x}{\frac{y \cdot b}{t} + \left(a + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.00000000000000001e78 or 5.50000000000000002e69 < y Initial program 40.0%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified58.2%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6469.0%
Simplified69.0%
if -1.00000000000000001e78 < y < 5.50000000000000002e69Initial program 93.1%
Taylor expanded in x around inf
Simplified68.9%
Final simplification68.9%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ 1.0 (+ a (* y (/ b t))))))) (if (<= t -2e-51) t_1 (if (<= t 1.35e-87) (/ (+ z (/ (* x t) y)) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (1.0 + (a + (y * (b / t))));
double tmp;
if (t <= -2e-51) {
tmp = t_1;
} else if (t <= 1.35e-87) {
tmp = (z + ((x * t) / y)) / 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 + (a + (y * (b / t))))
if (t <= (-2d-51)) then
tmp = t_1
else if (t <= 1.35d-87) then
tmp = (z + ((x * t) / y)) / 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 + (a + (y * (b / t))));
double tmp;
if (t <= -2e-51) {
tmp = t_1;
} else if (t <= 1.35e-87) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (1.0 + (a + (y * (b / t)))) tmp = 0 if t <= -2e-51: tmp = t_1 elif t <= 1.35e-87: tmp = (z + ((x * t) / y)) / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(1.0 + Float64(a + Float64(y * Float64(b / t))))) tmp = 0.0 if (t <= -2e-51) tmp = t_1; elseif (t <= 1.35e-87) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (1.0 + (a + (y * (b / t)))); tmp = 0.0; if (t <= -2e-51) tmp = t_1; elseif (t <= 1.35e-87) tmp = (z + ((x * t) / y)) / 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 + N[(a + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-51], t$95$1, If[LessEqual[t, 1.35e-87], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{1 + \left(a + y \cdot \frac{b}{t}\right)}\\
\mathbf{if}\;t \leq -2 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-87}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2e-51 or 1.34999999999999992e-87 < t Initial program 82.8%
Taylor expanded in x around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6470.8%
Simplified70.8%
if -2e-51 < t < 1.34999999999999992e-87Initial program 63.0%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified50.7%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6461.7%
Simplified61.7%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6464.9%
Simplified64.9%
Final simplification68.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (+ a 1.0))))
(if (<= t -4.5e-33)
t_1
(if (<= t 2.45e-54) (/ (+ z (/ (* x t) y)) b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -4.5e-33) {
tmp = t_1;
} else if (t <= 2.45e-54) {
tmp = (z + ((x * t) / y)) / 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 / (a + 1.0d0)
if (t <= (-4.5d-33)) then
tmp = t_1
else if (t <= 2.45d-54) then
tmp = (z + ((x * t) / y)) / 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 / (a + 1.0);
double tmp;
if (t <= -4.5e-33) {
tmp = t_1;
} else if (t <= 2.45e-54) {
tmp = (z + ((x * t) / y)) / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -4.5e-33: tmp = t_1 elif t <= 2.45e-54: tmp = (z + ((x * t) / y)) / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -4.5e-33) tmp = t_1; elseif (t <= 2.45e-54) tmp = Float64(Float64(z + Float64(Float64(x * t) / y)) / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -4.5e-33) tmp = t_1; elseif (t <= 2.45e-54) tmp = (z + ((x * t) / y)) / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e-33], t$95$1, If[LessEqual[t, 2.45e-54], N[(N[(z + N[(N[(x * t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{-54}:\\
\;\;\;\;\frac{z + \frac{x \cdot t}{y}}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.49999999999999991e-33 or 2.4500000000000001e-54 < t Initial program 82.4%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f6461.4%
Simplified61.4%
if -4.49999999999999991e-33 < t < 2.4500000000000001e-54Initial program 65.1%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified51.1%
Taylor expanded in x around inf
associate-/r*N/A
/-lowering-/.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6462.0%
Simplified62.0%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6465.0%
Simplified65.0%
Final simplification63.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ (+ z (* t (/ x y))) b))) (if (<= y -1.55e-82) t_1 (if (<= y 3.3e+70) (/ x (+ a 1.0)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z + (t * (x / y))) / b;
double tmp;
if (y <= -1.55e-82) {
tmp = t_1;
} else if (y <= 3.3e+70) {
tmp = x / (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 + (t * (x / y))) / b
if (y <= (-1.55d-82)) then
tmp = t_1
else if (y <= 3.3d+70) then
tmp = x / (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 + (t * (x / y))) / b;
double tmp;
if (y <= -1.55e-82) {
tmp = t_1;
} else if (y <= 3.3e+70) {
tmp = x / (a + 1.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z + (t * (x / y))) / b tmp = 0 if y <= -1.55e-82: tmp = t_1 elif y <= 3.3e+70: tmp = x / (a + 1.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z + Float64(t * Float64(x / y))) / b) tmp = 0.0 if (y <= -1.55e-82) tmp = t_1; elseif (y <= 3.3e+70) tmp = Float64(x / 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 + (t * (x / y))) / b; tmp = 0.0; if (y <= -1.55e-82) tmp = t_1; elseif (y <= 3.3e+70) tmp = x / (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 + N[(t * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]}, If[LessEqual[y, -1.55e-82], t$95$1, If[LessEqual[y, 3.3e+70], N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + t \cdot \frac{x}{y}}{b}\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+70}:\\
\;\;\;\;\frac{x}{a + 1}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.55e-82 or 3.30000000000000016e70 < y Initial program 54.4%
Taylor expanded in y around inf
sub-negN/A
associate-+l+N/A
sub-negN/A
associate-/l*N/A
associate-/l*N/A
distribute-lft-out--N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
Simplified51.8%
Taylor expanded in b around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6460.3%
Simplified60.3%
if -1.55e-82 < y < 3.30000000000000016e70Initial program 96.1%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f6463.8%
Simplified63.8%
Final simplification62.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (/ (* y z) t)) a)))
(if (<= a -27000.0)
t_1
(if (<= a 18000000.0) (/ x (+ 1.0 (* y (/ b t)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + ((y * z) / t)) / a;
double tmp;
if (a <= -27000.0) {
tmp = t_1;
} else if (a <= 18000000.0) {
tmp = x / (1.0 + (y * (b / t)));
} 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
if (a <= (-27000.0d0)) then
tmp = t_1
else if (a <= 18000000.0d0) then
tmp = x / (1.0d0 + (y * (b / t)))
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;
double tmp;
if (a <= -27000.0) {
tmp = t_1;
} else if (a <= 18000000.0) {
tmp = x / (1.0 + (y * (b / t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + ((y * z) / t)) / a tmp = 0 if a <= -27000.0: tmp = t_1 elif a <= 18000000.0: tmp = x / (1.0 + (y * (b / t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(Float64(y * z) / t)) / a) tmp = 0.0 if (a <= -27000.0) tmp = t_1; elseif (a <= 18000000.0) tmp = Float64(x / Float64(1.0 + Float64(y * Float64(b / t)))); 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; tmp = 0.0; if (a <= -27000.0) tmp = t_1; elseif (a <= 18000000.0) tmp = x / (1.0 + (y * (b / t))); 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] / a), $MachinePrecision]}, If[LessEqual[a, -27000.0], t$95$1, If[LessEqual[a, 18000000.0], N[(x / N[(1.0 + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + \frac{y \cdot z}{t}}{a}\\
\mathbf{if}\;a \leq -27000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 18000000:\\
\;\;\;\;\frac{x}{1 + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -27000 or 1.8e7 < a Initial program 73.7%
Taylor expanded in a around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6464.4%
Simplified64.4%
if -27000 < a < 1.8e7Initial program 76.1%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6474.8%
Simplified74.8%
Taylor expanded in x around inf
Simplified52.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ x (* z (/ y t))) a)))
(if (<= a -22500.0)
t_1
(if (<= a 13200.0) (/ x (+ 1.0 (* y (/ b t)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x + (z * (y / t))) / a;
double tmp;
if (a <= -22500.0) {
tmp = t_1;
} else if (a <= 13200.0) {
tmp = x / (1.0 + (y * (b / t)));
} 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 + (z * (y / t))) / a
if (a <= (-22500.0d0)) then
tmp = t_1
else if (a <= 13200.0d0) then
tmp = x / (1.0d0 + (y * (b / t)))
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 + (z * (y / t))) / a;
double tmp;
if (a <= -22500.0) {
tmp = t_1;
} else if (a <= 13200.0) {
tmp = x / (1.0 + (y * (b / t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x + (z * (y / t))) / a tmp = 0 if a <= -22500.0: tmp = t_1 elif a <= 13200.0: tmp = x / (1.0 + (y * (b / t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x + Float64(z * Float64(y / t))) / a) tmp = 0.0 if (a <= -22500.0) tmp = t_1; elseif (a <= 13200.0) tmp = Float64(x / Float64(1.0 + Float64(y * Float64(b / t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x + (z * (y / t))) / a; tmp = 0.0; if (a <= -22500.0) tmp = t_1; elseif (a <= 13200.0) tmp = x / (1.0 + (y * (b / t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -22500.0], t$95$1, If[LessEqual[a, 13200.0], N[(x / N[(1.0 + N[(y * N[(b / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x + z \cdot \frac{y}{t}}{a}\\
\mathbf{if}\;a \leq -22500:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 13200:\\
\;\;\;\;\frac{x}{1 + y \cdot \frac{b}{t}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -22500 or 13200 < a Initial program 73.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6471.1%
Applied egg-rr71.1%
Taylor expanded in a around inf
Simplified62.7%
if -22500 < a < 13200Initial program 76.1%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6474.8%
Simplified74.8%
Taylor expanded in x around inf
Simplified52.7%
(FPCore (x y z t a b) :precision binary64 (if (<= a -1.3e+23) (/ x a) (if (<= a -6.5e-63) (/ z b) (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.3e+23) {
tmp = x / a;
} else if (a <= -6.5e-63) {
tmp = z / b;
} 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.3d+23)) then
tmp = x / a
else if (a <= (-6.5d-63)) then
tmp = z / b
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.3e+23) {
tmp = x / a;
} else if (a <= -6.5e-63) {
tmp = z / b;
} 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.3e+23: tmp = x / a elif a <= -6.5e-63: tmp = z / b 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.3e+23) tmp = Float64(x / a); elseif (a <= -6.5e-63) tmp = Float64(z / b); 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.3e+23) tmp = x / a; elseif (a <= -6.5e-63) tmp = z / b; 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.3e+23], N[(x / a), $MachinePrecision], If[LessEqual[a, -6.5e-63], N[(z / b), $MachinePrecision], If[LessEqual[a, 1.0], x, N[(x / a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{+23}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq -6.5 \cdot 10^{-63}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{elif}\;a \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -1.29999999999999996e23 or 1 < a Initial program 74.3%
Taylor expanded in x around inf
Simplified54.3%
Taylor expanded in a around inf
/-lowering-/.f6449.0%
Simplified49.0%
if -1.29999999999999996e23 < a < -6.4999999999999998e-63Initial program 60.0%
Taylor expanded in y around inf
/-lowering-/.f6440.0%
Simplified40.0%
if -6.4999999999999998e-63 < a < 1Initial program 78.1%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6478.1%
Simplified78.1%
Taylor expanded in y around 0
Simplified41.8%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (/ x (+ a 1.0)))) (if (<= t -2.8e-41) t_1 (if (<= t 4.4e-91) (/ z b) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a + 1.0);
double tmp;
if (t <= -2.8e-41) {
tmp = t_1;
} else if (t <= 4.4e-91) {
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 = x / (a + 1.0d0)
if (t <= (-2.8d-41)) then
tmp = t_1
else if (t <= 4.4d-91) 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 = x / (a + 1.0);
double tmp;
if (t <= -2.8e-41) {
tmp = t_1;
} else if (t <= 4.4e-91) {
tmp = z / b;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a + 1.0) tmp = 0 if t <= -2.8e-41: tmp = t_1 elif t <= 4.4e-91: tmp = z / b else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a + 1.0)) tmp = 0.0 if (t <= -2.8e-41) tmp = t_1; elseif (t <= 4.4e-91) tmp = Float64(z / b); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a + 1.0); tmp = 0.0; if (t <= -2.8e-41) tmp = t_1; elseif (t <= 4.4e-91) tmp = z / b; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(a + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e-41], t$95$1, If[LessEqual[t, 4.4e-91], N[(z / b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a + 1}\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{-41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-91}:\\
\;\;\;\;\frac{z}{b}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.8000000000000002e-41 or 4.4000000000000002e-91 < t Initial program 83.2%
Taylor expanded in y around 0
/-lowering-/.f64N/A
+-lowering-+.f6459.5%
Simplified59.5%
if -2.8000000000000002e-41 < t < 4.4000000000000002e-91Initial program 62.8%
Taylor expanded in y around inf
/-lowering-/.f6452.2%
Simplified52.2%
Final simplification56.6%
(FPCore (x y z t a b) :precision binary64 (if (<= a -2.6e-6) (/ 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 <= -2.6e-6) {
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 <= (-2.6d-6)) 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 <= -2.6e-6) {
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 <= -2.6e-6: 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 <= -2.6e-6) 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 <= -2.6e-6) 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, -2.6e-6], N[(x / a), $MachinePrecision], If[LessEqual[a, 1.0], x, N[(x / a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{-6}:\\
\;\;\;\;\frac{x}{a}\\
\mathbf{elif}\;a \leq 1:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a}\\
\end{array}
\end{array}
if a < -2.60000000000000009e-6 or 1 < a Initial program 72.3%
Taylor expanded in x around inf
Simplified52.1%
Taylor expanded in a around inf
/-lowering-/.f6445.8%
Simplified45.8%
if -2.60000000000000009e-6 < a < 1Initial program 77.6%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6477.3%
Simplified77.3%
Taylor expanded in y around 0
Simplified40.2%
(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 75.1%
Taylor expanded in a around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6447.0%
Simplified47.0%
Taylor expanded in y around 0
Simplified23.0%
(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 2024138
(FPCore (x y z t a b)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, B"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1707385670788761/12500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))) (if (< t 1518483551868623/5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ z b) (* 1 (* (+ x (* (/ y t) z)) (/ 1 (+ (+ a 1) (* (/ y t) b))))))))
(/ (+ x (/ (* y z) t)) (+ (+ a 1.0) (/ (* y b) t))))