From: <jd...@us...> - 2007-10-27 12:36:41
|
Revision: 4037 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4037&view=rev Author: jdh2358 Date: 2007-10-27 05:36:39 -0700 (Sat, 27 Oct 2007) Log Message: ----------- final commit before workshop Modified Paths: -------------- trunk/py4science/doc/linkfest trunk/py4science/examples/skel/trapezoid_skel.py Modified: trunk/py4science/doc/linkfest =================================================================== --- trunk/py4science/doc/linkfest 2007-10-27 06:23:13 UTC (rev 4036) +++ trunk/py4science/doc/linkfest 2007-10-27 12:36:39 UTC (rev 4037) @@ -64,9 +64,8 @@ matplotlib: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib - py4science: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science + py4science workbook: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/py4science/workbook - Important commands: svn up : update the repo Modified: trunk/py4science/examples/skel/trapezoid_skel.py =================================================================== --- trunk/py4science/examples/skel/trapezoid_skel.py 2007-10-27 06:23:13 UTC (rev 4036) +++ trunk/py4science/examples/skel/trapezoid_skel.py 2007-10-27 12:36:39 UTC (rev 4037) @@ -14,6 +14,7 @@ y[i] = f(x[i]) for some function f to be integrated. Minimally modified from matplotlib.mlab.""" + raise NotImplementedError @@ -31,6 +32,11 @@ Output: - The value of the trapezoid-rule approximation to the integral.""" + + # you will need to apply the function f to easch element of the + # vector x. What are several ways to do this? Can you profile + # them to see what differences in timings result for long vectors + # x? raise NotImplementedError if __name__ == '__main__': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |