#16007: give solution constants of ODEs unique names
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.3
      Component:  calculus           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Ralf Stephan       |    Reviewers:  Nils Bruin, Karl-
Report Upstream:  N/A                |  Dieter Crisman
         Branch:                     |  Work issues:
  u/rws/ticket/16007                 |       Commit:
   Dependencies:                     |  884bc6841811077d55a9048d616cb973e313ef24
                                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by kcrisman):

 * status:  needs_review => needs_work


Comment:

 Is the line
 {{{
 sage: from sage.calculus.calculus import
 symbolic_expression_from_maxima_string as sefms
 }}}
 necessary in the doctest?  Though it doesn't hurt anything.

 ----

 {{{
 sage: sefms('%k1*x + %k2*y + %c')
 _K1*x + _K2*y + _C
 sage: _._latex_()
 '_{K_{1}} x + _{K_{2}} y + _{C}'
 }}}
 I have a feeling this is not what we are looking for, but I don't know how
 to deal with it best.  Presumably 'naked variables/constants' don't need
 to be subscripted in typesetting.

 One idea, which [http://sagemath.org/doc/prep/Programming.html#gotchas-
 from-names-and-copies mimics our handling of lambda], would be to make the
 constants have names `k1_` and `c_` instead.
 {{{
 sage: var('lambda_')
 lambda_
 sage: latex(_)
 \lambda
 sage: var('beta_')
 beta_
 sage: latex(_)
 \beta
 sage: var('k1_')
 k1_
 sage: latex(_)
 \mathit{k1}
 }}}
 Note that this is not what is desired either, since
 {{{
 sage: latex(k1)
 k_{1}
 sage: latex(k1_)
 \mathit{k1}
 sage: latex(c_)
 c
 }}}
 I don't know whether this is a good solution, but we do need proper
 typesetting of these guys.

--
Ticket URL: <http://trac.sagemath.org/ticket/16007#comment:29>
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