delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/20/17:18:42

From: GAMMELJL AT SLU DOT EDU
Date: Tue, 20 Jun 2000 16:18:58 -0500 (CDT)
Subject: genprec and gmp
To: djgpp AT delorie DOT com
Message-id: <01JQTYWSFSX49JQ1FC@SLU.EDU>
Organization: SAINT LOUIS UNIVERSITY St. Louis, MO
X-VMS-To: IN%"djgpp AT delorie DOT com"
MIME-version: 1.0
Reply-To: djgpp AT delorie DOT com

     I have finished transcribing my genprec benchmark (gnlindex.cpp
which is part of the genprec package available at genprec.home.att.net)
to gmp.  This benchmark tests only floating point +,-,*, and /.
gmp produces an executable which is twice as fast as the executable
produced by genprec.  Obviously, the author(s) know something about
arithmetic which I don't (most likely an algorithm for dividing two
multiple precision floating point numbers).
     However, genprec deals with real and complex numbers and all
of the elementary transcendental functions (sin, exponential, atan,
and ln functions, etc) with real and complex arguments.  Furthermore,
it contains a package of applications (such as the solution of
polynomials with real or complex coefficients).  Lastly, the
interface is much more natural since operator overloading is
possible in C++, so that one can write things like
             a=b+c+d+e;
(which requires three lines in gmp) and
             a=sin(b)+cos(c)+ln(d)+atan(e);
which is not possible in gmp.
     gmp contains things not contemplated in genprec, such as the
factorization of a large integer.
     A factor 2 is quite valuable.  I would like to see gmp
rewritten in C++, complex numbers introduced, and the elementary
transcendental functions included in the package.  Maybe some-
body has already done something which I do not know about or is
doing something.  Let me know.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019