[sage-support] Re: Callable Symbolic Functions

2011-08-02 Thread Maarten Derickx
It's mainly because a lot of things like the following should also work and the authors didn't want to add an exception in the special case where all variables have been assigned an input. sage: f=x^5 sage: f(x=f) x^25 sage: var(y) y sage: g=x*y sage: g(x=2) 2*y Note that the most important

[sage-support] Re: subtraction of variables with same units should not make the unit disappear

2011-08-02 Thread Maarten Derickx
According to the documentation http://www.sagemath.org/doc/reference/sage/symbolic/units.html the unit behave like elements from the symbolic ring, in which x-x will be replaced by 0. I considder this a bug since clearly you can add two elements only if the have the same unit, and the result

[sage-support] IOError: [Errno 2]

2011-08-02 Thread Dmitry Shkirmanov
Hello, i am using the latex's breqn package to show long outputs(in notebook). System is debian squeeze, version of Sage is 4.7. I typed %latex \begin{dmath*} \sage{latex(numDet)} \end{dmath*} and Sage returned: Traceback (most recent call last): File stdin, line 1, in module File

[sage-support] bug in solve_mod?

2011-08-02 Thread Johannes
Hi list, i just tried to solve a very simple congruences with solve_mod: x = var('x') eq = x + 1 == 0 res = solve_mod(eq,1) res == [()] true but in my eyes every x \in ZZ should be a valid solution. I'm just interested in the minimal one. On the otherside, in my case I cannot guaranty that the

[sage-support] Re: Bug in solve?

2011-08-02 Thread Maor
The same results also happen in Sage 4.7 on 64 bit Debian. var ('P X Y') solve ([(1/2) == -1/2*(2*P - 1)/Y + P/X, Y == 2*P*X/(2*P + 1), Y == P + 1/2], P,X,Y) On Jul 29, 10:52 pm, maor maor@gmail.com wrote: I tried to solve the following simple 3 equations with 3 variables: sage: var ('P X

[sage-support] Re: bug in solve_mod?

2011-08-02 Thread Maor
My guess: Quote from sage documentation: Warning The current implementation splits the modulus into prime powers, then... so 1 is considered a bad input. Also - there is only 0 in mod(1), so even if it worked - you would get 0. (the results are in Z_n not Z) Maor On Aug 2, 1:29 pm, Johannes

[sage-support] Re: bug in solve_mod?

2011-08-02 Thread kcrisman
On Aug 2, 10:16 am, Johannes dajo.m...@web.de wrote: Am 02.08.2011 15:36, schrieb Maor: My guess: Quote from sage documentation: Warning The current implementation splits the modulus into prime powers, then... so 1 is considered a bad input. this should be a two line fix i think.

[sage-support] Re: subtraction of variables with same units should not make the unit disappear

2011-08-02 Thread Stan Schymanski
Thanks for the confirmation, Maarten! Using my brain is not an option as it has very limited capacities when it comes to units... As you point out, addition or subtraction of different units should raise an error. I forwarded this to sage-devel here:

Re: [sage-support] Re: Use latex tags in variable names?

2011-08-02 Thread joonpy
That was exactly what I wanted. Thank you very much! Joon On Tue, Aug 2, 2011 at 12:44 AM, John H Palmieri jhpalmier...@gmail.comwrote: On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote: Hi, I just started using Sage, and I have a question about variable names. I skimmed through the

[sage-support] Re: subtraction of variables with same units should not make the unit disappear

2011-08-02 Thread Maarten Derickx
I thought a bit longer about it, and I actually think it's not really a big bug. It think the way the units system is meant to be used is like this: sage: var(H_l, h_c,T_a,T_l) (H_l, h_c, T_a, T_l) sage: sol=solve([H_l*units.energy.calorie/units.length.centimeter^2/units.time.minute ==

[sage-support] Re: Use latex tags in variable names?

2011-08-02 Thread John Cremona
On Aug 2, 4:16 pm, joonpy joonp...@gmail.com wrote: That was exactly what I wanted. Thank you very much! Note that you could have discovered this feature by typing var? and looking at the examples there. John Joon -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Sage launching a lot of processes

2011-08-02 Thread VictorMiller
Yesterday I started up sage 4.6.2 on one of our compute servers, started the notebook interface, and connected to from firefox on my workstation. I started up a notebook session, where I constructed a particular elliptic curve over GF(2^351), and a point on it. I (unwisely) tried P1.order()

[sage-support] decorators

2011-08-02 Thread VictorMiller
Is there any documentation for the decorators that are available in Sage? I couldn't find anything about them in the reference manual? -- 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

[sage-support] start-up time in sage scripts

2011-08-02 Thread samontab
Hi, First of all, Sage is awesome, thanks for putting everything together and making this happen... I have a problem though, I would like to use Sage for many small calculations on demand. This is fine if I am using Sage manually, but when I want to automate these calculations creating scripts,

Re: [sage-support] Re: Use latex tags in variable names?

2011-08-02 Thread Joon Ro
I actually found Sage's documentation hard to follow. This ? business looks really helpful. Thanks for the tip again! -Joon On Tue, 02 Aug 2011 10:35:22 -0500, John Cremona john.crem...@gmail.com wrote: On Aug 2, 4:16 pm, joonpy joonp...@gmail.com wrote: That was exactly what I

Re: [sage-support] decorators

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 10:02 AM, VictorMiller victorsmil...@gmail.com wrote: Is there any documentation for the decorators that are available in Sage?  I couldn't find anything about them in the reference manual? Individual decorators have lots of documentation, but I'm not aware of a

Re: [sage-support] Sage launching a lot of processes

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 9:51 AM, VictorMiller victorsmil...@gmail.com wrote: Yesterday I started up sage 4.6.2 on one of our compute servers, started the notebook interface, and connected to from firefox on my workstation.  I started up a notebook session, where I constructed a particular

[sage-support] Tracking down a bug(?) in Cython

2011-08-02 Thread VictorMiller
I've written a bunch of functions (some organized in classes) to do some large computations in a particular finite field (always GF(2^n) for some odd n). This seems to work fine. I'd like the computation to be as fast as possible, so the first thing I did was to copy the .py file to a .pyx file.

Re: [sage-support] Tracking down a bug(?) in Cython

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 11:09 AM, VictorMiller victorsmil...@gmail.com wrote: I've written a bunch of functions (some organized in classes) to do some large computations in a particular finite field (always GF(2^n) for some odd n).  This seems to work fine.  I'd like the computation to be as

[sage-support] question about creating homomorphisms

2011-08-02 Thread Johannes
Hi list i need to construct two morphisms f:ZZ^n \to Z given by a diagonalmatrix and g: ZZ - Z/dZ because I have to find the kernel of the compositoin. consturcting g was no problem by g = ZZ.hom(ZZ.quotient(ZZ.ideal(d))) father, getting the kernel of f as matrix worked too. but how to get the

[sage-support] Re: extending the Expression class

2011-08-02 Thread Steven Pollack
Weirdly enough, I'm not sure if this is so important, after all. It might be cleaner to just define a more basic Class, which takes expressions as attributes. Doing arithmetic on these objects might get a little weird, but I'm sure the purpose of the object and the context of its creation will

[sage-support] magma interface problems

2011-08-02 Thread VictorMiller
I'm unable to get some magma output converted back into sage. This has to do with group invariants. Here's a script that produces the error sage: G =magma(SymmetricGroup(5)) sage: x = G.InvariantsOfDegree(2) sage: print x [ x1^2 + x2^2 + x3^2 + x4^2 + x5^2, x1*x2 + x1*x3 + x2*x3 + x1*x4 + x2*x4

Re: [sage-support] question about creating homomorphisms

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 12:21 PM, Johannes dajo.m...@web.de wrote: Hi list i need to construct two morphisms f:ZZ^n \to Z given by a diagonalmatrix and g: ZZ - Z/dZ because I have to find the kernel of the compositoin. consturcting g was no problem by g = ZZ.hom(ZZ.quotient(ZZ.ideal(d)))

Re: [sage-support] Published Worksheets do not get updated

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 1:55 PM, pong wypon...@gmail.com wrote: I have just found out that published worksheets do not get updated automatically even with Automatically re-publish when changes are made box checked. In fact, I can even get an update by clicking the re-publish worksheet button.

Re: [sage-support] magma interface problems

2011-08-02 Thread William Stein
On Tue, Aug 2, 2011 at 1:29 PM, VictorMiller victorsmil...@gmail.com wrote: I'm unable to get some magma output converted back into sage.  This has to do with group invariants.  Here's a script that produces the error sage: G =magma(SymmetricGroup(5)) sage: x = G.InvariantsOfDegree(2) What

[sage-support] Re: Published Worksheets do not get updated

2011-08-02 Thread pong
I'm glad to get the confirmation of the problem. We have upgraded our school server to the new version of the notebook. We like it and certainly don't want to go back. On Aug 2, 2:31 pm, William Stein wst...@gmail.com wrote: On Tue, Aug 2, 2011 at 1:55 PM, pong wypon...@gmail.com wrote: I

[sage-support] Re: Sums of Modular Symbols

2011-08-02 Thread jack
Doug has successfully cleared up my confusion off-list. I now have working code. Best wishes, Jack Fearnley -- 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

[sage-support] Re: magma interface problems

2011-08-02 Thread VictorMiller
Whoops, I was copying the lines manually. The line should have been sage: x = G.InvariantsOfDegree(GF(2),2) Victor On Aug 2, 5:32 pm, William Stein wst...@gmail.com wrote: On Tue, Aug 2, 2011 at 1:29 PM, VictorMiller victorsmil...@gmail.com wrote: I'm unable to get some magma output

Re: [sage-support] Tracking down a bug(?) in Cython

2011-08-02 Thread Robert Bradshaw
On Tue, Aug 2, 2011 at 11:29 AM, William Stein wst...@gmail.com wrote: On Tue, Aug 2, 2011 at 11:09 AM, VictorMiller victorsmil...@gmail.com wrote: I've written a bunch of functions (some organized in classes) to do some large computations in a particular finite field (always GF(2^n) for some

[sage-support] Re: Tracking down a bug(?) in Cython

2011-08-02 Thread VictorMiller
Robert, The .py and .pyx files are identical. I copied one to the other, and just in case I checked with diff. It's very puzzling. Victor On Aug 2, 8:19 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Aug 2, 2011 at 11:29 AM, William Stein wst...@gmail.com wrote: On Tue, Aug

[sage-support] Re: magma interface problems

2011-08-02 Thread VictorMiller
More bugs: sage: a = [ [[1,1],[0,1]], [[0,-1],[1,0]] ] sage: G = MatrixGroup([Matrix(_) for _ in a]) sage: Gm = magma(G) TypeError: Error evaluating Magma code. IN:_sage_[2]:=Matrix group over Integer Ring with 2 generators: [[[1, 1], [0, 1]], [[0, -1], [1, 0]]]; OUT: In file