Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!osu-eddie!osupyr!gae From: gae@osupyr.UUCP Newsgroups: comp.unix.questions Subject: mp multiple-digit arithmetic Message-ID: <51@osupyr.UUCP> Date: Sat, 28-Feb-87 07:40:17 EST Article-I.D.: osupyr.51 Posted: Sat Feb 28 07:40:17 1987 Date-Received: Sun, 1-Mar-87 13:28:31 EST Reply-To: gae@osupyr.UUCP (Gerald Edgar) Distribution: na Organization: The Ohio State University, Dept. of Math. Lines: 38 Is there (another) problem with the mp multiple-digit routines, or am I misunderstanding something? In my opinion, 2 raised to the power 3 does not have thousands of digits. /* bug in rpow ??? */ #include #include int base,exp; MINT *temp1,*temp2,*result; main() { result = itom(0); base = 2; exp = 3; temp1=itom(base);temp2=itom(exp); printf("base="); printf("(length %d)\n",temp1->len); mout(temp1); printf(" exp="); printf("(length %d)\n",temp2->len); mout(temp2); rpow(temp1,temp2,result); printf(" result="); printf("(length %d)\n",result->len); mout(result); exit(0); } -- Gerald A. Edgar TS1871@OHSTMVA.bitnet Department of Mathematics edgar@osupyr.UUCP The Ohio State University Columbus, OH 43210 70715,1324 CompuServe