From 3d0af9bb8fcfde1c58aca08e078ede31c01a492d Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Fri, 8 Oct 2010 11:40:21 +0530 Subject: Added the script to plotting_using_sage --- plotting_using_sage/quickref.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 plotting_using_sage/quickref.tex (limited to 'plotting_using_sage/quickref.tex') 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|} -- cgit