[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 download Sage. I expected to 
> > see 
> > > a link labeled "download", and be done with it. 
> > 
> > 
> > Are you talking about the webpage, www.sagemath.org ? 
>
> Yes. 
> > When I go there, I 
> > see a prominent link labeled, "Download 5.0". If I click on it, it 
> > take me 
> > to a page titled, "Download for Linux". (I didn't tell it I use Linux; 
> > that 
> > was automatic.) 
>
> I see.  It must be different for me because I have Windows Vista 
> operating system. 
>
> I go to http://www.sagemath.org/ 
>
> I see  the download 5.0 
>
> I click on it. 
>
> It takes me to 
>
> http://www.sagemath.org/download-windows.html 
>
>
>
At this point you should scroll down and you will see the instructions for 
Windows given there.

"To run Sage on Microsoft Windows you need the following:"

and then there are pointers to other documents.

 

> I see the link of University of Washington, Seattle, WA, USA 
>  
>
>
> I click on it. 
>
> It takes me to 
>
> http://boxen.math.washington.edu/home/sagemath/sage-mirror/win/index.html 
>
>
> Here I read the instructions of 
>
> Here, you can download Sage for your system and platform. Not sure what 
> to download? Then follow the*download guide* 
> . For more 
> information, visit theSage website . 
>
> I am lost.  I don't know what to do next. 
>
> I click on the download guide. 
>
> It takes me to 
>
> http://wiki.sagemath.org/DownloadAndInstallationGuide 
>
> I am even more lost. 
>
> Kermit 
>
>
>
>
>
> > That page asks me to select a nearby server; I chose 
> > XMission in Utah, though the choice here doesn't matter. Then I'm 
> > asked to 
> > choose, "32bit", "64bit", and "Itanium". Clicking on one of those 
> > gives me 
> > several pre-built options for the OS build. 
> > 
> > Does this not happen for you? If not, what happens when you click on the 
> > "Download 5.0" link from that webpage? 
> > 
> > john perry 
>
>

-- 
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: 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 downloading the file "sage-5.0.ova").
>

Or follow the directions on the web page: 

   Please read the Sage Virtual 
Machinemanual.  

which amounts to doing the same thing.

-- 
John

>

-- 
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: 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 download Sage. I expected to 
> > see 
> > > a link labeled "download", and be done with it. 
> > 
> > 
> > Are you talking about the webpage, www.sagemath.org ? 
>
> Yes. 
> > When I go there, I 
> > see a prominent link labeled, "Download 5.0". If I click on it, it 
> > take me 
> > to a page titled, "Download for Linux". (I didn't tell it I use Linux; 
> > that 
> > was automatic.) 
>
> I see.  It must be different for me because I have Windows Vista 
> operating system. 
>
> I go to http://www.sagemath.org/ 
>
> I see  the download 5.0 
>
> I click on it. 
>
> It takes me to 
>
> http://www.sagemath.org/download-windows.html 
>
>
> I see the link of University of Washington, Seattle, WA, USA 
>  
>
>
> I click on it. 
>
> It takes me to 
>
> http://boxen.math.washington.edu/home/sagemath/sage-mirror/win/index.html 
>

Now click on 
"README-virtualbox.txt"
 
and read it. Follow the directions in the link in README-virtualbox.txt 
(which includes downloading the file "sage-5.0.ova").

-- 
John

-- 
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] 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 talking about the webpage, www.sagemath.org ? 


Yes.

When I go there, I
see a prominent link labeled, "Download 5.0". If I click on it, it 
take me
to a page titled, "Download for Linux". (I didn't tell it I use Linux; 
that
was automatic.) 


I see.  It must be different for me because I have Windows Vista 
operating system.


I go to http://www.sagemath.org/

I see  the download 5.0

I click on it.

It takes me to

http://www.sagemath.org/download-windows.html


I see the link of University of Washington, Seattle, WA, USA 



I click on it.

It takes me to

http://boxen.math.washington.edu/home/sagemath/sage-mirror/win/index.html


Here I read the instructions of

Here, you can download Sage for your system and platform. Not sure what 
to download? Then follow the*download guide* 
. For more 
information, visit theSage website .


I am lost.  I don't know what to do next.

I click on the download guide.

It takes me to

http://wiki.sagemath.org/DownloadAndInstallationGuide

I am even more lost.

Kermit






That page asks me to select a nearby server; I chose
XMission in Utah, though the choice here doesn't matter. Then I'm 
asked to
choose, "32bit", "64bit", and "Itanium". Clicking on one of those 
gives me

several pre-built options for the OS build.

Does this not happen for you? If not, what happens when you click on the
"Download 5.0" link from that webpage?

john perry


--
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


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 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.remove('.')
>>
>> a = 10; b = 11; c = 12; d = 13; e = 14; f = 15; g = 16; h = 17; i = 18; j 
>> = 19; k = 20; l = 21; m = 22; n = 23; o = 24; p = 25; q = 26; r = 27; s = 
>> 28; t = 29; u = 30; v = 31; w = 32; x = 33; y = 34; z = 35;
>>
>> pie36 = [int(ii) for ii in pie36]
>>
>>
>> I tried using ii for the increment count for the for loop, but here is 
>> what I get as the error.
>>
>>
>> ---
>> ValueError Traceback (most recent call last)
>>
>> /home/nooniensoong97/ in ()
>>
>> ValueError: invalid literal for int() with base 10: 'i'
>>
>>  
>>
>>
>> I guess you can not use more then a letter to count the increments in the 
>> loop? Is there anyway to get around this issue?
>>
>
> How about:
>
> sage: D = dict([(Integer(j).str(base=36),j) for j in range(36)])
>
> (This creates a dictionary with entries like '3':3 and 'a':10, associating 
> a base 36 representation as a string to the corresponding integer.) Then
>
> sage: pie = pi.n(1000)
>
> sage: pie36 = list(pie.str(base=36))
>
> sage: pie36.remove('.')
> sage: [D[ii] for ii in pie36]
>
> ought to do what you want.
>
> -- 
> John
>
>

-- 
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


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,r,t,u,v,w,x,y,z')
>
> pie = pi.n(1000) 
>
> pie36 = list(pie.str(base=36))
>
> pie36.remove('.')
>
> a = 10; b = 11; c = 12; d = 13; e = 14; f = 15; g = 16; h = 17; i = 18; j 
> = 19; k = 20; l = 21; m = 22; n = 23; o = 24; p = 25; q = 26; r = 27; s = 
> 28; t = 29; u = 30; v = 31; w = 32; x = 33; y = 34; z = 35;
>
> pie36 = [int(ii) for ii in pie36]
>
>
> I tried using ii for the increment count for the for loop, but here is 
> what I get as the error.
>
> ---
> ValueError Traceback (most recent call last)
>
> /home/nooniensoong97/ in ()
>
> ValueError: invalid literal for int() with base 10: 'i'
>
>  
>
>
> I guess you can not use more then a letter to count the increments in the 
> loop? Is there anyway to get around this issue?
>

How about:

sage: D = dict([(Integer(j).str(base=36),j) for j in range(36)])

(This creates a dictionary with entries like '3':3 and 'a':10, associating 
a base 36 representation as a string to the corresponding integer.) Then

sage: pie = pi.n(1000)

sage: pie36 = list(pie.str(base=36))

sage: pie36.remove('.')
sage: [D[ii] for ii in pie36]

ought to do what you want.

-- 
John

-- 
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


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.remove('.')

a = 10; b = 11; c = 12; d = 13; e = 14; f = 15; g = 16; h = 17; i = 18; j = 
19; k = 20; l = 21; m = 22; n = 23; o = 24; p = 25; q = 26; r = 27; s = 28; 
t = 29; u = 30; v = 31; w = 32; x = 33; y = 34; z = 35;

pie36 = [int(ii) for ii in pie36]


I tried using ii for the increment count for the for loop, but here is what 
I get as the error.

 ---
ValueError Traceback (most recent call last)

/home/nooniensoong97/ in ()

ValueError: invalid literal for int() with base 10: 'i'

 


I guess you can not use more then a letter to count the increments in the 
loop? Is there anyway to get around this issue?

-- 
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: 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 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 recent call last):
>>
>>   File "", line 1, in 
>>   File "_sage_input_3.py", line 10, in 
>> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
>> -*-\\n" + 
>> _support_.preparse_worksheet_cell(base64.b64decode("QSA9IFFRWydhJ10KQiA9IEFbJ3gseSddCkIoJ2EnKQ=="),globals())+"\\n");
>>  execfile(os.path.abspath("___code___.py"))
>>   File "", line 1, in 
>> 
>>   File "/tmp/tmpRxt973/___code___.py", line 4, in 
>> exec compile(u"B('a')" + '\n', '', 'single')
>>   File "", line 1, in 
>> 
>>   File 
>> "/sagenb/sage_install/sage-4.8-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_ring.py",
>>  line 459, in __call__
>> raise TypeError, "unable to convert string"
>> TypeError: unable to convert string
>>
>>
>>
> If you want the variables you can do R.gens(). If you want the generators 
> for the base ring then, R.base_ring().gens() will return you a.
>

Sorry, I misunderstood the question. This does look like a bug to 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: 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" (full traceback below).  Is 
> this how it's supposed to work?
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>   File "_sage_input_3.py", line 10, in 
> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 
> -*-\\n" + 
> _support_.preparse_worksheet_cell(base64.b64decode("QSA9IFFRWydhJ10KQiA9IEFbJ3gseSddCkIoJ2EnKQ=="),globals())+"\\n");
>  execfile(os.path.abspath("___code___.py"))
>   File "", line 1, in 
> 
>   File "/tmp/tmpRxt973/___code___.py", line 4, in 
> exec compile(u"B('a')" + '\n', '', 'single')
>   File "", line 1, in 
> 
>   File 
> "/sagenb/sage_install/sage-4.8-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_ring.py",
>  line 459, in __call__
> raise TypeError, "unable to convert string"
> TypeError: unable to convert string
>
>
>
If you want the variables you can do R.gens(). If you want the generators 
for the base ring then, R.base_ring().gens() will return you 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] 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(integral(x+y, x, 0,1), y, 0, 1) 
>
> returns 1. 
>
> Can any one point out the reason for this discrepancy and how to solve it?


I suspect it happens because the inner integral is evaluated first, with a 
*symbolic variable* y.  Then, the condition c+y < 5 always fails for any 
value c that is input as x to f1(x,y). So, the inner integral always 
evaluates to 0, and then the outer integral too evaluates to 0.

Unfortunately, I don't know any workarounds to this.

-- 
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] 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 and how to solve it?

-- 
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] 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 recent call last):

  File "", line 1, in 
  File "_sage_input_3.py", line 10, in 
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" 
+ 
_support_.preparse_worksheet_cell(base64.b64decode("QSA9IFFRWydhJ10KQiA9IEFbJ3gseSddCkIoJ2EnKQ=="),globals())+"\\n");
 execfile(os.path.abspath("___code___.py"))
  File "", line 1, in 

  File "/tmp/tmpRxt973/___code___.py", line 4, in 
exec compile(u"B('a')" + '\n', '', 'single')
  File "", line 1, in 

  File 
"/sagenb/sage_install/sage-4.8-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_ring.py",
 line 459, in __call__
raise TypeError, "unable to convert string"
TypeError: unable to convert string


-- 
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