\usepackage {algorithm}
\usepackage {algorithmic}
\begin{document}
\begin{algorithm}
\caption{algorithm}
\begin{algorithmic}
\STATE Input n;
\STATE Calculate m;
\STATE Output m+n;
\end{algorithmic}
\end{algorithm}
\end{document}
But I have a lot of errors using package algorithm :cry:
the ...
Search found 2 matches
- Thu Oct 21, 2010 2:57 pm
- Forum: Math & Science
- Topic: Algorithm
- Replies: 1
- Views: 1495
- Wed Oct 20, 2010 2:35 am
- Forum: Graphics, Figures & Tables
- Topic: Graph theory figures
- Replies: 1
- Views: 3254
Graph theory figures
Hello,
I am using latex to draw graphs-those in graph theory
but when I compile the tex file, I get a bunch of error in pgfcorearrow.code.tex and other lib files, really strange
Help me please, I'd like to draw a graph, I have to hand in my report tomorrow, I don't like to embed image while ...
I am using latex to draw graphs-those in graph theory
but when I compile the tex file, I get a bunch of error in pgfcorearrow.code.tex and other lib files, really strange
Help me please, I'd like to draw a graph, I have to hand in my report tomorrow, I don't like to embed image while ...