Re: Extended unit

From: Pailloncy Jean-Gerard <jg(at)rilk(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Extended unit
Date: 2005-01-27 09:41:21
Message-ID: 79447fe1d6446475dc103585d7a83bb2@rilk.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> If you allow multiplication and division, you'd need to store not
> only one type, but an expression like m.s^-2, etc. You'll end up with
> something with Maple. Isn't there some free open source algebraic
> computation toolkit with equations and units somewhere ?
Yes and no.
I am in the (slow) process to have a small library that do a parsing of
this string.
I want to have, + - * / square power function.
We do not need a full algebraic parser.

I restrict for my test the pattern of the type in human reading form as
m.s-1.
A2.m.s-1.rad-2.

no space, separator is point, no power sign, no plus sign for power.

The main trouble is to be clean the power should be in "fraction"
space. and not in "double precision" space. That is just more fun to
add ;-)

Cordialement,
Jean-Gérard Pailloncy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dawid Kuroczko 2005-01-27 09:44:51 Re: Lower case
Previous Message sid tow 2005-01-27 08:53:00 Problem with the copy command need help