Text FormattingAn issue regarding algorithm output

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
zahid990170
Posts: 1
Joined: Thu Aug 21, 2014 6:04 pm

An issue regarding algorithm output

Post by zahid990170 »

Hi all,

I am new to this community, my question relates with algorithm formatting using Latex. I could not find a specific title that deals with issues regarding algorithms. Hence, I post my question here.

Code: Select all

\begin{algorithm}
\caption{Adjust interface  $I_x$ to meet resource demand $W_{P_{x}}(t)$}
\textbf{Input:} $I_x$, $W_{P_{x}}(t)$ \\
\textbf{Output:} $I^{'}_{x}$.
\label{alg:adjInt}
\begin{algorithmic}
// some statements 
\RETURN $I^{'}_{x}$
\end{algorithmic}
\end{algorithm}
but on the output the last statement has an additional "= 0" i.e.
I get retrun I'x = 0 instead of just return I'x.

thanks,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: An issue regarding algorithm output

Post by Johannes_B »

Can you extend that to a minimal working example? I don't know where all those commands are defined.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply