[sage-edu] Re: french discussion group and wiki (this answer in French)
On 3 mar, 18:55, Vincent D <20100.delecr...@gmail.com> wrote: <...> > We also start a wiki at http://sagemat-edu.fr <...> Bonjour, ( Compte tenu de la nature du message du posteur original, je ne crois pas contrevenir à la netiquette en répondant en français, malgré que ce soit un forum anglais. ) Est-ce que l'adresse indiquée dans votre message est correcte? On obtient le message «Serveur introuvable». Je crois que ce serait une bonne idée de regrouper sur http://www.sagemath.fr/ toutes les références concernant «Sage en français» et y ajouter votre lien «edu», ainsi que le lien http://sagenb.irem.univ-mrs.fr/, dont les feuilles de travail publiées peuvent être un bon «catalyseur» pour l'apprentissage du logiciel et donner des idées pour une utilisation en classe. Bonne continuation Daniel, néophyte en Sage mais fort motivé :-) -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
[sage-edu] Fourier Analysis Book
Does anyone have any recommendations for an undergraduate Fourier analysis book? In particular, does anyone know of any open-source or affordable books that could naturally incorporate Sage? I'm asking for a colleague of mine. (The prerequisite for the course is Calculus II, but most of the students will also have had linear algebra.) Dana Ernst, Ph.D. Assistant Professor Department of Mathematics Plymouth State University MSC 29, 17 High Street Plymouth, NH 03264-1595 Email: dcer...@plymouth.edu Web Page: http://oz.plymouth.edu/~dcernst Office: Hyde 312 -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] Fourier Analysis Book
On Wed, Mar 24, 2010 at 6:14 PM, Dana Ernst wrote: > Does anyone have any recommendations for an undergraduate Fourier analysis > book? > In particular, does anyone know of any open-source or affordable books that > could > naturally incorporate Sage? I'm asking for a colleague of mine. (The > prerequisite > for the course is Calculus II, but most of the students will also have had > linear algebra.) > This is a broad question. If you mean from the computational side, please see the Computational Fourier Transforms notes at http://boxen.math.washington.edu/home/wdj/teaching/index.html (BTW, a publisher has asked me many times to "complete" this to a real book. let me know if your colleague is interested...) > > Dana Ernst, Ph.D. > Assistant Professor > Department of Mathematics > Plymouth State University > MSC 29, 17 High Street > Plymouth, NH 03264-1595 > > Email: dcer...@plymouth.edu > Web Page: http://oz.plymouth.edu/~dcernst > Office: Hyde 312 > > -- > You received this message because you are subscribed to the Google Groups > "sage-edu" group. > To post to this group, send email to sage-...@googlegroups.com. > To unsubscribe from this group, send email to > sage-edu+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sage-edu?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
[sage-edu] MATLAB/Octave convert!
OK, I use SAGE in my teaching a lot now. Its great for algebra, trig, precalc, plots in 2D and 3D, limits, derivatives and integrals both analytic and numerical. There's only one thing holding me back from using SAGE exclusively. I come from the MATLAB/Octave world and miss the matrix paradigm. In Octave, every variable represents some data as a matrix. This could be an actual matrix (retangular nxm or square nxn), a 1xm row vector, an nx1 column vector or even a 1x1 single scalar value. So, if you wouldn't mind excusing this poor noob, could some kind soul on this form please help me translate the following into SAGE? I don't know if I could use python lists or some other construct in SAGE. Is this where importing scipy comes into play? SAMPLE INPUT Octave script file (vector1.m) playing with vector sums and scalar dot products as a simple example: #!/usr/bin/octave -q diary vector1.txt %vector1.m MrG 2010.0324 %purpose: practice with script m-files and vector arith %initialize 2 vectors in R^3 a=[1 2 3] b=[-1 0 5] %vector sums c=a+b d=b-a %vector magnitudes lenA = norm(a) lenB = norm(b) lenC = norm(c) lenD = norm(d) %scalar dot product e=a*b' f=sum(a.*b) g=dot(a,b) theta1 = acos(e/lenA/lenB) theta2 = theta1*180/pi SAMPLE OUTPUT Octave file (vector1.txt): a = 1 2 3 b = -1 0 5 c = 0 2 8 d = -2 -2 2 lenA = 3.7417 lenB = 5.0990 lenC = 8.2462 lenD = 3.4641 e = 14 f = 14 g = 14 theta1 = 0.74690 theta2 = 42.794 TIA, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
On 03/24/2010 06:41 PM, calcp...@aol.com wrote: OK, I use SAGE in my teaching a lot now. Its great for algebra, trig, precalc, plots in 2D and 3D, limits, derivatives and integrals both analytic and numerical. There's only one thing holding me back from using SAGE exclusively. I come from the MATLAB/Octave world and miss the matrix paradigm. In Octave, every variable represents some data as a matrix. This could be an actual matrix (retangular nxm or square nxn), a 1xm row vector, an nx1 column vector or even a 1x1 single scalar value. So, if you wouldn't mind excusing this poor noob, could some kind soul on this form please help me translate the following into SAGE? I don't know if I could use python lists or some other construct in SAGE. Is this where importing scipy comes into play? Sage can do all of this easily. See http://sagenb.org/home/jason3/388/publish/ Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
On 03/24/2010 07:03 PM, Jason Grout wrote: On 03/24/2010 06:41 PM, calcp...@aol.com wrote: OK, I use SAGE in my teaching a lot now. Its great for algebra, trig, precalc, plots in 2D and 3D, limits, derivatives and integrals both analytic and numerical. There's only one thing holding me back from using SAGE exclusively. I come from the MATLAB/Octave world and miss the matrix paradigm. In Octave, every variable represents some data as a matrix. This could be an actual matrix (retangular nxm or square nxn), a 1xm row vector, an nx1 column vector or even a 1x1 single scalar value. So, if you wouldn't mind excusing this poor noob, could some kind soul on this form please help me translate the following into SAGE? I don't know if I could use python lists or some other construct in SAGE. Is this where importing scipy comes into play? Sage can do all of this easily. See http://sagenb.org/home/jason3/388/publish/ Oops, that's my private worksheet address. Here is the public address: http://sagenb.org/home/pub/1833 -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
You can use sage: v = vector([1,2,3]) sage: w = vector([1,1,-4]) sage: w.dot_product(v) -9 sage: w.norm() 3*sqrt(2) etc. Just see http://www.sagemath.org/doc/tutorial/tour_linalg.html for more examples. On Wed, Mar 24, 2010 at 7:41 PM, wrote: > OK, I use SAGE in my teaching a lot now. Its great for algebra, trig, > precalc, plots in 2D and 3D, limits, derivatives and integrals both analytic > and numerical. > > There's only one thing holding me back from using SAGE exclusively. I come > from the MATLAB/Octave world and miss the matrix paradigm. In Octave, every > variable represents some data as a matrix. This could be an actual matrix > (retangular nxm or square nxn), a 1xm row vector, an nx1 column vector or > even a 1x1 single scalar value. > > So, if you wouldn't mind excusing this poor noob, could some kind soul on > this form please help me translate the following into SAGE? I don't know if > I could use python lists or some other construct in SAGE. Is this where > importing scipy comes into play? > > SAMPLE INPUT Octave script file (vector1.m) playing with vector sums and > scalar dot products as a simple example: > #!/usr/bin/octave -q > diary vector1.txt > %vector1.m MrG 2010.0324 > %purpose: practice with script m-files and vector arith > > %initialize 2 vectors in R^3 > a=[1 2 3] > b=[-1 0 5] > > %vector sums > c=a+b > d=b-a > > %vector magnitudes > lenA = norm(a) > lenB = norm(b) > lenC = norm(c) > lenD = norm(d) > > %scalar dot product > e=a*b' > f=sum(a.*b) > g=dot(a,b) > theta1 = acos(e/lenA/lenB) > theta2 = theta1*180/pi > > SAMPLE OUTPUT Octave file (vector1.txt): > a = > > 1 2 3 > > b = > > -1 0 5 > > c = > > 0 2 8 > > d = > > -2 -2 2 > > lenA = 3.7417 > lenB = 5.0990 > lenC = 8.2462 > lenD = 3.4641 > e = 14 > f = 14 > g = 14 > theta1 = 0.74690 > theta2 = 42.794 > > TIA, > A. Jorge Garcia > http://calcpage.tripod.com > > Teacher & Professor > Applied Mathematics, Physics & Computer Science > Baldwin Senior High School & Nassau Community College > > -- > You received this message because you are subscribed to the Google Groups > "sage-edu" group. > To post to this group, send email to sage-...@googlegroups.com. > To unsubscribe from this group, send email to > sage-edu+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sage-edu?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] Fourier Analysis Book
On Wed, 24 Mar 2010 at 06:29PM -0400, David Joyner wrote: > On Wed, Mar 24, 2010 at 6:14 PM, Dana Ernst wrote: > > Does anyone have any recommendations for an undergraduate Fourier > > analysis book? In particular, does anyone know of any open-source or > > affordable books that could naturally incorporate Sage? I'm asking > > for a colleague of mine. (The prerequisite for the course is > > Calculus II, but most of the students will also have had linear > > algebra.) > > This is a broad question. If you mean from the computational side, > please see the Computational Fourier Transforms notes at > http://boxen.math.washington.edu/home/wdj/teaching/index.html (BTW, a > publisher has asked me many times to "complete" this to a real book. > let me know if your colleague is interested...) The notes look very nice, and I might use them in my course next semester. I see one teeny-tiny thing: the web page says everything is CC-SA, but the Fourier transform notes say they're GFDL. :) Dan -- --- Dan Drake - http://mathsci.kaist.ac.kr/~drake --- signature.asc Description: Digital signature
Re: [sage-edu] MATLAB/Octave convert!
On 03/24/2010 07:09 PM, David Joyner wrote: You can use sage: v = vector([1,2,3]) sage: w = vector([1,1,-4]) sage: w.dot_product(v) -9 Even easier is w*v (which defaults to the dot product for vectors). Jason -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] Fourier Analysis Book
On Wed, Mar 24, 2010 at 8:36 PM, Dan Drake wrote: > On Wed, 24 Mar 2010 at 06:29PM -0400, David Joyner wrote: >> On Wed, Mar 24, 2010 at 6:14 PM, Dana Ernst wrote: >> > Does anyone have any recommendations for an undergraduate Fourier >> > analysis book? In particular, does anyone know of any open-source or >> > affordable books that could naturally incorporate Sage? I'm asking >> > for a colleague of mine. (The prerequisite for the course is >> > Calculus II, but most of the students will also have had linear >> > algebra.) >> >> This is a broad question. If you mean from the computational side, >> please see the Computational Fourier Transforms notes at >> http://boxen.math.washington.edu/home/wdj/teaching/index.html (BTW, a >> publisher has asked me many times to "complete" this to a real book. >> let me know if your colleague is interested...) > > The notes look very nice, and I might use them in my course next > semester. I see one teeny-tiny thing: the web page says everything is > CC-SA, but the Fourier transform notes say they're GFDL. :) Thanks. Oops:-) Basically, whatever license makes it easier to re-use is the one I meant. Let me know if you need the latex source code. > > Dan > > -- > --- Dan Drake > - http://mathsci.kaist.ac.kr/~drake > --- > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkuqsAYACgkQr4V8SljC5Lr4mwCglDoXVZ7YJWftkel/k8ulj+P/ > PjMAoKzeljCDg2FmH/lYHH6g5Y8vFiPJ > =Kl61 > -END PGP SIGNATURE- > > -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
Well, that was easy! So are these SAGE objects that you have to construct? Its not clear where this code comes from. Is it a python object, is it from maxima, gap, what? Still, these constructs do not preserve the matrix paradigm from MATLAB. For example, in MATLAB you can pass a matrix as an input parameter and process all the data in the matrix. I that like a List object in python? I thought I read somewhere in the SAGE dox that this was possible. I don't know why I'm thinking its a scipy thing. What do you use scipy and numpy for? BTW, does SAGE use VPython? How about another sample: OCTAVE INPUT FILE: #!/usr/bin/octave -q diary vector2.txt %vector2.m MrG 2010.0324 %purpose: playing with the cross product %initialize 2 vectors in R^3 a=[1 0 5] b=[-2 1 0] %vector cross product c=cross(a,b) area=norm(c) theta1=asin(area/norm(a)/norm(b)) theta2=theta1*180/pi %scalar dot product d=dot(a,b) theta3=acos(d/norm(a)/norm(b)) theta4=theta3*180/pi %triple scalar product e=[1 1 1] vol=abs(dot(e,c)) %vector dilation f=2*a g=-3*b OCTAVE OUTPUT FILE: a = 1 0 5 b = -2 1 0 c = -5 -101 area = 11.225 theta1 = 1.3945 theta2 = 79.897 d = -2 theta3 = 1.7471 theta4 = 100.10 e = 1 1 1 vol = 14 f = 20 10 g = 6 -3 -0 TIA, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
[sage-edu] Re: MATLAB/Octave convert!
Jorge, vector and matrix objects as described here are Sage constructions. Behind the scenes different packages might do the computations (such as numpy). I don't know MATLAB, but here's a way to square every entry of a matrix ("process the data"). Might be an easier way that I don't know. sage: a=matrix(2,2,[[1,2],[3,4]]) sage: matrix(2, 2, map(lambda x: x^2, a.list())) [ 1 4] [ 9 16] Rob On Mar 24, 8:05 pm, calcp...@aol.com wrote: > Well, that was easy! So are these SAGE objects that you have to > construct? Its not clear where this code comes from. Is it a python > object, is it from maxima, gap, what? > > Still, these constructs do not preserve the matrix paradigm from > MATLAB. For example, in MATLAB you can pass a matrix as an input > parameter and process all the data in the matrix. I that like a List > object in python? I thought I read somewhere in the SAGE dox that this > was possible. I don't know why I'm thinking its a scipy thing. What > do you use scipy and numpy for? BTW, does SAGE use VPython? > > How about another sample: > OCTAVE INPUT FILE: > #!/usr/bin/octave -q > diary vector2.txt > > %vector2.m MrG 2010.0324 > %purpose: playing with the cross product > > %initialize 2 vectors in R^3 > a=[1 0 5] > b=[-2 1 0] > > %vector cross product > c=cross(a,b) > area=norm(c) > theta1=asin(area/norm(a)/norm(b)) > theta2=theta1*180/pi > > %scalar dot product > d=dot(a,b) > theta3=acos(d/norm(a)/norm(b)) > theta4=theta3*180/pi > > %triple scalar product > e=[1 1 1] > vol=abs(dot(e,c)) > > %vector dilation > f=2*a > g=-3*b > > OCTAVE OUTPUT FILE: > a = > > 1 0 5 > > b = > > -2 1 0 > > c = > > -5 -10 1 > > area = 11.225 > theta1 = 1.3945 > theta2 = 79.897 > d = -2 > theta3 = 1.7471 > theta4 = 100.10 > e = > > 1 1 1 > > vol = 14 > f = > > 2 0 10 > > g = > > 6 -3 -0 > > TIA, > A. Jorge Garciahttp://calcpage.tripod.com > > Teacher & Professor > Applied Mathematics, Physics & Computer Science > Baldwin Senior High School & Nassau Community College -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
On 03/24/2010 10:05 PM, calcp...@aol.com wrote: Well, that was easy! So are these SAGE objects that you have to construct? Yes. Its not clear where this code comes from. Is it a python object, is it from maxima, gap, what? Python/Sage. Still, these constructs do not preserve the matrix paradigm from MATLAB. For example, in MATLAB you can pass a matrix as an input parameter and process all the data in the matrix. I that like a List object in python? I thought I read somewhere in the SAGE dox that this was possible. I don't know why I'm thinking its a scipy thing. Scipy/numpy is much closer to MATLAB in that respect. You can't do sin(m) (where m is a matrix) meaningfully in Sage yet. In scipy/numpy, it would give you the sin of each element. What do you use scipy and numpy for? For lots of stuff under the hood, for stuff that Sage doesn't have implemented yet, etc. BTW, does SAGE use VPython? No as a standard component, but I think someone once worked on an spkg for vpython. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] MATLAB/Octave convert!
On 03/24/2010 06:41 PM, calcp...@aol.com wrote: OK, I use SAGE in my teaching a lot now. Its great for algebra, trig, precalc, plots in 2D and 3D, limits, derivatives and integrals both analytic and numerical. There's only one thing holding me back from using SAGE exclusively. I come from the MATLAB/Octave world and miss the matrix paradigm. In Octave, every variable represents some data as a matrix. This could be an actual matrix (retangular nxm or square nxn), a 1xm row vector, an nx1 column vector or even a 1x1 single scalar value. Note that you can use Octave/Matlab from the Sage notebook, if you wanted. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
[sage-edu] Re: MATLAB/Octave convert!
Jason, On Mar 24, 9:26 pm, Jason Grout wrote: > Scipy/numpy is much closer to MATLAB in that respect. You can't do > sin(m) (where m is a matrix) meaningfully in Sage yet. In scipy/numpy, > it would give you the sin of each element. Is there a way to do something like m.map(sin)? Should there be? Rob -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
Re: [sage-edu] Re: MATLAB/Octave convert!
On 03/24/2010 11:42 PM, Rob Beezer wrote: Jason, On Mar 24, 9:26 pm, Jason Grout wrote: Scipy/numpy is much closer to MATLAB in that respect. You can't do sin(m) (where m is a matrix) meaningfully in Sage yet. In scipy/numpy, it would give you the sin of each element. Is there a way to do something like m.map(sin)? Should there be? m.apply_map(), I believe off-hand. Thanks, Jaosn -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
[sage-edu] Re: MATLAB/Octave convert!
> m.apply_map(), I believe off-hand. That's it. Not sure why I didn't see that. Sorry for the noise. Thanks, Rob -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-...@googlegroups.com. To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.