Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: units

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28761] RE: [mg28743] units
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 11 May 2001 20:00:39 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Elliot,

Convert to a unit of 1.

Needs["Miscellaneous`Units`"]

1.0 Centimeter/(1.0 Milli Meter)
Convert[%, 1]
(1.*Centimeter)/(Meter*Milli)
10.

If you do a lot of work with units, you may wish to try the V4ExtendUnits
package at my web site.
It is somewhat easier to use and contains many extra features.

Needs["Miscellaneous`V4ExtendUnits`"]
1.0 Centimeter/(1.0 Milli Meter)
% // ToUnit[1]
(1.*Centimeter)/(Meter*Milli)
10.

The package has features such as conversion to base SI units, simple
conversion commands for common structures of data, easier temperature
conversions, simultaneous conversion to multiple compatible units, parsing
of units to descending compatible units (e.g. Day, Hour, Minute, Second),
ability to specify number format at the same time as conversion, a new
number format, PrefixForm, which automatically picks the correct prefix for
output of numbers, ability to convert unit expressions to unitless
expressions with specified implied input and output units (for numerical
work or plotting), ability to install your own units and use them just like
regular units (e.g. GeV). In addition, there is a ReducedUnits package which
allows you to implement unit systems where some physical constants are taken
as equal to 1 (e.g. geometric units in gravitation or atomic units).

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/


> From: Elliot Burke [mailto:elliot at nospamhitide.com]
To: mathgroup at smc.vnet.net
>
>
> 1. Centimeter/1. Milli Meter gives 1. Centimeter/MeterMilli
> How can I get it to cancel units and give 10  (no units)?
>
> Elliot Burke
>




  • Prev by Date: RE: Win2000
  • Next by Date: Re: 2 questions about bitmap images
  • Previous by thread: RE: units
  • Next by thread: i don't want intersection