[sage-support] Re: how to access last result

2008-12-09 Thread mabshoff
On Dec 9, 11:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hi Robert, > Hello, is there any way how to access the last result in Sage? > Something like % in Maxima? > Thank you. > Robert Is this what you want? sage: 2+2 4 sage: _ 4 Cheers, Michael --~--~-~--~~-

[sage-support] how to access last result

2008-12-09 Thread [EMAIL PROTECTED]
Hello, is there any way how to access the last result in Sage? Something like % in Maxima? Thank you. Robert --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

[sage-support] Re: doctesting arbitrary Sage files?

2008-12-09 Thread Jason Grout
Dan Drake wrote: > I'm preparing an arXiv submission that will include an appendix of Sage > code along with a separate .sage file with the code. Working with Sage I > have come to assume that all code not doctested is broken, so I'd like > to include doctests. I've written up my docstrings, but w

[sage-support] doctesting arbitrary Sage files?

2008-12-09 Thread Dan Drake
I'm preparing an arXiv submission that will include an appendix of Sage code along with a separate .sage file with the code. Working with Sage I have come to assume that all code not doctested is broken, so I'd like to include doctests. I've written up my docstrings, but when I run "sage -t foo.sag

[sage-support] Re: Is there a utility to compute the value of the error function of a complex number?

2008-12-09 Thread Jason Grout
Doug Bradshaw wrote: > Okay, here's the story: I wanted to plot a Fourier transform of a > Gaussian that is truncated (mulitplied by unit step function). Using > "integral", I got an answer that looked nice, but contained an error > function with an imaginary argument. Because that error functi

[sage-support] Re: Accent marks in the Notebook

2008-12-09 Thread acardh
This works html(r'Donde $\Sigma$ es la sumatoria de los números... etc.' ) but only works the first time. If you save & quit your work, after trying again it fails. This is because when saving it converts "números" to "números". On Dec 9, 2:16 pm, acardh <[EMAIL PROTECTED]> wrote: > The accent

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J
Thanks Jason, that will certainly save myself and others some time trying to figure out what's going on. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mor

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J
> > > I'm not sure exactly what you mean here. factorial(n) counts the number > > > of permutations of 'n' elements very efficiently.  Perhaps you mean > > > > sage: permutations([1,2,2]) > > > [[1, 2, 2], [2, 1, 2], [2, 2, 1]] > > > > Type permutations? for more information on this command.  You

[sage-support] Is there a utility to compute the value of the error function of a complex number?

2008-12-09 Thread Doug Bradshaw
Okay, here's the story: I wanted to plot a Fourier transform of a Gaussian that is truncated (mulitplied by unit step function). Using "integral", I got an answer that looked nice, but contained an error function with an imaginary argument. Because that error function couldn't be evaluated, I c

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Jason Grout
William Stein wrote: > Sage also includes the scipy.stats package, which has 100 or > so distributions: > > sage: import scipy.stats > sage: help(scipy.stats) For further information, you can look on the scipy documentation webpage too: http://docs.scipy.org/doc/scipy/reference/stats.html B

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J
Excellent, thank you, exactly what I was looking for. On Dec 9, 2:07 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 2:04 PM, Jason Bandlow <[EMAIL PROTECTED]> wrote: > > > Hi Matthew, > > > Matthew J wrote: > >> Sage is great software that I rave about in pretty much all

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread William Stein
On Tue, Dec 9, 2008 at 2:04 PM, Jason Bandlow <[EMAIL PROTECTED]> wrote: > > Hi Matthew, > > Matthew J wrote: >> Sage is great software that I rave about in pretty much all of my >> classes except for probability theory. I'd like to get some info on a >> few topics to clear some things up so that

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Jason Bandlow
Hi Matthew, Matthew J wrote: > Sage is great software that I rave about in pretty much all of my > classes except for probability theory. I’d like to get some info on a > few topics to clear some things up so that I can use these for classes > and to post to an examples worksheet. Thanks in advan

[sage-support] Simple Combinatorics and Probability

2008-12-09 Thread Matthew J
Sage is great software that I rave about in pretty much all of my classes except for probability theory. I’d like to get some info on a few topics to clear some things up so that I can use these for classes and to post to an examples worksheet. Thanks in advance to anyone that replies. I am wonde

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
Thank you! Than you all so much! It was so difficult to continue my research without it! And I am so glad Sage project have real support :-) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, sen

[sage-support] Accent marks in the Notebook

2008-12-09 Thread acardh
The accent marks is a problem in Notebook. I am writing some texts in Spanish but the accent marks are not being displayed on the output. By example: Tenemos un número que nos define... etc. The output should be: Tenemos un número que nos define... etc. I also tried this other way: html(Donde

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread John H Palmieri
Try this instead: # just as you had before: r=2*2*pi Pole1=r*exp(I*2*pi/3) Pole2=-r Pole3=r*exp(-I*2*pi/3) Ts=0.1 # one change here: var('f') z=exp(I*2*pi*Ts*f) p=(2/Ts)*(z-1)/(z+1) H = (p^3)/((p-Pole1)*(p-Pole2)*(p-Pole3)) Then H (or show(H)) will print out a complicated expression in terms of

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread bsdz
I think the Type Error is coming from your use of the round function. If I run: - H, p, Pole1, Pole2, Pole3, Ts, z, f = var("H p Pole1 Pole2 Pole3 Ts z f") p = (2/Ts)*(z-1)/(z+1) z = exp(I*2*pi*Ts*f) r=2*2*pi Pole1=r*exp(I*2*pi/3) Pole2=-r Pole3=r*exp(-I*2*pi/3) Ts=0.1 H = lambda p: (p^3)/((p-P

[sage-support] Re: LaTeX problem

2008-12-09 Thread acardh
This did the trick. Thanks :o) On Dec 8, 11:37 pm, pong <[EMAIL PROTECTED]> wrote: > This may work for you > > html(r'\tan^{-1} x') or simply html(r'$\tan^ > {-1} x$') > > the r before ' stands for "raw string". > > On Dec 8, 9:55 pm, acardh <[EMAIL PROTECTED]> wrote: > > > > > > > I am working i

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
this round(H.substitute(f=4).abs(),4) give same error again... then this: round(RDF(H.substitute(f=4).abs()),4) takes so much time, can't wait... On Dec 9, 10:42 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > you mean for f? this: > > round(H.substitute(f=1),4) > > gives type error again :-( > > On

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
you mean for f? this: round(H.substitute(f=1),4) gives type error again :-( On Dec 9, 9:51 pm, Tim Lahey <[EMAIL PROTECTED]> wrote: > On Dec 9, 2008, at 1:46 PM, Sand Wraith wrote: > > > > > > > thank you! )) > > > but I need to use my values, now just variables (Ts,Pole1 etc) > > > I was tryin

[sage-support] Re: Plot axis tick interval

2008-12-09 Thread Marshall Hampton
I use sage for all my figures, and at the moment to get exactly what I want I use axes=False and create my own axes and labels with text() and line() commands. This is somewhat painful at first but after writing a couple of functions its not too bad. Hopefully Mike and others' enhancements will

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Tim Lahey
On Dec 9, 2008, at 1:46 PM, Sand Wraith wrote: > > thank you! )) > > but I need to use my values, now just variables (Ts,Pole1 etc) > > I was trying this: > > r=2*2*pi > Pole1=r*exp(I*2*pi/3) > Pole2=-r > Pole3=r*exp(-I*2*pi/3) > Ts=0.1 > > z = exp(I*2*pi*Ts*f) > p = (2/Ts)*(z-1)/(z+1) > H = (p^

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Sand Wraith
thank you! )) but I need to use my values, now just variables (Ts,Pole1 etc) I was trying this: r=2*2*pi Pole1=r*exp(I*2*pi/3) Pole2=-r Pole3=r*exp(-I*2*pi/3) Ts=0.1 z = exp(I*2*pi*Ts*f) p = (2/Ts)*(z-1)/(z+1) H = (p^3)/((p-Pole1)*(p-Pole2)*(p-Pole3)) show(H) show() works fine, but if i want

[sage-support] Re: Terminal in Mac OS X 10.4 only opens with SAGE

2008-12-09 Thread kcrisman
On Dec 8, 11:01 pm, Spike <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to SAGE and I just got myself a Mac (so I'm new to Macs). > I'm running OS X 10.4 on an old eMac G4. > I've installed your program from your site as suggested in the > packaged readme file. But then, whenever I opened my T

[sage-support] Re: Plot axis tick interval

2008-12-09 Thread Jason Grout
exty wrote: > I found out that my question has already been answered on the list: > http://groups.google.com/group/sage-support/browse_thread/thread/729e1265dad26e7 > And I suppose that the issue hasn't been remedied yet. > > It's a real pity that Sage doesn't allow much control over the > plotti

[sage-support] Re: Plot axis tick interval

2008-12-09 Thread gerhard
Quite a while back I submitted a proposed replacement for tasteful_ticks: while avoiding overhaul of the axes code, it did produce satisfactory tick marks for a larger parameter region than the current routine. Has anything ever come of it? Sincerely, -gerhard --~--~-~--~~---

[sage-support] Re: Plot axis tick interval

2008-12-09 Thread exty
I found out that my question has already been answered on the list: http://groups.google.com/group/sage-support/browse_thread/thread/729e1265dad26e7 And I suppose that the issue hasn't been remedied yet. It's a real pity that Sage doesn't allow much control over the plotting style. Issues like th

[sage-support] Re: question about visualization/animation of surfaces

2008-12-09 Thread ggrafendorfer
Hi Marshall, thanks for the answer, if you once have the frames I also know these two projects, but I did not try them out yet: http://www.onyxbits.de/giftedmotion http://www.lcdf.org/~eddietwo/gifsicle/ Is it possible to make the frames, i.e. .jpg or .png files with tachyon from within sage or

[sage-support] Timeout during ssh connection to sage VMWaare appliance

2008-12-09 Thread bgbg.bg
Hello, When trying to ssh to my ssh VMWare appliance cygwin, I get "connection timed out" error. I can ssh to other computers. When logged into the VMWare appliance as "manage", I can successfully ssh to itself (i.e. "ssh localhost" works). What do I need to do in order to solve this problem? Th

[sage-support] Terminal in Mac OS X 10.4 only opens with SAGE

2008-12-09 Thread Spike
Hello, I'm new to SAGE and I just got myself a Mac (so I'm new to Macs). I'm running OS X 10.4 on an old eMac G4. I've installed your program from your site as suggested in the packaged readme file. But then, whenever I opened my Terminal, SAGE would fire up (I just want Bash). So, just to see w