Re: [sage-support] weird comparison of rational numbers

2012-10-18 Thread William Stein
On Thu, Oct 18, 2012 at 2:13 PM, Ken Ribet wrote: > Thanks to everyone for the explanation of why my comparison of rational > numbers did not work. I'd like to make two comments: > > 1. I got into this mess by trying to count points above and below the line > in the standard textbook proof of qu

Re: [sage-support] Re: Upper convex hull ("inverse" Newton polygon)

2012-10-18 Thread Dima Pasechnik
On Thursday, 18 October 2012 14:24:45 UTC+8, projetmbc wrote: > > Ok, there is an applet showing on example of the Newton polygon here : > > http://www.math.sc.edu/~filaseta/newton/newton.html > > Don't focus on the definition of the Newton polygon but only on the > graphic. > well, we can't fo

Re: [sage-support] weird comparison of rational numbers

2012-10-18 Thread Ken Ribet
Thanks to everyone for the explanation of why my comparison of rational numbers did not work. I'd like to make two comments: 1. I got into this mess by trying to count points above and below the line in the standard textbook proof of quadratic reciprocity. You have two odd primes p and q, mak

Re: [sage-support] weird comparison of rational numbers

2012-10-18 Thread William Stein
On Thu, Oct 18, 2012 at 7:00 AM, Kenneth A. Ribet wrote: > Hi Sage Gurus, > > Am I doing something stupid here: > > sage: print 1/2 < 3/7 > sage: L=[] > sage: for i in range(2,3): > ... for j in range(1,2): > Use [a..b] (or srange(a,b+1)) instead of range(a,b+1)... William > ...

[sage-support] Re: How to get out of the full text mode in Virtual Box?

2012-10-18 Thread Volker Braun
Right-Ctrl F2 See also 5.2 at http://wiki.sagemath.org/SageAppliance#Using_the_Sage_shell On Thursday, October 18, 2012 3:55:39 PM UTC+1, Linfeng Li wrote: > > I am a windows user and stepped in the full text screen to read all the > output. > > But I failed to get out of that and continue on

[sage-support] How to get out of the full text mode in Virtual Box?

2012-10-18 Thread Linfeng Li
I am a windows user and stepped in the full text screen to read all the output. But I failed to get out of that and continue on my program. Hope someone can help out! Great thanks to you! Linfeng -- You received this message because you are subscribed to the Google Groups "sage-support" gr

[sage-support] Re: Phase Space 3D

2012-10-18 Thread Jason Grout
On 10/18/12 9:40 AM, Doaa El-Sakout wrote: What I want to plot something like in the attached image. This image made it by using Matlab. On 18 October 2012 15:15, Jason Grout mailto:jason-s...@creativetrax.com>> wrote: On 10/18/12 7:43 AM, Doaa El-Sakout wrote: Hi everyone,

Re: [sage-support] Re: Phase Space 3D

2012-10-18 Thread Doaa El-Sakout
What I want to plot something like in the attached image. This image made it by using Matlab. On 18 October 2012 15:15, Jason Grout wrote: > On 10/18/12 7:43 AM, Doaa El-Sakout wrote: > >> Hi everyone, >> I would like to know, how can I plot phase space in 3D using SAGE. >> When I Google i

[sage-support] Re: weird comparison of rational numbers

2012-10-18 Thread Volker Braun
Python functions (like range) return Python integers, which do C division arithmetic: sage: int(1)/int(2) 0 sage: type(int(1)) sage: type(1) Whenever you get an integer out of a Python function you should convert it to a Sage integer with ZZ(): sage: [ i/j for i,j in CartesianProduct(range(

Re: [sage-support] weird comparison of rational numbers

2012-10-18 Thread Alastair Irving
On 18/10/2012 15:00, Kenneth A. Ribet wrote: Hi Sage Gurus, Am I doing something stupid here: sage: print 1/2 < 3/7 sage: L=[] sage: for i in range(2,3): ... for j in range(1,2): ... L.append([i,j]) ... sage: print L sage: for P in L: ... print P[1], P[0] ... P[1]/P[

[sage-support] Re: Phase Space 3D

2012-10-18 Thread Jason Grout
On 10/18/12 7:43 AM, Doaa El-Sakout wrote: Hi everyone, I would like to know, how can I plot phase space in 3D using SAGE. When I Google it, I found it using Matlab. Any suggestions, Do you mean like the last example here? http://alpha.sagenb.org/home/pub/444/ Thanks, Jason -- You rec

[sage-support] weird comparison of rational numbers

2012-10-18 Thread Kenneth A. Ribet
Hi Sage Gurus, Am I doing something stupid here: sage: print 1/2 < 3/7 sage: L=[] sage: for i in range(2,3): ... for j in range(1,2): ... L.append([i,j]) ... sage: print L sage: for P in L: ... print P[1], P[0] ... P[1]/P[0] < 3/7 False [[2, 1]] 1 2 True In plai

[sage-support] Phase Space 3D

2012-10-18 Thread Doaa El-Sakout
Hi everyone, I would like to know, how can I plot phase space in 3D using SAGE. When I Google it, I found it using Matlab. Any suggestions, Doaa -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support