Big digit numbers and root

Selçuk Keskin selcukkeskin at live.com
Tue Dec 8 20:31:43 CET 2009


Hi,
i'm studying big digit numbers .i must root a number i write the code like:

	mpz_t n,m;
	mpf_t nf,mf;

	mpz_init_set_str(n,"71641520761751435455133616475667090434063332228247871795429",10);
	mpz_init(m);
	mpf_init(nf);
	mpf_init(mf);

	mpf_init_z(nf,n);
	mpz_sqrt(mf,nf);
	mpz_init_f(m,mf);

it looks it's working at the beginning. But i calculated it at the 
calculator. Results are different. İs there a wrong at library or am i wrong

thanks 


__________ ESET NOD32 Antivirus Akıllı Güvenlik tarafından sağlanan bilgiler, virüs imza veritabanı sürümü: 4653 (20091201) __________

İleti ESET NOD32 Antivirus Akıllı Güvenlik tarafından denetlendi.

http://www.nod32.com.tr





More information about the gmp-discuss mailing list