| Alternative 1 | |
|---|---|
| Error | 28.6 |
| Cost | 39500 |
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (pow (/ l Om) 2.0))
(t_2
(*
(* (sqrt 2.0) l)
(sqrt (* n (* U (- (* (- U* U) (/ n (pow Om 2.0))) (/ 2.0 Om))))))))
(if (<= l -3.3e+172)
(/ 1.0 (/ 1.0 (* -1.0 t_2)))
(if (<= l -4.4e-101)
(sqrt
(/
1.0
(/
(/ (/ -0.5 n) U)
(+ (* t_1 (* n (- U U*))) (- (* l (/ 2.0 (/ Om l))) t)))))
(if (<= l 7.2e+110)
(sqrt
(*
(* 2.0 n)
(* (- (- t (* 2.0 (* l (/ l Om)))) (* (- U U*) (* n t_1))) U)))
(/ 1.0 (/ 1.0 t_2)))))))double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = pow((l / Om), 2.0);
double t_2 = (sqrt(2.0) * l) * sqrt((n * (U * (((U_42_ - U) * (n / pow(Om, 2.0))) - (2.0 / Om)))));
double tmp;
if (l <= -3.3e+172) {
tmp = 1.0 / (1.0 / (-1.0 * t_2));
} else if (l <= -4.4e-101) {
tmp = sqrt((1.0 / (((-0.5 / n) / U) / ((t_1 * (n * (U - U_42_))) + ((l * (2.0 / (Om / l))) - t)))));
} else if (l <= 7.2e+110) {
tmp = sqrt(((2.0 * n) * (((t - (2.0 * (l * (l / Om)))) - ((U - U_42_) * (n * t_1))) * U)));
} else {
tmp = 1.0 / (1.0 / t_2);
}
return tmp;
}
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
code = sqrt((((2.0d0 * n) * u) * ((t - (2.0d0 * ((l * l) / om))) - ((n * ((l / om) ** 2.0d0)) * (u - u_42)))))
end function
real(8) function code(n, u, t, l, om, u_42)
real(8), intent (in) :: n
real(8), intent (in) :: u
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: u_42
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (l / om) ** 2.0d0
t_2 = (sqrt(2.0d0) * l) * sqrt((n * (u * (((u_42 - u) * (n / (om ** 2.0d0))) - (2.0d0 / om)))))
if (l <= (-3.3d+172)) then
tmp = 1.0d0 / (1.0d0 / ((-1.0d0) * t_2))
else if (l <= (-4.4d-101)) then
tmp = sqrt((1.0d0 / ((((-0.5d0) / n) / u) / ((t_1 * (n * (u - u_42))) + ((l * (2.0d0 / (om / l))) - t)))))
else if (l <= 7.2d+110) then
tmp = sqrt(((2.0d0 * n) * (((t - (2.0d0 * (l * (l / om)))) - ((u - u_42) * (n * t_1))) * u)))
else
tmp = 1.0d0 / (1.0d0 / t_2)
end if
code = tmp
end function
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = Math.pow((l / Om), 2.0);
double t_2 = (Math.sqrt(2.0) * l) * Math.sqrt((n * (U * (((U_42_ - U) * (n / Math.pow(Om, 2.0))) - (2.0 / Om)))));
double tmp;
if (l <= -3.3e+172) {
tmp = 1.0 / (1.0 / (-1.0 * t_2));
} else if (l <= -4.4e-101) {
tmp = Math.sqrt((1.0 / (((-0.5 / n) / U) / ((t_1 * (n * (U - U_42_))) + ((l * (2.0 / (Om / l))) - t)))));
} else if (l <= 7.2e+110) {
tmp = Math.sqrt(((2.0 * n) * (((t - (2.0 * (l * (l / Om)))) - ((U - U_42_) * (n * t_1))) * U)));
} else {
tmp = 1.0 / (1.0 / t_2);
}
return tmp;
}
def code(n, U, t, l, Om, U_42_): return math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * math.pow((l / Om), 2.0)) * (U - U_42_)))))
def code(n, U, t, l, Om, U_42_): t_1 = math.pow((l / Om), 2.0) t_2 = (math.sqrt(2.0) * l) * math.sqrt((n * (U * (((U_42_ - U) * (n / math.pow(Om, 2.0))) - (2.0 / Om))))) tmp = 0 if l <= -3.3e+172: tmp = 1.0 / (1.0 / (-1.0 * t_2)) elif l <= -4.4e-101: tmp = math.sqrt((1.0 / (((-0.5 / n) / U) / ((t_1 * (n * (U - U_42_))) + ((l * (2.0 / (Om / l))) - t))))) elif l <= 7.2e+110: tmp = math.sqrt(((2.0 * n) * (((t - (2.0 * (l * (l / Om)))) - ((U - U_42_) * (n * t_1))) * U))) else: tmp = 1.0 / (1.0 / t_2) return tmp
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function code(n, U, t, l, Om, U_42_) t_1 = Float64(l / Om) ^ 2.0 t_2 = Float64(Float64(sqrt(2.0) * l) * sqrt(Float64(n * Float64(U * Float64(Float64(Float64(U_42_ - U) * Float64(n / (Om ^ 2.0))) - Float64(2.0 / Om)))))) tmp = 0.0 if (l <= -3.3e+172) tmp = Float64(1.0 / Float64(1.0 / Float64(-1.0 * t_2))); elseif (l <= -4.4e-101) tmp = sqrt(Float64(1.0 / Float64(Float64(Float64(-0.5 / n) / U) / Float64(Float64(t_1 * Float64(n * Float64(U - U_42_))) + Float64(Float64(l * Float64(2.0 / Float64(Om / l))) - t))))); elseif (l <= 7.2e+110) tmp = sqrt(Float64(Float64(2.0 * n) * Float64(Float64(Float64(t - Float64(2.0 * Float64(l * Float64(l / Om)))) - Float64(Float64(U - U_42_) * Float64(n * t_1))) * U))); else tmp = Float64(1.0 / Float64(1.0 / t_2)); end return tmp end
function tmp = code(n, U, t, l, Om, U_42_) tmp = sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * ((l / Om) ^ 2.0)) * (U - U_42_))))); end
function tmp_2 = code(n, U, t, l, Om, U_42_) t_1 = (l / Om) ^ 2.0; t_2 = (sqrt(2.0) * l) * sqrt((n * (U * (((U_42_ - U) * (n / (Om ^ 2.0))) - (2.0 / Om))))); tmp = 0.0; if (l <= -3.3e+172) tmp = 1.0 / (1.0 / (-1.0 * t_2)); elseif (l <= -4.4e-101) tmp = sqrt((1.0 / (((-0.5 / n) / U) / ((t_1 * (n * (U - U_42_))) + ((l * (2.0 / (Om / l))) - t))))); elseif (l <= 7.2e+110) tmp = sqrt(((2.0 * n) * (((t - (2.0 * (l * (l / Om)))) - ((U - U_42_) * (n * t_1))) * U))); else tmp = 1.0 / (1.0 / t_2); end tmp_2 = tmp; end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[Sqrt[2.0], $MachinePrecision] * l), $MachinePrecision] * N[Sqrt[N[(n * N[(U * N[(N[(N[(U$42$ - U), $MachinePrecision] * N[(n / N[Power[Om, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(2.0 / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -3.3e+172], N[(1.0 / N[(1.0 / N[(-1.0 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[l, -4.4e-101], N[Sqrt[N[(1.0 / N[(N[(N[(-0.5 / n), $MachinePrecision] / U), $MachinePrecision] / N[(N[(t$95$1 * N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(l * N[(2.0 / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 7.2e+110], N[Sqrt[N[(N[(2.0 * n), $MachinePrecision] * N[(N[(N[(t - N[(2.0 * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(U - U$42$), $MachinePrecision] * N[(n * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(1.0 / N[(1.0 / t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\begin{array}{l}
t_1 := {\left(\frac{\ell}{Om}\right)}^{2}\\
t_2 := \left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\left(U* - U\right) \cdot \frac{n}{{Om}^{2}} - \frac{2}{Om}\right)\right)}\\
\mathbf{if}\;\ell \leq -3.3 \cdot 10^{+172}:\\
\;\;\;\;\frac{1}{\frac{1}{-1 \cdot t_2}}\\
\mathbf{elif}\;\ell \leq -4.4 \cdot 10^{-101}:\\
\;\;\;\;\sqrt{\frac{1}{\frac{\frac{\frac{-0.5}{n}}{U}}{t_1 \cdot \left(n \cdot \left(U - U*\right)\right) + \left(\ell \cdot \frac{2}{\frac{Om}{\ell}} - t\right)}}}\\
\mathbf{elif}\;\ell \leq 7.2 \cdot 10^{+110}:\\
\;\;\;\;\sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(U - U*\right) \cdot \left(n \cdot t_1\right)\right) \cdot U\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{t_2}}\\
\end{array}
Results
if l < -3.29999999999999983e172Initial program 64.0
Simplified50.1
[Start]64.0 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
rational.json-simplify-43 [=>]50.1 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
Applied egg-rr50.0
Taylor expanded in l around -inf 33.3
Simplified33.5
[Start]33.3 | \[ \frac{1}{\frac{1}{-1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(\left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right) \cdot U\right)}\right)}}
\] |
|---|---|
rational.json-simplify-50 [=>]33.3 | \[ \frac{1}{\frac{1}{-1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \color{blue}{\left(U \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}}\right)}}
\] |
rational.json-simplify-43 [=>]33.5 | \[ \frac{1}{\frac{1}{-1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\color{blue}{\left(U* - U\right) \cdot \frac{n}{{Om}^{2}}} - 2 \cdot \frac{1}{Om}\right)\right)}\right)}}
\] |
rational.json-simplify-41 [=>]33.5 | \[ \frac{1}{\frac{1}{-1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\left(U* - U\right) \cdot \frac{n}{{Om}^{2}} - \color{blue}{\frac{2}{\frac{Om}{1}}}\right)\right)}\right)}}
\] |
rational.json-simplify-26 [=>]33.5 | \[ \frac{1}{\frac{1}{-1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\left(U* - U\right) \cdot \frac{n}{{Om}^{2}} - \frac{2}{\color{blue}{Om}}\right)\right)}\right)}}
\] |
if -3.29999999999999983e172 < l < -4.3999999999999998e-101Initial program 32.5
Simplified32.6
[Start]32.5 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
rational.json-simplify-47 [=>]32.5 | \[ \sqrt{\color{blue}{\left(-\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right) - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}}
\] |
rational.json-simplify-17 [=>]32.5 | \[ \sqrt{\color{blue}{\frac{\left(2 \cdot n\right) \cdot U}{-1}} \cdot \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right) - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-43 [=>]32.5 | \[ \sqrt{\color{blue}{\left(U \cdot \frac{2 \cdot n}{-1}\right)} \cdot \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right) - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-43 [=>]32.5 | \[ \sqrt{\left(U \cdot \color{blue}{\left(n \cdot \frac{2}{-1}\right)}\right) \cdot \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right) - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
metadata-eval [=>]32.5 | \[ \sqrt{\left(U \cdot \left(n \cdot \color{blue}{-2}\right)\right) \cdot \left(\left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right) - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-50 [=>]32.5 | \[ \sqrt{\left(U \cdot \left(n \cdot -2\right)\right) \cdot \left(\color{blue}{\left(U - U*\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-24 [=>]33.9 | \[ \sqrt{\left(U \cdot \left(n \cdot -2\right)\right) \cdot \left(\color{blue}{n \cdot \left(\left(U - U*\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)} - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-50 [=>]33.9 | \[ \sqrt{\left(U \cdot \left(n \cdot -2\right)\right) \cdot \left(n \cdot \color{blue}{\left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)} - \left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right)\right)}
\] |
rational.json-simplify-43 [=>]32.6 | \[ \sqrt{\left(U \cdot \left(n \cdot -2\right)\right) \cdot \left(n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right) - \left(t - 2 \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)}\right)\right)}
\] |
Applied egg-rr33.8
if -4.3999999999999998e-101 < l < 7.1999999999999994e110Initial program 26.5
Simplified27.1
[Start]26.5 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
rational.json-simplify-50 [=>]26.5 | \[ \sqrt{\color{blue}{\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot \left(\left(2 \cdot n\right) \cdot U\right)}}
\] |
rational.json-simplify-24 [=>]26.8 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot U\right)}}
\] |
rational.json-simplify-43 [=>]26.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right) \cdot U\right)}
\] |
rational.json-simplify-50 [=>]26.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{\left(U - U*\right) \cdot \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}\right) \cdot U\right)}
\] |
rational.json-simplify-24 [=>]27.1 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{n \cdot \left(\left(U - U*\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right)}\right) \cdot U\right)}
\] |
Applied egg-rr29.5
Simplified26.8
[Start]29.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(n \cdot \left(U - U*\right)\right) + 0\right)\right) \cdot U\right)}
\] |
|---|---|
rational.json-simplify-8 [=>]29.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{{\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(n \cdot \left(U - U*\right)\right)}\right) \cdot U\right)}
\] |
rational.json-simplify-50 [=>]29.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{\left(n \cdot \left(U - U*\right)\right) \cdot {\left(\frac{\ell}{Om}\right)}^{2}}\right) \cdot U\right)}
\] |
rational.json-simplify-26 [<=]29.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(n \cdot \left(U - U*\right)\right) \cdot \color{blue}{\frac{{\left(\frac{\ell}{Om}\right)}^{2}}{1}}\right) \cdot U\right)}
\] |
rational.json-simplify-27 [<=]29.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{\frac{n \cdot \left(U - U*\right)}{\frac{1}{{\left(\frac{\ell}{Om}\right)}^{2}}}}\right) \cdot U\right)}
\] |
rational.json-simplify-43 [=>]26.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \color{blue}{\left(U - U*\right) \cdot \frac{n}{\frac{1}{{\left(\frac{\ell}{Om}\right)}^{2}}}}\right) \cdot U\right)}
\] |
rational.json-simplify-27 [=>]26.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(U - U*\right) \cdot \color{blue}{\left(n \cdot \frac{{\left(\frac{\ell}{Om}\right)}^{2}}{1}\right)}\right) \cdot U\right)}
\] |
rational.json-simplify-26 [=>]26.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(\left(\left(t - 2 \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) - \left(U - U*\right) \cdot \left(n \cdot \color{blue}{{\left(\frac{\ell}{Om}\right)}^{2}}\right)\right) \cdot U\right)}
\] |
if 7.1999999999999994e110 < l Initial program 57.9
Simplified47.0
[Start]57.9 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
rational.json-simplify-43 [=>]47.0 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
Applied egg-rr47.0
Taylor expanded in l around inf 35.8
Simplified35.6
[Start]35.8 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}}}
\] |
|---|---|
rational.json-simplify-50 [<=]35.8 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \color{blue}{\left(\left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right) \cdot U\right)}}}}
\] |
rational.json-simplify-50 [=>]35.8 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \color{blue}{\left(U \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}}}}
\] |
rational.json-simplify-43 [=>]35.6 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\color{blue}{\left(U* - U\right) \cdot \frac{n}{{Om}^{2}}} - 2 \cdot \frac{1}{Om}\right)\right)}}}
\] |
rational.json-simplify-41 [=>]35.6 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\left(U* - U\right) \cdot \frac{n}{{Om}^{2}} - \color{blue}{\frac{2}{\frac{Om}{1}}}\right)\right)}}}
\] |
rational.json-simplify-26 [=>]35.6 | \[ \frac{1}{\frac{1}{\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\left(U* - U\right) \cdot \frac{n}{{Om}^{2}} - \frac{2}{\color{blue}{Om}}\right)\right)}}}
\] |
Final simplification29.9
| Alternative 1 | |
|---|---|
| Error | 28.6 |
| Cost | 39500 |
| Alternative 2 | |
|---|---|
| Error | 28.9 |
| Cost | 30728 |
| Alternative 3 | |
|---|---|
| Error | 30.6 |
| Cost | 21132 |
| Alternative 4 | |
|---|---|
| Error | 30.5 |
| Cost | 21132 |
| Alternative 5 | |
|---|---|
| Error | 31.6 |
| Cost | 15124 |
| Alternative 6 | |
|---|---|
| Error | 32.5 |
| Cost | 14992 |
| Alternative 7 | |
|---|---|
| Error | 31.7 |
| Cost | 14860 |
| Alternative 8 | |
|---|---|
| Error | 32.8 |
| Cost | 14728 |
| Alternative 9 | |
|---|---|
| Error | 32.9 |
| Cost | 13960 |
| Alternative 10 | |
|---|---|
| Error | 36.3 |
| Cost | 7304 |
| Alternative 11 | |
|---|---|
| Error | 39.7 |
| Cost | 7240 |
| Alternative 12 | |
|---|---|
| Error | 39.8 |
| Cost | 7240 |
| Alternative 13 | |
|---|---|
| Error | 39.7 |
| Cost | 7240 |
| Alternative 14 | |
|---|---|
| Error | 38.6 |
| Cost | 7172 |
| Alternative 15 | |
|---|---|
| Error | 39.7 |
| Cost | 7112 |
| Alternative 16 | |
|---|---|
| Error | 39.7 |
| Cost | 7112 |
| Alternative 17 | |
|---|---|
| Error | 40.3 |
| Cost | 6980 |
| Alternative 18 | |
|---|---|
| Error | 40.1 |
| Cost | 6848 |
herbie shell --seed 2023073
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))