[sage-support] Re: Associated coroot depending on space

2011-05-13 Thread Jason Bandlow
I'm forwarding to the sage-combinat group, where the people who know this code well have a better chance of seeing it. On 05/12/2011 06:19 PM, Matthias wrote: Hi, i don't really know whether this is a bug, but at least it seems a bit odd to me (are alphacheck supposed to have different

[sage-support] Re: Ring Problem

2011-01-06 Thread Jason Bandlow
And two fewer than that... sage: Zmod(5) Ring of integers modulo 5 (Sorry, couldn't resist.) On 01/04/2011 11:33 AM, Volker Braun wrote: You can even shave off two more key strokes and type: sage: ZZ.quo(5) Ring of integers modulo 5 :-) -- To post to this group, send email to

[sage-support] Re: creating a test environment

2010-09-29 Thread Jason Bandlow
On 09/29/2010 01:47 PM, Johannes wrote: Hi list, is it possible to create in a given environment in sage a new one, which know all in the parent defined variables and values, and i i leave it again, ijust get back to my old values? Is this what you're looking for?

[sage-support] Re: Implication

2010-09-03 Thread Jason Bandlow
Hello, For polynomial equations, the following should work in general. sage: R.x,y = CC['x','y'] sage: f = x-y sage: g = x^2 - y^2 sage: I = R.ideal([f]).radical() sage: g in I True In general, to see if the equation g == 0 is implied by the equations f1==0, f2==0, ..., fn==0 you can do I =

[sage-support] Re: quickhand vector

2010-09-01 Thread Jason Bandlow
I'm not sure I completely understand your question, but maybe this response will contain all the ingredients you need. First, since you are working with polynomials, I suggest creating a polynomial ring in the variables x and y, and then your polynomial f. sage: R.x,y = QQ['x,y'] sage: f = 3*x^2

[sage-support] Re: quickhand vector

2010-08-31 Thread Jason Bandlow
Is this what you want? sage: v = vector(2^i for i in xrange(1,10)) sage: print v (2, 4, 8, 16, 32, 64, 128, 256, 512) -Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more

[sage-support] Re: numerical evaluation

2010-08-23 Thread Jason Bandlow
Hi, On 08/23/2010 03:42 PM, robin hankin wrote: I tried this: roots = solve(x^3+10*x^2+11*x+8==0,x) SNIP The best I can do is N(roots[1].rhs()) but this is just one at a time. How do I make N() operate on all of roots? You may like for r in roots: print N(r.rhs()) or

[sage-support] Re: Permutations with itertools.chain

2010-04-14 Thread Jason Bandlow
Hello, I think this is normal. Perhaps you meant the following (note the * which expands the single argument into its components): sage: for x in itertools.chain(*itertools.imap(Permutations,range(4))): print x [] [1] [1, 2] [2, 1] [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1]

[sage-support] Re: Inverses of Large Sparse Matrices

2010-04-09 Thread Jason Bandlow
Leo Maloney wrote: I'm trying to compute the inverse of a 5000 x 5000 sparse matrix. I'm getting an EOF error after it runs for about 5 hours, and then it states that sage is trying to access unallocated memory. Is there a way I can increase the memory for this computation? Every time I

[sage-support] Re: Substitution

2010-01-21 Thread Jason Bandlow
Hi, I think what Minh was trying to say is that these lines: Stochastix wrote: sage: a=lambda x: alpha*x-mu1+mu2 sage: f=lambda x: (a(x)*b-c+sqrt((a(x)*b-c)^2+4.0*a(x)*b*r*mu1))/(2*a (x)*mu1) sage: g=lambda x: (r+l-mu1*f(x))/mu2 sage: prev=lambda x: f(x)/(f(x)+g(x)) sage: k=lambda x:

[sage-support] Re: Removing objects from lists; keeping original list unchanged?

2009-06-08 Thread Jason Bandlow
Alasdair wrote: This is more of a python question than a Sage question, but anyway...I'm trying to iterate over a list, producing a sequence of new lists, each of which is obtained from the original list by deleting one object. I've tried: for x in lst: lstc=copy(lst) print

[sage-support] sagenb appears to be down...

2009-05-25 Thread Jason Bandlow
...or is it just me? TIA, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Re: sagenb appears to be down...

2009-05-25 Thread Jason Bandlow
William Stein wrote: On Mon, May 25, 2009 at 4:58 PM, Jason Bandlow jband...@gmail.com wrote: ...or is it just me? it's indeed down. I'll restart all the sagenb servers right now. They'll be back in 5 minutes. Thanks! -Jason

[sage-support] Re: characters of the symmetric group

2009-05-13 Thread Jason Bandlow
David Joyner wrote: On Tue, May 12, 2009 at 6:43 PM, amps arat...@gmail.com wrote: I see that there is a function to compute the character table of the symmetric group, but is there one where you input two partitions and it outputs the value of the character indexed by the first partition

[sage-support] Re: Strange behavior on sagenb

2009-03-28 Thread Jason Bandlow
William Stein wrote: On Thu, Mar 26, 2009 at 8:50 AM, Jason Bandlow jband...@gmail.com wrote: Hi all, When I start up a clean version of sage 3.4 on my local machine and enter the following into a notebook cell: M=load('http://www.math.upenn.edu/~jbandlow/sage_data

[sage-support] Strange behavior on sagenb

2009-03-26 Thread Jason Bandlow
Hi all, When I start up a clean version of sage 3.4 on my local machine and enter the following into a notebook cell: M=load('http://www.math.upenn.edu/~jbandlow/sage_data/dic_of_kst_to_G_cob_mats.sobj') # This object is a dictionary key = (1, Partition([1]),Partition([2])) print key in

[sage-support] Coercion problem

2009-03-21 Thread Jason Bandlow
works: sage: a = float(1.0) sage: QQ(RR(a)) 1 I'm happy to open a ticket if that's the right thing to do here. Thanks, Jason Bandlow --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe

[sage-support] The preparser and nested loads

2009-03-21 Thread Jason Bandlow
at the moment. That way I only have to load one file at the start of my session. Any advice is much appreciated! Thanks, Jason Bandlow --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Re: Coercion problem

2009-03-21 Thread Jason Bandlow
Robert Bradshaw wrote: On Mar 21, 2009, at 9:06 AM, Jason Bandlow wrote: Hi all, Is the following missing coercion known? I couldn't find anything on trac, but there's a lot there related to coercion, so I may have missed it. sage: a = float(1.0) sage: QQ

[sage-support] Re: How to store a result of one Sage program in a text file or other type of File?

2009-03-02 Thread Jason Bandlow
specific about what 'save' does that does not work for you? Best, Jason Bandlow --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more

[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Jason Bandlow
Hi Matthew, Matthew J wrote: Sage is great software that I rave about in pretty much all of my classes except for probability theory. I’d like to get some info on a few topics to clear some things up so that I can use these for classes and to post to an examples worksheet. Thanks in advance

[sage-support] manipulating dictionaries (bug?)

2008-11-04 Thread Jason Bandlow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stan, I think I saw one question you asked that hasn't been answered yet: Stan Schymanski wrote: snip If I construct a list out of two other lists, I usually don't expect the original lists to change if I manipulate the resulting list. How

[sage-support] Bug in plot?

2008-09-26 Thread Jason Bandlow
Hi all, A student of mine noticed the following and it looks like a bug to me (at least with the documentation). From the notebook with 3.1.2 (sage prompts added for readability): sage: plot? File: /home/jason/sage/local/lib/python2.5/site-packages/sage/plot/plot.py Type:type

[sage-support] Maxima problems in sage 3.1.1

2008-09-15 Thread Jason Bandlow
Thanks Michael, Check your home directory for any file with an accent or Umlaut and you likely found the culprit you need to rename. This fixed the problem. Good luck with ecls. Cheers, Jason mabshoff wrote: On Sep 15, 6:34 pm, Jason Bandlow [EMAIL PROTECTED] wrote: Hello, I've

[sage-support] Doctest question

2008-04-15 Thread Jason Bandlow
Hello all, Regarding doctesting, I'd like to work with the following setup: 1. Create a file work.sage (or work.py) somewhere in my home directory. 2. Start a notebook session, and attach work.sage. 3. Use the notebook for generating and staring at data, while using a text editor to modify my

[sage-support] Re: Doctest question

2008-04-15 Thread Jason Bandlow
William Stein wrote: On Tue, Apr 15, 2008 at 9:11 AM, Jason Bandlow [EMAIL PROTECTED] wrote: Hello all, Regarding doctesting, I'd like to work with the following setup: 1. Create a file work.sage (or work.py) somewhere in my home directory. 2. Start a notebook session, and attach