From: Wolfgang Bangerth Date: Wed, 27 May 2015 23:49:15 +0000 (-0500) Subject: Fix a test. X-Git-Tag: v8.3.0-rc1~149^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F964%2Fhead;p=dealii.git Fix a test. The test calls acosh(0.5), but acosh is really only defined for arguments >=1. --- diff --git a/tests/base/function_parser_07.cc b/tests/base/function_parser_07.cc index 8d7ef582a4..494c37ce5b 100644 --- a/tests/base/function_parser_07.cc +++ b/tests/base/function_parser_07.cc @@ -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)); diff --git a/tests/base/function_parser_07.with_muparser=true.output b/tests/base/function_parser_07.with_muparser=true.output index 4653eb2ed5..094272ec98 100644 --- a/tests/base/function_parser_07.with_muparser=true.output +++ b/tests/base/function_parser_07.with_muparser=true.output @@ -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 )