File: README

package info (click to toggle)
units-filter 3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 768 kB
  • sloc: yacc: 721; makefile: 249; cpp: 223; python: 41; perl: 19; sh: 1
file content (39 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
        -------------------------------------------
                     Units-filter V0.9   
        -------------------------------------------
                              (c)2000 G. Khaznadar
                  <georgesk@boltz.univ-littoral.fr>
        -------------------------------------------

Units-filter is a basic standalone filter written in C language,
flex and bison. It inputs strings like "1.5e3 �N.m.s^-1" (it could
be the time growth ratio of a torque) and outputs the value in
standard SI unit, followed by the physical dimension of this value.

example :~/src$ echo 1.5e3 �N.m.s^-1 | units-filter
0.0015   2   1  -3   0   0   0   0
example :~/src$

                                2     -3
which means : 0.0015 (SI unit) m .kg.s

When the input is not successfully parsed, the filter fails with
the exit code 1.

This filter can be embedded in educational test systems, in order to
analyze a student's answer to a problem of physics or chemistry.

This software snippet is GPL, see the file COPYING.

Feedback is welcome.

--
Georges.

-----------------------------------------------------------
			INSTALLATION
-----------------------------------------------------------
inside the src/ subdirectory, run "make".
You can try the script units-test to see some typical inputs and
outputs.