diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-07-25 09:57:38 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-07-25 09:57:38 +0000 |
commit | 0b2ef444e0cf694843141e7b2f833ff1c303c6f8 (patch) | |
tree | 56fa236e888ee17ace918b955de4a8bd61e5184f /examples | |
parent | 9d21bf7a1516d8e6a57198ce71c2cc11a8e0520b (diff) |
added sf_gamma
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tests.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/tests.hs b/examples/tests.hs index eb8f50d..66afca6 100644 --- a/examples/tests.hs +++ b/examples/tests.hs | |||
@@ -298,9 +298,13 @@ exponentialTest = do | |||
298 | let expected = exp 30.0 | 298 | let expected = exp 30.0 |
299 | assertBool "exp_e10_e" ( abs (v*10^e - expected) < 4E-2 ) | 299 | assertBool "exp_e10_e" ( abs (v*10^e - expected) < 4E-2 ) |
300 | 300 | ||
301 | gammaTest = do | ||
302 | assertBool "gamma" (gamma 5 == 24.0) | ||
303 | |||
301 | tests = TestList | 304 | tests = TestList |
302 | [ TestCase $ besselTest | 305 | [ TestCase $ besselTest |
303 | , TestCase $ exponentialTest | 306 | , TestCase $ exponentialTest |
307 | , TestCase $ gammaTest | ||
304 | , TestCase $ polySolveTest | 308 | , TestCase $ polySolveTest |
305 | , TestCase $ integrateTest | 309 | , TestCase $ integrateTest |
306 | ] | 310 | ] |