OK, i get it now, checking the doc gives me the following answer :
sage: M=matrix([(1, -3, -1),(0, 1, 1),(-1, 2, 1)])
sage: R. = QQ[]
sage: P=X^2
sage: P.subs(M)
[ 2 -8 -5]
[-1 3 2]
[-2 7
How do you evaluate a matrix polynomial with Sage ? The obvious way doesn't
work :
sage: P=x^2
sage: P(x=4)
16
sage: M=matrix([(1, -3, -1),(0, 1, 1),(-1, 2, 1)])
sage: P(x=M)
--
Le jeudi 7 novembre 2013 18:19:39 UTC+1, John H Palmieri a écrit :
>
>
> sage: b._exact_value()
> a - 1 where a^2 - 2 = 0 and a in -1.414213562373095?
>
It is reassuring to see that we can recover the exact value! thanks
--
You received this message because you are subscribed to the Google G
Le jeudi 7 novembre 2013 18:28:31 UTC+1, Nils Bruin a écrit :
>
> On Thursday, November 7, 2013 9:00:36 AM UTC-8, ccandide wrote:
>>
>> I dont' understand why Sage is unable to give an exact expression for the
>> eigenvalues of the following matrix :
>&
I dont' understand why Sage is unable to give an exact expression for the
eigenvalues of the following matrix :
sage: A= matrix([[0,1],[1,-2]])
sage: [a for a,_,_ in A.eigenvectors_right()]
[-2.414213562373095?, 0.4142135623730951?]
The characteristic polynomial is very simple :
sage: A.charpo
Sage Notebook has nice editing capabilities allowing the user to create
rich style worksheets making a worksheet far more than a sequence of cells
input/output. Does the new sagecloud provide the same rich text features ?
How to import a sws file into a sageCloud worksheet ?
--
You received th
>
>
>
> The core Sage library is in the file spkg/standard/sage-5.6.spkg, so you
> can unpack that to see a lot of source code.
>
Great, exactly what I was looking for!
> (You can also browse the source code on-line at <
> http://trac.sagemath.org/sage_trac/browser>.)
>
I was aware of
I have downloaded Sage 5.6 source-code at
http://www.sagemath.org/download-source.html in order to review the Python
code written to implement the graph theory module. After decompressing, I
have been surprised to see that no python/Cython/C code was available, only
spkg files. I spotted a file
On 8 juin, 03:25, Bruce Cohen wrote:
> I installed this binary:
> sage-4.0-linux-Debian_GNU_Linux_4.0_etch-sse2-i686-Linux
> on my ubuntu 8.04 machine.
For information : wich processor ? how many RAM ?
--~--~-~--~~~---~--~~
To post to this group, send email
On 5 juin, 11:01, William Stein wrote:
> you are using " version gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7)". You might
> also increase available swap space.
!! I installed Ubuntu with no swap space :
$ top
top - 11:23:02 up 9:51, 6 users, load average: 1.68, 0.97, 0.57
Tasks: 119 total, 3 ru
On 5 juin, 10:53, William Stein wrote:
> Maybe you should install Python + sympy + numpy + matplotlib? That
> would give you programming, linear algebra, symbolic calculus, and
> programming.
OK but what about the interface ? The Sage Firefox interface is very
handy. And students accustomed t
On 5 juin, 09:42, William Stein wrote:
> So, build from source. It's easy.
I'm very unlucky with Sage :
- compiling it from sources doesn't work on my computer (I am going to
post a new thread about this).
- Windows binaries don't run on my computer as I explained here :
http://groups.goog
On 5 juin, 05:47, Robert Bradshaw
wrote:
> I'd recommend compiling from source, especially given a processor of
> that age (though it might take quite a while given your clockspeed).
"a processor of that age" ??? "your clockspeed" Pentium 4
(1.60GHz) + 512 MB ram is not
hardware for
I failed to install Sage 3.4.2 and I was hoping the last Sage 4.0
version would fix the problem.
Unfortunately, the install fails again with the same error message :
cand...@candide-desktop:~/sage-4.0-linux-Ubuntu_9.04-sse2-i686-Linux
$ ./sage
-
I'm not very lucky with the Sage software : binaries don't work under
Ubuntu (cf. my recent post on this forum) and, on the other and, under
Windows XP, I'm experimenting exactly the same problem as above. More,
under Ubuntu, sources don't compile without error. So I even cannot
try Sage, whatever
On 21 mai, 01:39, Minh Nguyen wrote:
> You don't need to run as root or using sudo. Try
>
> ./sage
>
> in the Sage root directory.
I still get the same error message.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To u
I try to install Sage on my computer by means of the pre-compiled
binaries : i downloaded the the tar.gz file from
http://www.sagemath.fr/linux/32bit/
for the 32 bits Ubuntu distribution and then I ran the sage script
file within a shell and i got the following :
cand...@candide-desktop:~/sage-
17 matches
Mail list logo