Re: [sage-support] Re: Phase Space 3D

2015-01-03 Thread William Stein
On Sat, Jan 3, 2015 at 5:46 PM, kcrisman wrote: > > > On Saturday, January 3, 2015 8:27:47 PM UTC-5, VIJAY BHASKAR SEMWAL فيجاي > بهاسكار wrote: >> >> can you help me to plot such plot >> >>> > > You seem to want a box plot. See > https://groups.google.com/forum/#!topic/sage-support/PM9FY1vigX8 o

[sage-support] Re: Phase Space 3D

2015-01-03 Thread kcrisman
On Saturday, January 3, 2015 8:27:47 PM UTC-5, VIJAY BHASKAR SEMWAL فيجاي بهاسكار wrote: > > can you help me to plot such plot > > >> You seem to want a box plot. See https://groups.google.com/forum/#!topic/sage-support/PM9FY1vigX8 or search the internet for "box plot sage", you should find s

[sage-support] Re: Phase Space 3D

2015-01-03 Thread VIJAY BHASKAR SEMWAL فيجاي بهاسكار
can you help me to plot such plot On Thursday, 18 October 2012 18:14:01 UTC+5:30, Doaa El-Sakout wrote: > > Hi everyone, > I would like to know, how can I plot phase space in 3D using SAGE. > When I Google it, I found it using Matlab. > > Any suggestions, > Doaa > -- You received this messa

Re: [sage-support] sage-mode installation finished, but isn't working?

2015-01-03 Thread Ivan Andrus
Sorry it took so long to reply. If it’s any consolation my vacation was nice. :) > On Dec 29, 2014, at 12:18 PM, Dan Drake wrote: > > Hello, > > I'm not sure sage-mode is properly loading. I did "sage -i sage_mode" > but it didn't seem to install correctly. Log is attached, but I don't > see

Re: [sage-support] Complete Weight Enumerator of Linear Codes

2015-01-03 Thread Sihuang Hu
It works. Thanks a lot. Sihuang 在 2015年1月3日星期六UTC+1下午7时55分52秒,vdelecroix写道: > > Hi Sihuang, > > I see. I do not have magma, so my solution is certainly not optimal > but you can do a three steps conversion > > magma polynomial -> > string in $.1, $.2, $.3 and $.4 -> > string in e, f, g, h ->

Re: [sage-support] Re: Iteration in boolean polynomial ring

2015-01-03 Thread Vincent Delecroix
I see. It would be better/safer to keep x1, ..., xn for the variables of the ring and use other variables for your sequence. One solution is to put the values into a tuple and use the syntax f(*X) to expand your tuple as different argument into a function. Here is a precise example sage: R. = Boo

Re: [sage-support] Complete Weight Enumerator of Linear Codes

2015-01-03 Thread Vincent Delecroix
Hi Sihuang, I see. I do not have magma, so my solution is certainly not optimal but you can do a three steps conversion magma polynomial -> string in $.1, $.2, $.3 and $.4 -> string in e, f, g, h -> polynomial To create the polynomial from a string it works out of the box sage: R. = PolynomialR

[sage-support] Re: Iteration in boolean polynomial ring

2015-01-03 Thread Dibyendu Roy
Actually i want do the following thing: first i want to define n boolean variables say x1,xn then i want to update each variable by a function of x1,x2.,xn in each step. That means in first step x1 will be updated by an boolean expression of x1,,xn. second step also it will be updat

Re: [sage-support] Complete Weight Enumerator of Linear Codes

2015-01-03 Thread Sihuang Hu
Hi, Vincent. What I want to do is to get a polynomial which is in the polynomial ring R. = PolynomialRing(ZZ, 4). Do you know how to do this? Thanks, Sihuang 在 2015年1月3日星期六UTC+1下午4时05分08秒,vdelecroix写道: > > Hello, > > If it is just a matter of display you can use the method .replace() of > st

Re: [sage-support] Complete Weight Enumerator of Linear Codes

2015-01-03 Thread Vincent Delecroix
Hello, If it is just a matter of display you can use the method .replace() of strings sage: sage: initial_string = "$.1 + 3 $.2" sage: sage: initial_string.replace("$.1", "e").replace("$.2", "f") 'e + 3 f' You can also have a look at http://stackoverflow.com/questions/6116978/python-replace-mult

Re: [sage-support] Iteration in boolean polynomial ring

2015-01-03 Thread Vincent Delecroix
Hi, x(1), x(0) or y(0) can not be variable names. A valid variable name can be x1 or x_1 or many variations but no parenthesis. Parenthesis are reserved for function calls. Note that the error message you get is relatively explicit. You can do sage: from polybori import * sage: R = declare_ring(

[sage-support] Complete Weight Enumerator of Linear Codes

2015-01-03 Thread Sihuang Hu
Hi, I found that Sage is not able to compute the Complete Weight Enumerator of Linear Codes. So I load magma to compute it: sage: k. = GF(2**2) sage: MS = MatrixSpace(k,4,7) sage: G = MS([[1,1,1,0,0,0,0], [1,0,0,1,1,0,0], [0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]) sage: C = LinearCode(G) sage: magma.C

[sage-support] Iteration in boolean polynomial ring

2015-01-03 Thread Dibyendu Roy
I am learning sage for first time. I want to do iteration in boolean polynomial ring. sage: from polybori import * sage: declare_ring([Block('x',177),Block('y',2)],globals()) sage: r sage: x(1)=x(0)*y(0) Its showing me following error ValueError: Argument names should be valid python identifie