#16007: give solution constants of ODEs unique names
----------------------------+------------------------
       Reporter:  rws       |        Owner:
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.2
      Component:  calculus  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:  #8734     |     Stopgaps:
----------------------------+------------------------

Comment (by nbruin):

 Actually, these variables are very easy to recognize any way:
 {{{
 sage: function('f',x)
 f(x)
 sage: var('c')
 c
 sage: W=diff(f(x),x,x)-f(x)+c
 sage: V=diff(f(x),x)-f(x)+c
 sage: maxima_calculus(V).ode2(f(x),x)
 'f(x)=(c*%e^-x+%c)*%e^x
 sage: maxima_calculus(W).ode2(f(x),x)
 'f(x)=%k1*%e^x+%k2*%e^-x+c
 }}}
 As you can see, maxima creates these constants as `%c, %k1, %k2`, so
 there's no collision there. The collision only happens upon conversion
 back to sage. So we make the conversion more intelligent there wouldn't be
 an issue at all. Using `sage.interfaces.maxima_lib.max_to_sr` this would
 be fairly straightforward.

--
Ticket URL: <http://trac.sagemath.org/ticket/16007#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to