Code: Select all
\fbox{
$\begin{array}{l}
Given\; the\; vectors\; {\bf p}\; and\; {\bf n}\; as\; input,\; and\;
the\;
function\; {\sl f},\\ find\; the\; scalar\; \lambda\; that\; minimizes\; f({\bf
p}+\lambda {\bf n}). \\
Replace\; {\bf p}\; by\; {\bf p} + \lambda {\bf
n}.\; Replace\; {\bf n}\; by\; \lambda {\bf n}. \end{array}$
}