-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So, i can do things like:
M = units.length.meter
S = units.time.second
speed = 2 * M/S
speed

and get:
2*meter/second

or (in typesetting mode):
\frac{2 \, \mbox{meter}}{\mbox{second}}

I have three problems with this.
1) Sage prints full names - "meter" instead of "m", and "second"
instead of "s".
There's a "dimpy" package that kind of fixes this, but i haven't been
able to coerce it to print correct units in more complex cases (like,
{kJ} over {kG cdot C}).

2) Units are in latin, and i have not been able to find a way to
localize their displaystrings. Dimpy does have set_dispname, but that
doesn't really work well with non-latin strings.

3) Back to typesetting - the value is typeset with 2 in numerator.
That is not how i usually want things to look, usually 2 is separate
and symbolics are in numerator and denominator.

Now, i can easily write anything in LaTeX, and use Sage only for
number crunching (without units of measurement; using symbolics only
for their original, intended purpose), but that means that i will have
type a lot of LaTeX code (one swath of code for each occurrence of a
unit; though i might be able to come up with a shorthand macro for the
most common units) - code that Sage could have been able to generate
automagically. Is that really the only way?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRd+emAAoJEOs4Jb6SI2CwaE4H/0vWXk7lOGeni2BXWYZxhZzd
vXtSzu0Jkn+g7kK5d2cUFBjsj6k/s9sYf1tRE58YmnuW5vG0+bjrbKPFmTtBuxq4
bmOlk1JHeX/dZQX+Gfsa0vYy72uOhtum9lrHsTd1esMWYTyKBg+iTZb3KqxtVBas
Xqvs8PSBjHy2oU3GmqIC7RtyTP4mbcqF6Dlj0scnxGSGN0TnM4CuhZ81w99RmZDS
r1qYq1PM1I6CmK8AM+NQSBFQqbi/UEjwoIU+7D4emtWmKGSuf2xj7uDSekp00LVu
+agdBYIcsZgaD3gQksCa0WM7YAAR1EMmX236AGiZx+tYFe5yUFZNNtCx4fG/UbA=
=K5cd
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to