Commit Graph

14 Commits

Author SHA1 Message Date
Neil Brown
4e58d48d1c Renamed normalise to normaliseEq and stopped it being applied to inequalities (as it will fail needlessly on those!) 2007-12-12 18:02:19 +00:00
Neil Brown
4eae0ede18 Removed the changeAllButOneDifferent function and replaced it with simpler code 2007-12-12 17:48:30 +00:00
Neil Brown
88f7d1ec92 Refactored the equation normalisation and added a custom GCD function 2007-12-12 17:40:37 +00:00
Neil Brown
94dca6fc10 Fixed a bug in the solveUnits function where everything was always being negated, when it should be dependent on whether the unit coefficient was 1 or -1 2007-12-12 17:24:50 +00:00
Neil Brown
a5e277505f Rewrote the substIn function in solveConstraints to be clearer and simpler 2007-12-12 15:07:01 +00:00
Neil Brown
1aa914e077 Tidied up the checkForUnit function in solveConstraints 2007-12-12 14:25:24 +00:00
Neil Brown
52054dff9f Simplified the type of solve in solveConstraints (it doesn't actually need to return a value) and added a comment 2007-12-12 14:20:17 +00:00
Neil Brown
cba5ff45f1 Fixed a small bug in the equation normalisation 2007-12-12 14:16:29 +00:00
Neil Brown
2354c6a933 Simplified some monadic code in solveConstraints 2007-12-12 14:08:09 +00:00
Neil Brown
83ee41c75c Transformed uses of the StIneq type into their long version so that I can remove StIneq (was only used in a few places anyway) 2007-12-12 14:03:07 +00:00
Neil Brown
961e1837de Removed a couple of unused lines from the Omega Test 2007-12-12 13:58:52 +00:00
Neil Brown
c46580fbda Changed the monad in the Omega Test equality stuff to StateT Maybe rather than State, and fixed some bugs in the Omega Test 2007-12-12 13:57:44 +00:00
Neil Brown
e34ebc67ea Fixed a warning about the type of 0.5 defaulting to Double 2007-12-12 13:56:33 +00:00
Neil Brown
ed43b750c1 Added an initial messy implementation of the equality part of the Omega test 2007-12-11 16:54:36 +00:00