[sage-support] Re: polynomial division by increasing powers

2010-11-16 Thread Simon King
Hi Johannes! On 16 Nov., 23:48, Johannes Huisman wrote: > Does sage have a command for polynomial division by increasing powers? I > could not find such a command. Of course, one may use power series > division in order to compute the quotient, but it would be neat if one > could avoid all that.

Re: [sage-support] writing docs with sage

2010-11-16 Thread Dan Drake
On Tue, 16 Nov 2010 at 10:37AM -0800, craigp wrote: > I'm thinking of using sage to write various kinds of technical docs > (math in particular, naturally). I've just started to learn Latex, but > I find some of aspects of that limiting (macros in particular). "Limiting" is an amusing choice of wo

[sage-support] Re: bool(arcsin(x) == 2*arctan(x/(1+sqrt(1-x^2)))) returns false !!!

2010-11-16 Thread kcrisman
On Nov 16, 8:28 pm, Derrick wrote: > ok, I got your point. Now, a different issue with "bool" > > bool( sin(2*x) == 2*sin(x)*cos(x) ) returns True > while > bool( sin(x) == 2*sin(x/2)*cos(x/2) ) returns False > > Similarly, > bool( tan(x) == sin(2*x)/(1+cos(2*x)) ) returns True > while > bool( t

[sage-support] Re: bool(arcsin(x) == 2*arctan(x/(1+sqrt(1-x^2)))) returns false !!!

2010-11-16 Thread Derrick
ok, I got your point. Now, a different issue with "bool" bool( sin(2*x) == 2*sin(x)*cos(x) ) returns True while bool( sin(x) == 2*sin(x/2)*cos(x/2) ) returns False Similarly, bool( tan(x) == sin(2*x)/(1+cos(2*x)) ) returns True while bool( tan(x/2) == sin(x)/(1+cos(x)) ) returns False Do you hav

[sage-support] polynomial division by increasing powers

2010-11-16 Thread Johannes Huisman
Hello, Does sage have a command for polynomial division by increasing powers? I could not find such a command. Of course, one may use power series division in order to compute the quotient, but it would be neat if one could avoid all that. Thanks in advance, Johannes -- http://pageperso.uni

[sage-support] writing docs with sage

2010-11-16 Thread craigp
Hi - I'm thinking of using sage to write various kinds of technical docs (math in particular, naturally). I've just started to learn Latex, but I find some of aspects of that limiting (macros in particular). I think my options come down to sagetex or rst + sphinx + sage. I'm more interested in the

[sage-support] Re: long input in sage notebook

2010-11-16 Thread ma...@mendelu.cz
Many thanks Robert On 15 lis, 13:25, Jason Grout wrote: > Try: > > sage: x=RealNumber('0.13546543513\ > 35216544435213132\ > 354351321321321') > sage: x > 0.135465435133521654443521313235435132132132 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

Re: [sage-support] Heavy memory usage in a basic example: what happens? How to manage it?

2010-11-16 Thread Mike Hansen
Hello, On Tue, Nov 16, 2010 at 12:03 AM, Rolandb wrote: > 3) I could not find a Sage standard function to deliver this output. > There are so many functions around... > Is there such a function? An iterator is even better. N.B.: The above > example "splits" can easily transformed to an iterator,

[sage-support] Heavy memory usage in a basic example: what happens? How to manage it?

2010-11-16 Thread Rolandb
Hi, I assumed that pure python would not consume (too much) memory. But consider the following simple pure python example: sage: def splits(lijst,n): ... ... """ ... Divides a list in all combinations of n smaller partitions ... example: ... splits(range(5),2)= [[[0], [1,