[sage-support] Re: direction arrows for a parametric curve
Hi The problem is in scaling the arrows. I used arrow. look for plots with arrow. http://sage.math.canterbury.ac.nz/home/pub/138 (2d is at the bottom- no problem, 3d is in the middle and requires jmol) http://sage.math.canterbury.ac.nz/home/pub/142 Original credit for this idea is to Katie Glockner: http://sage.math.canterbury.ac.nz/home/pub/83/ Of course you know how to do gradient fields: http://sage.math.canterbury.ac.nz/home/pub/210 Paul's stuff (lamar) is the best static material I have every seen. Hope this helps, Linda FS On Monday, May 19, 2014 5:18:15 PM UTC+2, Jango wrote: Hi, Is there an easy (or a standard) way to display direction arrows on a parametric curve, that would show the direction of the curve as the parameter value increases? Something like this (random image from the internet): http://tutorial.math.lamar.edu/Classes/CalcII/ParaTangent_files/image002.gif Thanks, J. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: sage vs matlab
I know this is probably not so important in the grand scheme of things but I was helping my DIL (daughter in law) with numerical maths class (electrical engineer) and at every step I found Matlab/Octave with their major commands obscured what was happening. For example, she needed to approximate functions using a least squares linear approximation. In matlab you can use A\B even though this does not make sense. By using numpy.linalg.lstsq(A,B) I actually understood and was able to explain the principles. http://sagemath.wikispaces.com/Least+Squares+Approximation Warm regards, Linda On Monday, 4 March 2013 17:55:42 UTC+1, Luis Finotti wrote: Dear all, I will give a couple of informal talks on Sage. A question that will certainly be asked is how Sage compares with MATLAB, probably in regards of performance and functionality in modeling and other applied math applications. (It seems that MATLAB is widely used here.) Since this is not my area (and I have not used MATLAB) I thought I should ask in case some have experience with both. If I remember well, Sage can use/interact with SciPy and or NumPy in these applications, and my question about sage does not exclude the use of those (within Sage). Thanks, Luis -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Light version of sage for undergraduate students
Hiya William, 1. I will try the IPython and see how it goes. It would be nice for me and my kiddies not to be always dependent on internet. (The virtual machine was much too slow for them - I never tried it since it was too complicated for me.) 2. Ok - finally got the OpenID thing and made a new video http://www.youtube.com/watch?v=cx6cx788aHc. Hope I got it correct and sorry to be so slow. :) Best, Linda On Thursday, 7 February 2013 14:08:41 UTC+1, William wrote: On Wed, Feb 6, 2013 at 2:06 PM, Keshav Kini kesha...@gmail.comjavascript: wrote: LFS lfah...@gmail.com javascript: writes: Question: With the iPython notebook - do you get the sage notebook, that is do you get the ability to put in html code as text? Thanks. The IPython notebook doesn't support inserting arbitrary HTML into the document, but you can use Markdown (the lightweight markup language popularly used on various websites such as Reddit, GitHub, Stack Overflow, etc. This should probably be sufficient for simple things like formatted lecture notes or other text or captions. I remember asking Fernando Perez (lead dev of Ipython) exactly this question a few weeks ago, and he pointed out that technically Markdown is a *superset* of HTML. BTW: Is sagenb.org closed to new registrations? (I just started my new semester and one of my kids complained. Sorry to go off thread.) Not as far as I know... please ask your student to post on sage-support or on sage-notebook about the issue they are having. You *must* use an openid provider. Just creating a login/password account is not supported, since we had no password reset functionality. -Keshav -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com javascript:. To post to this group, send email to sage-s...@googlegroups.comjavascript:. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: line of intersection of two planes
Hiya John, When I saw this I realized that Sage could parametrize the intersection of two surfaces given explicitly! Absolutely cool. Thanks for your reply and Asad for your question. var('x y z') f(x,y)=(6 - 3*x - 2*y)/6 g(x,y)=(2 + 2*x + 9*y)/11 P1 = plot3d(f, (x, -5, 5), (y, -6, 6), color='red') P2 = plot3d(g, (x, -5, 5), (y, -6, 6), color='green') eqn1=(z==f) eqn2=(z==g) v=solve([eqn1,eqn2],x,y) x_comp=v[0][0].rhs() y_comp=v[0][1].rhs() r=vector((x_comp,y_comp,z)) L1=parametric_plot(r,(z,-1,3), thickness=5) show(P1+P2+L1) (Should have substituted t for z to make it look parametric, but was so happy I got this to work.) On Wednesday, 6 February 2013 05:59:45 UTC+1, John H Palmieri wrote: On Tuesday, February 5, 2013 8:24:31 PM UTC-8, Asad Akhlaq wrote: Hi, If anyone can help me to find the line of intersection of two planes. I can plot two planes in sage as follows: plane1 = plot3d((6 - 3*x - 2*y)/6, (x, -5, 5), (y, -6, 6)) plane2 = plot3d((2 + 2*x + 9*y)/11, (x, -5, 5), (y, -6, 6)) plane1 + plane2 shows me the 3D graph. I can see the line of intersection of these planes. How can I get the actual values (points) of this line? Actually my main target is to find the point of intersection of two or more hyperplanes in higher dimensions (dimensions 6, 7 ,8). If anyone can just give me some hints in this regards? I think this should do it: sage: var('x y z') sage: eqn1 = (z == (6 - 3*x - 2*y)/6) sage: eqn2 = (z == (2 + 2*x + 9*y)/11) sage: solve([eqn1, eqn2], x, y) [[x == -76/23*z + 58/23, y == 45/23*z - 18/23]] -- John -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
It is SO unfortunate that the sagenb.org published worksheets had to be turned off - often a half hour of searching there yielded untold stores of fruit. 1. It REALLY is unfortunate. I used those published worksheets ALL the time. Without them I NEVER would have continued on with Sage. Now 2 problems: I have nowhere to go and I never downloaded the ones I did use (just referenced them). 2. Thanks so much for the link to your publication. From there and work I had done, i FINALLY got histograms to work decently with (I think) a minimum of importing and weirdness. Also I will extend to other distributions that you worked there, but I wanted to get something easy up. I will try to get a wikipage up, but meanwhile: http://sage.math.canterbury.ac.nz/home/pub/255 * Question for anyone:* How to I get my histograms from matplotlib to be smaller? Thanks! -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Hiya Harald - I will try. I am really, really bad with forums. That is why I posted the link to the public page. I think the version is 4.8. (Can't use sagenb since no public posting.) Here is the minimal code version I used in an example (for people like me who don't understand all the programming involved). my_data=[random() for j in range(100)] import matplotlib.pyplot as plt plt.hist(my_data, bins=5, range=(0.,1.)) plt.savefig('Histogram.png') plt.close() From what I understand, the last two lines are to force an actual plot. - Here is a slightly more expanded version where I can extras to the plot, but cannot get it to be a decent size. my_data=[random() for j in range(100)] import matplotlib.pyplot as plt fr, bn, junk= plt.hist(my_data, bins=5, range=(0.,1.), normed=1, facecolor='lightgreen') #I bet everyone will appreciate my label of patches print 'normed frequency array is: ', fr print 'bins array is: ', bn xmn=0;xmx=1;ymn=0;ymx=max(fr)+1 plt.axis([xmn,xmx,ymn,ymx]) plt.xlabel('Intervals', color=(0,.4,.4)) plt.ylabel('Frequency', color=(.4,0,.4)) plt.grid(True) plt.savefig('Histogram2.png') plt.close() Hope I did this correctly. Thanks! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Thanks Harald! That worked and I very much appreciate your quick reply. Straightforward is what I want! BTW: I am satisfied with this, but I will point out the following to anyone else reading this thread The first solution does cut off the ylabel a bit from the left; The second makes the fonts rather small - i used dpi=50 (I am sure you can fix this with font size on the labels ...) On Thursday, 31 January 2013 17:08:55 UTC+1, Harald Schilly wrote: On Thu, Jan 31, 2013 at 4:50 PM, LFS lfah...@gmail.com javascript:wrote: Here is the minimal code version ok, this is a straightforward matplotlib-only question. therefore the answer is easy :-) before the histogram line, create a figure and define its size (tuple of inch values): plt.figure(figsize=(2,2)) when you save it, you can also define a dpi value: plt.savefig('Histogram.png', dpi=600) both give you all the flexibility you might want. Harald -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: parametric_plot and xmin/xmax
I don't know if you are desperate (then this is a decent idea) or trying to teach others (not so good an idea) When desperate, I add invisible points and use show(). (Unfortunately invisible points depend on your plot type since alpha=0 is for 2d and opacity=0 is for 3d...HINT to developers to change this...) t = var('t') PP=parametric_plot( (cos(t), sin(t)), (t, 0, 2*pi)) Bx=point([(-2, -2),(2,2)], alpha=0) show(PP+Bx) for 3d example see: http://sagemath.wikispaces.com/point3d example 3 On Monday, 21 January 2013 01:01:25 UTC+1, Robert Jacobson wrote: Setting xmin/xmax for parametric_plot doesn't seem to do anything, but ymin/ymax work as expected. What am I doing wrong? t = var('t') parametric_plot( (cos(t), sin(t)), (t, 0, 2*pi), xmin=-2, xmax=2, ymin=-2, ymax=2) -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: parametric_plot and xmin/xmax
Thanks. If asked, I vote for opacity. It is memorable. :) On Wednesday, 30 January 2013 10:34:04 UTC+1, P Purkayastha wrote: On 01/30/2013 05:02 PM, LFS wrote: I don't know if you are desperate (then this is a decent idea) or trying to teach others (not so good an idea) When desperate, I add invisible points and use show(). (Unfortunately invisible points depend on your plot type since alpha=0 is for 2d and opacity=0 is for 3d...HINT to developers to change this...) Thanks. This has been added to http://trac.sagemath.org/13828 -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Hi guys - I am sure that there is much more available. But actually William you hit the nail on the head. The page I used was a small undergraduate student project and its contents are useful and accessible. That is the level I want - so a student or someone like me can use Sage in place of MatLab or Mathematica in the undergraduate mathematics classroom without getting bogged down in learning programming. To me, the problem is that so often (a) I cannot find something basic or if I do: (b) I cannot understand how to use it in Sage. Do a search for sage statistics or sage histogram and you are immediately passed off to one or more of the underlying programming languages each with its own specific syntax style. For the first search, that one page is all there is for sage. For histograms, I spent *many, many hours* searching before I wrote my first comment in this thread. I found and tried every single one of the commands in the sage stat reference pages. I did the scipy stuff. I could sort of get an array with the counts and the bins if I worked at it really hard (I had to separate out the returns), but I never could find a way to plot it. I am sure there is some reference, but I could not find it. Perhaps this: a student or someone like me can use Sage in place of MatLab or Mathematica in the undergraduate mathematics classroom is not a goal of Sage. However, my impression was that this was one of the goals and it was the reason I started to use it and work at it (and build my own wiki and youtube channel - places that explain the basic stuff). I am not complaining, but rather explaining that massive and complete is not always that helpful in the undergraduate (and even graduate) math classroom. Finally, thanks always to everyone for replying any which way to my questions. An active forum is a blessing and one of the many excellent points of Sage. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
I have to admit that I did not find very much in sage for descriptive statistics. I have put what I found in my sagemath page: http://sagemath.wikispaces.com/Statistics If anyone can add anything to this, that would be great. I really want sage - my goal is sage as a reasonably easy to use foss substitute for MatLab or Mathematica for students of engineering or science (who are neither experts in programming nor mathematics). Thanks for any help. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Thanks for the reply! I used everything I found on this: http://www.sagemath.org/doc/reference/sage/stats/basic_stats.html and I had looked at 9671 and said Argh. kcrisman wrote On an unrelated note, I'll put in a plug for some enterprising people to make more videos to put on LFS' sagemath YouTube channel! Oh some new videos would be great. Simple and short. (I owe some more on statistics on geogebrachannel, but after 22 Feb, I should be free again to work on sagemath, but some videos by people who know what they are doing would be great!) P.S. I kept forgetting the common password so I changed it back to one I know [old, older, ...] - For sure if anybody makes a video, I can either upload it (mp4) or write me (lfahlberg at gmail.com) and I will remake a common and hopefully memorable password :) -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[sage-support] Link explaining types of decimal numbers
Hi - I would appreciate if someone could point me to a link explaining the difference (if there is a difference) between: * type 'sage.rings.real_mpfr.RealLiteral' * (Here I input x=3.) *type 'float'* (Here I input xx=float(3)) *type 'sage.rings.real_mpfr.RealNumber'* (Here I input 1/x) . My page: http://sage.math.canterbury.ac.nz/home/pub/247 Thanks so much, Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Link explaining types of decimal numbers
Thank-you Robert for answering so thoroughly. I did learn alot from you answer that was very clearly and concisely written. I should have been a bit more specific. I teach engineering mathematics and basically what I want is floating double precision that doesn't make trouble with Sage functions. (I want to spend my time teaching the mathematics.) For example, I have used n() to get a number (decimal) answer. But it won't work on any of these objects. Depending on something, Sage will either give me a number or tell me that no such function is available for this type. So I was trying to understand what is the difference between the types. I don't want my kiddies don't get stuck and frustrated on this. Basically I have gathered that we should use float() for everything. It is reasonably fast, will work with most sage functions, give numeric answers and works on the Chrome or FireFox browser version of Sage on a Windows machine (which is what we have). (It looks like the Fortran double of my day.) Again, I thank you for your time. Linda On Wednesday, 23 January 2013 20:09:30 UTC+1, Robert Bradshaw wrote: First, I would recommend reading up on floating point arithmetic. A cannonical reference is http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html , but if that's a bit dense there are many other good sources on the web. Things get more interesting for Sage, as there are several models for floating point numbers available depending on the use. In turn these are (1) float, created with float(3.0) or 3.0r, which is the native Python floating point represented by the machine (typically IEEE 754 double or extended precision), fastest but potentially less accurate and platform dependant. (2) sage.rings.real_double.RealDoubleElement, created by RDF(3.0), which is also IEEE 754 double or extended precision, but has more sage-specific functionality. (3) sage.rings.real_mpfr.RealNumber, the default, created by RR(3.0) or doing arithmetic with 3.0, back by http://www.mpfr.org/ to 53-bits of precision, accurate rounding on all operations, platform-independent, but slower than the above (3b) sage.rings.real_mpfr.RealNumber with alternative precision, e.g. RealField(1000)(3) for 1000 bits (not digits) of precision. Less common: (4) sage.rings.real_mpfi.RealIntervalFieldElement, created by RIF(3.0), which does arithmetic on intervals (as most real numbers can't be represented accurately) and can bue used to provide provable statements of inequality. Can also be arbitrary precision, e.g. RealIntervalField(1000)(3) (5) RLF, the real lazy field (mostly used under the hood for coercion from exact to in-exact domains). (5) sage.rings.real_mpfr.RealLiteral, which is what you get when typing 3.0, which stores the typed value to infinite precision and converts to a fixed precision (53-bit if implicit) upon demand. This is needed so that RealField(1000)(1.2) is 1.2 to 1000 bits, not just 53 bits (as it would be if 1.2 was parsed to 53 bits then passed in to RealField(1000)). For all of the above, see RR?, RDF?, etc. for (lots!) more documentation. - Robert On Wed, Jan 23, 2013 at 8:59 AM, LFS lfah...@gmail.com javascript: wrote: Hi - I would appreciate if someone could point me to a link explaining the difference (if there is a difference) between: type 'sage.rings.real_mpfr.RealLiteral' (Here I input x=3.) type 'float' (Here I input xx=float(3)) type 'sage.rings.real_mpfr.RealNumber' (Here I input 1/x) . My page: http://sage.math.canterbury.ac.nz/home/pub/247 Thanks so much, Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-s...@googlegroups.comjavascript:. To unsubscribe from this group, send email to sage-support...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/sage-support?hl=en. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: matplotlib animations
http://sage.math.canterbury.ac.nz/home/pub/246 (Sorry posted notebook and not published version.) Linda, I wasn't able to access your notebook. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: matplotlib animations
Hi - I am like the a total amateur with sage, but here is a page that I did with animation - credit: Nils Brun http://sage.math.canterbury.ac.nz/home/lfahlberg/58/ I see it is still working. It has 5-6 plots so with the current java problems, be prepared to click on Run a gazillion times. The animation is 2nd to last thing. Best, Linda On Thursday, 17 January 2013 06:41:14 UTC+1, David Morawski wrote: I'm having some troubles figuring out matplotlib from within Sage. I'm interested in doing some animations, so I started with the first examplehttp://matplotlib.org/examples/animation/animate_decay.htmlon matplotlib.org. I downloaded the source codehttp://matplotlib.org/examples/animation/animate_decay.pyfor the example and ran the following: sage: load('animate_decay.py') sage: plt.savefig('blah.png') Unfortunately, blah.png contained nothing more than a blank Cartesian plane. I also typed in the code into the sage interpreter by hand and had the same output. Thoughts? Any help and/or directing toward documentation would be most appreciated. I've spent a fair amount of time searching around, but am struggling with matplotlib, in general. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: matplotlib animations
P.S. the animation iterates 5 times and stops (you can see the code * iterations=5*) so if the point stops moving before you get all there, just change the number or reload. :) -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Very badly written since I am in a hurry - IMHO: After struggling for the last 2 weeks, I would say Excel and GeoGebra have more functions for the statistics math classroom (e.g. RandomBetween, CountIf). They are much more intuitive and better documented. And it seems to me that Sage without numpy or other import (and thus learning) cannot do simple things like a histogram, ...(I can't even get it to do a histogram with imports.) The trouble here is size - Sage can do much bigger and better generations of data and thus one can show things. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?
Thank-you. Perhaps we could add that somewhere, e.g. http://modular.math.washington.edu/edu/2012/1062/projects/final/le-kofmehl/Math480_Quick_Reference_Statistics_Final.pdf I tried everything on this page, everything on the forum, absolutely everything I could find doing a search on: sage plot histogram BTW: I see I can add bins=5 as an argument, but I cannot find a way to create a list of bin endpoints. ex.stats.TimeSeries(mu_list).plot_histogram(bins=5,color='red', figsize=6, aspect_ratio=2) stats.TimeSeries([list of values]).plot_histogram() William -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Taylor Polynomial possible bug in return
Hiya, Probably I am just doing something wrong ... I have a cubic polynomial p(x) with regular coefficients and I wanted coefficients around e.g. (x-1). So I did p1=p.taylor(x,1,3). I get: x |-- 0.085*(x - 1)^3 - 0.255*(x - 1)^2 + 0.34*x + 1.23 The polynomial is correct, but look at the last two terms. The 1-degree term is in x not in (x-1) and the difference has been added to the 0-degree term. I think i should get: x |-- 0.085*(x - 1)^3 - 0.255*(x - 1)^2 + 0.34*(x-1) + 1.57 See (scroll all the way to the bottom): http://sage.math.canterbury.ac.nz/home/pub/237/ Thanks for any help. Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Taylor Polynomial possible bug in return
Little more: I see canterbury is using 4.8. Maybe this is fixed in version 5? -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Taylor Polynomial possible bug in return
Hiya Burcin, Thanks for reply! For my cubic polynomials p0 and p1, I did get the following to work: p0=p.series(x==xD[0],4) p1=q.series(x==xD[1],4) print p0; p1 x |-- 1.0601 + 0.59497*x + (-0.08502)*x^3 x |-- 1.5698 + 0.34008*(x - 1) + (-0.25506)*(x - 1)^2 + 0.08502*(x - 1)^3 (I am guessing that here (a) you must add one more degree than you want and (b) if the derivative is not zero, you get the Order thing indicating a remainder??) I did like the taylor command. It was easy to understand and the syntax was intuitive (good for people like me). I don't mind the Order thing so much, but the x==1, I don't like. BTW: The wolframalpha command is: series[0.085*x^3 - 0.510*x^2 + 1.105*x + 0.890,(x,1,3)] I know next to nothing about programming so I hope someone else offers to help :) Thanks again. Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: NumPy Array with generator
P.S. Sorry there is an error in the above post. Of course the counter should be integer. This is the best I could do. x0=0.;xend=2.*pi;n=8.;h=(xend-x0)/n; y=numpy.ones(n+1) y=[y[j]*cos(x0+j*h) for j in [0..n]] y If anyone knows of an easier or more intuitive way OR how to this array to print *only* decimals - many thanks! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: NumPy Array with generator
Thanks indeed Juan, it did help immensely! I couldn't get array to work and your example finally clicked for me. In the end, I used: w=numpy.array([cos(x0+j*h) for j in range(n+1)], float) THANKS. Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: NumPy Array with generator
Thank you Harald. Actually, I think I do need the whole list/array with the function evaluated - either as a list or an array. (I am working the TriDiagonal Algorithm.). I am an in-between person. I have found that the students make no connection between their engineering classes that often use extremely sophisticated commands from MatLab or just recipes and their math classes with analytic solutions. So I am trying to teach them to do mathematics (or at least check their analytic solutions) with technology but in a way that the understand the steps. I need the simplest most intuitive format possible with the least number of commands. I am still deciding whether to go with Sage lists or NumPy arrays. I had already done the TDA with lists when I thought I should check numpy arrays (and got stuck on the function array). As I understand, arrays are faster as their size is pre-allocated and all elements must be of the same data type. Thanks again, Linda P.S. I see the way to see whether it is a list or an array in sage is to use print. If you get commas, it is a list; if you don't it is an array. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: NumPy Array with generator
Short letter indeed! Full of extremely useful information on so many levels. Thank-you SO much. Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] NumPy Array with generator
Hiya all - Firstly Happy Holidays and a Good New Year in 2013 (no cool dates anymore though like 20:12 20-12-2012) Anyway - I have looked everywhere for days and days. How do you generate a numpy array like X[j] where e.g. X[j]=cos(j) for j in [x0,xend,step=h]. I have a count number n. I can't imagine this is hard to do, but I cannot find it. I don't want a list; I don't want to use range and I don't want to use fromiter as that appears to mix lists and arrays. (It is for my students so I want it as simple and intuitive as possible :) Thanks! -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Sage Usage Survey
Hiya Jan, Probably you are after more sophisticated users than me (I teach undergraduate and graduate engineering mathematics), but I did not understand question 2. (I could never get how to download Sage so I use it on my windows machines via the Chrome browser. Since the publisher on sagenb.org doesn't work, I now use http://sage.math.canterbury.ac.nz .(thank-you canterbury!) Linda FS -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] How do you stop sage in the middle of a block?
How do you get sage out of a loop early? How do you get sage to totally stop in the middle of a block? for n in (0..2): for m in (0..3): p=2*m print p if p==2: print 'I want out of loop' m=4 if n==1: print 'I want to stop Sage' print 'Did not stop Sage' I want to get out of m loop if p=2 and totally stop Sage if n=1. Thanks so much for any help. Sorry if this is a dumb question. I looked and looked. BTW: Someone might want to add this good tutorial: http://modular.math.washington.edu/msri06/stein/tut.pdf to http://ask.sagemath.org/question/1086/where-is-basic-tutorial-for-sage -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: How do you stop sage in the middle of a block?
Thank-you both! The 'break' did what I wanted for now and will test os._exit() in a bit. Really appreciate your help. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Why don't I get random numbers?
Hiya guys! I have a function: def GDD(num,P): D=GeneralDiscreteDistribution(P) D.reset_distribution() L=[D.get_random_element() for _ in range(num)] return L and then commands P=[0.5,0.33, 0.17] L=GDD(num,P) I am definitely not getting random distributions within my lists L (i.e. the same lists repeat themselves much too often). Am I not understanding something here? Thanks for any help. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
Hiya Dmitrii Thanks so much for your quick reply, but I am still getting the same problem. I go to excel and use a RandBetween[1,1000] and just sort them according to my probability and all is good, i.e. the histogram of the expected values is normally distributed. Here I keep getting the same counts over and over (see line 5) of http://sage.math.canterbury.ac.nz/home/pub/201 and the histogram looks awful. Thanks again! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
Hiya Dimitri, It might actually be working. Not sure, but when I increased the number of sets ns, it does looks better. Still alot of repeats, but the histogram looks better. Linda On Sunday, 21 October 2012 12:30:13 UTC+2, LFS wrote: Hiya Dmitrii Thanks so much for your quick reply, but I am still getting the same problem. I go to excel and use a RandBetween[1,1000] and just sort them according to my probability and all is good, i.e. the histogram of the expected values is normally distributed. Here I keep getting the same counts over and over (see line 5) of http://sage.math.canterbury.ac.nz/home/pub/201 and the histogram looks awful. Thanks again! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Why don't I get random numbers?
Hiya Dave, What would the line of code look like to reseed it with the epoch thing each time I call it? Thanks so much, Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Why don't I get random numbers?
Thanks Dave - If I have a moment I will try the scatter plot method to check. That seems like a useful idea for student. (This was just for a class lesson on testing the CLT and I am way over my time allotment :)) Thanks to both you and Dimitri for feedback! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
Yes - I think Dimitri's solution is working! (I changed the published file to his algorithm and upped the number of sets ns for the CLT and I also seem to be now be getting good empirical data.) Thank-you all! Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
Actually Dmitrii with this change it is giving me exactly the same empirical data each time! -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
I am not sure, but your image looks like the bottom histogram, which is the normal distribution. The middle histogram is from the empirical data. Linda -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Why don't I get random numbers?
yes - i finally saw that and took the call to the GDDinit out of the loop and this may be working, but I don't know how to explain this to the kiddies. Probably should have just stuck with Excel where I understand the generators. Too complicated by far. Thanks everyone for your help. On Sunday, 21 October 2012 13:56:06 UTC+2, Dima Pasechnik wrote: On 2012-10-21, LFS lfah...@gmail.com javascript: wrote: --=_Part_87_6472836.1350820122321 Content-Type: text/plain; charset=ISO-8859-1 Actually Dmitrii with this change it is giving me exactly the same empirical data each time! well, I just gave you a general framework for initializing and using a pseudo-random number generator. If you initialize it with the same seed, you get the same pseudo-random sequence. (sometimes uselful, if you want to check that you get the same results from seemingly random computation) So if you restart your computation from the very beginning, inclusing the initializing of the random seed with the same value, you will get the same data each time you do the computation. But if you want to emulate true randomness, you only have to initialize the seed once. HTH, Dmitrii -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Why don't I get random numbers?
Oh I agree Dave for several reasons (not least of all that Excel is not free, nor is it math based). However I have to admit that I have not been happy with any non-Excel program for just teaching probability and statistics. Too complicated and the kiddies will give up. It took me 4 days to get this simulation in Sage going (I think it works now) and I gave up in GeoGebra without a fight. (Please don't think that I think Mathematica, et.al. any better. If anything they are even more complicated, not to mention costly.) I just want it to be relatively simple and mathematical to empirically test stuff :) But kids are used to Windows,so if you can encourage them to use a non-Windows system, it would be useful as a side-benefit. I'm not sure if it ever happened, but I know an 8-year old contacted William about being a Sage developer. Dave -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: numerical integration problem
Hiya - I have had this experience myself even with rather simple functions and small intervals with sage (and with various other programming and math apps). Feel free to ignore this ... I am a complete ignoramus at how sage works, but my experience has been that you should try nudging your interval a little bit. I tend to add err=+0.0001 to both endpoints. That usually keeps the integrator off of bad numbers that make it go bonkers. (How is that for mathematical???) (Since I am only trying to solve calculus and advanced calculus problems, this solution does it for me :) -- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Public worksheets
Oh - I wondered why they were disabled. Finally saw this. I am wondering does disabling javascript mean no embedded GeoGebra worksheets? Could we have a list of safe users? Thanks, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Call for Papers: Symbolic computation with Sage in mathematical education and research
Hopefully doing this correctly since not exactly a question. Just wanted to make sure this group new about this. Special Issue for Papers: Tbilisi Mathematical Journal TMJ, Symbolic computation with Sage in mathematical education and research.* Link at bottom of:* http://tcms.org.ge/Journals/TMJ/http://www.linkedin.com/redirect?url=http%3A%2F%2Ftcms%2Eorg%2Ege%2FJournals%2FTMJ%2Furlhash=1akb_t=tracking_anet P.S. I wrote and asked (as I am definitely the hands-on, what works when I must teach 300 kids every year and not the educator-researcher. They are looking for hands-on papers. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] changes in parameter_plot
Hiya - is there something new in parameter_plot? I was using parameter_plot for both 2d and 3d plots and now something is not working. Thanks, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: changes in parameter_plot
No - because I now see it was my error. Very sorry. Should never write in at night :) Argh, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
Hiya all. I managed to publish on the test site (version 5 beta): http://test.sagenb.org/home/pub/32 Maybe I am doing something wrong but it will not let me publish the animation on the sagenb.org site. (Let's me publish other stuff.) @Nils. Is there a line I can add that will delay the reitteration (of the entire cycle)? Thanks again to everyone for their support. Linda On Feb 8, 6:09 pm, LFS lfahlb...@gmail.com wrote: @Nils Got the animation to work - Really pleased! (Momentarily nothing will publish - when it does I will add the link.) Thanks for writing the script so simply. I was able to change things I wanted to change. BTW - if anyone copies and pastes the script from above, there is an bad line break after rmdir that forces an error. Thanks. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
Hiya I have now managed to publish a working version of the 3d animation: http://test.sagenb.org/home/pub/33/ However, the code appears to cause some problems with respect to the publisher. == I could not publish at all from sagenb (I checked - I could publish other sage worksheets without animation). == Even on the beta, I cannot make any changes to the worksheet that transfer to the published version (i.e. no official save). I either get a failed to save or internal server error. Hence the 2 published versions on test. Version 32 can be deleted - it doesn't work. (I copied the text of the working code into a new worksheet, immediately saved and published; after that no changes were allowed to be saved :).) @Nils Is there a way to have a delay between iterations of the whole cycle? Thanks! Thank-you all for your support. Linda On Feb 8, 6:09 pm, LFS lfahlb...@gmail.com wrote: @Nils Got the animation to work - Really pleased! (Momentarily nothing will publish - when it does I will add the link.) Thanks for writing the script so simply. I was able to change things I wanted to change. BTW - if anyone copies and pastes the script from above, there is an bad line break after rmdir that forces an error. Thanks. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
@Nils Got the animation to work - Really pleased! (Momentarily nothing will publish - when it does I will add the link.) Thanks for writing the script so simply. I was able to change things I wanted to change. BTW - if anyone copies and pastes the script from above, there is an bad line break after rmdir that forces an error. Thanks. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
Hiya all - thanks for all the replies! @Nils I will definitely try the code and get back to you. I am a very slow worker ... @A I am the voice of the http://youtube.com/geogebrachannel (everyone else is mostly the strong silent type :) ) @Kcrisman, et.al. Please write me lfahlb...@gmail.com for the login if you want to upload to the youtube sagemath channel. I will organize playlists and stuff so no worries there. OM - I just tried pasting the applet code from geogebra into my sage page - loads slow in the notebook, but seems okay in the published. Never thought of that! Thanks. Here is link: http://sagenb.org/home/pub/4250 THIS IS COOL! I have this dream too; I get so annoyed when mathematicians (myself totally included) spend time forcing our students to learn techniques that a computer can do, but don't spend time teaching them carefully and with understanding the techniques a computer cannot do. With respect to this, I have gotten a bit stuck trying to explain parameterization and so have slowed down with the sage videos. I will be back :) BTW: If I ever use something from somebody without credit, please write me immediately. Sometimes I get confused about where I find things. Best, Linda On Feb 6, 9:39 pm, kcrisman kcris...@gmail.com wrote: On Feb 6, 2:58 pm, Socius ant...@gmail.com wrote: On 6 Feb, 18:57, LFS lfahlb...@gmail.com wrote: I have to admit that I use GeoGebra for almost everything not 3d. It is absolutely fantastic (I do videos on the youtube.com/ geogebrachannel and have a wiki and a moodle on ggb.) But sage is great (and I have started a youtube.com/sagemath channel and a sage wiki, but they are in their infancy.) (a) for 3d and (b) for creating solvers because of its linearity which helps kids focus on the steps. (c) I really like the organization in sage with the text fields and sage fields. (I also use scratch to teach my kids to test their probability results). Hi Linda. Congrats for your activities with Geogebra and now Sage. Do you publish videos on the official Youtube geogebra channel? I often visit the channel, and I am surely interested also in new videos about Sage. So you didhttp://www.youtube.com/sagemath ? Very interesting! Jason Grout has already been singing your 3D worksheets' praises. We do post a lot of videos from Sage Days at YouTube (seehttp://www.youtube.co/user/wstein389, William's posted videos), but I didn't realize someone (LFS) had started a channel. That could be useful. cc:ing sage-devel - there should be some coordination here among people who upload videos. Actually my secret (not so) dream is a program with all the modules of Sage, the simplicity and interactivity (also for animations) of Geogebra, and a free structure notebook-style as Mathcad. I hope that both GG and Sage (maybe together one day?) will develop towards that goal. Could be hard! But at least you can use Geogebra from within Sage to some extent because of the web start for GG. http://flask.sagenb.org/home/pub/87/ A longer-term ticket, with a lot of work on it done already:http://trac.sagemath.org/sage_trac/ticket/7489 - kcrisman -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
Hiya Jason, It really depends and certainly I am no expert. And probably most of this is boring so feel free to ignore. As I said above, I use a combination of GeoGebra and Scratch and Sage and I am just starting with sage. I would say that MY most important use of the worksheets in SAGE has been to help ME understand the material and find an understandable way to teach it. A friend in mathfuture forum quoted somebody saying something like If I can explain it to a computer, then I understand it. That is EXACTLY how I feel. With respect to students: Mostly classroom demonstration via an LCD projector. My rule 1: Build the applet/worksheet in class so they don't think its magic. I rarely show ready-to-use stuff unless I have built the basic model first. My rule 2: Make sure they understand the stuff that no computer will do for you. Then if the curriculum requires that we solve the computer part by hand, show them how to check it using the applet/ worksheet. Given this: The 3D Line and Surface Integrals, Vector Calculus stuff is for my son and daughter-in-law. Neither of them does the sage. They watch me do it :) He is studying chemical engineering and hates this math because he sees no use for it (and like many boys and men refuses to learn something he doesn't understand). He likes the visuals and it connects to understanding. But even my daughter-in-law (who is a very dedicated electrical engineering student) was horribly frustrated by this material. She got A's on the tests and said she didn't know what she was doing. The sage demos helped. --- I have been doing this for them for awhile. Usually, I try to make a combination of short youtube videos, worksheets with lots of graphic explanations, solvers, applets/ interactivities. Once I make them, I tend to post them online and usually get decent feedback and views (nothing like khan of course...). I try to do some in english and macedonian so there is often an odd combination of resources :) In my math undergraduate courses, I tend to just do in-class demos. (I currently teach Calc1 and Calc2, so e.g. I show them how do calculate Taylor polynomials and then draw both functions so they see if, where, how approximation works.) I tried integrating IT into the grading, but I have huge class sizes and that wasn't working. They love to look at the 3d stuff so I do show the sage stuff in class as reward for good behavior :) In my math modelling courses (smaller), I hold online classes (in macedonian) and my kids have to create a variety of (usually geogebra) worksheets and then make little videos about what they learn. It usually takes twice as long as you think it will :) In my graduate courses, I do in-class demos and then assign similar problems where they create worksheets themselves. (This is mostly probability and statistics to IT engineers and we use scratch.) and on and on i go Linda On Feb 7, 2:22 pm, Jason Grout jason-s...@creativetrax.com wrote: On 2/7/12 5:13 AM, LFS wrote: I have this dream too; I get so annoyed when mathematicians (myself totally included) spend time forcing our students to learn techniques that a computer can do, but don't spend time teaching them carefully and with understanding the techniques a computer cannot do. With respect to this, I have gotten a bit stuck trying to explain parameterization and so have slowed down with the sage videos. I will be back :) I am really curious how you use these worksheets in your teaching. Classroom demonstrations in a lab? Student work outside of class? I ask because I am always looking for better ways to use computer tools to enhance learning. Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Programming animation
Thanks A. That is good to hear about the sage slider! I have to admit that I use GeoGebra for almost everything not 3d. It is absolutely fantastic (I do videos on the youtube.com/ geogebrachannel and have a wiki and a moodle on ggb.) But sage is great (and I have started a youtube.com/sagemath channel and a sage wiki, but they are in their infancy.) (a) for 3d and (b) for creating solvers because of its linearity which helps kids focus on the steps. (c) I really like the organization in sage with the text fields and sage fields. (I also use scratch to teach my kids to test their probability results). On Feb 6, 5:31 pm, Socius ant...@gmail.com wrote: On 5 Feb, 17:20, LFS lfahlb...@gmail.com wrote: Hiya! Is there a relatively simple way to get a point to animate a point through a cycle keeping in mind my low programming skills ((like adding a wait between iterations?) ? I made this video with stop animation and an animated gif but it was a real pain.http://www.youtube.com/watch?v=2ddeHKk9ssg Now I really want to show how the parameter moves through 3d curves (and then surfaces) e.g. I would like to animate a point through the first curve on:http://sagenb.org/home/pub/4212/ Hi Linda. Recently Jason wrote that they are developing a new framework for the Slider control in the new versions of Sage. I don't know if that will allow to directly animate the slider. I hope so, because probably that would solve your problem. I recently started to experiment a little with Geogebra, and apart the fact that it is obviously more limited and less ambitious than Sage, there is a very nice and simple animation feature for each parameter associated with a slider, really useful for quickly creating animated graphs. A. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Programming animation
Hiya! Is there a relatively simple way to get a point to animate a point through a cycle keeping in mind my low programming skills ((like adding a wait between iterations?) ? I made this video with stop animation and an animated gif but it was a real pain. http://www.youtube.com/watch?v=2ddeHKk9ssg Now I really want to show how the parameter moves through 3d curves (and then surfaces) e.g. I would like to animate a point through the first curve on: http://sagenb.org/home/pub/4212/ Thanks for any help. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Thanks! Both of these tips are very important to me so extra thanks. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Found problem. The mathjax works great if all equations are properly input! However in sage editor, if you have an open span tag and you edit before the end /span tag, it will sometimes do a dreamweaver thing of closing the spantag and reopening it. You cannot see this in the editor. This may happen even if you are inside jsmath / mathjax delimiters. So then you get span tags INSIDE your equation. In jsmath, this still renders properly, in mathjax it does not. Recommendation: Do not edit equations in editor. ALWAYS edit in html mode. (I have had similar problem in wikispaces too.) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Just adding one more comment for search purposes: If you see your equation being cut off from text field into sage field, it means your translator is using 3 braces in a row {{{ Sage interprets {{{ as the beginning of a sage field. So check your translation. I had this problem using my equation editor mathjax translator. I FINALLY figured out the problem. It had translated the arc length function as sqrt {{{\dot x}^2} + {{\dot y}^2} + {{\dot z}^2}} . Notice the 3 braces in a row. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] mathjax big braces not rendering properly on sagenb nor publishing properly
Hiya - we are looking at an array inside big left brace ... On my wikispaces page (you have to open the + details ...), big brace renders properly. http://sagemath.wikispaces.com/Surface+integral+function However On the sagenb page, you get encoding problems: http://sagenb.org/home/pub/4147/ (you get top, middle and bottom; sometimes you lose these too). Couple of ideas (caveat: I know NOTHING, please forgive if stupid). Latest mathjax hub thing not done. Encoding problem. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Hiya Jason Thanks Jason for reply! http://test.sagenb.org/home/pub/27 Everything seems to work fine. However, I had to go into the html and fix it a zillion times. I highly recommend keeping the html as simple as possible and always COPYING IT (not the WYSIWYG since sagenb editor seems to add tags that mathjax cannot understand (and you don't see here, but do see in the html)). On Jan 27, 4:04 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/27/12 8:34 AM, LFS wrote: Hiya - we are looking at an array inside big left brace ... On my wikispaces page (you have to open the + details ...), big brace renders properly. http://sagemath.wikispaces.com/Surface+integral+function However On the sagenb page, you get encoding problems:http://sagenb.org/home/pub/4147/ (you get top, middle and bottom; sometimes you lose these too). Couple of ideas (caveat: I know NOTHING, please forgive if stupid). Latest mathjax hub thing not done. Encoding problem. Mathjax is not used on sagenb.org (jsmath is there), but it *is* experimentally used on test.sagenb.org. Can you try on test.sagenb.org? Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: mathjax big braces not rendering properly on sagenb nor publishing properly
Yeah - thot that might be cryptic after I posted. Hard to write in this forum. Editors tend to try to help you. I would NOT worry unless someone else complains since: * I have been moving stuff from the sagenb site to the canterbury site and now back again. Each has different editors. The canterbury editor has limited html options. * I tend to color my text using span tags. The canterbury site had some problems with that (e.g. it would ignore a span tag followed by a strong tag). * I am working with vectors and the (now standard) notation for vectors is using a,b,c and of course html uses and as tags. * I am an interminable reviser which drives editors crazy. = Anyway what happened is: span tags were added inside the mathjax code: Example: $x=2$ became $xspan=2$. jsmath would ignore this addition and process, mathjax would not. You could not see this addition in the editor, only in the html and of course my latex was much, much more complex than this example = This MAY have been the ONLY problem, but (a) I don't know when they got added and (b) other editing was happening. = For sure, the test.sagenb editor does this: For , I always write \lt which is latex for the less than symbol. The editor changes this to lt; which is html for this symbol. Arrays in latex have between the elements in a row. The editor changes this to amp; = However, these replacements seem to work in mathjax, but I really wish editors did not want to help me :) Best, Linda On Jan 27, 7:55 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/27/12 11:11 AM, LFS wrote: Hiya Jason Thanks Jason for reply! http://test.sagenb.org/home/pub/27 Everything seems to work fine. However, I had to go into the html and fix it a zillion times. I highly recommend keeping the html as simple as possible and always COPYING IT (not the WYSIWYG since sagenb editor seems to add tags that mathjax cannot understand (and you don't see here, but do see in the html)). I don't understand what you mean in those last few sentences. Can you give an example of what was happening? Thanks, Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: plots in 3d are not published?
Thanks Jason for everything you are doing. I would really appreciate it if you would write here when we can publish 3d plots in sagenb. Thanks kcrisman for the confirm. At least I now know that I am not doing it wrong. Best Linda On Jan 18, 1:36 am, kcrisman kcris...@gmail.com wrote: BTW: I cannot get mesh=True, dots=True or plot_points=[n,m] to work with plot3d. I'm not sure what is going on there, and can't look at it right now. Sadly, this is (at least)http://trac.sagemath.org/sage_trac/ticket/9708 and has been open for a while :( -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: plots in 3d are not published?
Thanks so much everyone for working on this. 1. Tested again at sagenb with newly published worksheet: http://sagenb.org/home/pub/4060/ The 3d plots are still NOT being published. They publish on both the 4.7 http://sage.math.canterbury.ac.nz/home/pub/141/ and 4.7.1 http://dev.math.canterbury.ac.nz/home/pub/21/ 2. @kcrisman You are correct; I did get the frame. I will check with higher opacity and report back. Best, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: plots in 3d are not published?
Hiya Jason. That is what I assumed. But I need the 3d plots to publish :) So back to canterbury and 4.7. BTW: I cannot get mesh=True, dots=True or plot_points=[n,m] to work with plot3d. There is no sample at the documentation: http://www.sagemath.org/doc/reference/sage/plot/plot3d/plot3d.html I was making a plot3d options notebook for myself (as I can't remember anything after about 2 hours :)). I tried it on 5.0 just to see if they worked in a newer version. They don't (or I don't understand how to use them). http://test.sagenb.org/home/pub/24 Best, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Animation with sage?
Thanks Rych! I appreciate your testing both the animation and the 3d plots. I see the http://dev.math.canterbury.ac.nz/ is 4.7.1 Is this a permanent site? Is there a document that tells the differences between 4.7, 4.7.1 and 4.7.2? (So far I have only found that line3d doesn't work in 4.7.) Again thanks, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Animation with sage?
Hi - I seem to be always asking questions... I wanted to animate flux. I found these links: http://www.sagemath.org/doc/reference/sage/plot/animate.html and http://wiki.sagemath.org/animate I tried the code, but it would not evaluate. It wanted me to install something called ImageMagick, which appeared to be very complicated. Is is possible to animate with sage in the online notebook directly without any addons? (I can record my screen to get my own gif that is not a problem.) Thanks so much, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: Animation with sage?
Thanks Alistair! I have been using the 4.7 notebook as it publishes 3d plots (the 4.7.2 does not), but your remark sent me back to the 4.7.2 notebook and voila - it must have ImageMagik on that service - since I got an animation to work! Really appreciate all the help everyone!. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: List of operations on vector functions?
Many thanks! Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] List of operations on vector functions?
Hi I looked around quite a bit but probably not in the right places? I found I can define a vector function and how to get its derivative vector function. Is there a way to get at the component functions and/or a way to calculate the magnitude function of rprime? var ('t') r=vector(t,t^2,t^3) rprime=diff(r,t) Thanks, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: plots in 3d are not published?
Thank-you for all the replies! I appreciate all the help. == 2d plots are generated with jmol in the published worksheets; == 3d plots are NOT generated. == (If possible) I want my user/viewer to be able to view the published worksheet without having to install anything (except be java enabled). @kcrisman and William Stein I tried: var('x y z') plane1=implicit_plot3d(x+y==1,(x, -1, 1), (y, -1,1), (z, -1,1),color='blue', opacity=.3) plane1.show(viewer='tachyon') and nothing plotted on my worksheet (or in the published version). Also - how would I show more than one plot? Thank-you again, Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] plots in 3d are not published?
Hi - I am a new user of sage, but I very much like the ability to do (better than) mathematica quality mathematics and 3d plots legally :) However, when I publish my sage worksheet so that I can link to it and a non-sage user can view it, the 3d plots are not generated (neither plot3d nor implicit_plot3d nor plot_vector_field3d). The 2d plots are generated. (See for example: http://sagenb.org/home/pub/3905/ ) Is there a reason for this? Thanks. Linda -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org