diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-02 13:45:48 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-02-02 13:45:48 +0000 |
commit | 9a770c2ce9ce538073afcb4e7fc5db2cca080a71 (patch) | |
tree | 1007c634e05a73c666cc038566598b6d3b9c4abf /tests/tsin.c | |
parent | e5ea725d1c78a42d1ea71a360be24f54942dcc89 (diff) | |
download | mpfr-9a770c2ce9ce538073afcb4e7fc5db2cca080a71.tar.gz |
added two tests
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3254 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsin.c')
-rw-r--r-- | tests/tsin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tsin.c b/tests/tsin.c index 5282419d5..ca9c0ff86 100644 --- a/tests/tsin.c +++ b/tests/tsin.c @@ -101,6 +101,13 @@ test_sign (void) exit (1); } + mpfr_set_prec (x, 53); + mpfr_set_prec (y, 53); + mpfr_set_str_binary (x, "1.1001001000011111101101010100010001000010110100010011"); + mpfr_set_str_binary (y, "1.1111111111111111111111111111111111111111111111111111e-1"); + mpfr_sin (x, x, GMP_RNDZ); + MPFR_ASSERTN(mpfr_cmp (x, y) == 0); + mpfr_clear (pid); mpfr_clear (piu); mpfr_clear (x); |