Hi, On Thu, Sep 18, 2008 at 2:25 PM, William Stein <[EMAIL PROTECTED]> wrote: > [...] > This will be going on the main sagemath.org webpage, and could be a > superb way of getting > students really interested in sage. I wonder if somebody could > volunteer to read through > the tutorial and make some comments, find typos, etc.? It's fun, not > too long, etc.
>From the "Tangent Lines" page at http://sage.math.washington.edu/home/elliottd/calctut/tangent.html here are some typos and suggestions: [1] You might want to rewrite the sentence "Rather than generating simply a static graph this time, we'll be doing a bit of manipulation." as "Rather than simply generating a static graph this time, we'll be doing a bit of manipulation." [2] You might want to rewrite the snippet "We could, of course, repeat this process in perpetuum," as "We could, of course, repeat this process for as long as we want," [3] You might want to carefully re-read this snippet "since when singularly a hundred-thousandth or a billionth separates both coordinates from 1, we could verily pronounce that the calculated slope does, in fact, approximately equal the slope of f(x) = x3/2 at (1, 1/2)." I think it's a bit confusing and I'm not sure what it's trying to say. [4] You might want to rewrite the snippet "Look again at the formula for slope," as "Look again at the formula for slopes," (i.e. add an extra "s" to "slope") or "Look again at the formula for calculating slopes," or something like "Look again at the slope formula," [5] You might want to rewrite the sentence "y2 is now f(x + h), and y1 is f(x)." as "The symbol y2 is now f(x + h), and y1 is f(x)." I don't think it's a good idea to start a sentence with a maths symbol. Reading such sentences can be a confusing experience. [6] For the code snippet (plot(3/x, x, -3, 0)+plot(-3*x/4-3, -3, 0, rgbcolor='red')+point((-2, -3/2), \ rgbcolor='black', pointsize=30)).show(xmin=-3, xmax=0, ymin=-10, ymax=0) I received the following overflow message: sage: (plot(3/x, x, -3, 0)+plot(-3*x/4-3, -3, 0, rgbcolor='red')+point((-2, -3/2),rgbcolor='black', pointsize=30)).show(xmin=-3, xmax=0, ymin=-10, ymax=0) --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) /home/mvngu/<ipython console> in <module>() /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi, axes, axes_labels, frame, fontsize, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle, hgridlinesstyle) 1363 gridlinesstyle=gridlinesstyle, 1364 vgridlinesstyle=vgridlinesstyle, -> 1365 hgridlinesstyle=hgridlinesstyle) 1366 os.system('%s %s 2>/dev/null 1>/dev/null &'%(sage.misc.viewer.browser(), filename)) 1367 /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, savenow, dpi, axes, axes_labels, fontsize, frame, verify, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle, hgridlinesstyle) 1514 if isinstance(g, GraphicPrimitive_MatrixPlot): 1515 matrixplot = True -> 1516 g._render_on_subplot(subplot) 1517 1518 #adjust the xy limits and draw the axes: /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in _render_on_subplot(self, subplot) 2363 s = int(options['pointsize']) 2364 faceted = options['faceted'] #faceted=True colors the edge of point -> 2365 subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, faceted=faceted) 2366 2367 class GraphicPrimitive_Polygon(GraphicPrimitive): /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, faceted, verts, **kwargs) 4242 corners = (minx-padx, miny-pady), (maxx+padx, maxy+pady) 4243 self.update_datalim( corners) -> 4244 self.autoscale_view() 4245 4246 # add the collection last /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/axes.py in autoscale_view(self, tight, scalex, scaley) 1271 ylocator = self.yaxis.get_major_locator() 1272 yl = self.get_ybound() -> 1273 YL = ylocator.autoscale() 1274 self.set_ybound(YL) 1275 #### Drawing /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py in autoscale(self) 882 dmin, dmax = self.dataInterval.get_bounds() 883 dmin, dmax = mtrans.nonsingular(dmin, dmax, expander = 0.05) --> 884 return npy.take(self.bin_boundaries(dmin, dmax), [0,-1]) 885 886 /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py in bin_boundaries(self, vmin, vmax) 850 def bin_boundaries(self, vmin, vmax): 851 nbins = self._nbins --> 852 scale, offset = scale_range(vmin, vmax, nbins) 853 if self._integer: 854 scale = max(1, scale) /home/mvngu/usr/bin/sage-3.1.1/local/lib/python2.5/site-packages/matplotlib/ticker.py in scale_range(vmin, vmax, n, threshold) 818 offset = 0 819 elif meanv > 0: --> 820 ex = divmod(math.log10(meanv), 1)[0] 821 offset = 10**ex 822 else: OverflowError: math range error For your information, I was running Sage under Ubuntu 8.04 with kernel 2.6.24-19-generic. Here's the output from "uname -a": Linux darkstar 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux -- Regards Minh Van Nguyen Web: http://nguyenminh2.googlepages.com Blog: http://mvngu.wordpress.com --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---