#7936: Calculus constructions mix explicit calls to maxima
-------------------------------+--------------------------------------------
   Reporter:  robertwb         |       Owner:  mvngu     
       Type:  defect           |      Status:  needs_info
   Priority:  major            |   Milestone:  sage-4.3.2
  Component:  documentation    |    Keywords:            
     Author:  Minh Van Nguyen  |    Upstream:  N/A       
   Reviewer:                   |      Merged:            
Work_issues:                   |  
-------------------------------+--------------------------------------------

Comment(by mvngu):

 Replying to [comment:8 wdj]:
 > I give a positive review to the first patch.

 I think the attachment
 
[http://trac.sagemath.org/sage_trac/attachment/ticket/7936/trac_7936-constructions.patch
 trac_7936-constructions.patch] is now superseded by #8132. No need to use
 that patch anymore.
 [[BR]][[BR]]


 > I don't understand the second patch. The instructions for patch 2 are
 just completely unclear to me.

 Without the attachment
 
[http://trac.sagemath.org/sage_trac/attachment/ticket/7936/trac_7936-desolvers.patch
 trac_7936-desolvers.patch] applied to the repository `examples/calculus`,
 I get an error when loading the file `desolvers.sage`:
 {{{
 [mv...@mod calculus]$ pwd
 /dev/shm/mvngu/sage-4.3.2.alpha1-sage.math/examples/calculus
 [mv...@mod calculus]$ ls
 desolvers.py    eulers_method.sage  newton_raphson.sage
 desolvers.sage  field_plot2d.sage   README.txt
 [mv...@mod calculus]$ ../../sage
 ----------------------------------------------------------------------
 | Sage Version 4.3.2.alpha1, Release Date: 2010-01-31                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: load "desolvers.sage"
 ------------------------------------------------------------
    File "<string>", line 147
      #maxima.eval(cmd)
                      ^
 SyntaxError: invalid syntax
 }}}
 Now apply the patch
 
[http://trac.sagemath.org/sage_trac/attachment/ticket/7936/trac_7936-desolvers.patch
 trac_7936-desolvers.patch] to the repository `examples/calculus` to
 resolve this syntax error:
 {{{
 [mv...@mod calculus]$ hg qimport http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/7936/trac_7936-desolvers.patch && hg qpush
 adding trac_7936-desolvers.patch to series file
 applying trac_7936-desolvers.patch
 now at: trac_7936-desolvers.patch
 [mv...@mod calculus]$ ../../sage
 ----------------------------------------------------------------------
 | Sage Version 4.3.2.alpha1, Release Date: 2010-01-31                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 sage: load "desolvers.sage"
 sage: des=["'diff(x(t),t)=-4*y(t)","'diff(y(t),t)=-x(t)"]
 sage: vars = ["t","x","y"]
 sage: desolve_system(des,vars)
 
[x(t)=(2*y(0)+x(0))*%e^-(2*t)/2-(2*y(0)-x(0))*%e^(2*t)/2,y(t)=(2*y(0)-x(0))*%e^(2*t)/4+(2*y(0)+x(0))*%e^-(2*t)/4]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7936#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to