Re: [sage-support] Re: Upper convex hull ("inverse" Newton polygon)

2012-10-17 Thread Christophe BAL
Ok, there is an applet showing on example of the Newton polygon here : http://www.math.sc.edu/~filaseta/newton/newton.html Don't focus on the definition of the Newton polygon but only on the graphic. What I need to obtain is a similar result but from the "upper" point of viex, and the "lower" on

Re: [sage-support] algebraic number to integer conversion?

2012-10-17 Thread Robert Bradshaw
On Wed, Oct 17, 2012 at 9:37 PM, Eric Kangas wrote: > code: > > b = 11^2 > > a = b^2 > > pri = [int(is_prime(i)) for i in range(a)] > > j = [i for i in range(a)][b+1:a:b] > > k = [i for i in range(a)][(b*2)+1:a:b] > > j.insert(0,0) > > k.insert(0,b) > > m = [matrix(QQ,sqrt(a)/(b/sqrt(b)),pri[j[i]:

[sage-support] Re: Upper convex hull ("inverse" Newton polygon)

2012-10-17 Thread Dima Pasechnik
I guess you need to specify more details. On Thursday, 18 October 2012 03:17:27 UTC+8, projetmbc wrote: > > Hello, > I would like to draw a kind of "inverse" Newton polygon for points. > > How can I achieve this ? > > Christophe > -- You received this message because you are subscribed to the Go

Re: [sage-support] algebraic number to integer conversion?

2012-10-17 Thread Eric Kangas
code: b = 11^2 a = b^2 pri = [int(is_prime(i)) for i in range(a)] j = [i for i in range(a)][b+1:a:b] k = [i for i in range(a)][(b*2)+1:a:b] j.insert(0,0) k.insert(0,b) m = [matrix(QQ,sqrt(a)/(b/sqrt(b)),pri[j[i]:k[i]]) for i in range(len(j)-1)] eval = [m[i].eigenvalues() for i in range(

Re: [sage-support] algebraic number to integer conversion?

2012-10-17 Thread Robert Bradshaw
What is eval? It looks like a list of eigenvalues, rather than a single one. Could you show how it is computed? On Wed, Oct 17, 2012 at 4:55 PM, Eric Kangas wrote: > Of course complex. > > Here is what happens when I try using the embeddings() function: > > sage: eval[0].embeddings(CC) > >

Re: [sage-support] algebraic number to integer conversion?

2012-10-17 Thread Eric Kangas
Of course complex. Here is what happens when I try using the embeddings() function: sage: eval[0].embeddings(CC) --- AttributeError Traceback (most recent call last) /home/nooniensoong97/ in () /home/nooniensoong97/prog

[sage-support] Re: cannot display graphs

2012-10-17 Thread fomalhauty
Hi, I opened in both ways. So it turned out to be an issue of the location. The administrator moved that directory from the network shared drive to a local place, and I can see the graphs now :) Thank both of you for the help and advices!! On Wednesday, October 17, 2012 3:08:21 PM UTC-4, Jo

[sage-support] Re: Union of two Affine varieties

2012-10-17 Thread vijay sharma
Hello, I think I found the answer to this. But there is something to share. 1. When I do '+' on ideals it takes as intersection while when I do ideal1.intersection(ideal2) it takes as union. 2. Otherwise for Projective curves it is taken in reverse. I am trying to get what is happening. Regards

Re: [sage-support] algebraic number to integer conversion?

2012-10-17 Thread Robert Bradshaw
When you say "plot these values", do you mean as real or complex values? To do so you need to choose an embedding, e.g. sage: K. = QQ[sqrt(5)]; K Number Field in sqrt5 with defining polynomial x^2 - 5 sage: K.embeddings(CC) [ Ring morphism: From: Number Field in sqrt5 with defining polynomial

[sage-support] Union of two Affine varieties

2012-10-17 Thread vijay sharma
Hello, I see that I can take intersection of two affine varieties but there is no union function provided. Please guide me if I am missing something. Regards, Vijay -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send em

[sage-support] Upper convex hull ("inverse" Newton polygon)

2012-10-17 Thread Christophe BAL
Hello, I would like to draw a kind of "inverse" Newton polygon for points. How can I achieve this ? Christophe -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe f

[sage-support] Re: cannot display graphs

2012-10-17 Thread John H Palmieri
On Wednesday, October 17, 2012 11:03:10 AM UTC-7, fomalhauty wrote: > > Sorry for the late reply. > > I did this and I think it is in sagerc now. But Sage is still not able to > show the graphs.. > > Thanks again for your help. > > On Tuesday, October 16, 2012 5:12:27 PM UTC-4, Volker Braun wro

[sage-support] Re: cannot display graphs

2012-10-17 Thread fomalhauty
Sorry for the late reply. I did this and I think it is in sagerc now. But Sage is still not able to show the graphs.. Thanks again for your help. On Tuesday, October 16, 2012 5:12:27 PM UTC-4, Volker Braun wrote: > > You can try to put > > export DOT_SAGE=/Volumes/Scratch/.sage > > into the sa

[sage-support] algebraic number to integer conversion?

2012-10-17 Thread Eric Kangas
Hi, I am working with eigenvalues, and want to figure out a way to plot these values as a return map. I am using sage 4.7.2 on a ubuntu 10.10 on a Toshiba M200 tablet. Do I need to convert the algrbraic number to integers, or is there a way to plot these values? Eric -- You received this mes

[sage-support] how to add users to notebook from the command line

2012-10-17 Thread Marshall Hampton
I asked this on the "Ask Sage" site as well, but maybe there are some people here who don't look at that: I know I've done this before, but it was a few years ago and I can't remember exactly how I did it. Its possible that the notebook has changed in some relevant ways in the meantime. I'd li

[sage-support] Re: graphics_array only shows axes labels on final plot

2012-10-17 Thread kcrisman
On Wednesday, October 17, 2012 12:49:09 PM UTC-4, P Purkayastha wrote: > > On 10/17/2012 11:52 PM, Dan Drake wrote: > > Hello, > > > > I did > > > > sage: p = plot(arccosh(x/cos(x)), (x,5,6), > axes_labels=['x','y=arccosh(x/cos x)']) > > sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3

[sage-support] Re: graphics_array only shows axes labels on final plot

2012-10-17 Thread P Purkayastha
On 10/18/2012 12:48 AM, P Purkayastha wrote: On 10/17/2012 11:52 PM, Dan Drake wrote: Hello, I did sage: p = plot(arccosh(x/cos(x)), (x,5,6), axes_labels=['x','y=arccosh(x/cos x)']) sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4), axes_labels=['y','x=arcsin(-y/sinh y)'],color='red') sa

[sage-support] Re: graphics_array only shows axes labels on final plot

2012-10-17 Thread P Purkayastha
On 10/17/2012 11:52 PM, Dan Drake wrote: Hello, I did sage: p = plot(arccosh(x/cos(x)), (x,5,6), axes_labels=['x','y=arccosh(x/cos x)']) sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4), axes_labels=['y','x=arcsin(-y/sinh y)'],color='red') sage: graphics_array([p, q]).show() and expec

[sage-support] Re: graphics_array only shows axes labels on final plot

2012-10-17 Thread kcrisman
On Wednesday, October 17, 2012 11:52:54 AM UTC-4, Dan Drake wrote: > > Hello, > > I did > > sage: p = plot(arccosh(x/cos(x)), (x,5,6), > axes_labels=['x','y=arccosh(x/cos x)']) > sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4), > axes_labels=['y','x=arcsin(-y/sinh y)'],color='red')

[sage-support] graphics_array only shows axes labels on final plot

2012-10-17 Thread Dan Drake
Hello, I did sage: p = plot(arccosh(x/cos(x)), (x,5,6), axes_labels=['x','y=arccosh(x/cos x)']) sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4), axes_labels=['y','x=arcsin(-y/sinh y)'],color='red') sage: graphics_array([p, q]).show() and expected to see my axes labels on both plots --