Re: [sage-support] Re: Finding a maximum value of a function on an interval?

2009-11-27 Thread Laurent
Marshall Hamilton ha scritto: Perhaps this is the kind of thing you want? sage: var('x') sage: f = -x^4 + 9*x^3 - 23*x^2 + 31*x - 15 sage: f.find_maximum_on_interval(0,6) Is it equivalent to what we get with plot(f,(0,6)).get_minmax_data() ? you can get the documentation for that.

[sage-support] indentation in the output using notebook.

2009-11-27 Thread Yotam Avital
Hi. I have a minor prolem: I'm going through the sage tutorial and I got a little problem when I try to create a simple table. I'm trying to do what is going here: http://www.sagemath.org/doc/tutorial/tour_help.html#functions-indentation-and-counting when I put the following commands: for i

Re: [sage-support] indentation in the output using notebook.

2009-11-27 Thread Minh Nguyen
Hi Yotam, On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital yota...@gmail.com wrote: Hi. I have a minor prolem: I'm going through the sage tutorial and I got a little problem when I try to create a simple table. I'm trying to do what is going here:

Re: [sage-support] indentation in the output using notebook.

2009-11-27 Thread Yotam Avital
great thanks. On Fri, Nov 27, 2009 at 3:47 PM, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Yotam, On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital yota...@gmail.com wrote: Hi. I have a minor prolem: I'm going through the sage tutorial and I got a little problem when I try to create

Re: [sage-notebook] Re: [sage-support] indentation in the output using notebook.

2009-11-27 Thread Minh Nguyen
Hi Pat, On Sat, Nov 28, 2009 at 1:36 AM, Pat LeSmithe qed...@gmail.com wrote: On 11/27/2009 05:47 AM, Minh Nguyen wrote: On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital yota...@gmail.com wrote: for i in range (1,5): print '%6s %6s %6s'%(i, i^2, i^3) I think *part* of the problem could be

[sage-support] unsubscribe

2009-11-27 Thread Barry Cherkas
unsubscribe Barry Cherkas -- 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/group/sage-support URL:

Re: [sage-support] unsubscribe

2009-11-27 Thread Minh Nguyen
Hi Barry, On Sat, Nov 28, 2009 at 4:51 AM, Barry Cherkas barry.cher...@hunter.cuny.edu wrote: unsubscribe Barry Cherkas This is to inform you that you are now unsubscribed from the sage-support mailing list. -- Regards Minh Van Nguyen -- To post to this group, send email to

[sage-support] numerical approximation in sage.

2009-11-27 Thread Yotam Avital
Hello. In the tutorials there is an example for numerical approximation: var('x y p q') (x, y, p, q) eq1 = p+q==9 eq2 = q*y+p*x==-6 eq3 = q*y^2+p*x^2==24 solns = solve([eq1,eq2,eq3,p==1],p,q,x,y, solution_dict=True) [[s[p].n(30), s[q].n(30), s[x].n(30), s[y].n(30)] for s in solns] [[1.000,

Re: [sage-support] numerical approximation in sage.

2009-11-27 Thread Minh Nguyen
Hi Yotam, On Sat, Nov 28, 2009 at 5:03 AM, Yotam Avital yota...@gmail.com wrote: SNIP As I far as I can understand, solution_dict tells sage that I want the output to be in dictionary form(that is, {x:1, y:8 ...}) Yes, you're right. I also know that the .n(30) tell sage I want the answer

[sage-support] Re: numerical approximation in sage.

2009-11-27 Thread John H Palmieri
On Nov 27, 10:03 am, Yotam Avital yota...@gmail.com wrote: Hello. In the tutorials there is an example for numerical approximation: var('x y p q') (x, y, p, q) eq1 = p+q==9 eq2 = q*y+p*x==-6 eq3 = q*y^2+p*x^2==24 solns = solve([eq1,eq2,eq3,p==1],p,q,x,y, solution_dict=True)

Re: [sage-support] Re: numerical approximation in sage.

2009-11-27 Thread Yotam Avital
My question is about the syntax and why does this syntax give a numerical approximation. To my understanding, solns is contracted from two arrays with p,q,x,y being the keys (because there are two solutions to the equations set). The part for s in solns is putting in s ab array, and the part

[sage-support] weird error after starting Sage 4.2.1 in terminal

2009-11-27 Thread Alex Ghitza
When I start sage-4.2.1, about 5 seconds after the sage: prompt appears, I get this: -- | Sage Version 4.2.1, Release Date: 2009-11-14 | | Type notebook() for the GUI, and license() for information.

Re: [sage-support] weird error after starting Sage 4.2.1 in terminal

2009-11-27 Thread William Stein
On Fri, Nov 27, 2009 at 3:40 PM, Alex Ghitza aghi...@gmail.com wrote: When I start sage-4.2.1, about 5 seconds after the sage: prompt appears, I get this: -- | Sage Version 4.2.1, Release Date: 2009-11-14                    

Re: [sage-support] weird error after starting Sage 4.2.1 in terminal

2009-11-27 Thread Alex Ghitza
On Fri, Nov 27, 2009 at 03:53:39PM -0800, William Stein wrote: I've never heard of this. The above could be caused by some file being corrupted. Delete $HOME/.sage/temp to get rid of this problem. Thanks, that did it. -- Alex Ghitza -- Lecturer in Mathematics -- The University of

[sage-support] Re: numerical approximation in sage.

2009-11-27 Thread kcrisman
Hi, This is an unavoidable consequence of using Maxima's solve commands, I think - with multiple equations, Maxima's solve uses things like algsys, if I'm not mistaken, and those return real solutions if they can't find symbolic ones. With one equation the (new) behavior is to not do this