🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.math.num-analysis
5 messages
5 total messages Started by comptec91065 Wed, 26 Aug 1992 01:46
100 digit integer division?
#335
Author: comptec91065
Date: Wed, 26 Aug 1992 01:46
7 lines
661 bytes
Can you help me find the easiest way to divide integers with a 
minimum of 100 digits (possibly up to 4300 digits) ?

 		P L E A S E !

Sincerely,
	Allan Curry
Re: 100 digit integer division?
#350
Author: Jonathan Thornburg
Date: Wed, 26 Aug 1992 23:14
50 lines
2484 bytes
In article <1992Aug25.174608.1@camins.camosun.bc.ca>
comptec91065@camins.camosun.bc.ca writes:
>Can you help me find the easiest way to divide integers with a 
>minimum of 100 digits (possibly up to 4300 digits) ?

Any decent symbolic algebra system should be able to do this.
For example:

% maple
    |\^/|      MAPLE V
._|\|   |/|_.  Copyright (c) 1981-1990 by the University of Waterloo.
 \  MAPLE  /   All rights reserved.  MAPLE is a registered trademark of
 <____ ____>   Waterloo Maple Software.
      |        Type ? for help.
> Digits := 100;

                                 Digits := 100

> num := factorial(200);

num :=

788657867364790503552363213932185062295135977687173263294742533244359449963403\
342920304284011984623904177212138919638830257642790242637105061926624952829931\
113462857270763317237396988943922445621451664240254033291864131227428294853277\
524242407573903240321257405579568660226031904170324062351700858796178922222789\
623703897374720000000000000000000000000000000000000000000000000

> den := factorial(199);

den :=

394328933682395251776181606966092531147567988843586631647371266622179724981701\
671460152142005992311952088606069459819415128821395121318552530963312476414965\
556731428635381658618698494471961222810725832120127016645932065613714147426638\
762121203786951620160628702789784330113015952085162031175850429398089461111394\
8118519486873600000000000000000000000000000000000000000000000

> num / den;

                                      200

> quit();
bytes used=70232, alloc=65524, time=.150
%

- Jonathan Thornburg
  <jonathan@einstein.ph.utexas.edu> or <jonathan@hermes.chpc.utexas.edu>
  University of Texas at Austin / Physics Dept / Center for Relativity
  and (for a few more months) U of British Columbia / {Astronomy,Physics}
Re: 100 digit integer division?
#386
Author: John C. Schultz
Date: Sat, 29 Aug 1992 19:14
23 lines
1528 bytes
In article <1992Aug26.231435.5785@chpc.utexas.edu> jonathan@chpc.utexas.edu (Jonathan Thornburg) writes:
   ...
   Any decent symbolic algebra system should be able to do this.
   For example:

   % maple
       |\^/|      MAPLE V
   ._|\|   |/|_.  Copyright (c) 1981-1990 by the University of Waterloo.
    \  MAPLE  /   All rights reserved.  MAPLE is a registered trademark of
    <____ ____>   Waterloo Maple Software.
	 |        Type ? for help.
   ...

Is maple free? anon ftp sites?  All I could find asking ARCHIE was
maple DOS demo programs.

Also, not to start a flame war, but why use MAPLE V vs Mathematica if
they both cost money.  Mathematica seems to be the most widely used
from my viewpoint in a hole :-).

--
   John C. Schultz   +1 (612) 733-4047   schultz@halley.serc.3m.com
   How to include the taste of Glendronach in a multi-media system?
Re: 100 digit integer division?
#384
Author: Thomas Koenig
Date: Sun, 30 Aug 1992 03:40
6 lines
677 bytes
Try out GMP, GNU's longint package. It should be available at a friendly
neighbourhood ftp site; written in C.
-- 
Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
The joy of engineering is to find a straight line on a double logarithmic
diagram.
reviews of symbolic algebra systems (was: Re: 100 digit integer division?)
#385
Author: Jonathan Thornburg
Date: Sun, 30 Aug 1992 15:47
34 lines
2431 bytes
In article <SCHULTZ.92Aug29220351@halley.est.3m.com>
schultz@halley.est.3m.com (John C. Schultz) writes:
>Is maple free? anon ftp sites?  All I could find asking ARCHIE was
>maple DOS demo programs.
>
>Also, not to start a flame war, but why use MAPLE V vs Mathematica if
>they both cost money.  Mathematica seems to be the most widely used
>from my viewpoint in a hole :-).

There are four major "full-featured" symbolic algebra systems:
Macsyma, Reduce, Maple, and Mathematica.  All are basically workable,
all cost (widely varying amounts of) money.

IMHO, in some sense the differences between them are comparable
to those between Pascal, C, Fortran, PL/I, and Basic:  They're
all fundamentally equivalent in power, but in practice there are
large differences between them in power, speed, memory use,
correctness, "look and feel", and amount-of-marketing-hype.  The
programming language anlogy is also useful in illuminating the
nature of many of the inter-system flame wars...

For a quite detailed, relatively unbiased, and IMHO very cogent
and well written, review of and comparison betwen these and other
symbolic algebra systems, see Barry Simon's latest review in the
August 1992 "PC Magazine".

Further discussion of the relative merits of various symbolic
algebra systems should probably occur in sci.math.symbolic if at
all; please note the "Follup-To" header line.

- Jonathan Thornburg
  <jonathan@einstein.ph.utexas.edu> or <jonathan@hermes.chpc.utexas.edu>
  University of Texas at Austin / Physics Dept / Center for Relativity
  and (for a few more months) U of British Columbia / {Astronomy,Physics}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads