adding machine
jojo 29
jojo29118 at hotmail.com
Sun Nov 6 15:29:47 CET 2005
Does someone know where I could download a "GMP adding machine" on the
Internet? (or any adding machine using big numbers)
Regards.
Jojo29118
>From: gmp-discuss-request at swox.com
>Reply-To: gmp-discuss at swox.com
>To: gmp-discuss at swox.com
>Subject: gmp-discuss Digest, Vol 27, Issue 6
>Date: Sun, 06 Nov 2005 12:00:00 +0100
>MIME-Version: 1.0
>
>Send gmp-discuss mailing list submissions to
> gmp-discuss at swox.com
>
>To subscribe or unsubscribe via the World Wide Web, visit
> https://gmplib.org/mailman/listinfo/gmp-discuss
>or, via email, send a message with subject or body 'help' to
> gmp-discuss-request at swox.com
>
>You can reach the person managing the list at
> gmp-discuss-owner at swox.com
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of gmp-discuss digest..."
>
>
>Today's Topics:
>
> 1. Re: Use of nails. (Torbjorn Granlund)
> 2. Debuging test programs, reading large numbers from files and
> using powers (Image)
> 3. Problem of installation gmp on cygwin environment
> (MALHERBE Hugues)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: 05 Nov 2005 12:53:08 +0100
>From: Torbjorn Granlund <tege at swox.com>
>Subject: Re: Use of nails.
>To: Lucien Hayen <l.hayen at tiscali.be>
>Cc: gmp_discuss <gmp-discuss at swox.com>
>Message-ID: <86ll03pazf.fsf at king.swox.se>
>Content-Type: text/plain; charset=iso-8859-1
>
>Lucien Hayen <l.hayen at tiscali.be> writes:
>
> For the moment "nails" are not used, according to the manual,
> and GMP_NAIL_BITS is 0.
>
>The correct phrase would be "... are not used by default".
>
>It is never going to be used unconditionally.
>
>--
>Torbj?rn
>
>
>------------------------------
>
>Message: 2
>Date: Sat, 5 Nov 2005 20:25:30 +1300
>From: "Image" <image28 at xtra.co.nz>
>Subject: Debuging test programs, reading large numbers from files and
> using powers
>To: <gmp-discuss at swox.com>
>Message-ID: <000801c5e1da$1a1633f0$0301a8c0 at BACKUP>
>Content-Type: text/plain; charset="iso-8859-1"
>
>I wrote some test programs that use the function i require, and was
>wondering if somebody could debug the errors in the follow lines from two
>separate test programs.
>
>Program 1. Print the results of the power of two numbers
>
>mpz_t pow1;
>mpz_t pow2;
>mpz_t result;
>
>UINT mod=2;
>
>mpz_init(pow1);
>mpz_init(pow2);
>mpz_init(result);
>
>mpz_set_str(pow1,"1000",0);
>mpz_set_str(pow2,"2",0);
>mpz_set_str(result,"2",0);
>
>mpz_powm( result, pow1 , pow2 , &mod);
>mpz_out_str (stdout, 1000, result);
>
>mpz_clear( result );
>mpz_clear( pow1 );
>mpz_clear( pow2 );
>
>Program 2. Read and print a file as one number 1000 bytes at a time
> INPUT_FILE;
> UCHAR line[1000];
>
> mpz_t result;
> mpz_init(result);
> FILELOOP;
> fread(&line,1000,1,input);
>
> mpz_set_str(result,line,0);
>
> mpz_out_str(stdout, 1000, result);
>
> END;
>
>mpz_clear( result );
>
>.. Thanks to anybody who can point out the error ahead of time
>
>- Image
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
>http://gmplib.org/list-archives/gmp-discuss/attachments/20051105/20f87268/attachment-0001.html
>
>------------------------------
>
>Message: 3
>Date: Sat, 5 Nov 2005 13:49:12 +0100
>From: "MALHERBE Hugues" <malherbe.hugues at wanadoo.fr>
>Subject: Problem of installation gmp on cygwin environment
>To: <gmp-discuss at swox.com>
>Message-ID: <007b01c5e207$5292fba0$c1dafea9 at hugolin>
>Content-Type: text/plain; charset="iso-8859-1"
>
>When I try to install gmp-4.1.4 in cygwin , I have the following error when
>I run make :
>
>
>Making all in mpn
>make[2]: Entering directory `/c/cygwin/home/hugues/gmp/gmp-4.1.2/mpn'
>/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
>-D__GMP_WITHI
>N_GMP -I.. -DOPERATION_`echo mp_bases | sed 's/_$//'` -g -O2
>-fomit-frame-poi
>nter -mcpu=pentiumpro -march=pentiumpro -c -o mp_bases.lo `test -f
>mp_bases.c ||
> echo './'`mp_bases.c
>/usr/bin/sed: -e expression #2, char 18: unterminated `s' command
>gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
>-DOPERATION_mp_bases -g
> -O2 -fomit-frame-pointer -mcpu=pentiumpro -march=pentiumpro -c mp_bases.c
>-o mp
>_bases..o
>make[2]: *** No rule to make target `udiv.lo', needed by `libmpn.la'.
>Stop.
>make[2]: Leaving directory `/c/cygwin/home/hugues/gmp/gmp-4.1.2/mpn'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/c/cygwin/home/hugues/gmp/gmp-4.1.2'
>make: *** [all] Error 2
>
>The main error is bolded.
>
>Any help will be kind.
>
>Hugues MALHERBE.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
>http://gmplib.org/list-archives/gmp-discuss/attachments/20051105/29b30697/attachment-0001.html
>
>------------------------------
>
>_______________________________________________
>gmp-discuss mailing list
>gmp-discuss at swox.com
>https://gmplib.org/mailman/listinfo/gmp-discuss
>
>
>End of gmp-discuss Digest, Vol 27, Issue 6
>******************************************
More information about the gmp-discuss
mailing list