[sage-support] Re: sagetex documentation

2013-03-09 Thread Johan Grönqvist
2013-03-09 16:41, John Cremona skrev: According to the online documentation at http://www.sagemath.org/doc/installation/sagetex.html the documentation for sagetex is in SAGE_ROOT/local/share/texmf/tex/generic/sagetex/sagetexpackage.pdf but in my installation of Sage-5.7 that files does not exist

[sage-support] Re: Problem with sagemath torrents

2013-03-06 Thread Johan Grönqvist
2013-03-06 15:50, bgodard skrev: I have tried several times to get sagemath from torrent for Ubuntu 12.04 64 bits. Also Fedora torrents give me problems: according to Transmission (torrent client), there is no file in that torrent. I don't usually have any problems with this client, so I expect

[sage-support] Re: The matrix function

2012-10-21 Thread Johan Grönqvist
2012-10-21 22:24, E. Mehmet Kıral skrev: I understand that for the identity matrix there are other methods. But I do get the same error message for simply matrix(2) which according to the manual matrix?, should give me the 2by2 zero matrix. Or I get the same error when I try to construct a

[sage-support] Re: Problems with Pre-built sage binaries 5.1 on Debian(Testing)

2012-07-25 Thread Johan Grönqvist
2012-07-25 07:31, Daniel M. skrev: python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found My OS is a Debian Testing with the Linux kernel 3.2.0-3-amd64 (wheezy) Debian testing uses glibc version 2.13. The binary package built for ubuntu appears to ask for version 2.14, which

[sage-support] Re: Components of Points

2012-05-12 Thread Johan Grönqvist
2012-05-12 21:54, raman kurdi skrev: Hi, I need a command which separate the components of points. For example let P=(2,4). I need the first component of this point. Could you please help me? sage: P=(2,4) sage: P[0] 2 sage: P[1] 4 / johan -- To post to this group, send email to

[sage-support] Re: ./sage -docbuild ?

2012-05-07 Thread Johan Grönqvist
2012-05-07 22:28, Kjetil brinchmann Halvorsen skrev: kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf [...] ! LaTeX Error: File `utf8x.def' not found. [...] ! == Fatal error occurred, no output PDF file produced! That command works on my wheezy, but I do not have that file

[sage-support] Re: sage 5.0 rc0

2012-05-06 Thread Johan Grönqvist
2012-05-07 04:16, Kjetil brinchmann Halvorsen skrev: Do you use anything that may affect sage's ability to open ports? My problem with answering is that I don't really know anything about ports . I guess that has something to do with networking, but nbothing more! Any hints about

[sage-support] Re: sage 5.0 rc0

2012-05-05 Thread Johan Grönqvist
I hope others try to answer as well, as I probably do not know enough to help you solve it. 2012-05-05 21:37, Kjetil brinchmann Halvorsen skrev: File /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.py, line 134, in find_next_available_port raise RuntimeError, no

[sage-support] Re: sage 5.0 rc0

2012-05-04 Thread Johan Grönqvist
2012-05-05 02:35, Kjetil brinchmann Halvorsen skrev: I downloaded the rc0 for sage 5.0, compiled without problems, and then run make test Worked for me. The following tests failed: sage -t -force_lib devel/sagenb-main/sagenb/misc/misc.py sage -t -force_lib

[sage-support] Re: Periodic inabilitity of sin()

2012-04-22 Thread Johan Grönqvist
2012-04-22 14:39, Duc Trung Ha skrev: Am I missing something or is this behavior rather peculiar: sage: bool(sin(x) == sin(x+2*pi)) True ...however: plot(sin(x) - sin(x+2*pi)) gives out the result: [plot showing inaccuracies of floats] I typed this instead, and got a nice line at 0:

[sage-support] Re: bash: sage: command not found

2012-03-30 Thread Johan Grönqvist
2012-03-30 16:46, Felipe Torres skrev: I recently installed sage on a server and it works because when I go to /usr/local/sage I run ./sage and it runs, but if I want to use it to compile a sage based file it says: bash: sage: command not found [root@localhost sage]$ sage bash: sage:

[sage-support] Re: 'plotjoined=False' puts the plot to back

2012-01-10 Thread Johan Grönqvist
2012-01-10 23:19, v...@ukr.net skrev: But setting the 'plotjoined' parameter to False puts them to the back, the theoretical curve overlaps them, and some of them are not visible. In any case, could somebody please tell me how to get the desired result in Sage? I seem to succeed by

[sage-support] Re: is there assumptions in solve()?

2011-02-19 Thread Johan Grönqvist
2011-02-18 21:11, Dmitry Shkirmanov skrev: I tried it and received wrong answer. Let's consider for example the code: # reset() forget() var(a,b,c,d,f) assume(a-b0) expr=(a^2-b^2)*f expr2=sqrt(expr) print(expr2.full_simplify()) # It gives sqrt(a - b)*sqrt(a + b)*sqrt(f) But a-b0, so expression

[sage-support] Re: simplify and sqrt

2011-01-26 Thread Johan Grönqvist
2011-01-26 09:14, Minh Nguyen skrev: On Wed, Jan 26, 2011 at 6:41 PM,xl...@free.fr wrote: sage: sqrt(2)*sqrt(3)-sqrt(6) sqrt(2)*sqrt(3)-sqrt(6) I would expect results sqrt(6) and 0... I try with the command simplify() but it doesn't do anything. In the above Sage session, you declared two

[sage-support] Re: A question about numpy?

2010-12-15 Thread Johan Grönqvist
2010-12-15 14:16, liji.ma...@gmail.com skrev: import numpy as np A = np.mat([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print A[:, 1].shape for i in range(0, 3): print A[:, i].shape the result is (1, 3) (3, 1) (3, 1) (3, 1) Works for me... jo...@johan-laptop:~$ cat test.py import numpy as np A

[sage-support] Re: Getting a mirror image of a matrix

2010-07-07 Thread Johan Grönqvist
2010-07-07 09:10, Kwankyu skrev: Does Sage have a command to get the mirror image matrix [3,2,1] [6,5,4] from the matrix [1,2,3] [4,5,6] Like this? sage: m = Matrix([[1,2,3],[4,5,6]]) sage: m [1 2 3] [4 5 6] sage: m2 = m[::, ::-1] sage: m2 [3 2 1] [6 5 4] / johan -- To post to this