#20411: Injecting shorthands for the most usual units
---------------------------+----------------------------
   Reporter:  nthiery      |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-7.2
  Component:  symbolics    |         Keywords:
  Merged in:               |          Authors:
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+----------------------------
 Implement ``inject_shorthands`` that would inject into the global name
 space shorthands for the most usual units::

 {{{
     sage: units.inject_shorthands()
     sage: 3 * kg * m / s^2
     3*kilogram*meter/second^2
 }}}

 This can be implemented easily as in e.g.
 ``sage.combinat.sf.sf.SymmetricFunctions.inject_shorthands``, together
 with a dictionary mapping shorthands to the corresponding units.

 The main difficulty is to agree on a list of shorthands :-)

 Let's start a list: s, mm, cm, m, km, g, kg, ...;
 Maybe l, W, J, ...;
 Maybe long names for the less usual units: ton, watt, ...

 Or have something like:
 {{{
     sage: sage.units.mass.inject_shorthands(all=True)
 }}}
 that injects all the units with their long names.

--
Ticket URL: <http://trac.sagemath.org/ticket/20411>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to