LogoopenSUSE Build Service > Projects
Sign Up | Log In

A python module for manipulating scalar with physical units

Scalar is designed to represent physical scalars and to eliminate errors involving implicit physical units (e.g., confusing angular degrees and radians). The standard arithmetic operators are overloaded to provide syntax identical to that for built-in numeric types. The scalar class does not define any units itself but is part of a package that includes a complete implementation of the standard metric system of units and many standard non-metric units. It also allows the user to define a specialized or reduced set of appropriate physical units for any particular application or domain. Once an application has been developed and tested, the scalar class can easily be switched off, if desired, to achieve the execution efficiency of operations on built-in numeric types, which can be nearly
two orders of magnitude faster. The scalar class can also be used for discrete units to enforce type checking of integer counts, thereby enhancing the built-in dynamic type checking of Python.

Source Files

Filename Size Changed Actions
python-scalar.spec 1.81 KB over 6 years ago Download File
scalar-2.2.tar.gz 9.75 KB over 7 years ago Download File

Comments for home:zhonghuaren (0)

Login required, please login or signup in order to comment