[sage-support] Re: Arrays of Boolean variables

2013-02-26 Thread Santanu Sarkar
Dear all, Using R.variable(), I can solve the first problem. On 27 February 2013 07:20, Santanu Sarkar wrote: > Dear all, >I need two arrays of Boolean variables. So I have written > > R=BooleanPolynomialRing(2,['x%d'%(i+1) for i in range > (1)]+,['y%d'%(i+1) for i in range (1)

Re: [sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Kannappan Sampath
1. OS = Ubuntu 12.04 2. Terminal Client - The default one: GNOME Terminal No, I don't have any customizations to IPython. No, it does not work even with sage -ipython. On Wed, Feb 27, 2013 at 9:44 AM, Jason Grout wrote: > On 2/26/13 6:10 PM, Kannappan Sampath wrote: > >> On Wed, Feb 27, 2013 a

[sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Jason Grout
On 2/26/13 6:10 PM, Kannappan Sampath wrote: On Wed, Feb 27, 2013 at 9:18 AM, Jason Grout mailto:jason-s...@creativetrax.com>> wrote: On 2/26/13 5:38 PM, Chad Williamson wrote: I for one agree that would be nice. Anybody have a reason this isn't done? I use ctrl+L q

Re: [sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Kannappan Sampath
On Wed, Feb 27, 2013 at 9:18 AM, Jason Grout wrote: > On 2/26/13 5:38 PM, Chad Williamson wrote: > >> I for one agree that would be nice. Anybody have a reason this isn't done? >> >> I use ctrl+L quite a bit when presenting things in bash, and I certainly >> miss it in sage -- enough to have throw

[sage-support] Re: Key-binding for clearing terminal Sage

2013-02-26 Thread Jason Grout
On 2/26/13 5:38 PM, Chad Williamson wrote: I for one agree that would be nice. Anybody have a reason this isn't done? I use ctrl+L quite a bit when presenting things in bash, and I certainly miss it in sage -- enough to have thrown this sort of ugly thing in a function: "import os; os.system('cl

Re: [sage-support] Key-binding for clearing terminal Sage

2013-02-26 Thread Chad Williamson
I for one agree that would be nice. Anybody have a reason this isn't done? I use ctrl+L quite a bit when presenting things in bash, and I certainly miss it in sage -- enough to have thrown this sort of ugly thing in a function: "import os; os.system('clear');" On Sun, Feb 24, 2013 at 2:14 PM, Ka

[sage-support] Arrays of Boolean variables

2013-02-26 Thread Santanu Sarkar
Dear all, I need two arrays of Boolean variables. So I have written R=BooleanPolynomialRing(2,['x%d'%(i+1) for i in range (1)]+,['y%d'%(i+1) for i in range (1)] ) R.inject_variables() Now in one array A, I want to store x1,..,x1 and in another array B want to store y1,..y1.

Re: [sage-support] Re: Extract only some elements from a set

2013-02-26 Thread Santanu Sarkar
Thank you very much. On 26 February 2013 18:52, Christophe BAL wrote: > Hello, > this is more a python question that a sympy question > > If L is the list [{x0:1, x1: 0, y0: 1}], then L[0] is the dictionnary > {x0:1, x1: 0, y0: 1}. Than you can try something like L[0]["x0"] or > L[0][x0]. > > H

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread Luis Finotti
On Tuesday, February 26, 2013 2:07:07 PM UTC-5, John H Palmieri wrote: > > > I think with the patch at , > Sage will read your file "~/.sage/ipython-0.12/profile_ > sage/ipython_config.py" correctly. > > The patch works for me! Thanks for your he

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread John H Palmieri
On Tuesday, February 26, 2013 9:32:03 AM UTC-8, John H Palmieri wrote: > > > > On Tuesday, February 26, 2013 8:52:39 AM UTC-8, Luis Finotti wrote: >> >> >> >> On Monday, February 25, 2013 2:09:48 PM UTC-5, John H Palmieri wrote: >>> >>> >>> Sage 5.7 included an upgrade to IPython, and the old IPy

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread John H Palmieri
On Tuesday, February 26, 2013 8:52:39 AM UTC-8, Luis Finotti wrote: > > > > On Monday, February 25, 2013 2:09:48 PM UTC-5, John H Palmieri wrote: >> >> >> Sage 5.7 included an upgrade to IPython, and the old IPython files were >> no longer compatible with the new version. So now Sage looks in >

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread Luis Finotti
On Monday, February 25, 2013 2:09:48 PM UTC-5, John H Palmieri wrote: > > > Sage 5.7 included an upgrade to IPython, and the old IPython files were no > longer compatible with the new version. So now Sage looks in > ~/.sage/ipython-0.12/ for configuration. > > -- > John > > Thanks for the repl

Re: [sage-support] Re: Extract only some elements from a set

2013-02-26 Thread Christophe BAL
Hello, this is more a python question that a sympy question If L is the list [{x0:1, x1: 0, y0: 1}], then L[0] is the dictionnary {x0:1, x1: 0, y0: 1}. Than you can try something like L[0]["x0"] or L[0][x0]. Hoping that this will help you. Best regards. Christophe. 2013/2/26 Santanu Sarkar

Re: [sage-support] Re: Extract only some elements from a set

2013-02-26 Thread Santanu Sarkar
Sorry, I can not understand the approach. Let I=[{x0:1, x1: 0, y0: 1}]. Suppose I want to find only x0 and x1. How is it possible? On 26 February 2013 16:37, akhil wrote: > > > On Tuesday, February 26, 2013 1:40:26 PM UTC+5:30, Santanu wrote: >> >> Dear all, >> I have a set non linear equat

[sage-support] Re: Extract only some elements from a set

2013-02-26 Thread akhil
On Tuesday, February 26, 2013 1:40:26 PM UTC+5:30, Santanu wrote: > > Dear all, > I have a set non linear equations over Boolean variables x_1,..., > x_{1}. > Sat solver gives I=[{x1: 0, x100: 1, .}]. I am interested to see only > the values > of x1,.., x100. Will you kindly help

[sage-support] Extract only some elements from a set

2013-02-26 Thread Santanu Sarkar
Dear all, I have a set non linear equations over Boolean variables x_1,..., x_{1}. Sat solver gives I=[{x1: 0, x100: 1, .}]. I am interested to see only the values of x1,.., x100. Will you kindly help me ? -- You received this message because you are subscribed to the Google Groups "