changeset 24529:ed9a04087328

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.
author Rik <rik@octave.org>
date Fri, 05 Jan 2018 14:57:03 -0800
parents e1295dd49c71
children 625784a8429c
files libinterp/corefcn/mappers.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);