[sage-support] Re: Scipy acts differently for *i and j

2010-11-05 Thread kcrisman
On Nov 5, 8:12 pm, Felix Lawrence wrote: > I've now built 4.6.1alpha0, and this is what I get: > > sage: import scipy.fftpack as Fourier > sage: Fourier.ifft([95,20-25*i,-23,20+25*i]) > ... > ValueError: setting an array element with a sequence. > > sage: Fourier.ifft([95,20,-23,20]) > array([ 2

Re: [sage-support] Re: eigenvalues bug?

2010-11-05 Thread Mitesh Patel
On 11/03/2010 09:32 PM, Jason Grout wrote: > On 11/3/10 3:30 PM, David Joyner wrote: >> Sage seems to be reporting eigenvalues incorrectly. Can this bug been >> reported before? > > It's well known that serious numerical issues come up when doing > eigenvalues of CC or RR matrices. That's why the

[sage-support] Re: Scipy acts differently for *i and j

2010-11-05 Thread Felix Lawrence
I've now built 4.6.1alpha0, and this is what I get: sage: import scipy.fftpack as Fourier sage: Fourier.ifft([95,20-25*i,-23,20+25*i]) ... ValueError: setting an array element with a sequence. sage: Fourier.ifft([95,20,-23,20]) array([ 28.0+0.j, 29.5-0.j, 8.0+0.j, 29.5+0.j]) sage: Fourier.if

[sage-support] elimination of variables

2010-11-05 Thread andrew ewart
i want to write a polynomial p of variables x and y such that p(x,y)=0 i also have that x and y can be expressed in terms of a variable u such that 2x=2u^2+2u-1 and -y^2=u^4+2u^3-2u-1 how to write code to eliminate u, hence finding p -- To post to this group, send email to sage-support@googleg

[sage-support] Re: sylvester matrix

2010-11-05 Thread andrew ewart
no i dont think so i saved it as file.sage then ran it as sage file.sage so how do i apply this particular patch to my version of sage and then run it as part of sage On Nov 5, 7:18 pm, Mike Hansen wrote: > On Fri, Nov 5, 2010 at 12:14 PM, andrew ewart > > wrote: > > looking at the code in tick

Re: [sage-support] sylvester matrix

2010-11-05 Thread Mike Hansen
On Fri, Nov 5, 2010 at 12:14 PM, andrew ewart wrote: > looking at the code in ticket 7458 (link:http://trac.sagemath.org/ > sage_trac/attachment/ticket/7458/sylvester.patch) > > however sage doesnt seem to recognise the sylvester_matrix command > any help Did you apply the patch and run "sage -b"

[sage-support] sylvester matrix

2010-11-05 Thread andrew ewart
looking at the code in ticket 7458 (link:http://trac.sagemath.org/ sage_trac/attachment/ticket/7458/sylvester.patch) ive tried to calculate the sylvester matrix of a given f and g (polys of (x,a)) and its deteminant (with respect to a) with the following code R. = PolynomialRing(ZZ) f = x^5 + 3*x

[sage-support] axes labels in 3D plots

2010-11-05 Thread pong
I did a quick search but couldn't find any recent discussion on this topic. Has axes labels for 3D plots implemented? There seems to be a new feature in Jmol 12 for axes labelling. What is it? Can we use it in SAGE? If so, how? Thanks in advance -- To post to this group, send email to sage-su

[sage-support] Re: Newton Polygons

2010-11-05 Thread Nathan Dunfield
> Are there any Sage functions and/or classes for computing Newton > Polygons? Yes there are, here's some quick examples. sage: R. = PolynomialRing(QQ) sage: p = 1 + x + y + x^2*y sage: P = p.newton_polytope() sage: P.vertices() [[2, 1], [1, 0], [0, 1], [0, 0]] sage: P.show() # picture of newton

[sage-support] Newton Polygons

2010-11-05 Thread VictorMiller
Are there any Sage functions and/or classes for computing Newton Polygons? -- 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

[sage-support] Re: Polyhedron from inequalities

2010-11-05 Thread Marshall Hampton
To use Polyhedron you would do: p = Polyhedron(ieqs = [[0,1,0,1,-1], [0,-1,-3,0,0]],eqns = [[0,1,-1,-1,0]]) It would be nice to have some conversion function from symbolic inequalities and equations into this format; I don't think we have that now but I could be wrong. -M. Hampton On Nov 4, 4:3

[sage-support] Fighting against Valgrind

2010-11-05 Thread Nathann Cohen
Hello everybody !!! I am trying to use Valgrind in Sage, and I guess I did not do anything wrong as I obediently followed http://wiki.sagemath.org/ValgrindingSage which just amounted to define a variable, but when I type sage -valgrind the only thing I get is a message valgrind is being used, th