[sage-support] Re: Newbie question. How do you get Sage to show a plot?

2009-03-30 Thread William Stein
On Mon, Mar 30, 2009 at 8:17 PM, WLC wrote: > > > I just installed Sage and I am going through a few examples from the > http://www.sagemath.org/doc/tutorial site. when I enter "circle((0,0), > 1, rgbcolor=(1,1,0))" or "plot(cos, (-5,5))" there is a delay and then > the comand prompt returns but

[sage-support] Re: Newbie question. How do you get Sage to show a plot?

2009-03-30 Thread Minh Nguyen
Hi, On Tue, Mar 31, 2009 at 3:17 AM, WLC wrote: > > > I just installed Sage and I am going through a few examples from the > http://www.sagemath.org/doc/tutorial site. when I enter "circle((0,0), > 1, rgbcolor=(1,1,0))" or "plot(cos, (-5,5))" there is a delay and then > the comand prompt returns

[sage-support] Re: Newbie question. How do you get Sage to show a plot?

2009-03-30 Thread Ajay Rawat
well, actually it should plot the graph in a new pop-up window(eog). may be you try to plot these graph in notebook. this may help you. On Tue, Mar 31, 2009 at 8:47 AM, WLC wrote: > > > I just installed Sage and I am going through a few examples from the > http://www.sagemath.org/doc/tutorial si

[sage-support] Newbie question. How do you get Sage to show a plot?

2009-03-30 Thread WLC
I just installed Sage and I am going through a few examples from the http://www.sagemath.org/doc/tutorial site. when I enter "circle((0,0), 1, rgbcolor=(1,1,0))" or "plot(cos, (-5,5))" there is a delay and then the comand prompt returns but I don't see a plot. Should it pop up in a new window, or

[sage-support] Re: sage.math out for a break?

2009-03-30 Thread Justin C. Walker
On Mar 28, 2009, at 14:16 , mabshoff wrote: > > > > On Mar 28, 1:48 pm, "Justin C. Walker" wrote: >> Hi, >> >> I can't get to sage.math: ports 80 (http) and 22 (ssh) don't respond >> and attempts to connect time-out. 'ping' works, FWIW. > > Must be a local problem, I can log in without problem

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

2009-03-30 Thread Jason Grout
Chris Seberino wrote: > In a new sage session... > (Notice the A(t) function returns values just fine. Why doesn't plot > () like it?) > > sage: W(t)=95*sqrt(t)*sin(t/6)^2 > > sage: R(t)=275*sin(t/3)^2 > > sage: def A(t): > : return 1200 + numerical_integral(W(x)-R(x),0,t)[0]

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

2009-03-30 Thread Chris Seberino
In a new sage session... (Notice the A(t) function returns values just fine. Why doesn't plot () like it?) sage: W(t)=95*sqrt(t)*sin(t/6)^2 sage: R(t)=275*sin(t/3)^2 sage: def A(t): : return 1200 + numerical_integral(W(x)-R(x),0,t)[0] : sage: A(0) 1200.0 sage: A(18) 1309

[sage-support] Re: Unified polynomial API. Was: Leading monomial or leading term of univariate polynomials

2009-03-30 Thread simon . king
Hi! On 23 Mrz., 12:57, Burcin Erocal wrote: > > I think it is not my call to provide such list. But next week I can go > > through the list of methods of multi- and univariate polynomials, open > > a ticket for their unification, and perhaps start a poll on sage-devel > > concerning the suggeste

[sage-support] Re: new cell in worksheet

2009-03-30 Thread William Stein
On Mon, Mar 30, 2009 at 9:25 AM, davidp wrote: > > I am running Sage 3.4 under Fedora 10.  I am having trouble inserting > a cell (of any type) right before a text cell in a worksheet. > > I have tried the following: > > 1. Hovering the mouse just above the text cell. > 2. Going to a calculation

[sage-support] Re: new cell in worksheet

2009-03-30 Thread davidp
I am running Sage 3.4 under Fedora 10. I am having trouble inserting a cell (of any type) right before a text cell in a worksheet. I have tried the following: 1. Hovering the mouse just above the text cell. 2. Going to a calculation cell just above the text cell and trying shift-click, alt-clic

[sage-support] opening a saved jmol file

2009-03-30 Thread davidp
In the sage notebook, how can I open (display) a file I saved in jmol format? Thanks, Dave --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.

[sage-support] Re: Problems (?) with least squares

2009-03-30 Thread linuxgus
On Mar 30, 7:49 am, Jason Grout wrote: > linuxgus wrote: ... > >     """ > >     a=p[0];b=p[1];phi=p[2];delta=p[3];X=p[4];Y=p[5] > >     return numpy.array(x-a*numpy.cos(phi+delta)+X  ,  y-b*numpy.sin(phi > > +delta)+Y) > > Here's a guess (I haven't checked it): > > make the above function re

[sage-support] Re: substitution problem

2009-03-30 Thread Jason Grout
V wrote: > Hi, > > I'm fairly new to sage with some background in maxima. > > My workbook is shared at > http://www.sagenb.org/home/pub/410/ > > the last three lines show the error I get. > > Basically, I derive an equilibrium condition that I would like to use > in the previous stage of my ga

[sage-support] substitution problem

2009-03-30 Thread V
Hi, I'm fairly new to sage with some background in maxima. My workbook is shared at http://www.sagenb.org/home/pub/410/ the last three lines show the error I get. Basically, I derive an equilibrium condition that I would like to use in the previous stage of my game (solving by backwards induct

[sage-support] Re: Rightbox, Rightsum

2009-03-30 Thread kcrisman
> > Interesting; I didn't know about this function.  Is there a reason it's > > not defined for general single-variable expressions (if we give an > > interval, of course)? > > I think the reason is historic, since David Joyner wrote the entire > Piecewise package and associated functionality befo

[sage-support] Re: Rightbox, Rightsum

2009-03-30 Thread William Stein
On Mon, Mar 30, 2009 at 7:47 AM, Jason Grout wrote: > > David Joyner wrote: >> See >> http://www.sagemath.org/doc/reference/sage/functions/piecewise.html >> For example: >> >> >> sage: f1(x) = x^2 >> sage: f = Piecewise([[(0,3),f1]]) >> sage: f.riemann_sum(6,mode="midpoint") >> Piecewise defined

[sage-support] Re: Rightbox, Rightsum

2009-03-30 Thread Jason Grout
David Joyner wrote: > See > http://www.sagemath.org/doc/reference/sage/functions/piecewise.html > For example: > > > sage: f1(x) = x^2 > sage: f = Piecewise([[(0,3),f1]]) > sage: f.riemann_sum(6,mode="midpoint") > Piecewise defined function with 6 parts, [[(0, 1/2), 1/16], [(1/2, 1), > 9/16], [(

[sage-support] Re: Rightbox, Rightsum

2009-03-30 Thread Harald Schilly
On Mar 30, 3:51 pm, "M.E._Mac" wrote: > I am taking a Calculus class and we are studying Reimann Sum. I am > trying to plot a function with the boxes drawn in at the right > endpoints, left endpoints, and middle points. ... I didn't know about the method david joyner used, but this worksheet m

[sage-support] Re: Rightbox, Rightsum

2009-03-30 Thread David Joyner
See http://www.sagemath.org/doc/reference/sage/functions/piecewise.html For example: sage: f1(x) = x^2 sage: f = Piecewise([[(0,3),f1]]) sage: f.riemann_sum(6,mode="midpoint") Piecewise defined function with 6 parts, [[(0, 1/2), 1/16], [(1/2, 1), 9/16], [(1, 3/2), 25/16], [(3/2, 2), 49/16], [(2,

[sage-support] Rightbox, Rightsum

2009-03-30 Thread M.E._Mac
I am taking a Calculus class and we are studying Reimann Sum. I am trying to plot a function with the boxes drawn in at the right endpoints, left endpoints, and middle points. For example, f(x)=x^2, find the area under the curve on the interval [0,3], n=10, with a) right endpoints, b) left endpoin

[sage-support] Re: Problems (?) with least squares

2009-03-30 Thread Jason Grout
linuxgus wrote: > I am trying to use least squares in sage. I started with a simple > example: Take an ellipse, whose major and minor axes are x and y, > respectively, turn in by -30 degrees, shift it, inject some noise, and > then try to recover it via least squares. All examples I have seen >