![这个算法在latex中怎样写?](https://linux22.com/image/407046/%E8%BF%99%E4%B8%AA%E7%AE%97%E6%B3%95%E5%9C%A8latex%E4%B8%AD%E6%80%8E%E6%A0%B7%E5%86%99%EF%BC%9F.png)
答案1
你可以从
\documentclass{article}
\usepackage[noline]{algorithm2e}
% https://tex.stackexchange.com/a/362194/2288
\SetKwFor{For}{for }{}{end}
\begin{document}
\begin{algorithm}
\For{j = l :n}{
\If{j > 1}{
A(j:n,j) = A(j:n, j) - A(j:n, l :j - l )·A(j, l:j - l )T
}
A(j:n, j) = A(j:n, j) / J A(j,j)
}
\end{algorithm}
\end{document}