Mail Archives: geda-user/2012/12/11/09:18:46
--------
Evan Foss:
> On Tue, Dec 11, 2012 at 3:00 AM, Karl Hammar <karl AT aspodata DOT se> wrote:
...
> > Why not write it as an engineer/scientist would do it?
> > E.g. 10 Hz, 10Hz, 10 1/s, 15 A/V, 25 m/s2, 2e-4mmol, 3 km/ms, 3 V/As ...
> >
> > It cannot be that hard to parse that, something like:
> >
> > value : number dimension
> > dimension : tdimension | tdimension "/" tdimension
> > tdimension : "" | "1" | prefix unit | tdimension sep tdimension |
> > tdimension exponent | "(" tdimension ")" exponent
> > sep : " " | "*"
> I don't like that because it would mean 4.7u/F which looks so wrong.
What "would mean 4.7 u/F"? That wouldn't be legal since a prefix must be
followed by a unit by the above rule-sort-of.
> Besides there are people who do math in gschem and that use of the
> division symbol would be a mess for them.
I don't understand that reasoning, people doing math don't have any
problem with divisions. The problem is to handle any attached units
at all.
> Multiplication would be ok
> if not ugly.
So you accept * but not / ?
You need the / thing if you want V/m or do you rather want to write
it Vm-1.
> I know mathcad does it that way.
Sorry, I don't know mathcad, I cannot comment on that.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
- Raw text -