[sage-support] Re: Running a notebook on interface eth1 fails due to unavailable port

2012-07-16 Thread Keshav Kini
Jan Groenewald writes: > Problem was interface="eth1". > It works with interface="196.21.91.202" > > I found this documentation misleading, as if we are moving from > addresses > to interfaces names, from sage: notebook? which is why I put "eth1" > in the first place; but a re-read led me to try t

[sage-support] Re: Shift-enter doesn't work (and 'evaluate' doesn't show up)

2012-07-16 Thread robin
I am using firefox 13.0.1 with sage 5.1 and have exactly the same problem On Sunday, 8 May 2011 19:06:00 UTC+12, Keshav Kini wrote: > > This was discussed on the IRC channel yesterday. Harmor was using Firefox > 4, and when he tried it with Chromium it worked, apparently. I also thought > it s

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread achrzesz
# This command works for me: polygon([(0,0), (2,1), (0,3)], alpha=0.5, axes_labels=['x','y']) On Monday, July 16, 2012 8:27:25 PM UTC+2, The Doctor (Michael) wrote: > > Thanks a lot. On my figure number (2) above: > > And for figure 2, I used polygon(): > > figure2 = polygon([(0,0), (2,1), (0,3

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread achrzesz
#You probably need the right-hand sem-iring: l1=[(3*cos(phi),3*sin(phi)) for phi in srange(-n(pi)/2,n(pi)/2,0.01)] l2=[(6*cos(phi),6*sin(phi)) for phi in srange(-n(pi)/2,n(pi)/2,0.01)] l2.reverse() figure4=polygon(l1+l2) figure4.show(xmin=-6,xmax=6) > -- To post to this group, send email to s

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread achrzesz
l1=[(3*cos(phi),3*sin(phi)) for phi in srange(n(pi)/2,3*n(pi)/2,0.01)] l2=[(6*cos(phi),6*sin(phi)) for phi in srange(n(pi)/2,3*n(pi)/2,0.01)] l2.reverse() figure4=polygon(l1+l2) figure4.show(xmin=-6,xmax=6) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread Jason Grout
On 7/16/12 1:43 PM, The Doctor (Michael) wrote: l1=[(3*cos(phi),3*sin(phi)) for phi in srange(3*n(pi)/2,n(pi)/2,0.01)] l2=[(6*cos(phi),6*sin(phi)) for phi in srange(3*n(pi)/2,n(pi)/2,0.01)] l2.reverse() If I do print l1+l2 here, I see your list is empty. Perhaps your sranges are empty? Jaso

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread The Doctor (Michael)
One additional thing: i need to plot a circular region between 2 circles of radius 3 and 6, with 3*pi/2 to pi/2 and I have tried the following code but keep getting an Assertion error: l1=[(3*cos(phi),3*sin(phi)) for phi in srange(3*n(pi)/2,n(pi)/2,0.01)] l2=[(6*cos(phi),6*sin(phi)) for phi in

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread The Doctor (Michael)
Thanks a lot. On my figure number (2) above: And for figure 2, I used polygon(): figure2 = polygon([(0,0), (2,1), (0,3)], alpha=0.5) I have tried adding axes with:axes_label=['x','y'], but sage ignores that request and prints the graph without any axes. How can I fix that? Thanks again,

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread achrzesz
l1=[(cos(phi),sin(phi)) for phi in srange(n(pi)/4,3*n(pi)/4,0.01)] l2=[(2*cos(phi),2*sin(phi)) for phi in srange(n(pi)/4,3*n(pi)/4,0.01)] l2.reverse() p=polygon(l1+l2) c1=circle((0,0), 1,rgbcolor=(0,0,0)) c2=circle((0,0), 2,rgbcolor=(0,0,0)) l0=line([(-2*cos(n(pi)/4),2*sin(n(pi)/4)),(0,0),(2*cos(n(

[sage-support] Re: Ploting an arc and shading the area within the arc using Sage

2012-07-16 Thread The Doctor (Michael)
Thanks that is what I was looking or; with just one more thing.What would be the simplest way to add the circles of radius 1 and 2, and the lines theta = pi/4 and theta = 3*pi/4? Thanks again. On Sunday, July 8, 2012 10:44:31 AM UTC-4, The Doctor (Michael) wrote: > > Hullo. > > I am new to Sage,

Re: [sage-support] Re: Sage fails to run python script correctly

2012-07-16 Thread Jan Groenewald
Hi Carlos On 12 July 2012 14:38, Carlos Baptista wrote: > A google search led me to: > > http://wiki.sagemath.org/sage_matlab > > Here they describe how you can get the Matplotlib GUI to work. They > however use a Tk backend and as I am on Kubuntu I do not prefer to use > Tk/GTK/GTK+ packages. P

Re: [sage-support] Re: Running a notebook on interface eth1 fails due to unavailable port

2012-07-16 Thread Jan Groenewald
Hi On 12 July 2012 18:37, Jan Groenewald wrote: > Hi > > On 12 July 2012 18:32, Jason Grout wrote: > >> On 7/12/12 9:33 AM, Jan Groenewald wrote: >> >>> Can anyone help with this? >>> (It is a sage 5.1 compiled from source on Ubuntu 12.04) >>> >>> sage: notebook(interface="eth1", port=8080, sec

Re: [sage-support] least squares solutions

2012-07-16 Thread Urs Hackstein
Well, complex spline interpolation does not fit my needs as I am looking for interpolation by a function of type (a_8*x^8+a_7*x^7+a_6*x^6+a_5*x^5+a_4*x^4+a_3*x^3+a_2*x^2+a_1*x^1+a_0)/(b_8*x^8+b_7*x^7+b_6*x^6+b_5*x^5+b_4*x^4+b_3*x^3+b_2*x^2+b_1*x^1+b_0).or (a_7*x^7+a_6*x^6+a_5*x^5+a_4*x^4+a_3*x^3+a_

Re: [sage-support] least squares solutions

2012-07-16 Thread kcrisman
On Monday, July 16, 2012 5:08:34 AM UTC-4, Urs Hackstein wrote: > > Ok. I overlooked it. Thus is there an alternative to interpolate points > (x_1k,x_2k)\in\mathbb{C}x\mathbb{C} by a function f:\mathbb{C}\to\mathbb{C}? > > I don't know whether http://www.sagemath.org/doc/reference/sage/calculus

Re: [sage-support] least squares solutions

2012-07-16 Thread Urs Hackstein
Ok. I overlooked it. Thus is there an alternative to interpolate points (x_1k,x_2k)\in\mathbb{C}x\mathbb{C} by a function f:\mathbb{C}\to\mathbb{C}? 2012/7/13 Pablo Fernandez > > Dear Pablo Fernandez, > > > > thanks a lot for your suggestion. Unfortunately, it does not work in my > case > > and