You could create your own macro which saves that work:daiyue wrote:The thing is when I was usingalgorithmic
, there seems to be noend if
and such appears. So I was wondering how to turn such thing off.
Code: Select all
\newcommand\myIf[2]{\If{#1}#2\EndIf}
\newcommand\myWhile[2]{\While{#1}#2\EndWhile}
Code: Select all
\myWhile{$\Sigma \leq \Sigma_{\max}$
and $i < i_{\max}$}{
\Let{x^\prime}{x^2 - y^2 + c_x}
\Let{y^\prime}{2xy + c_y}
\Let{m}{x^\prime}
\Let{y}{y^\prime}
\Let{\Sigma}{x^2 + y^2}}
\myIf{$i < i_{\max}$}{
\State \Return{$i$}}
\State\Return{0}
Stefan