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
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
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
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
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
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
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.
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:
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
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
==
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
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()
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
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,
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
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
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
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.
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
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
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
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
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)))
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.
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
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
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
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
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
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
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
31 matches
Mail list logo