Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

large integer divide/multiplication

6 views
Skip to first unread message

Marcel 't Hart

unread,
Sep 6, 1999, 3:00:00 AM9/6/99
to
Hi,

For a programming problem I have to Divide and Multiply Large integers.The
integer numbers are far beyond the maximum integer of Fortran. How can this
be done, in a short time. Is there somewhere in a library such code?

Many thanks in advance,

Marcel 't Hart

Walt Brainerd

unread,
Sep 6, 1999, 3:00:00 AM9/6/99
to
Newsgroups: bit.listserv.vfort-l,comp.lang.fortran,fj.lang.fortran
Subject: large integer divide/multiplication

"Marcel 't Hart" <m.t...@bouw.tno.nl> wrote:

> For a programming problem I have to Divide and Multiply Large integers.The
> integer numbers are far beyond the maximum integer of Fortran. How can this
> be done, in a short time. Is there somewhere in a library such code?

Go to http://www.fortran.com/fortran and look in the index
(link near the bottom of the home page) for Big Integer Module.

--
Walt Brainerd wa...@fortran.com
Unicomp, Inc. +1-520-298-7212 298-7074 (fax)
7660 E. Broadway, Suite 203
Tucson, AZ 85710 USA http://www.fortran.com/fortran

Marcel 't Hart

unread,
Sep 7, 1999, 3:00:00 AM9/7/99
to
Walt,

I found the module, but it is for F90. Our company prescribes only standard
F77. I'm not so experienced with F90. Does anybody know wether this module
is convertable to f77?

Thanks
Marcel
Walt Brainerd <wa...@swcp.com> wrote in message
news:7r0vqu$c...@llama.swcp.com...

Dann Corbit

unread,
Sep 7, 1999, 3:00:00 AM9/7/99
to
Get MPFUN by Brent. It does all kinds of wonderful extended precision
stuff. Besides that, it is efficient and well written.
--
C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
"The C-FAQ Book" ISBN 0-201-84519-9
C.A.P. Newsgroup http://www.dejanews.com/~c_a_p
C.A.P. FAQ: ftp://38.168.214.175/pub/Chess%20Analysis%20Project%20FAQ.htm

Marcel 't Hart <m.t...@bouw.tno.nl> wrote in message
news:7qvokd$bk3$1...@hercules.tno.nl...
> Hi,


>
> For a programming problem I have to Divide and Multiply Large integers.The
> integer numbers are far beyond the maximum integer of Fortran. How can
this
> be done, in a short time. Is there somewhere in a library such code?
>

ur...@iee1.et.tu-dresden.de

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
In comp.lang.fortran Marcel 't Hart <m.t...@bouw.tno.nl> wrote:
> For a programming problem I have to Divide and Multiply Large integers.The
> integer numbers are far beyond the maximum integer of Fortran. How can this
> be done, in a short time. Is there somewhere in a library such code?

If you can manage linking a library written for C and C++ try:

http://WWW.GNU.ORG/manual/gmp/index.html

is GNU multiple precision library.

+volker-

Michael Kagalenko

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
(ur...@iee1.et.tu-dresden.de) wrote

The trouble with GNU stuff is that their license is too restrictive.
If you write a program to use gnu libs, and later decide to distribute
it, GNU license demands that you give away the source yo _your_
program under the GNU license. That is, you can't give it away under
less restrictive terms !


ur...@iee1.et.tu-dresden.de

unread,
Sep 9, 1999, 3:00:00 AM9/9/99
to
In comp.lang.fortran Michael Kagalenko <mkag...@lynx01.dac.neu.edu> wrote:
> (ur...@iee1.et.tu-dresden.de) wrote
> ]http://WWW.GNU.ORG/manual/gmp/index.html

> The trouble with GNU stuff is that their license is too restrictive.
> If you write a program to use gnu libs, and later decide to distribute
> it, GNU license demands that you give away the source yo _your_
> program under the GNU license. That is, you can't give it away under
> less restrictive terms !

WRONG! There are at least 2 differnet types of GNU license, for
gmp and other GNU libraries the GNU library license gives you
the permission to link it with a non free programm. Check the
chapter dealing with licenses at the adove mentioned URL.

+volker-

Michael Kagalenko

unread,
Sep 11, 1999, 3:00:00 AM9/11/99
to
(ur...@iee1.et.tu-dresden.de) wrote
]In comp.lang.fortran Michael Kagalenko <mkag...@lynx01.dac.neu.edu> wrote:
]> (ur...@iee1.et.tu-dresden.de) wrote
]> ]http://WWW.GNU.ORG/manual/gmp/index.html
]
]> The trouble with GNU stuff is that their license is too restrictive.
]> If you write a program to use gnu libs, and later decide to distribute
]> it, GNU license demands that you give away the source yo _your_
]> program under the GNU license. That is, you can't give it away under
]> less restrictive terms !
]
]WRONG! There are at least 2 differnet types of GNU license, for
]gmp and other GNU libraries the GNU library license gives you
]the permission to link it with a non free programm.

WRONG ! The issue here is not "non-free" programs. GPL does not
allow distribtuion of programs under more free than GPL terms (like BSD
licenses), if those programs link with GPL codes.

] Check the

ur...@iee1.et.tu-dresden.de

unread,
Sep 13, 1999, 3:00:00 AM9/13/99
to
In comp.lang.fortran Michael Kagalenko <mkag...@lynx01.dac.neu.edu> wrote:
> (ur...@iee1.et.tu-dresden.de) wrote

> WRONG ! The issue here is not "non-free" programs. GPL does not


> allow distribtuion of programs under more free than GPL terms (like BSD
> licenses), if those programs link with GPL codes.

Following lines of text, dealing with the licence of GNU Multi Precesion
Library are taken from:
http://WWW.GNU.ORG/manual/gmp/html_mono/gmp.html

"This version of MP is released under a more liberal license than
previous versions. It is now permitted to link MP to non-free programs,
as long as
MP source code is provided when distributing the non-free program."

Not all GNU Software follows the GPL, there is a
LGPL, "Lesser General public License" too.

See:
http://WWW.GNU.ORG/copyleft/lesser.html

Hope, this helps.

+volker-

Michael Kagalenko

unread,
Sep 14, 1999, 3:00:00 AM9/14/99
to
(ur...@iee1.et.tu-dresden.de) wrote
]In comp.lang.fortran Michael Kagalenko <mkag...@lynx01.dac.neu.edu> wrote:
]> (ur...@iee1.et.tu-dresden.de) wrote
]
]> WRONG ! The issue here is not "non-free" programs. GPL does not
]> allow distribtuion of programs under more free than GPL terms (like BSD
]> licenses), if those programs link with GPL codes.
]
]Following lines of text, dealing with the licence of GNU Multi Precesion
]Library are taken from:
]http://WWW.GNU.ORG/manual/gmp/html_mono/gmp.html
]
]"This version of MP is released under a more liberal license than
]previous versions. It is now permitted to link MP to non-free programs,
]as long as
]MP source code is provided when distributing the non-free program."

You keep bringing up "non-free programs." As I pointed out several times,
it is misleading spin by FSF that their GPL only prevents linking
with "non-free" programs. In fact, GPL disallows linking and code reuse
in a variety of open-source programs, such as those released under
FBSD license , Artistic licence, Apache licence, and so on.


]
]Not all GNU Software follows the GPL, there is a

]LGPL, "Lesser General public License" too.
]
]See:
]http://WWW.GNU.ORG/copyleft/lesser.html
]
]Hope, this helps.

Gmp is, indeed, released under LGPL which is not as restrictvvie as GPL.
However, LGPL contains clause that allows re-relase under GPL. If the
library is mutated into GPL, it has to remain this way thereafter.
Thus, anyone relying on LGPL libray has to keep in mind that it may
be re-released as GPL at any time, thus leaving a user of the library
unable to use the up-to-date versions of the library, if GPL's
encumberments are unacceptable to this user.

Reportedly, Stallman is unhappy about LGPL, and urges moving all
GNU software to the viral GPL license.

]+volker-


0 new messages