How to install latest sage version on window 7 + Question following the online sage tutorial guide

21 views
Skip to first unread message

leu...@gene.com

unread,
Apr 15, 2014, 2:36:26 AM4/15/14
to sage-s...@googlegroups.com
Hi, 

Q1: Can anyone tell me how to install the latest sage on window 7?  I am using virtual box with sage 5.1.3  This is the latest version posted on the sage math website link for window installation.  If I want to use the 6.1.1, what can I do?  I have only used window with no programming experience. 


Q2: I tried to follow the online sage tutorial (http://www.sagemath.org/doc/tutorial/tour_algebra.html).  The session of using maxima to do laplace transform.  I copied the exact command
de1 = maxima("2*diff(x(t),t, 2) + 6*x(t) - 2*y(t)")
lde1 = de1.laplace("t","s"); lde1

but it does not work in my 5.1.3 virtual box version. Why is that? See the attach jpg for the error.  I cannot find where is my syntax error.  I tried to define s and t as variable first but it does not help either.  I do not know what syntax error I made....

error message:
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "_sage_input_7.py", line 10, in <module>
      exec compile(u'open("__code__.py","w"),write("# -*- coding: utf-8 -*- ...................I skip typing the rest
   File "", line 1, in <module>

   File "/tmp/tmpQapKht/__code__.py", line 3
      del = maxima("2*diff(x(t),t,2)+6*x(t)-2*y(t)")
          ^
SyntaxError: invalid syntax

besides, where can I find a good source of learning sage besides the tutorial? I need a tutorial that explain the code line by line.  In particular, I want to learn the different ploting technique in sage, again with line by line explanation of syntax.  I tried google but nothing comes in systematically...

I read the unfinished sage for newbie book by Ted Kosan, which is very useful because he explained the syntax line by line.  Unfortunately he did not finish this book...

Thank you

leif

unread,
Apr 15, 2014, 11:28:04 AM4/15/14
to sage-s...@googlegroups.com
leu...@gene.com wrote:
> Q2: I tried to follow the online sage tutorial
> (http://www.sagemath.org/doc/tutorial/tour_algebra.html). The session
> of using maxima to do laplace transform. I copied the exact command
>
> de1 = maxima("2*diff(x(t),t, 2) + 6*x(t) - 2*y(t)")
> lde1 = de1.laplace("t","s"); lde1
>
>
> but it does not work in my 5.1.3 virtual box version. Why is that? See
> the attach jpg for the error. I cannot find where is my syntax error.
> I tried to define s and t as variable first but it does not help
> either. I do not know what syntax error I made....
>
> error message:
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "_sage_input_7.py", line 10, in <module>
> exec compile(u'open("__code__.py","w"),write("# -*- coding: utf-8
> -*- ...................I skip typing the rest
> File "", line 1, in <module>
>
> File "/tmp/tmpQapKht/__code__.py", line 3
> del = maxima("2*diff(x(t),t,2)+6*x(t)-2*y(t)")
> ^
> SyntaxError: invalid syntax

Well, 'del' is a Python keyword ("delete"), so renaming the variable to
something else will probably work.


-leif

--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail

leif

unread,
Apr 15, 2014, 11:34:15 AM4/15/14
to sage-s...@googlegroups.com
P.S.: In the example you "copied", it's 'de1' (d--e--*one*), not 'del'.
Reply all
Reply to author
Forward
0 new messages