[sage-support] Re: Why plot() won't plot this function?

2009-04-23 Thread Stan Schymanski
Hi Jason, It think that find_root does use fast_float, but it compiles the fast_float function every time it is called. This makes it very slow if I want to find the roots of f for all values of b between say -3 and -1. Therefore, I would like to be able to compile a fast_float function of

[sage-support] Re: Why plot() won't plot this function?

2009-04-23 Thread Robert Bradshaw
On Apr 23, 2009, at 12:09 AM, Stan Schymanski wrote: Hi Jason, It think that find_root does use fast_float, but it compiles the fast_float function every time it is called. This makes it very slow if I want to find the roots of f for all values of b between say -3 and -1. Therefore,

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
I still don't understand why the solution you propose in the wiki is necessary Unless sage is passing (to the ppf function) something other than standard python's ints and floats. Is this the case? I just tested the same code snippet in a %python cell (in a notebook) and it works as expected

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
I think it will be hard to convice the scipy folks that this is a bug since it runs perfectly in Python, and scipy is not supposed to handle foreign types anyway... On 22 abr, 19:45, Ondrej Certik ond...@certik.cz wrote: On Wed, Apr 22, 2009 at 7:55 AM, William Stein wst...@gmail.com wrote:

[sage-support] Re: scipy compatibility

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 3:34 AM, Flavio Coelho fccoe...@gmail.com wrote: I still don't understand why the solution you propose in the wiki is necessary Unless sage is passing (to the ppf function) something other than standard python's ints and floats. Is this the case? Yes. I just

[sage-support] Re: snapshot saving

2009-04-23 Thread Stan Schymanski
I have used snapshots when I forgot to save a notebook under a new name before making big changes and then wanted to revert to the original. It wasn't very convenient, as the plots are not saved, so I could not easily recognise the right version. However, it saved my day! I like the idea of

[sage-support] Re: scipy compatibility

2009-04-23 Thread Flavio Coelho
I think I may have found a good argument to ask for better type checking in scipy: In [4]: stats.randint(1.,15.).ppf([.1,.2,.3,.4,.5]) Out[4]: array([ 2., 3., 5., 6., 7.]) when you call stats.randint with floats as parameters you get floats as results, which is clearly wrong and should be

[sage-support] Symbolic algebra expansion of products of sums

2009-04-23 Thread philabuster
Hi, I was wondering why Sage expands products of sums in an unexpected order: var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') expand((a0+a1)*(b0+b1)) a1*b1 + a0*b1 + a1*b0 + a0*b0 expand((a0+a1)*(b0+b1+b2)*(c0+c1+c2+c3)*(d0+d1+d2+d3+d4)) a1*b2*c3*d4 + a0*b2*c3*d4 + a1*b1*c3*d4 +

[sage-support] %pdb not working?

2009-04-23 Thread Flavio Coelho
Hi, what is the curently recomended way to debug code from within a notebook? I found %pdb (as suggested in documentation) does not work in 3.4. Also the standard python way: import pdb;pdb.run(call) also does not work. thanks Flávio --~--~-~--~~~---~--~~ To

[sage-support] Re: scipy compatibility

2009-04-23 Thread Robert Bradshaw
On Apr 23, 2009, at 3:37 AM, Flavio Coelho wrote: I think it will be hard to convice the scipy folks that this is a bug since it runs perfectly in Python, and scipy is not supposed to handle foreign types anyway... This can be reproduced in Pure Python--just make a class that has an

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 6:44 AM, philabuster pollock.p...@gmail.com wrote: Hi, I was wondering why Sage expands products of sums in an unexpected order: var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') The ordering of these terms is determined by maxima -- Sage doesn't control that at

[sage-support] Re: How to stop wiki?

2009-04-23 Thread Robert Miller
This bug *was* fixed, and the patch is on trac. http://trac.sagemath.org/sage_trac/ticket/1871 On Apr 18, 1:08 pm, Kevin Horton khorto...@rogers.com wrote: That works.  Thank you very much.  It was getting tiresome to reboot   the computer after every wiki config adjustment. -- Kevin

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread ma...@mendelu.cz
On 23 Dub, 20:38, William Stein wst...@gmail.com wrote: On Thu, Apr 23, 2009 at 6:44 AM, philabuster pollock.p...@gmail.com wrote: Hi, I was wondering why Sage expands products of sums in an unexpected order: var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') The ordering of these

[sage-support] Re: How to stop wiki?

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 12:55 PM, Kevin Horton khorto...@rogers.com wrote: But, the trac_1871-b patch does not seem applicable to the version of moin that ships with sage.  Is there a patch available for moin-1.5.7p2? No. We really should upgrade moinmoin included in Sage. The only reason

[sage-support] Re: snapshot saving

2009-04-23 Thread William Stein
Hi, I've written a patch against 3.4.1: http://trac.sagemath.org/sage_trac/ticket/5880 which simply greatly reduces the number of situations that result in snapshots. Basically, now you get them when you click save. There is no autosave. Please try/test. -- William On Thu, Apr 23, 2009

[sage-support] Re: snapshot saving

2009-04-23 Thread Timothy Clemans
On Thu, Apr 23, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hi, I've written a patch against 3.4.1:  http://trac.sagemath.org/sage_trac/ticket/5880 which simply greatly reduces the number of situations that result in snapshots. Basically, now you get them when you click save.  

[sage-support] Re: snapshot saving

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 2:13 PM, Timothy Clemans timothy.clem...@gmail.com wrote: On Thu, Apr 23, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hi, I've written a patch against 3.4.1:  http://trac.sagemath.org/sage_trac/ticket/5880 which simply greatly reduces the number of

[sage-support] Re: snapshot saving

2009-04-23 Thread Timothy Clemans
On Thu, Apr 23, 2009 at 5:14 PM, William Stein wst...@gmail.com wrote: On Thu, Apr 23, 2009 at 2:13 PM, Timothy Clemans timothy.clem...@gmail.com wrote: On Thu, Apr 23, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hi, I've written a patch against 3.4.1:  

[sage-support] notebook very slow

2009-04-23 Thread SG
Hi All, When I try to work on some of the tutorials (Calculus, Matrix algebra) sws files, then the notebook becomes extremely slow. Yesterday the notebook was crashing IE so I was asked to upgrade JRE. After the java upgrade, the notebook is very slow especially on big files like the calculus

[sage-support] Re: notebook very slow

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 2:40 PM, SG srikanth.gane...@gmail.com wrote: Hi All, When I try to work on some of the tutorials (Calculus, Matrix algebra) sws files, then the notebook becomes extremely slow. Yesterday the notebook was crashing IE so I was asked to upgrade JRE. After the java

[sage-support] Slackware/Zenwalk package

2009-04-23 Thread littlemathteacher
Greetings from Franconia. I tried to use the compiler to build Sage in my Zenwalk system (Zenwalk is based on Slackware Linux), but this time it did't work (might be due to the antique hardware I am using this time). I would like to put a request for a Zenwalk-package of Sage to the Zenwalk

[sage-support] Re: Slackware/Zenwalk package

2009-04-23 Thread mabshoff
On Apr 23, 4:28 pm, littlemathteacher relational...@gmail.com wrote: Greetings from Franconia. Hi, I tried to use the compiler to build Sage in my Zenwalk system (Zenwalk is based on Slackware Linux), but this time it did't work (might be due to the antique hardware I am using this time).

[sage-support] Re: Slackware/Zenwalk package

2009-04-23 Thread littlemathteacher
Dear Michael, thanks. When I returned home this evening the process and the whole system seemed to be frozen as if by memory overload. I slowly tried to close some applications and among them accidentally was the bash in which I had opened the file manager (by su root) to cd into the sage

[sage-support] Re: Slackware/Zenwalk package

2009-04-23 Thread mabshoff
On Apr 23, 5:41 pm, littlemathteacher relational...@gmail.com wrote: Dear Michael, Hi Markus, thanks. When I returned home this evening the process and the whole system seemed to be frozen as if by memory overload. I slowly tried to close some applications and among them accidentally

[sage-support] Re: Slackware/Zenwalk package

2009-04-23 Thread Minh Nguyen
Hi Markus, On Fri, Apr 24, 2009 at 12:41 AM, littlemathteacher relational...@gmail.com wrote: Dear Michael, thanks. When I returned home this evening the process and the whole system seemed to be frozen as if by memory overload. I slowly tried to close some applications and among them

[sage-support] Re: derivative of a composition

2009-04-23 Thread Alex Raichev
Hmm, implementing the chain rule is trickier than i thought. My straightforward plan of attack was to write a function that differentiates a symbolic expression as usual but when it comes to a composition f o g, it uses the chain rule and returns the appropriate entry of the matrix (Df o g)Dg.

[sage-support] Re: derivative of a composition

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 7:18 PM, Alex Raichev tortoise.s...@gmail.com wrote: Hmm, implementing the chain rule is trickier than i thought.  My straightforward plan of attack was to write a function that differentiates a symbolic expression as usual but when it comes to a composition f o g, it

[sage-support] Re: snapshot saving

2009-04-23 Thread Rob Beezer
On Apr 22, 5:36 pm, William Stein wst...@gmail.com wrote: Does anybody here ever use snapshots? I have never used a snapshot, that I am aware of. I've lost a cell or two due to crashes, but I think this was always due to my flaky USB hard drive setup and not Sage's fault. And it was always

[sage-support] Re: derivative of a composition

2009-04-23 Thread Alex Raichev
Thanks for the news, William. I will hold off on this chain rule business till the new symbolics arrive. Alex On Apr 24, 3:43 pm, William Stein wst...@gmail.com wrote: On Thu, Apr 23, 2009 at 7:18 PM, Alex Raichev tortoise.s...@gmail.com wrote: Hmm, implementing the chain rule is trickier

[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 +

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

2009-04-23 Thread Robert Bradshaw
On Apr 23, 2009, at 9:32 PM, 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^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 + 1) *x2^2 + sqrt(q) by calling the simplify command:

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

2009-04-23 Thread Minh Nguyen
Hi Dylan, On Fri, Apr 24, 2009 at 4:32 AM, drupel dylanru...@gmail.com 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^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 + 1) *x2^2 + sqrt(q) by calling

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

2009-04-23 Thread Minh Nguyen
On Fri, Apr 24, 2009 at 4:37 AM, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Dylan, On Fri, Apr 24, 2009 at 4:32 AM, drupel dylanru...@gmail.com 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^4