Rv: Web GMP
rodolfo merino
rmr45472 at yahoo.es
Tue Sep 16 00:17:54 CEST 2008
Estimated friends:
46137349^22 = odd
(2*46137349)^22 = couple
(2*46137349+1)^22 = odd
Then:
46137349^22+(2*46137349)^22-(2*46137349+1)^22 = couple
But:
40659123321199772708143646506718445599631847521703980877262444624237620050622933969300652398693881381
39094813695689518101749257496187234787043775391310211936538046425801 = odd
The result must be couple and negative.
Best Regards.
Rodolfo Merino Rosas
----- Mensaje reenviado ----
De: Torbjorn Granlund <tg at swox.com>
Para: rodolfo merino <rmr45472 at yahoo.es>
CC: gmp-discuss at swox.com
Enviado: lunes, 15 de septiembre, 2008 16:21:43
Asunto: Re: Web GMP
rodolfo merino <rmr45472 at yahoo.es> writes:
Estimated friends:
I use the web, http://gmplib.org/, (Demo 1 -- Integer expressions).
I evalue the expression:
46137349^22+(2*46137349)^22-(2*46137349+1)^22
The result was:
40659123321199772708143646506718445599631847521703980877262444624237620050622933969300652398693881381
39094813695689518101749257496187234787043775391310211936538046425801
Nevertheless the real result is:
Negative and couple.
Sorry, I don't understand.
I checked your expression with the demo and the results sure looks
right to me.
If you think there is something wrong, please specify what result you
get and what you expect.
--
Torbjörn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20080915/18227780/attachment-0001.html
More information about the gmp-discuss
mailing list