| Alternative 1 | |
|---|---|
| Error | 40.17% |
| Cost | 32140 |
(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
(sqrt
(*
(* (* 2.0 n) U)
(+
(+ t (* (/ (* l l) Om) -2.0))
(* (* n (pow (/ l Om) 2.0)) (- U* U)))))))
(if (<= t_1 5e-161)
(* (cbrt n) (sqrt (* U (* (cbrt n) (+ t t)))))
(if (<= t_1 2e+152)
t_1
(if (<= t_1 INFINITY)
(sqrt
(+
(* 2.0 (* n (* U t)))
(* -2.0 (* (* n (* U l)) (/ 2.0 (/ Om l))))))
(sqrt
(* (/ (- 2.0 (* n (/ U* Om))) Om) (* (* U l) (* l (* n -2.0))))))))))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 = sqrt((((2.0 * n) * U) * ((t + (((l * l) / Om) * -2.0)) + ((n * pow((l / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 5e-161) {
tmp = cbrt(n) * sqrt((U * (cbrt(n) * (t + t))));
} else if (t_1 <= 2e+152) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = sqrt(((2.0 * (n * (U * t))) + (-2.0 * ((n * (U * l)) * (2.0 / (Om / l))))));
} else {
tmp = sqrt((((2.0 - (n * (U_42_ / Om))) / Om) * ((U * l) * (l * (n * -2.0)))));
}
return tmp;
}
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.sqrt((((2.0 * n) * U) * ((t + (((l * l) / Om) * -2.0)) + ((n * Math.pow((l / Om), 2.0)) * (U_42_ - U)))));
double tmp;
if (t_1 <= 5e-161) {
tmp = Math.cbrt(n) * Math.sqrt((U * (Math.cbrt(n) * (t + t))));
} else if (t_1 <= 2e+152) {
tmp = t_1;
} else if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = Math.sqrt(((2.0 * (n * (U * t))) + (-2.0 * ((n * (U * l)) * (2.0 / (Om / l))))));
} else {
tmp = Math.sqrt((((2.0 - (n * (U_42_ / Om))) / Om) * ((U * l) * (l * (n * -2.0)))));
}
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 = sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t + Float64(Float64(Float64(l * l) / Om) * -2.0)) + Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U_42_ - U))))) tmp = 0.0 if (t_1 <= 5e-161) tmp = Float64(cbrt(n) * sqrt(Float64(U * Float64(cbrt(n) * Float64(t + t))))); elseif (t_1 <= 2e+152) tmp = t_1; elseif (t_1 <= Inf) tmp = sqrt(Float64(Float64(2.0 * Float64(n * Float64(U * t))) + Float64(-2.0 * Float64(Float64(n * Float64(U * l)) * Float64(2.0 / Float64(Om / l)))))); else tmp = sqrt(Float64(Float64(Float64(2.0 - Float64(n * Float64(U_42_ / Om))) / Om) * Float64(Float64(U * l) * Float64(l * Float64(n * -2.0))))); end return 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[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t + N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision] + N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 5e-161], N[(N[Power[n, 1/3], $MachinePrecision] * N[Sqrt[N[(U * N[(N[Power[n, 1/3], $MachinePrecision] * N[(t + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+152], t$95$1, If[LessEqual[t$95$1, Infinity], N[Sqrt[N[(N[(2.0 * N[(n * N[(U * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-2.0 * N[(N[(n * N[(U * l), $MachinePrecision]), $MachinePrecision] * N[(2.0 / N[(Om / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(N[(N[(2.0 - N[(n * N[(U$42$ / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision] * N[(N[(U * l), $MachinePrecision] * N[(l * N[(n * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 := \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t + \frac{\ell \cdot \ell}{Om} \cdot -2\right) + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U* - U\right)\right)}\\
\mathbf{if}\;t_1 \leq 5 \cdot 10^{-161}:\\
\;\;\;\;\sqrt[3]{n} \cdot \sqrt{U \cdot \left(\sqrt[3]{n} \cdot \left(t + t\right)\right)}\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;\sqrt{2 \cdot \left(n \cdot \left(U \cdot t\right)\right) + -2 \cdot \left(\left(n \cdot \left(U \cdot \ell\right)\right) \cdot \frac{2}{\frac{Om}{\ell}}\right)}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{\frac{2 - n \cdot \frac{U*}{Om}}{Om} \cdot \left(\left(U \cdot \ell\right) \cdot \left(\ell \cdot \left(n \cdot -2\right)\right)\right)}\\
\end{array}
Results
if (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < 4.9999999999999999e-161Initial program 86.82
Simplified86.62
[Start]86.82 | \[ \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)}
\] |
|---|---|
associate-*l* [=>]86.82 | \[ \sqrt{\color{blue}{\left(2 \cdot \left(n \cdot U\right)\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)}
\] |
associate-*l* [=>]86.83 | \[ \sqrt{\color{blue}{2 \cdot \left(\left(n \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)\right)}}
\] |
*-commutative [=>]86.83 | \[ \sqrt{2 \cdot \color{blue}{\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 \left(n \cdot U\right)\right)}}
\] |
Taylor expanded in l around 0 86.85
Applied egg-rr86.84
Applied egg-rr66.65
Simplified67.38
[Start]66.65 | \[ \sqrt[3]{n} \cdot \sqrt{\sqrt[3]{n} \cdot \left(U \cdot \left(2 \cdot t\right)\right)}
\] |
|---|---|
*-commutative [=>]66.65 | \[ \sqrt[3]{n} \cdot \sqrt{\color{blue}{\left(U \cdot \left(2 \cdot t\right)\right) \cdot \sqrt[3]{n}}}
\] |
associate-*l* [=>]67.38 | \[ \sqrt[3]{n} \cdot \sqrt{\color{blue}{U \cdot \left(\left(2 \cdot t\right) \cdot \sqrt[3]{n}\right)}}
\] |
count-2 [<=]67.38 | \[ \sqrt[3]{n} \cdot \sqrt{U \cdot \left(\color{blue}{\left(t + t\right)} \cdot \sqrt[3]{n}\right)}
\] |
if 4.9999999999999999e-161 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < 2.0000000000000001e152Initial program 2.82
if 2.0000000000000001e152 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) < +inf.0Initial program 99.47
Simplified85.04
[Start]99.47 | \[ \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)}
\] |
|---|---|
associate-*l* [=>]95.8 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \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)\right)}}
\] |
associate--l- [=>]95.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
sub-neg [=>]95.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t + \left(-\left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}\right)}
\] |
sub-neg [<=]95.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
cancel-sign-sub [<=]95.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\left(2 \cdot \frac{\ell \cdot \ell}{Om} - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
cancel-sign-sub [=>]95.8 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
associate-/l* [=>]85.66 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \color{blue}{\frac{\ell}{\frac{Om}{\ell}}} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}
\] |
associate-*l* [=>]85.04 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \color{blue}{n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)}\right)\right)\right)}
\] |
Taylor expanded in Om around inf 94.47
Simplified94.55
[Start]94.47 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(t \cdot U + -2 \cdot \frac{{\ell}^{2} \cdot U}{Om}\right)}
\] |
|---|---|
fma-def [=>]94.47 | \[ \sqrt{\left(2 \cdot n\right) \cdot \color{blue}{\mathsf{fma}\left(t, U, -2 \cdot \frac{{\ell}^{2} \cdot U}{Om}\right)}}
\] |
associate-/l* [=>]94.55 | \[ \sqrt{\left(2 \cdot n\right) \cdot \mathsf{fma}\left(t, U, -2 \cdot \color{blue}{\frac{{\ell}^{2}}{\frac{Om}{U}}}\right)}
\] |
unpow2 [=>]94.55 | \[ \sqrt{\left(2 \cdot n\right) \cdot \mathsf{fma}\left(t, U, -2 \cdot \frac{\color{blue}{\ell \cdot \ell}}{\frac{Om}{U}}\right)}
\] |
Applied egg-rr82.92
Applied egg-rr86.1
Simplified80.87
[Start]86.1 | \[ \sqrt{\left(\left(t \cdot U\right) \cdot n\right) \cdot 2 + \left(e^{\mathsf{log1p}\left(n \cdot \left(\left(U \cdot \ell\right) \cdot \frac{-2 \cdot \ell}{Om}\right)\right)} - 1\right) \cdot 2}
\] |
|---|---|
expm1-def [=>]83.72 | \[ \sqrt{\left(\left(t \cdot U\right) \cdot n\right) \cdot 2 + \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(n \cdot \left(\left(U \cdot \ell\right) \cdot \frac{-2 \cdot \ell}{Om}\right)\right)\right)} \cdot 2}
\] |
expm1-log1p [=>]82.92 | \[ \sqrt{\left(\left(t \cdot U\right) \cdot n\right) \cdot 2 + \color{blue}{\left(n \cdot \left(\left(U \cdot \ell\right) \cdot \frac{-2 \cdot \ell}{Om}\right)\right)} \cdot 2}
\] |
associate-*r* [=>]80.86 | \[ \sqrt{\left(\left(t \cdot U\right) \cdot n\right) \cdot 2 + \color{blue}{\left(\left(n \cdot \left(U \cdot \ell\right)\right) \cdot \frac{-2 \cdot \ell}{Om}\right)} \cdot 2}
\] |
associate-/l* [=>]80.87 | \[ \sqrt{\left(\left(t \cdot U\right) \cdot n\right) \cdot 2 + \left(\left(n \cdot \left(U \cdot \ell\right)\right) \cdot \color{blue}{\frac{-2}{\frac{Om}{\ell}}}\right) \cdot 2}
\] |
if +inf.0 < (sqrt.f64 (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*))))) Initial program 100
Simplified90.96
[Start]100 | \[ \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)}
\] |
|---|---|
associate-*l* [=>]99.96 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \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)\right)}}
\] |
associate--l- [=>]99.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
sub-neg [=>]99.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t + \left(-\left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}\right)}
\] |
sub-neg [<=]99.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
cancel-sign-sub [<=]99.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\left(2 \cdot \frac{\ell \cdot \ell}{Om} - \left(-n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
cancel-sign-sub [=>]99.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
associate-/l* [=>]91.56 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \color{blue}{\frac{\ell}{\frac{Om}{\ell}}} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}
\] |
associate-*l* [=>]90.96 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \color{blue}{n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)}\right)\right)\right)}
\] |
Taylor expanded in l around inf 93.34
Simplified79.63
[Start]93.34 | \[ \sqrt{-2 \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
|---|---|
*-commutative [=>]93.34 | \[ \sqrt{-2 \cdot \color{blue}{\left(\left(n \cdot \left({\ell}^{2} \cdot U\right)\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}}
\] |
associate-*l* [=>]93.45 | \[ \sqrt{-2 \cdot \color{blue}{\left(n \cdot \left(\left({\ell}^{2} \cdot U\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)\right)}}
\] |
*-commutative [<=]93.45 | \[ \sqrt{-2 \cdot \left(n \cdot \color{blue}{\left(\left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot \left({\ell}^{2} \cdot U\right)\right)}\right)}
\] |
unpow2 [=>]93.45 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{\color{blue}{Om \cdot Om}} + 2 \cdot \frac{1}{Om}\right) \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
associate-*r/ [=>]93.45 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{Om \cdot Om} + \color{blue}{\frac{2 \cdot 1}{Om}}\right) \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
metadata-eval [=>]93.45 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{Om \cdot Om} + \frac{\color{blue}{2}}{Om}\right) \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
unpow2 [=>]93.45 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{Om \cdot Om} + \frac{2}{Om}\right) \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot U\right)\right)\right)}
\] |
associate-*l* [=>]79.63 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{Om \cdot Om} + \frac{2}{Om}\right) \cdot \color{blue}{\left(\ell \cdot \left(\ell \cdot U\right)\right)}\right)\right)}
\] |
Taylor expanded in U around 0 93.53
Simplified72.59
[Start]93.53 | \[ \sqrt{-2 \cdot \left(n \cdot \left({\ell}^{2} \cdot \left(\left(-1 \cdot \frac{n \cdot U*}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot U\right)\right)\right)}
\] |
|---|---|
*-commutative [=>]93.53 | \[ \sqrt{-2 \cdot \left(n \cdot \color{blue}{\left(\left(\left(-1 \cdot \frac{n \cdot U*}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot U\right) \cdot {\ell}^{2}\right)}\right)}
\] |
associate-*l* [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \color{blue}{\left(\left(-1 \cdot \frac{n \cdot U*}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)}\right)}
\] |
+-commutative [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\color{blue}{\left(2 \cdot \frac{1}{Om} + -1 \cdot \frac{n \cdot U*}{{Om}^{2}}\right)} \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
associate-*r/ [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\color{blue}{\frac{2 \cdot 1}{Om}} + -1 \cdot \frac{n \cdot U*}{{Om}^{2}}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
metadata-eval [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{\color{blue}{2}}{Om} + -1 \cdot \frac{n \cdot U*}{{Om}^{2}}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
mul-1-neg [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} + \color{blue}{\left(-\frac{n \cdot U*}{{Om}^{2}}\right)}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
unsub-neg [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\color{blue}{\left(\frac{2}{Om} - \frac{n \cdot U*}{{Om}^{2}}\right)} \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
unpow2 [=>]93.52 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} - \frac{n \cdot U*}{\color{blue}{Om \cdot Om}}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
times-frac [=>]87.5 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} - \color{blue}{\frac{n}{Om} \cdot \frac{U*}{Om}}\right) \cdot \left(U \cdot {\ell}^{2}\right)\right)\right)}
\] |
*-commutative [<=]87.5 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} - \frac{n}{Om} \cdot \frac{U*}{Om}\right) \cdot \color{blue}{\left({\ell}^{2} \cdot U\right)}\right)\right)}
\] |
unpow2 [=>]87.5 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} - \frac{n}{Om} \cdot \frac{U*}{Om}\right) \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot U\right)\right)\right)}
\] |
associate-*l* [=>]72.59 | \[ \sqrt{-2 \cdot \left(n \cdot \left(\left(\frac{2}{Om} - \frac{n}{Om} \cdot \frac{U*}{Om}\right) \cdot \color{blue}{\left(\ell \cdot \left(\ell \cdot U\right)\right)}\right)\right)}
\] |
Applied egg-rr72.49
Applied egg-rr60.09
Final simplification41.01
| Alternative 1 | |
|---|---|
| Error | 40.17% |
| Cost | 32140 |
| Alternative 2 | |
|---|---|
| Error | 52.87% |
| Cost | 15388 |
| Alternative 3 | |
|---|---|
| Error | 52.63% |
| Cost | 14416 |
| Alternative 4 | |
|---|---|
| Error | 47.63% |
| Cost | 14156 |
| Alternative 5 | |
|---|---|
| Error | 47.53% |
| Cost | 13908 |
| Alternative 6 | |
|---|---|
| Error | 52.48% |
| Cost | 8784 |
| Alternative 7 | |
|---|---|
| Error | 52.24% |
| Cost | 8392 |
| Alternative 8 | |
|---|---|
| Error | 53.37% |
| Cost | 8009 |
| Alternative 9 | |
|---|---|
| Error | 52.22% |
| Cost | 8009 |
| Alternative 10 | |
|---|---|
| Error | 52.75% |
| Cost | 7881 |
| Alternative 11 | |
|---|---|
| Error | 52.74% |
| Cost | 7880 |
| Alternative 12 | |
|---|---|
| Error | 52.69% |
| Cost | 7880 |
| Alternative 13 | |
|---|---|
| Error | 58.28% |
| Cost | 7760 |
| Alternative 14 | |
|---|---|
| Error | 57.04% |
| Cost | 7760 |
| Alternative 15 | |
|---|---|
| Error | 58.31% |
| Cost | 7633 |
| Alternative 16 | |
|---|---|
| Error | 58.35% |
| Cost | 7632 |
| Alternative 17 | |
|---|---|
| Error | 55.13% |
| Cost | 7625 |
| Alternative 18 | |
|---|---|
| Error | 55.09% |
| Cost | 7624 |
| Alternative 19 | |
|---|---|
| Error | 57.61% |
| Cost | 7369 |
| Alternative 20 | |
|---|---|
| Error | 63.28% |
| Cost | 6848 |
| Alternative 21 | |
|---|---|
| Error | 63.1% |
| Cost | 6848 |
| Alternative 22 | |
|---|---|
| Error | 63.11% |
| Cost | 6848 |
herbie shell --seed 2023088
(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*))))))