[sage-support] Re: Dealing with algebraic elements and rational functions

2009-03-22 Thread Alex Raichev
Hey Mike and Luis: > > (5) Factorize polynomials in Q[x,y,z,t,a] extracted from > > numerators/denominatos of rational functions. > > We can do this via Maxima.  First we convert f to Maxima and call the > factor command passing in the defining polynomial for the number > field.  Then we extract

[sage-support] Re: "maximum recursion depht exceded"

2009-03-22 Thread John Cremona
Also if you type prime_powers? you will see this: Definition: prime_powers(start, stop=None) Docstring: List of all positive primes powers between start and stop-1, inclusive. If the second argument is omitted, returns the primes up to the first argument. EXA

[sage-support] Re: error parsing hexadecimal integers

2009-03-22 Thread William Stein
This belongs on sage-support..., so I've cc'd it there. On Sun, Mar 22, 2009 at 5:50 AM, Paul Zimmermann wrote: > -- > | Sage Version 3.4, Release Date: 2009-03-11                         | > | Type notebook() for the GUI, and l

[sage-support] Re: Dealing with algebraic elements and rational functions

2009-03-22 Thread luisfe
On 20 mar, 14:07, Mike Hansen wrote: > The best way to work with this object is to do like you did: > > sage: K.=NumberField(x^4+x+1) > sage: R.=K['x,y,z,t'] > > Then, we can construct some elements of this field: > > sage: f = (a^2*x + y)*(z+a*t); f > (a^2)*x*z + y*z + (a^3)*x*t + (a)*y*t > sa

[sage-support] Re: "maximum recursion depht exceded"

2009-03-22 Thread Mike Hansen
Hello, On Mar 22, 7:16 am, christophe van der putten wrote: > Hi, > I am a newbie with sage, a want to save in a text file all prime and > prime power that are lower than a big number Max=(10^18). > > i use two loop:  as below and i have the error message "maximum > recursion depht exceded". > t

[sage-support] "maximum recursion depht exceded"

2009-03-22 Thread christophe van der putten
Hi, I am a newbie with sage, a want to save in a text file all prime and prime power that are lower than a big number Max=(10^18). i use two loop: as below and i have the error message "maximum recursion depht exceded". the program that i write is: " sage: k=1 p=2 m=2 while p^k<=Max:

[sage-support] Re: File "", line 2 Integer(2) ^ IndentationError: unexpected indent

2009-03-22 Thread tM
Thanks! tM On 22 Mrz., 14:45, Mike Hansen wrote: > On Mar 22, 5:25 am, tM wrote: > > > I have no idea where the problem is: > > The problem comes from the difference between str and repr: > > sage: f = x^2 + 3 > sage: repr(f) > 'x^2 + 3' > sage: str(f) > '\n                                    

[sage-support] Re: File "", line 2 Integer(2) ^ IndentationError: unexpected indent

2009-03-22 Thread Mike Hansen
On Mar 22, 5:25 am, tM wrote: > I have no idea where the problem is: The problem comes from the difference between str and repr: sage: f = x^2 + 3 sage: repr(f) 'x^2 + 3' sage: str(f) '\n 2\r \nx + 3' Notice how the str i

[sage-support] File "", line 2 Integer(2) ^ IndentationError: unexpected indent

2009-03-22 Thread tM
I have no idea where the problem is: Sourcecode from the Notebook and the error: Newton Verfahren system:sage body { text-align: center; color: #585858; background-color: white; } h1 { background-color: #4477aa; color: white; } div#Code { text-ali

[sage-support] Re: python's list comprehension

2009-03-22 Thread John Cremona
Perhaps the Sage version of the database should have the rounded analytic Sha values and not the floating point ones (for positive rank curves, I mean: in the rank 0 case the values are already integers). Nils, if you get the files http://www.warwick.ac.uk/staff/J.E.Cremona/ftp/data/allbigsha.*.

[sage-support] Re: 3-D plots of affine varieties

2009-03-22 Thread Alex Ghitza
On Sun, Mar 22, 2009 at 4:43 PM, Mike Hansen wrote: > > Hello, > > On Mar 21, 10:13 pm, Minh Nguyen wrote: >> Hi folk, >> >> I may be missing something here, but when I tried to plot 0 = x^2 + >> y^2 - z^2 I received an error: > > What you want is implicit 3d plotting which is not in Sage (yet).