diff --git a/Language/Atom/Common.hs b/Language/Atom/Common.hs
--- a/Language/Atom/Common.hs
+++ b/Language/Atom/Common.hs
@@ -96,7 +96,7 @@
 linear :: FloatingE a => (E a, E a) -> (E a, E a) -> E a -> E a
 linear (x1, y1) (x2, y2) a = slope * a + inter
   where
-  slope = y2 - y1 / x2 - x1
+  slope = (y2 - y1) / (x2 - x1)
   inter = y1 - slope * x1
 
 -- | Hysteresis returns 'True' when the input exceeds @max@ and 'False' when
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -1,3 +1,7 @@
+atom 1.0.2    04/13/2010
+
+- Fixed linear bug.
+
 atom 1.0.1    03/17/2010
 
 - Fixed debounce bug.
diff --git a/atom.cabal b/atom.cabal
--- a/atom.cabal
+++ b/atom.cabal
@@ -1,5 +1,5 @@
 name:    atom
-version: 1.0.1
+version: 1.0.2
 
 category: Language
 
