summaryrefslogtreecommitdiff
path: root/tests/tsinu.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-15 10:33:46 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2020-12-15 10:33:46 +0000
commitfdf3828a850a90daa88dd1659915bd25f007ed8c (patch)
treeb1794375bc63c6f609d1f52a07ad5267e13106ff /tests/tsinu.c
parent1ac226922f97b6e8d4bc16b5a6601024833022d4 (diff)
downloadmpfr-fdf3828a850a90daa88dd1659915bd25f007ed8c.tar.gz
[tests/tsinu.c] fixed typos in comments
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14197 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsinu.c')
-rw-r--r--tests/tsinu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tsinu.c b/tests/tsinu.c
index 7d4607e70..a259c898f 100644
--- a/tests/tsinu.c
+++ b/tests/tsinu.c
@@ -76,45 +76,45 @@ test_exact (void)
mpfr_init (x);
mpfr_init (y);
- /* check 2*pi*x/u = pi/2 thus x/u = pi/4 for x=1 and u=4 */
+ /* check 2*pi*x/u = pi/2 thus x/u = 1/4, for example x=1 and u=4 */
mpfr_set_ui (x, 1, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 1) == 0 && inexact == 0);
- /* check 2*pi*x/u = pi thus x/u=pi/2 for x=2 and u=4 */
+ /* check 2*pi*x/u = pi thus x/u = 1/2, for example x=2 and u=4 */
mpfr_set_ui (x, 2, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_zero_p (y) && mpfr_signbit (y) == 0);
MPFR_ASSERTN(inexact == 0);
- /* check 2*pi*x/u = 3*pi/2 thus x/u = 3*pi/4 for x=3 and u=4 */
+ /* check 2*pi*x/u = 3*pi/2 thus x/u = 3/4, for example x=3 and u=4 */
mpfr_set_ui (x, 3, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_si (y, -1) == 0 && inexact == 0);
- /* check 2*pi*x/u = 2*pi thus x/u = pi for x=4 and u=4 */
+ /* check 2*pi*x/u = 2*pi thus x/u = 1, for example x=4 and u=4 */
mpfr_set_ui (x, 4, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_zero_p (y) && mpfr_signbit (y) == 0);
MPFR_ASSERTN(inexact == 0);
- /* check 2*pi*x/u = -pi/2 thus x/u = pi/4 for x=-1 and u=4 */
+ /* check 2*pi*x/u = -pi/2 thus x/u = -1/4, for example x=-1 and u=4 */
mpfr_set_si (x, -1, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_si (y, -1) == 0 && inexact == 0);
- /* check 2*pi*x/u = -pi thus x/u=pi/2 for x=-2 and u=4 */
+ /* check 2*pi*x/u = -pi thus x/u = -1/2, for example x=-2 and u=4 */
mpfr_set_si (x, -2, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_zero_p (y) && mpfr_signbit (y) != 0);
MPFR_ASSERTN(inexact == 0);
- /* check 2*pi*x/u = -3*pi/2 thus x/u = -3*pi/4 for x=3 and u=4 */
+ /* check 2*pi*x/u = -3*pi/2 thus x/u = -3/4, for example x=-3 and u=4 */
mpfr_set_si (x, -3, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_cmp_ui (y, 1) == 0 && inexact == 0);
- /* check 2*pi*x/u = -2*pi thus x/u = pi for x=4 and u=4 */
+ /* check 2*pi*x/u = -2*pi thus x/u = -1, for example x=-4 and u=4 */
mpfr_set_si (x, -4, MPFR_RNDN);
inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
MPFR_ASSERTN(mpfr_zero_p (y) && mpfr_signbit (y) != 0);