[sage-support] Symbolic matrix algebra

2014-08-04 Thread Luigi Malagò
Hello sagers, i have a question about symbolic matrix algebra. i would like to simplify an expression where variables are matrices, without specifying how the matrices look like. is there any way to do that in sage? for example: i would like A + A = 2A where A is my variable, without entering v

[sage-support] Re: how to cancel a multi-line incomplete Sage command at the command-line?

2014-08-04 Thread Nils Bruin
On Monday, August 4, 2014 1:49:42 PM UTC-7, John H Palmieri wrote: > > > I can complete the command (by typing ")" then RET), and it will execute > and give me an error because "basis" doesn't take any arguments. Or I can > type "]" then RET and get a SyntaxError. Is there any way to get back to

[sage-support] Help with SU(2) algebras

2014-08-04 Thread jamesraynolds via sage-support
This is a problem involving polynomials of SU(2) operators (or matrices) multiplied by scalar variables (e.g. x, y, etc.). I'm trying to do something that I think should be relatively simple. It is a physics problem involving two spins A and B that are represented by components (Ax,Ay,Az) and (

[sage-support] Re: how to cancel a multi-line incomplete Sage command at the command-line?

2014-08-04 Thread Simon King
Hi John, On 2014-08-04, John H Palmieri wrote: > Is there any way to get back to > the Sage prompt without executing the command? > > Should we be configuring IPython or readline or something differently to > allow this? +1 I find this new behaviour of ctrl-c quite annoying. There should be

[sage-support] how to cancel a multi-line incomplete Sage command at the command-line?

2014-08-04 Thread John H Palmieri
Suppose I'm at the Sage command line and I type sage: V = QQ^4 sage: V.basis I am immediately returned to the Sage prompt, with a "KeyboardInterrupt" message. Great, just what I want. Now suppose I do sage: V = QQ^4 sage: V.basis(0 and then I hit return. (I meant to type ")"

Re: [sage-support] Re: Running multiple sage sessions because of memory issues

2014-08-04 Thread William A Stein
On Mon, Aug 4, 2014 at 12:08 PM, Kevin Buzzard wrote: > Ooh I'm _really_ glad I asked now. Many thanks William. > > The first time I wanted such a loop, I was beta testing your magma modular > symbols code in 2000 or so :-) I discovered the programming language Python around then in order to scri

[sage-support] Re: Running multiple sage sessions because of memory issues

2014-08-04 Thread Kevin Buzzard
Ooh I'm _really_ glad I asked now. Many thanks William. The first time I wanted such a loop, I was beta testing your magma modular symbols code in 2000 or so :-) Kevin On Monday, 4 August 2014 15:01:05 UTC+1, William wrote: > > On Mon, Aug 4, 2014 at 5:11 AM, Kevin Buzzard > wrote: > > TL;DR:

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
> I encourage you to read the source code of this @parallel stuff -- > it's only about 2 pages of actual code, > which I wrote at some Sage days as my project back in maybe 2008. Will do, thanks again! -- You received this message because you are subscribed to the Google Groups "sage-support" g

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread William A Stein
On Mon, Aug 4, 2014 at 8:48 AM, Christian Stump wrote: > Thanks, William! > >> It absolutely will use two additional *processes*, as you might see by >> watching with htop, top, or using ps. > > Is it right that the master process is creating all the subprocesses? > I'd suspect I don't quite see t

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
Thanks, William! > It absolutely will use two additional *processes*, as you might see by > watching with htop, top, or using ps. Is it right that the master process is creating all the subprocesses? I'd suspect I don't quite see the other processes in action simply because they are there only fo

Re: [sage-support] is it possible to keep writing y(x) instead of just y in differential equations?

2014-08-04 Thread Dr. David Kirkby
On 4 August 2014 04:56, Nasser M. Abbasi wrote: > I am a sage newbie so please be easy on me. Nasser, Others may not know this, but I know you are an expert in Mathematica, as I recall your name from the Mathematica forums. I see you now have 38 demonstrations on the Wolfram Research site. http

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread William A Stein
On Mon, Aug 4, 2014 at 2:38 AM, Christian Stump wrote: > Hi there, > > I wonder how to parallelize the following scenario. > > I have a method that initiates a (not very simple) data strucure and then > runs a for-loop (of, say, length 1,000-20,000) to populate that data > structure with data. The

[sage-support] Re: Running multiple sage sessions because of memory issues

2014-08-04 Thread William
On Mon, Aug 4, 2014 at 5:11 AM, Kevin Buzzard wrote: > TL;DR: I am going to write a bash loop which loops through 1<=N<=1 and > feeds the number N into a function in a sage session, one session per N. Has > anyone written a robust way of doing this already? Yes, I implemented a robust way t

[sage-support] Re: 6.2 build error: rl_signal_event_hook

2014-08-04 Thread Volker Braun
Delete the readline libraries that Sage built (local/lib/libreadline*) On Monday, August 4, 2014 1:54:34 PM UTC+1, Johan S. R. Nielsen wrote: > > Hi everyone, > When building Sage 6.2, I'm getting the following error in NTL and GFanh: > symbol lookup error: sh: undefined symbol: rl_signal_event

[sage-support] 6.2 build error: rl_signal_event_hook

2014-08-04 Thread Johan S. R. Nielsen
Hi everyone, When building Sage 6.2, I'm getting the following error in NTL and GFanh: symbol lookup error: sh: undefined symbol: rl_signal_event_hook In the case of GFan it comes a hundred times, like so: ... ln -s gfan gfan_groebnercone sh: symbol lookup error: sh: undefined symbol: rl_

[sage-support] Re: Running multiple sage sessions because of memory issues

2014-08-04 Thread kcrisman
TL;DR: I am going to write a bash loop which loops through 1<=N<=1 and > feeds the number N into a function in a sage session, one session per N. > Has anyone written a robust way of doing this already? > > This may be naive, but would using the parallel module be helpful? Is this a mas

[sage-support] Running multiple sage sessions because of memory issues

2014-08-04 Thread Kevin Buzzard
TL;DR: I am going to write a bash loop which loops through 1<=N<=1 and feeds the number N into a function in a sage session, one session per N. Has anyone written a robust way of doing this already? Gory details: I have memory man

[sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
Hi there, I wonder how to parallelize the following scenario. I have a method that initiates a (not very simple) data strucure and then runs a for-loop (of, say, length 1,000-20,000) to populate that data structure with data. The computations in each loop is not trivial, but fairly optimized u

[sage-support] Re: is it possible to keep writing y(x) instead of just y in differential equations?

2014-08-04 Thread kcrisman
> > >>> The underlying package, maxima, doesn't exhibit this tolerant behaviour: >> >> (%i10) desolve(diff(y(x),x)+y(x)=1,y(z)); >> desolve: can't handle this case. >> >> however, as you can see when you type "desolve??" (which shows the >> source), the sage implementation does a lot of

[sage-support] Re: is it possible to keep writing y(x) instead of just y in differential equations?

2014-08-04 Thread Nasser M. Abbasi
On Monday, August 4, 2014 2:12:28 AM UTC-5, Nils Bruin wrote: > > On Sunday, August 3, 2014 11:53:00 PM UTC-7, Nasser M. Abbasi wrote: >> >> But the answer makes no sense. So what is the role of y(z) in here? If I >> omit the second argument, it complains >> > > The question you ask of sage does

[sage-support] Re: is it possible to keep writing y(x) instead of just y in differential equations?

2014-08-04 Thread Nils Bruin
On Sunday, August 3, 2014 11:53:00 PM UTC-7, Nasser M. Abbasi wrote: > > But the answer makes no sense. So what is the role of y(z) in here? If I > omit the second argument, it complains > The question you ask of sage doesn't really make sense either, so it's perhaps not worth really worrying ab