Re: Extended unit - Mailing list pgsql-general

From Greg Stark
Subject Re: Extended unit
Date
Msg-id 87is5iwxh5.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Extended unit  (Shawn Harrison <harrison@tbc.net>)
Responses Re: Extended unit  (Pailloncy Jean-Gerard <jg@rilk.com>)
Re: Extended unit  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
> Frank D. Engel, Jr. wrote [01/27/05 9:19 AM]:
> > On Jan 26, 2005, at 6:57 PM, PFC wrote:
> >
> >> Isn't there some free open source algebraic computation toolkit with
> >> equations and units somewhere ?

You mean like the traditional units program available on virtually all Unix
machines?

    $ units
    2084 units, 71 prefixes, 32 nonlinear units

    You have: 1 lightyear/fortnight
    You want: m/s
            * 7.8213711e+09
            / 1.2785482e-10

That's the program I suggested writing a function to hand this work off to
(presumably in the form of a dynamic library). Keep the postgres code agnostic
about the semantics of the units. As long as you stick to linear units then
Postgres can treat them as opaque strings.

--
greg

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: My postmaster just crashed !
Next
From: PFC
Date:
Subject: Re: My postmaster just crashed !