summaryrefslogtreecommitdiff
path: root/plotting_using_sage/quickref.tex
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-08 23:56:19 +0530
committerNishanth Amuluru2010-10-08 23:56:19 +0530
commit70cea979cd63478d44b4ea259f60ac4aa083a202 (patch)
tree38bdf46e0b1db1e5f5f9f85a2becea63e8dcbe9f /plotting_using_sage/quickref.tex
parentbeb7a73093eaca281a973797254d3d5fe5b13763 (diff)
parent02319f94740367c335b5d1aa55db84aec86f9e1b (diff)
downloadst-scripts-70cea979cd63478d44b4ea259f60ac4aa083a202.tar.gz
st-scripts-70cea979cd63478d44b4ea259f60ac4aa083a202.tar.bz2
st-scripts-70cea979cd63478d44b4ea259f60ac4aa083a202.zip
merged with punch
Diffstat (limited to 'plotting_using_sage/quickref.tex')
-rw-r--r--plotting_using_sage/quickref.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/plotting_using_sage/quickref.tex b/plotting_using_sage/quickref.tex
new file mode 100644
index 0000000..a0212b3
--- /dev/null
+++ b/plotting_using_sage/quickref.tex
@@ -0,0 +1,11 @@
+Creating a tuple:\\
+{\ex \lstinline| t = (1, "hello", 2.5)|}
+
+Accessing elements of tuples:\\
+{\ex \lstinline| t[index] Ex: t[2]|}
+
+Accessing slices of tuples:\\
+{\ex \lstinline| t[start:stop:step]|}
+
+Swapping values:\\
+{\ex \lstinline| a, b = b, a|}