HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Physical units

Categories: Mathematics

How would one go about modeling units (seconds, meters, meters per second, etc) in Haskell? I'm particularly interested in getting the typechecker to verify proper usage, and do not want to restrict it to any particular numeric representation (i.e. both integral seconds and fractional seconds). If this can in fact be done, it could also be used to model coordinate system axes in, say, Geometric Algebra.

http://darcs.haskell.org/numericprelude/src/Number/Physical.hs
http://darcs.haskell.org/numericprelude/src/Number/SI.hs
Get with darcs get http://darcs.haskell.org/numericprelude/

Retrieved from "http://www.haskell.org/haskellwiki/Physical_units"

This page has been accessed 926 times. This page was last modified 14:12, 29 January 2007. Recent content is available under a simple permissive license.