]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a test. 964/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 27 May 2015 23:49:15 +0000 (18:49 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 27 May 2015 23:49:15 +0000 (18:49 -0500)
The test calls acosh(0.5), but acosh is really only defined for arguments >=1.

tests/base/function_parser_07.cc
tests/base/function_parser_07.with_muparser=true.output

index 8d7ef582a42c36b11f214569efb04672353c795c..494c37ce5b17d73b85a41b5f79fff40d3ec1d43a 100644 (file)
@@ -75,7 +75,7 @@ void test()
 
   eval("abs (-2.3)",Point<2>(0,0), 2.3);
   eval("acos (0.5)",Point<2>(0,0), acos(0.5));
-  eval("acosh (0.5)",Point<2>(0,0), acosh(0.5));
+  eval("acosh (1.5)",Point<2>(0,0), acosh(1.5));
   eval("asin (0.5)",Point<2>(0,0), asin(0.5));
   eval("asinh (0.5)",Point<2>(0,0), asinh(0.5));
   eval("atan (0.5)",Point<2>(0,0), atan(0.5));
index 4653eb2ed52bf7a6ac79bae69acdcf63a72ef45d..094272ec98850719fd5f34a851b903ac6f5c0133 100644 (file)
@@ -15,7 +15,7 @@ DEAL::'int (2.1)' @ 1.10000 -2.00000 is 2.00000 ( expected 2.00000 )
 DEAL::'int (-3.8)' @ 1.10000 -2.00000 is -4.00000 ( expected -4.00000 )
 DEAL::'abs (-2.3)' @ 0.00000 0.00000 is 2.30000 ( expected 2.30000 )
 DEAL::'acos (0.5)' @ 0.00000 0.00000 is 1.04720 ( expected 1.04720 )
-DEAL::'acosh (0.5)' @ 0.00000 0.00000 is -nan ( expected -nan )
+DEAL::'acosh (1.5)' @ 0.00000 0.00000 is 0.962424 ( expected 0.962424 )
 DEAL::'asin (0.5)' @ 0.00000 0.00000 is 0.523599 ( expected 0.523599 )
 DEAL::'asinh (0.5)' @ 0.00000 0.00000 is 0.481212 ( expected 0.481212 )
 DEAL::'atan (0.5)' @ 0.00000 0.00000 is 0.463648 ( expected 0.463648 )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.