summaryrefslogtreecommitdiff
path: root/packages/base/src/Internal/Numeric.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base/src/Internal/Numeric.hs')
-rw-r--r--packages/base/src/Internal/Numeric.hs12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/base/src/Internal/Numeric.hs b/packages/base/src/Internal/Numeric.hs
index ca17c23..efcde2c 100644
--- a/packages/base/src/Internal/Numeric.hs
+++ b/packages/base/src/Internal/Numeric.hs
@@ -481,14 +481,16 @@ step = step'
481-- , 0.0, 100.0, 7.0, 8.0 481-- , 0.0, 100.0, 7.0, 8.0
482-- , 0.0, 0.0, 100.0, 12.0 ] 482-- , 0.0, 0.0, 100.0, 12.0 ]
483-- 483--
484-- >>> let chop x = cond (abs x) 1E-6 0 0 x
485--
484cond 486cond
485 :: (Ord e, Container c e) 487 :: (Ord e, Container c e, Container c x)
486 => c e -- ^ a 488 => c e -- ^ a
487 -> c e -- ^ b 489 -> c e -- ^ b
488 -> c e -- ^ l 490 -> c x -- ^ l
489 -> c e -- ^ e 491 -> c x -- ^ e
490 -> c e -- ^ g 492 -> c x -- ^ g
491 -> c e -- ^ result 493 -> c x -- ^ result
492cond a b l e g = cselect' (ccompare' a b) l e g 494cond a b l e g = cselect' (ccompare' a b) l e g
493 495
494 496