etch  ] [  etch-m68k  ] [  lenny  ] [  squeeze  ] [  sid  ]
[ Source: units-filter  ]

Package: units-filter (2.6-1)

Parser for expressions concerning physical values

Units-filter is a basic standalone filter written in C language, flex and bison. It inputs strings like "1.5e3 nN.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 nN.m.s^-1 | units-filter
 1.5e-06   2   1  -3   0   0   0   0    0    0

                                  2     -3
 which means : 1.5e-06 (SI unit) m .kg.s

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

Tags: Field: Chemistry, Physics, Implemented in: C, User Interface: Command Line, Role: Program, Scope: Utility, Purpose: Data Conversion

Other Packages Related to units-filter

  • depends
  • recommends
  • suggests
  • dep: libc6 (>= 2.3.5-1) [not alpha, i386, ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6-udeb
    dep: libc6 (>= 2.3.6-6) [i386]
  • dep: libc6.1 (>= 2.3.5-1) [alpha, ia64]
    GNU C Library: Shared libraries
    also a virtual package provided by libc6.1-udeb
  • sug: wims
    WWW Interactive Mathematics Server (WIMS)

Download units-filter

Download for all available architectures
Architecture Package Size Installed Size Files
alpha 20.0 kB112 kB [list of files]
amd64 20.1 kB96 kB [list of files]
arm 20.2 kB65 kB [list of files]
hppa 19.5 kB112 kB [list of files]
i386 17.5 kB88 kB [list of files]
ia64 25.8 kB156 kB [list of files]
mips 19.7 kB116 kB [list of files]
mipsel 19.6 kB116 kB [list of files]
powerpc 18.1 kB96 kB [list of files]
s390 20.1 kB100 kB [list of files]
sparc 18.5 kB104 kB [list of files]