# HG changeset patch # User Rik # Date 1515193023 28800 # Node ID ed9a040873282543de1859e4e2aa3cf387b57e77 # Parent e1295dd49c71b89d2dbaed675b7ba5fafc7dd99e test: Use new constant for acos(2) in BIST tests of acos. * mappers.cc: Use Mathematica variable precision to create an 18-digit constant for acos(2) used in BIST tests. diff -r e1295dd49c71 -r ed9a04087328 libinterp/corefcn/mappers.cc --- a/libinterp/corefcn/mappers.cc Fri Jan 05 12:06:59 2018 -0800 +++ b/libinterp/corefcn/mappers.cc Fri Jan 05 14:57:03 2018 -0800 @@ -113,7 +113,7 @@ ## Test values on either side of branch cut %!test %! rval = 0; -%! ival = 1.31695789692481635; +%! ival = 1.31695789692481671; %! obs = acos ([2, 2-i*eps, 2+i*eps]); %! exp = [rval + ival*i, rval + ival*i, rval - ival*i]; %! assert (obs, exp, 2*eps);