Finised plotting_using_sage
authorNishanth <nishanth@fossee.in>
Tue, 12 Oct 2010 11:09:52 +0530
changeset 332 b702c10e5919
parent 331 e3136f576acb
child 333 91b427241f8f
Finised plotting_using_sage
parsing_data/script.rst
plotting_using_sage/quickref.tex
plotting_using_sage/script.rst
--- a/parsing_data/script.rst	Tue Oct 12 10:53:33 2010 +0530
+++ b/parsing_data/script.rst	Tue Oct 12 11:09:52 2010 +0530
@@ -1,10 +1,11 @@
 .. Objectives
 .. ----------
 
-.. A - Students and teachers from Science and engineering backgrounds
-   B - 
-   C - 
-   D - 
+.. By the end of this tutorial you will be able to
+
+..  * Split a string using a delimiter
+..  * remove the whitespace around the string
+..  * convert the variables from one type to other
 
 .. Prerequisites
 .. -------------
--- a/plotting_using_sage/quickref.tex	Tue Oct 12 10:53:33 2010 +0530
+++ b/plotting_using_sage/quickref.tex	Tue Oct 12 11:09:52 2010 +0530
@@ -1,11 +1,30 @@
-Creating a tuple:\\
-{\ex \lstinline|    t = (1, "hello", 2.5)|}
+Plot simple 2D functions on a linear range of x:\\
+{\ex \lstinline|    plot(f(x), (x, 0, 2*pi)|}
+
+Plot 2D plots where x and y are functions of another variable:\\
+{\ex \lstinline|    parametric_plot((f_x, f_y), (x, 0, 2*pi), (y, 0, 2*pi))|}
 
-Accessing elements of tuples:\\
-{\ex \lstinline|    t[index] Ex: t[2]|}
+Generate a sequence of points with a given seperation:\\
+{\ex \lstinline|    points = srange(2.5, 5.5, 0.25)|}
+
+Plot a line joining a list of pairs of points:\\
+{\ex \lstinline|    line(list_pairs)|}
+
+Show the plots:\\
+{\ex \lstinline|    show(plot_name)|}
 
-Accessing slices of tuples:\\
-{\ex \lstinline|    t[start:stop:step]|}
+Show multiple plots:\\
+{\ex \lstinline|    show(p1+p2+p3)|}
+
+Set x-axis limits:\\
+{\ex \lstinline|    show(p1+p2, xmim=0, xmax=2*pi)|}
 
-Swapping values:\\
-{\ex \lstinline|    a, b = b, a|}
+Set y-axis limits:\\
+{\ex \lstinline|    show(p1+p2, ymim=-1.2, ymax=1.2)|}
+
+Plot 3D functions:\\
+{\ex \lstinline|    plot3d(f(x, y), (x, 0, 2*pi), (y, -1, 1))|}
+
+Plot 3D functions where x, y, z are functions of another variable:\\
+{\ex \lstinline|    parametric_plot3d((f_x, f_y, f_z), (t, 0, 10))|}
+
--- a/plotting_using_sage/script.rst	Tue Oct 12 10:53:33 2010 +0530
+++ b/plotting_using_sage/script.rst	Tue Oct 12 11:09:52 2010 +0530
@@ -1,10 +1,10 @@
 .. Objectives
 .. ----------
 
-.. A - Students and teachers from Science and engineering backgrounds
-   B -
-   C - 
-   D - 
+.. By the end of this tutorial you will be able to 
+
+..  * Use SAGE for 2D plotting
+..  * Use SAGE for 3D plotting
 
 .. Prerequisites
 .. -------------