HomeSort by: relevance | last modified time | path
    Searched refs:MPFR_RNDN (Results 1 - 25 of 405) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/lgpl3/mpfr/dist/tests/
tminmax.c 39 mpfr_min (z, x, y, MPFR_RNDN);
45 mpfr_max (z, x, y, MPFR_RNDN);
53 mpfr_set_ui (y, 0, MPFR_RNDN);
54 mpfr_min (z, x, y, MPFR_RNDN);
60 mpfr_min (z, y, x, MPFR_RNDN);
66 mpfr_max (z, x, y, MPFR_RNDN);
72 mpfr_max (z, y, x, MPFR_RNDN);
79 mpfr_set_ui (x, 0, MPFR_RNDN);
80 mpfr_set_ui (y, 0, MPFR_RNDN); MPFR_SET_NEG(y);
81 mpfr_max (z, x, y, MPFR_RNDN);
    [all...]
tdim.c 45 mpfr_set_ui (y, 0, MPFR_RNDN);
46 mpfr_dim (z, x, y, MPFR_RNDN);
55 mpfr_set_ui (y, 0, MPFR_RNDN);
56 mpfr_dim (z, x, y, MPFR_RNDN);
65 mpfr_set_ui (y, 0, MPFR_RNDN);
66 mpfr_dim (z, x, y, MPFR_RNDN);
76 mpfr_dim (z, x, y, MPFR_RNDN);
84 mpfr_set_ui (x, 2, MPFR_RNDN);
85 mpfr_set_ui (y, 1, MPFR_RNDN);
86 mpfr_dim (z, x, y, MPFR_RNDN);
    [all...]
tprec_round.c 36 mpfr_prec_round (x, 2, MPFR_RNDN);
40 mpfr_prec_round (x, 2, MPFR_RNDN);
44 mpfr_prec_round (x, 2, MPFR_RNDN);
47 mpfr_set_ui (x, 0, MPFR_RNDN);
48 mpfr_prec_round (x, 2, MPFR_RNDN);
51 mpfr_set_ui (x, 0, MPFR_RNDN);
52 mpfr_neg (x, x, MPFR_RNDN);
53 mpfr_prec_round (x, 2, MPFR_RNDN);
60 mpfr_prec_round (x, 2, MPFR_RNDN);
65 mpfr_set_ui (x, 1, MPFR_RNDN);
    [all...]
tremquo.c 34 mpfr_set_si (x, -1, MPFR_RNDN);
63 if (argc == 3) /* usage: tremquo x y (rnd=MPFR_RNDN implicit) */
68 mpfr_set_str (x, argv[1], 10, MPFR_RNDN);
69 mpfr_set_str (y, argv[2], 10, MPFR_RNDN);
70 mpfr_remquo (r, q, x, y, MPFR_RNDN);
72 mpfr_out_str (stdout, 10, 0, r, MPFR_RNDN);
88 mpfr_set_ui (y, 1, MPFR_RNDN);
89 mpfr_remquo (r, q, x, y, MPFR_RNDN);
91 mpfr_fmodquo (r, q, x, y, MPFR_RNDN);
94 mpfr_set_ui (x, 1, MPFR_RNDN);
    [all...]
talloc.c 56 mpfr_set_ui (x, 1, MPFR_RNDN);
57 mpfr_set_ui (y, 2, MPFR_RNDN);
58 mpfr_add (x, x, y, MPFR_RNDN);
ty0.c 42 mpfr_y0 (y, x, MPFR_RNDN);
46 mpfr_y0 (y, x, MPFR_RNDN);
50 mpfr_y0 (y, x, MPFR_RNDN);
53 mpfr_set_ui (x, 0, MPFR_RNDN); /* +0 */
54 mpfr_y0 (y, x, MPFR_RNDN);
57 mpfr_set_ui (x, 0, MPFR_RNDN);
58 mpfr_neg (x, x, MPFR_RNDN); /* -0 */
59 mpfr_y0 (y, x, MPFR_RNDN);
65 mpfr_set_ui (x, 1, MPFR_RNDN);
66 mpfr_y0 (y, x, MPFR_RNDN);
    [all...]
ty1.c 42 mpfr_y1 (y, x, MPFR_RNDN);
46 mpfr_y1 (y, x, MPFR_RNDN);
50 mpfr_y1 (y, x, MPFR_RNDN);
53 mpfr_set_ui (x, 0, MPFR_RNDN); /* +0 */
54 mpfr_y1 (y, x, MPFR_RNDN);
57 mpfr_set_ui (x, 0, MPFR_RNDN);
58 mpfr_neg (x, x, MPFR_RNDN); /* -0 */
59 mpfr_y1 (y, x, MPFR_RNDN);
65 mpfr_set_ui (x, 1, MPFR_RNDN);
66 mpfr_y1 (y, x, MPFR_RNDN);
    [all...]
tgamma_inc.c 47 mpfr_neg (a, a, MPFR_RNDN);
49 mpfr_gamma_inc (y, a, x, MPFR_RNDN);
50 mpfr_gamma_inc (t, a, x, MPFR_RNDN);
51 if (mpfr_can_round (t, mpfr_get_prec (z), MPFR_RNDN, MPFR_RNDN, p))
53 mpfr_set (z, t, MPFR_RNDN);
57 mpfr_out_str (stdout, 10, 0, a, MPFR_RNDN);
59 mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN);
61 mpfr_out_str (stdout, 10, 0, z, MPFR_RNDN);
63 mpfr_out_str (stdout, 10, 0, y, MPFR_RNDN);
    [all...]
td_div.c 40 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
48 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
57 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
66 mpfr_set_ui (x, 0, MPFR_RNDN);
68 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
75 mpfr_set_ui (x, 0, MPFR_RNDN);
77 inexact = mpfr_d_div (y, -1.0, x, MPFR_RNDN);
84 mpfr_set_ui (x, 0, MPFR_RNDN);
85 mpfr_neg (x, x, MPFR_RNDN);
87 inexact = mpfr_d_div (y, 1.0, x, MPFR_RNDN);
    [all...]
tjn.c 37 mpfr_set_si (x, 73333, MPFR_RNDN);
38 mpfr_jn (y, 73333, x, MPFR_RNDN);
39 mpfr_set_si (x, 733333, MPFR_RNDN);
40 mpfr_jn (y, 733333, x, MPFR_RNDN);
54 mpfr_set_str (x, argv[3], 10, MPFR_RNDN);
55 mpfr_jn (x, atoi (argv[2]), x, MPFR_RNDN);
56 mpfr_out_str (stdout, 10, 10, x, MPFR_RNDN);
72 mpfr_jn (y, 17, x, MPFR_RNDN);
76 mpfr_jn (y, 17, x, MPFR_RNDN);
80 mpfr_jn (y, 17, x, MPFR_RNDN);
    [all...]
tli2.c 36 mpfr_li2 (y, x, MPFR_RNDN);
44 mpfr_li2 (y, x, MPFR_RNDN);
52 mpfr_li2 (y, x, MPFR_RNDN);
59 mpfr_set_ui (x, 0, MPFR_RNDN);
60 mpfr_li2 (y, x, MPFR_RNDN);
67 mpfr_set_ui (x, 0, MPFR_RNDN);
68 mpfr_neg (x, x, MPFR_RNDN);
69 mpfr_li2 (y, x, MPFR_RNDN);
90 mpfr_li2 (x, x, MPFR_RNDN);
91 if (mpfr_cmp_str (x, "0x1087a7a9e42141p-55", 16, MPFR_RNDN) != 0
    [all...]
tout_str.c 55 n = mpfr_out_str (fout, 10, 0, x, MPFR_RNDN);
59 printf ("Error: mpfr_out_str (file, 10, 0, NaN, MPFR_RNDN) wrote %u "
65 n = mpfr_out_str (fout, 10, 0, x, MPFR_RNDN);
69 printf ("Error: mpfr_out_str (file, 10, 0, +Inf, MPFR_RNDN) wrote %u "
75 n = mpfr_out_str (fout, 10, 0, x, MPFR_RNDN);
79 printf ("Error: mpfr_out_str (file, 10, 0, -Inf, MPFR_RNDN) wrote %u "
84 mpfr_set_ui (x, 0, MPFR_RNDN);
85 n = mpfr_out_str (fout, 10, 0, x, MPFR_RNDN);
89 printf ("Error: mpfr_out_str (file, 10, 0, +0, MPFR_RNDN) wrote %u "
94 mpfr_neg (x, x, MPFR_RNDN);
    [all...]
tpowr.c 37 mpfr_set_ui (x, 17, MPFR_RNDN);
39 mpfr_powr (z, x, y, MPFR_RNDN);
42 mpfr_powr (z, x, y, MPFR_RNDN);
46 mpfr_set_si (y, -17, MPFR_RNDN);
49 mpfr_powr (z, x, y, MPFR_RNDN);
53 mpfr_powr (z, x, y, MPFR_RNDN);
56 mpfr_set_si (y, -42, MPFR_RNDN);
59 mpfr_powr (z, x, y, MPFR_RNDN);
63 mpfr_powr (z, x, y, MPFR_RNDN);
66 mpfr_set_si_2exp (y, -17, -1, MPFR_RNDN);
    [all...]
tcsch.c 38 mpfr_csch (y, x, MPFR_RNDN);
46 mpfr_csch (y, x, MPFR_RNDN);
54 mpfr_csch (y, x, MPFR_RNDN);
62 mpfr_set_ui (x, 0, MPFR_RNDN);
63 mpfr_csch (y, x, MPFR_RNDN);
69 mpfr_neg (x, x, MPFR_RNDN);
70 mpfr_csch (y, x, MPFR_RNDN);
78 mpfr_set_str (x, "8e8", 10, MPFR_RNDN);
79 mpfr_csch (y, x, MPFR_RNDN);
85 mpfr_set_str (x, "-8e8", 10, MPFR_RNDN);
    [all...]
tsinu.c 35 mpfr_set_ui (x, 17, MPFR_RNDN);
36 inexact = mpfr_sinu (y, x, 0, MPFR_RNDN);
41 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
46 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
51 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
56 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
62 inexact = mpfr_sinu (y, x, 1, MPFR_RNDN);
80 mpfr_set_ui (x, 1, MPFR_RNDN);
81 inexact = mpfr_sinu (y, x, 4, MPFR_RNDN);
85 mpfr_set_ui (x, 2, MPFR_RNDN);
    [all...]
tlog.c 30 int ok = rnd_mode == MPFR_RNDN && mpfr_number_p (b) && mpfr_get_prec (a)>=53;
63 mpfr_out_str(stdout, 10, 0, tres, MPFR_RNDN);
93 check2("1.00089971802309629645", MPFR_RNDN, "8.99313519443722844508e-04");
97 check2("1.01979300812244555452", MPFR_RNDN, "1.95996734891603664741e-02");
101 check2("1.02900871924604464525", MPFR_RNDN, "2.85959303301472761438e-02");
105 check2("1.27832870030418943585", MPFR_RNDN, "2.45553521871417823608e-01");
109 check2("1.31706530746788241792", MPFR_RNDN, "2.75406009586277478185e-01");
113 check2("1.47116981099449883885", MPFR_RNDN, "3.86057874110010412760e-01");
117 check2("1.58405446812987782401", MPFR_RNDN, "4.59987679246663783150e-01");
121 check2("1.67192331263391547047", MPFR_RNDN, "5.13974647961076724911e-01")
    [all...]
tfmod.c 106 mpfr_set_str (y, "FEDCBA987654321p-64", 16, MPFR_RNDN);
107 mpfr_pow_ui (x, y, 42, MPFR_RNDN);
108 check (r, x, y, MPFR_RNDN);
111 mpfr_set_ui_2exp (x, 64723, -19, MPFR_RNDN);
112 mpfr_mul (x, x, y, MPFR_RNDN);
113 check (r, x, y, MPFR_RNDN);
116 mpfr_set_ui (x, 123798, MPFR_RNDN);
117 mpfr_set_ui (y, 10, MPFR_RNDN);
118 check (r, x, y, MPFR_RNDN);
144 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
    [all...]
tcosu.c 35 mpfr_set_ui (x, 17, MPFR_RNDN);
36 inexact = mpfr_cosu (y, x, 0, MPFR_RNDN);
41 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
46 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
51 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
56 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
62 inexact = mpfr_cosu (y, x, 1, MPFR_RNDN);
67 mpfr_set_ui_2exp (x, 3, 16, MPFR_RNDN);
68 inexact = mpfr_cosu (y, x, 3, MPFR_RNDN);
73 mpfr_set_si_2exp (x, -3, 16, MPFR_RNDN);
    [all...]
tstrtofr.c 42 res = mpfr_strtofr (x, "1234567.89E1", NULL, 10, MPFR_RNDN);
43 mpfr_set_str (y, "1234567.89E1", 10, MPFR_RNDN);
55 mpfr_set_ui (x, 0, MPFR_RNDN); /* make sure that x is modified */
56 res = mpfr_strtofr (x, "NaN", &s, 10, MPFR_RNDN);
62 mpfr_set_ui (x, 0, MPFR_RNDN); /* make sure that x is modified */
63 res = mpfr_strtofr (x, "+NaN", &s, 10, MPFR_RNDN);
69 mpfr_set_ui (x, 0, MPFR_RNDN); /* make sure that x is modified */
70 res = mpfr_strtofr (x, " -NaN", &s, 10, MPFR_RNDN);
76 mpfr_set_ui (x, 0, MPFR_RNDN); /* make sure that x is modified */
77 res = mpfr_strtofr (x, "@nAn@xx", &s, 16, MPFR_RNDN);
    [all...]
tlngamma.c 39 mpfr_lngamma (y, x, MPFR_RNDN);
48 mpfr_lngamma (y, x, MPFR_RNDN);
57 mpfr_lngamma (y, x, MPFR_RNDN);
64 mpfr_set_ui (x, 0, MPFR_RNDN);
66 mpfr_lngamma (y, x, MPFR_RNDN);
74 mpfr_set_ui (x, 0, MPFR_RNDN);
75 mpfr_neg (x, x, MPFR_RNDN);
77 mpfr_lngamma (y, x, MPFR_RNDN);
85 mpfr_set_ui (x, 1, MPFR_RNDN);
87 mpfr_lngamma (y, x, MPFR_RNDN);
    [all...]
tagm.c 87 mpfr_out_str (stdout, 10, 0, ta, MPFR_RNDN);
90 mpfr_out_str (stdout, 10, 0, tb, MPFR_RNDN);
118 mpfr_set_ui (a, 1, MPFR_RNDN);
120 mpfr_agm (agm, a, b, MPFR_RNDN);
133 mpfr_set_str (a, "703.93543315330225238487276503953366664991725089988315253092140138947103394917006", 10, MPFR_RNDN);
134 mpfr_set_str (b, "703.93543315330225238487279020523738740563816490895994499256063816906728642622316", 10, MPFR_RNDN);
135 mpfr_agm (agm, a, b, MPFR_RNDN);
142 inex = mpfr_agm (agm, a, b, MPFR_RNDN);
158 mpfr_set_ui (a, 1, MPFR_RNDN);
159 mpfr_set_ui (b, 2, MPFR_RNDN);
    [all...]
  /src/external/lgpl3/mpfr/dist/src/
set_rnd.c 26 MPFR_THREAD_VAR (mpfr_rnd_t, __gmpfr_default_rounding_mode, MPFR_RNDN)
31 if (rnd_mode >= MPFR_RNDN && rnd_mode < MPFR_RND_MAX)
set_zero.c 28 mpfr_set_ui (x, 0, MPFR_RNDN);
jyn_asympt.c 87 mpfr_sin_cos (s, c, z, MPFR_RNDN);
89 mpfr_neg (s, s, MPFR_RNDN); /* compute jn/yn(|z|), fix sign later */
91 mpfr_add (t, s, c, MPFR_RNDN);
92 mpfr_sub (c, s, c, MPFR_RNDN);
102 mpfr_si_div (iz, MPFR_IS_POS(z) ? 1 : -1, z, MPFR_RNDN); /* err <= 1 */
103 mpfr_div_2ui (iz, iz, 3, MPFR_RNDN);
106 mpfr_set_ui (P, 1, MPFR_RNDN);
107 mpfr_set_ui (Q, 0, MPFR_RNDN);
108 mpfr_set_ui (t, 1, MPFR_RNDN); /* current term */
109 mpfr_set_ui (err_t, 0, MPFR_RNDN); /* error on t *
    [all...]
  /src/external/lgpl3/mpc/dist/tests/
treimref.c 33 mpfr_set_ui (mpc_realref (z), 18, MPFR_RNDN);
34 if (mpfr_get_ui (mpc_realref (z), MPFR_RNDN) != 18)
39 mpfr_set_ui (mpc_imagref (z), 43, MPFR_RNDN);
40 if (mpfr_get_ui (mpc_imagref (z), MPFR_RNDN) != 43)

Completed in 34 milliseconds

1 2 3 4 5 6 7 8 91011>>