[sage-support] Re: Cannot open Sage in VirtualBox (sagevm login?)

2014-03-18 Thread Volker Braun
On Sunday, March 16, 2014 4:03:34 PM UTC-4, Ivo Pezelj wrote: > > Before this appears, there are some messages that are not overly > motivating (like "Fast TSC calibration failed" and "SMBus base address > uninitialized"), but as I never used this before I don't know if they are > expected. > Th

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
Instead of *not(S == [])*, Python allows to simply use *not S*, and instead of *not(r == 0)* you can use *r != 0*, and lastly instead of *S = S + [r]* you can use *S.append(r)*, or *S += [r]* if you do not want to use OOP. Christophe BAL -- You received this message because you are subscribed to

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread etienne mann
Thanks a lot, I also write something simplier def Grob(G): S=[1] while not(S==[]): S=[]; for i in range(0,len(G)): for j in range(i,len(G)): r= AlgoDivis(spol(G[i],G[j]),G)[1]; if not(r == 0): S=S+[r];

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Martin Albrecht
You'd write it like this: sage: sage.rings.polynomial.toy_buchberger.buchberger?? G = set(F.gens()) B = set(filter(lambda (x,y): x!=y, [(g1,g2) for g1 in G for g2 in G])) while B!=set(): g1,g2 = select(B) B.remove( (g1,g2) ) h = spol(g1,g2).reduce(G)

[sage-support] Re: Cannot open Sage in VirtualBox (sagevm login?)

2014-03-18 Thread Eric Gourgoulhon
Hi, A friend of mine had exactly the same problem: the virtual machine shut down with "Caught signal 15" on Windows 8 64-bit. It seems that's because he installed the 32-bit version of VirtualBox. After installing the 64-bit version of VirtualBox (4.3.8), the problem disappeared and Sage works

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread etienne mann
Almost sure, you can look in the pdf page 3 http://www.maths.qmul.ac.uk/~whitty/LSBU/MathsStudyGroup/Buchberger.pdf It is exactly this one that I want to write. Naturally it is a repeat loop because you enter at least once in the loop. Le mardi 18 mars 2014 22:16:11 UTC+1, projetmbc a écrit : >

[sage-support] Use of Scipy weave in Sage

2014-03-18 Thread Jim Clark
Hello all, I would like to apply Scipy weave in Sage (i.e., call inline C code from Python). Instructions are at http://www.sagemath.org/doc/numerical_sage/weave.html When I copy the first example into a Sage Notebook cell, I get the following error traceback: In file included from /Applicati

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
Are sure of the validity of your algorithm because you "always" append element to the list S ? 2014-03-18 22:07 GMT+01:00 etienne mann : > I want to program the Buchberger algo to compute a grobner basis. I know > it is already in sage but for my students, I want them to rewrite it. > The loop i

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread etienne mann
I want to program the Buchberger algo to compute a grobner basis. I know it is already in sage but for my students, I want them to rewrite it. The loop is something like repeat: S=[]; for i in range(1,len(G)): for j in range(1,len(G)): r= AlgoDivisi

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
Hello, you have to learn Python a little before using Sage. In Python you just have while and for loops. What kind of repeat loop do you want to do ? Christophe BAL 2014-03-18 21:57 GMT+01:00 etienne mann : > Hi, > > I did not find a reference for programing a repeat loop in sage? > Of course

[sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread etienne mann
Hi, I did not find a reference for programing a repeat loop in sage? Of course, I can also use a while loop but it seems strange that there is no repeat loop :) thx for a clue Etienne -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubsc

Re: [sage-support] Re: Sagetex issues

2014-03-18 Thread sdermon
It worked! So now I know what to do: point to the right sage exec in the sage app folder lol! There are 2 and my simlink was pointing to the wrong one. Now texmaker does the job and I don't get the "??" anymore. Thanks a lot! Samuel Le mardi 18 mars 2014 21:44:23 UTC+1, kcrisman a écrit : > >

Re: [sage-support] Re: Sagetex issues

2014-03-18 Thread kcrisman
On Tuesday, March 18, 2014 1:17:12 PM UTC-4, Dan Drake wrote: > > Sorry for the delay in replying... > > On Thu, 13 Mar 2014 at 08:20AM -0700, sde...@gmail.com wrote: > > For the second method... I have been using TeXMaker > > for quite a while and I really like the GUI so... I don't know what

Re: [sage-support] Re: Sagetex issues

2014-03-18 Thread sdermon
I am gonna give you a headache hahaha New error : Process started 2014-03-18 21:35:24.278 Sage[1091:507] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting Process exited with error(s) I looked it up on the internet and apparently I can't use a

Re: [sage-support] modular symbols mod 3

2014-03-18 Thread William Stein
On Tue, Mar 18, 2014 at 12:31 PM, Kenneth A. Ribet wrote: > Hi Everyone, > > I'm getting what I perceive to be an error when I compute some spaces of > modular symbols mod 3. (Probably the same phenomenon occurs mod 2.) > Specifically: > > sage: N=7*13 > sage: for l in primes(20): > ...

[sage-support] modular symbols mod 3

2014-03-18 Thread Kenneth A. Ribet
Hi Everyone, I'm getting what I perceive to be an error when I compute some spaces of modular symbols mod 3. (Probably the same phenomenon occurs mod 2.) Specifically: sage: N=7*13 sage: for l in primes(20): ... ModularSymbols(Gamma0(N),2,base_ring=GF(l)).cuspidal_submodule().dimension(

Re: [sage-support] Standard Sage Compile Flags

2014-03-18 Thread Brian Wissman
Jeroen: Thank for the suggestion to use the SAGE_INSTALL_GCC=yes option, this solved most of the issues and lead me to a complete solution. The updated GCC version allowed sage to compile with correctly passing the -mtune and -march flags with the exception of the MPIR package. It would stil

[sage-support] Re: system of nonlinear equations

2014-03-18 Thread john_perry_usm
It looks as if there are infinitely many solutions. If you clear the denominators, you get polynomials, with which you can compute a lexicographical Gröbner basis of 15 elements (given below). The dimension of the corresponding ideal is 4, which is admittedly the dimension of the set of complex

Re: [sage-support] Re: Sagetex issues

2014-03-18 Thread Dan Drake
Sorry for the delay in replying... On Thu, 13 Mar 2014 at 08:20AM -0700, sder...@gmail.com wrote: > For the second method... I have been using TeXMaker > for quite a while and I really like the GUI so... I don't know what to do. > Should I switch to TeXShop only when I compile with sagetex ? Yo

Re: [sage-support] Readonly access to ask.sagemath.org

2014-03-18 Thread martin . vgagern
On Tuesday, March 18, 2014 2:30:53 PM UTC+1, William wrote: > > Would you be interested in taking the full existing data and getting it to > work in a clean ubuntu 12.04 VM? > I think the main thing this would require is patience and django knowledge. > Sorry, I lack the django knowledge. I'm op

Re: [sage-support] Readonly access to ask.sagemath.org

2014-03-18 Thread William Stein
On Tue, Mar 18, 2014 at 6:22 AM, wrote: > On Monday, March 17, 2014 5:37:23 PM UTC+1, William wrote: >> >> Sure if somebody will volunteer to configure this! > > > Would you grant the required privileges to a person you don't know? I don't > know what the current config looks like, but this doesn

Re: [sage-support] Readonly access to ask.sagemath.org

2014-03-18 Thread martin . vgagern
On Monday, March 17, 2014 5:37:23 PM UTC+1, William wrote: > > Sure if somebody will volunteer to configure this! > Would you grant the required privileges to a person you don't know? I don't know what the current config looks like, but this doesn't sound too difficult. So if you want to (and ar

[sage-support] system of nonlinear equations

2014-03-18 Thread Urs Hackstein
Dear all, I am dealing with the following system of nonlinear equations [R_1*S_2+S_1*R_2==-(1/2)*(T_1/T_4),S_1+S_2==-(1/2)*(T_3/T_4),R_1+R_2+4*S_1*S_2==(T_2/T_4),R_1*R_2==1/T_4] in the real variables R_1,R_2,S_1 and S_2. What is the best way to solve this system using Sage, if there is any? I trie

[sage-support] Re: Coercion between polynomial rings gives parent sympy.core.add.Add

2014-03-18 Thread Tristan
It's not that I get an error message, the problem is that the parent of g should be a multivariate polynomial ring rather than a sympy.core.add.Add class object. After copying my Python code into the worksheet rather than loading the file it works as expected, so I assume that changes the inter