[sage-support] Bug? Discrepancy between single and multi variable polynomial ring functionality.

2012-05-21 Thread Robert
On both my own copy of sage (v 4.6) and on sagenb.org (v 4.8), executing R = QQ['a']['x'] R('a') returns 'a' as an element of R, but executing R = QQ['a']['x,y'] R('a') throws "TypeError: unable to convert string" (full traceback below). Is this how it's supposed to work? Traceback (most re

[sage-support] Double Integral

2012-05-21 Thread Santanu Sarkar
When I use the following code it returns 0. var('x y') def f1(x,y): if(x+y < 5): return x+y else: return 0 integral(integral(f1(x,y), x, 0,1), y, 0, 1) whereas integral(integral(x+y, x, 0,1), y, 0, 1) returns 1. Can any one point out the reason for this discrepancy

[sage-support] Re: Double Integral

2012-05-21 Thread P Purkayastha
On Monday, May 21, 2012 11:08:02 PM UTC+8, Santanu wrote: > > When I use the following code it returns 0. > > var('x y') > def f1(x,y): > if(x+y < 5): > return x+y > else: > return 0 > > integral(integral(f1(x,y), x, 0,1), y, 0, 1) > > > > whereas > > > integral(i

[sage-support] Re: Bug? Discrepancy between single and multi variable polynomial ring functionality.

2012-05-21 Thread P Purkayastha
On Monday, May 21, 2012 3:12:13 PM UTC+8, Robert wrote: > > On both my own copy of sage (v 4.6) and on sagenb.org (v 4.8), executing > > R = QQ['a']['x'] > R('a') > > returns 'a' as an element of R, but executing > > R = QQ['a']['x,y'] > R('a') > > throws "TypeError: unable to convert string

[sage-support] Re: Bug? Discrepancy between single and multi variable polynomial ring functionality.

2012-05-21 Thread P Purkayastha
On Tuesday, May 22, 2012 12:33:17 AM UTC+8, P Purkayastha wrote: > > > > On Monday, May 21, 2012 3:12:13 PM UTC+8, Robert wrote: >> >> On both my own copy of sage (v 4.6) and on > > sagenb.org > > (v 4.8), executing >> >> R = QQ['a']['x'] >> R('a') >> >> returns 'a' as an element of R, but exe

Re: [sage-support] using a base other then base 10.

2012-05-21 Thread Eric Kangas
When dealing with base 36 I realized there is no letter available to use in for loops. Here is the code that I have right now. a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z = var('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z') pie = pi.n(1000) pie36 = list(pie.str(base=36)) pie36.

Re: [sage-support] using a base other then base 10.

2012-05-21 Thread John H Palmieri
On Monday, May 21, 2012 9:49:08 AM UTC-7, Eric Kangas wrote: > > When dealing with base 36 I realized there is no letter available to use > in for loops. > > Here is the code that I have right now. > > a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,t,u,v,w,x,y,z = > var('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,

Re: [sage-support] using a base other then base 10.

2012-05-21 Thread Eric Kangas
thanks wasn't even thinking about a dictionary. On Monday, May 21, 2012 10:05:26 AM UTC-7, John H Palmieri wrote: > > > > On Monday, May 21, 2012 9:49:08 AM UTC-7, Eric Kangas wrote: >> >> When dealing with base 36 I realized there is no letter available to use >> in for loops. >> >> Here is the

[sage-support] How do I download SAGE?

2012-05-21 Thread Kermit Rose
On 5/21/2012 2:19 PM, sage-support@googlegroups.com wrote: john_perry_usm May 20 12:03PM -0700 On Saturday, May 19, 2012 4:51:56 PM UTC-5, Kermit Rose wrote: > I came to the sage web page in order to download Sage. I expected to see > a link labeled "download", and be done with it. Are you

[sage-support] Re: How do I download SAGE?

2012-05-21 Thread John H Palmieri
On Monday, May 21, 2012 12:52:28 PM UTC-7, Kermit Rose wrote: > > On 5/21/2012 2:19 PM, sage-support@googlegroups.com wrote: > > john_perry_usm May 20 12:03PM -0700 > > > > On Saturday, May 19, 2012 4:51:56 PM UTC-5, Kermit Rose wrote: > > > > > I came to the sage web page in order to downl

[sage-support] Re: How do I download SAGE?

2012-05-21 Thread John H Palmieri
On Monday, May 21, 2012 1:45:44 PM UTC-7, John H Palmieri wrote: > > > > Now click on > "README-virtualbox.txt" > > and read it. Follow the directions in the link in README-virtualbox.txt > (which includes dow

[sage-support] Re: How do I download SAGE?

2012-05-21 Thread P Purkayastha
On Tuesday, May 22, 2012 3:52:28 AM UTC+8, Kermit Rose wrote: > > On 5/21/2012 2:19 PM, sage-support@googlegroups.com wrote: > > john_perry_usm May 20 12:03PM -0700 > > > > On Saturday, May 19, 2012 4:51:56 PM UTC-5, Kermit Rose wrote: > > > > > I came to the sage web page in order to downlo