[sage-support] Re: bug in trac's diff?

2008-05-09 Thread John Cremona
That's what it shows for a new file added to the repository, so the diff it shows is the diff between the new file and nothing, i.e. /dev/null. I think! John 2008/5/9 David Joyner <[EMAIL PROTECTED]>: > > Hi: > > Does "/dev/null", around 40-50 lines down in > http://trac.sagemath.org/sage_trac/

[sage-support] Re: bug in trac's diff?

2008-05-09 Thread mabshoff
On May 9, 9:42 am, "John Cremona" <[EMAIL PROTECTED]> wrote: Hi, > That's what it shows for a new file added to the repository, so the > diff it shows is the diff between the new file and nothing, i.e. > /dev/null.  I think! That is correct. I still consider this odd, but you can always downloa

[sage-support] md5sums of source code tarballs on download page?

2008-05-09 Thread Dan Drake
On the download page for the source code [1] it would be useful if, next to each link, there was a link to an md5sum (or sha1sum, etc) of the tarball. I know we've seen some corrupted downloads, and if an md5sum link is easy to find, it might encourage people to use it. (Similar md5sum files might

[sage-support] Re: md5sums of source code tarballs on download page?

2008-05-09 Thread mabshoff
On May 9, 8:46 am, Dan Drake <[EMAIL PROTECTED]> wrote: > On the download page for the source code [1] it would be useful if, next > to each link, there was a link to an md5sum (or sha1sum, etc) of the > tarball. I know we've seen some corrupted downloads, and if an md5sum > link is easy to find

[sage-support] Re: Fwd: problem upgrading sage

2008-05-09 Thread mabshoff
On May 9, 11:45 am, "Eduardo Ocampo" <[EMAIL PROTECTED]> wrote: > hi! Hi Eduardo, > Sage does not work anymore after upgrading, and i dont have any idea what > could be the problem...could you please tell me what should I do? You do not have m4 installed. Did you compile the original Sage fro

[sage-support] Fwd: ValueError

2008-05-09 Thread William Stein
On Fri, May 9, 2008 at 5:02 AM, Babai <[EMAIL PROTECTED]> wrote: > The RUN 2nd time: >>> > x,y=var("x,y") > f(x,y)=sin(x)+cos(y) > grads=[diff(f,var) for var in (x,y)] > plot_vector_field(grads,[-5,5],[-5,5]) > > Result>> > Traceback (most recent call last):grads=[diff(f,var) for var in > (x,y

[sage-support] Re: problem with 'view', question about 'view'

2008-05-09 Thread Yi Qiang
This actually bothered me for a while too. There is a patch on the trac ticket, please test it out on Linux :-) On Thu, May 8, 2008 at 5:16 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Thu, May 8, 2008 at 5:12 PM, William Stein <[EMAIL PROTECTED]> wrote: >> On Wed, May 7, 2008 at 12:26 PM,

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Marshall Hampton
I'm not sure I agree that this is a bug. After using the name "var" in the loop, the value of var is y. y is a symbolic variable, and when evaluated at the string "x,y" it returns "x,y"; this seems like desirable behavior (to have string-valued functions seems OK to me). Or another way to put i

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread William Stein
On Fri, May 9, 2008 at 9:28 AM, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > I'm not sure I agree that this is a bug. After using the name "var" > in the loop, the value of var is y. y is a symbolic variable, and > when evaluated at the string "x,y" it returns "x,y"; this seems like > desirab

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Marshall Hampton
Ah, ok. I am probably not the right person to weigh in on what symbolics should do. I'll be happy if I can do most of what I could do in mathematica - since I used it for 16 years, it defines what I expect, but of course it won't always be the right design to follow for Sage. -M. Hampton On Ma

[sage-support] Re: problem with 'view', question about 'view'

2008-05-09 Thread John H Palmieri
On May 9, 9:23 am, "Yi Qiang" <[EMAIL PROTECTED]> wrote: > This actually bothered me for a while too. There is a patch on the > trac ticket, please test it out on Linux :-) Works okay for me. (By the way, I am unable to reproduce my problem from a few days ago, either before applying the patch

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread William Stein
On Fri, May 9, 2008 at 10:03 AM, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > Ah, ok. I am probably not the right person to weigh in on what > symbolics should do. I'll be happy if I can do most of what I could > do in mathematica - since I used it for 16 years, it defines what I > expect, bu

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Marshall Hampton
Well, the design is somewhat different to start with: in Sage, you have to declare variables explicitly (i.e. with var('x,y') or whatever), but then symbolic variables can automatically act like functions (as in the usage/bug above). In mathematica, anything undefined is _assumed_ to be a new sym

[sage-support] Counting complex number in a Tuples

2008-05-09 Thread Rose
Hi, (I am a Newbie) I need to count complex number in Tuples and the only way I found out is to use Tuples(l,1).count() or UnorderedTuples(l,1).count() (I don't understand the difference), but I have two problems. First, it counts only once an element that is twice in my Tuples. ex: sage:

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Marshall Hampton
It occurred to me that maybe I should supply a more non-trivial example of rules/patterns/subs in mathematica. Here is just one: we replace exponents of polynomials with the famous 3x+1 sequence (Collatz, whatever) until they stabilize: In: {x^2, x^3 + x^200, x^4 + z^909} //. {y_^n_ /; Mod[n, 2

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread John Cremona
Are you sure that you need Tuple() at all for what you are doing? Try looking at the documentaion for it with Tuples? If all you want to do is count the number of times an element appears in a list, use the count() function which every lisy has, like this sage: u=[1+I,1+I,1+I,2+I,2+I,2+I,2+I] s

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread didier deshommes
On Fri, May 9, 2008 at 1:59 PM, Rose <[EMAIL PROTECTED]> wrote: Hi Rose, > > Second, it becomes pretty long went there are complex numbers in my > Tuples (more than 30 secondes for 7 elements). This does take time, interestingly when the numbers are symbolic: {{{ sage: f=range(6) sage: %time T

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Jason Grout
Marshall Hampton wrote: > It occurred to me that maybe I should supply a more non-trivial > example of rules/patterns/subs in mathematica. Here is just one: we > replace exponents of polynomials with the famous 3x+1 sequence > (Collatz, whatever) until they stabilize: > > In: {x^2, x^3 + x^200,

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread John Cremona
Didier, I am sure you are right but I thought it best to deal with one matter at a time! From Rose's posting it looked as if she was just trying to count instances in a list, while Tuples is a much more complicated function. John 2008/5/9 didier deshommes <[EMAIL PROTECTED]>: > > On Fri, May 9,

[sage-support] Re: [sage-newbie] Re: Will Sage run on a 4GB Asus Eee PC?

2008-05-09 Thread David Joyner
It turns out that next year it is very possible that all USNA freshamn will have an asus eee. The debate seems to be about the amount of ram it should have. I can borrow one next week. It has xandros linux 500M ram, 2G "hard drive", wireless but no cd or dvd drive. I think I can also borrow a 8G S

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread didier deshommes
On Fri, May 9, 2008 at 3:12 PM, John Cremona <[EMAIL PROTECTED]> wrote: > > Didier, I am sure you are right but I thought it best to deal with one > matter at a time! From Rose's posting it looked as if she was just > trying to count instances in a list, while Tuples is a much more > complicated

[sage-support] sage-vmware-deluxe-3.0.1

2008-05-09 Thread Adam Getchell
I've built a new version of the sage-vmware-deluxe-3.0.1 virtual machine. http://www.sagemath.org/SAGEbin/microsoft_windows/sage_deluxe.html It is running SAGE 3.0.1 on (X)Ubuntu 8.04 LTS patched as of 5/9/08 Enjoy! Adam -- "Invincibility is in oneself, vulnerability in the opponent." -- Sun

[sage-support] Re: Will Sage run on a 4GB Asus Eee PC?

2008-05-09 Thread mabshoff
On May 9, 9:27 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: hi David, > It turns out that next year it is very possible that all USNA freshamn will > have > an asus eee. The debate seems to be about the amount of ram it should have. > I can borrow one next week. It has xandros linux 500M ram,

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread Rose
> So I'm guessing you're using symbolic numbers instead of complex > numbers. It's easy to get them wrong: I was doing that mistake. Thank you, it is going faster now. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsu

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread Rose
On 9 mai, 15:01, "John Cremona" <[EMAIL PROTECTED]> wrote: > Are you sure that you need Tuple() at all for what you are doing? No I am not sure I need Tuple(). I am trying to draw some polygons on the complex plane, so I put the coordinates of the vertex (I am not sure it is the good word) in a

[sage-support] (latex(a\v), a) gives an error about calling something with too many arguments.

2008-05-09 Thread Jason Grout
Hi all, sage: a=matrix(QQ,3,3,range(9)) sage: v=matrix(QQ,3,1,range(3)) sage: (latex(a\v), a) gives an error. I think it has to do with the parsing of latex(a\v); it seems to try doing "(latex(a._backslash_(v), a)" (note the missing parenthesis in the call to latex. You see this more detaile

[sage-support] Re: Will Sage run on a 4GB Asus Eee PC?

2008-05-09 Thread Glenn H Tarbox, PhD
I have an asus eee sitting around... I put eeexbuntu on it so its not running the original os (btw, I recommend this... but there must be downsides) I could easily nail it up to the net so you could ssh into it which supports using vnc to view the screen though most of what you'd need would proba

[sage-support] Re: Will Sage run on a 4GB Asus Eee PC?

2008-05-09 Thread mabshoff
On May 9, 10:35 pm, "Glenn H Tarbox, PhD" <[EMAIL PROTECTED]> wrote: Hi Glen, > I have an asus eee sitting around... I put eeexbuntu on it so its not > running the original os (btw, I recommend this... but there must be > downsides) I wouldn't stick with Xandros either ;) > I could easily nail

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread mark mcclure
On May 9, 4:16 pm, Rose <[EMAIL PROTECTED]> wrote: > No I am not sure I need Tuple(). I am trying to draw some polygons on > the complex plane, so I put the coordinates of the vertex (I am not > sure it is the good word) in a Turple(). > Do you think there is a better way to do that? How about so

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread Rose
> How about something like the following: > > cpoints = [0, 1, 1+I] > points = [[real(z), imag(z)] for z in cpoints] > polygon(points).show(figsize=[8,8]) > > Mark Thank you, this is what I was trying to do! --~--~-~--~~~---~--~~ To post to this group, send email

[sage-support] Re: Fwd: ValueError

2008-05-09 Thread Dan Drake
On Fri, 09 May 2008 at 11:25AM -0700, Marshall Hampton wrote: > Somewhat relevant to this are the (IMHO) very nice substitutions, > rules, and patterns in mathematica (although the syntax is pretty > odd). As a very simple example, the command: > > In: {x, x*y} /. {{x -> 1, y -> 2}, {x -> 2, y ->