testing-debugging/quickref.tex
author anand
Mon, 15 Nov 2010 15:23:28 +0530
changeset 510 06561ee0f6a4
parent 401 abf092be95ef
child 489 bc8d01c3c9b3
permissions -rw-r--r--
checklist OK for `writing python scripts`
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
401
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     1
Creating a linear array:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     2
{\ex \lstinline|    x = linspace(0, 2*pi, 50)|}
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     3
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     4
Plotting two variables:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     5
{\ex \lstinline|    plot(x, sin(x))|}
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     6
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     7
Plotting two lists of equal length x, y:\\
abf092be95ef Adding testing and debugging files
Amit Sethi
parents:
diff changeset
     8
{\ex \lstinline|    plot(x, y)|}