[sage-support] Controlling output from ``product_on_basis''

2014-04-16 Thread drupel
Hello sage-suport community, I am working with a CombinatorialFreeModule with a multiplication defined using the product_on_basis method. Inside the call of product_on_basis I actually do multiplications in the algebra so that it becomes something of a recursive function. After the outermost

[sage-support] Re: Cython help

2009-04-24 Thread drupel
I sent a copy of my code and a few samples of what I would like to do with it to your gmail. Thanks for your help, Dylan On Apr 24, 1:48 pm, Mike Hansen wrote: > On Fri, Apr 24, 2009 at 1:40 PM, drupel wrote: > > Thanks Mike, > > Is it possible to do the symbolic computati

[sage-support] Re: Cython help

2009-04-24 Thread drupel
Thanks Mike, Is it possible to do the symbolic computations with Cython? If not, I will wait until Sage 4.0 comes out and see what happens. Dylan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

[sage-support] Cython help

2009-04-24 Thread drupel
Hi all, I am new to Sage and I don't quite understand how to convert my code to cython code to speed up my program. I am doing a lot of symbolic manipulations and using the PolynomialRing object. Below I have some of my code so that you can see the types of manipulations I hope to speed up: R

[sage-support] Re: A problem with the simplify command

2009-04-24 Thread drupel
inh Nguyen wrote: > > Hi Dylan, > > > On Fri, Apr 24, 2009 at 4:32 AM, drupel wrote: > > >> Hi all: > >> I am using Sage Version 3.4, Release Date: 2009-03-11.  I asked Sage > >> to simplify the following expression: > >>    -q^(5/2)*(q^2*x2^

[sage-support] A problem with the simplify command

2009-04-23 Thread drupel
Hi all: I am using Sage Version 3.4, Release Date: 2009-03-11. I asked Sage to simplify the following expression: -q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 + 1) *x2^2 + sqrt(q) by calling the simplify command: simplify(-q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)

[sage-support] factoring polynomials

2009-04-21 Thread drupel
I am hoping to be able to factor a single variable polynomial with positive coefficients onto factors that only involve positive coefficients. For example I would like to factor q^10+q^8+q^6+q^4+q^2+1 as (q^2 + 1)*(q^8+q^4+1) rather than (q^2 + 1)* (q^2 - q + 1)*(q^2 + q + 1)*(q^4 - q^2 + 1) as t