home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16043 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  7.2 KB

  1. Xref: sparky comp.lang.c++:16043 sci.math.num-analysis:3274
  2. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!agate!ames!decwrl!concert!gatech!rutgers!micro-heart-of-gold.mit.edu!uw-beaver!cs.ubc.ca!unixg.ubc.ca!keith
  3. From: keith@msmri.med.ubc.ca (Keith S Cover)
  4. Newsgroups: comp.lang.c++,sci.math.num-analysis
  5. Subject: SUMMARY: Multiple precision software
  6. Message-ID: <1dosmoINNei7@iskut.ucs.ubc.ca>
  7. Date: 10 Nov 92 17:49:12 GMT
  8. Distribution: inet
  9. Organization: University of British Columbia, Vancouver, B.C., Canada
  10. Lines: 162
  11. NNTP-Posting-Host: msmri.med.ubc.ca
  12.  
  13. Here are the replies I received to my requested for multiple precision 
  14. software.  The software not written in C++ could be provided with a 
  15. C++ wrapper.  
  16.  
  17. Keith S Cover
  18. Physics, UBC
  19. Vancouver, B.C.
  20. Canada
  21.  
  22. ============================================================================
  23.  
  24. From khattra@cs.sfu.ca Fri Oct 30 11:40:25 1992
  25. Organization: CSS, Simon Fraser University, Burnaby, B.C., Canada
  26.  
  27. It's not a class library, but you may want to snarf
  28. the multi-precision code from GNU bc.
  29.  
  30. --
  31. Taj Khattra
  32.  
  33. =============================================================================
  34.  
  35. From kbriggs@mundoe.maths.mu.oz.au Mon Nov  2 15:08:47 1992
  36.  
  37. Brent's MP has been the standard for at least 15 years.   It is on netlib,
  38. I think under `bmp'.   It was documented in TOMS, I think around volume 3 or
  39. 4.  I can get the exact refs if you need them.
  40. Keith.
  41.  
  42. =============================================================================
  43.  
  44. From plyon@emx.cc.utexas.edu Mon Nov  2 21:18:24 1992
  45.  
  46. There is an article by Jerry Schwartz entitled "Implementing infinite
  47. precision arithmetic" in the _9th Symposium on Computer Arithmetic_
  48. (Santa Monica, CA) (Sorry, I do not know the publisher), in which he
  49. alludes to a C++ implementation, but I do not know where one might
  50. come by this.
  51.  
  52. There is a C library of extended precision floating point functions
  53. called CEPHES available for anon ftp from usc.edu in the
  54. directory pub/C-numanal. You might wish to have a look at that; it could
  55. be that it could be converted to a C++ class library without much
  56. difficulty.
  57.  
  58. You also might find the article "Optimizing Programmes over the
  59. Constructive Reals" useful (by Vernon Lee and Hans Boehm, ACM SIGPLAN
  60. '90  Conference on Programming Language Design and Implementation).
  61.  
  62. It might also be useful to collect the "free-c" (at least I think
  63. that's what it's  called) document by Ajah Shah from Netlib 
  64. (research.att.com).
  65.  
  66. Hope this helps...
  67.  
  68.  
  69. Paul Lyon
  70.  
  71. ============================================================================
  72.  
  73. From tjm@netcom.com Mon Nov  2 22:24:24 1992
  74. From: "Thomas J. Merritt" <tjm@netcom.com>
  75.  
  76. I have a class "Float" that provides a software implementation of
  77. floating point with arbitrary precision.  It currently suports +, -, *,
  78. /, sqrt, exp, log, pow, [a]sin[h], [a]cos[h], [a]tan[h], and convertions
  79. to and from strings and doubles.  It conforms to IEEE-754/854.  The
  80. implementation is relatively fast and accurate.
  81.  
  82. If you would like more detail or would like to be a beta site for this 
  83. software drop me a note.
  84.  
  85. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  86. Thomas J. Merritt    %      Code Generation      %    PO Box 192746
  87. tjm@netcom.com       %          |Technology      %    San Francisco, CA  94119
  88. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  89.  
  90. =============================================================================
  91.  
  92. From 48GANELIN@cua.edu Thu Nov  5 17:10:38 1992
  93. Date: 05 Nov 1992 20:12:12 -0500 (EST)
  94. From: Pavel Ganelin <48GANELIN@cua.edu>
  95.  
  96. GNU C++ compiler has multiprecision Integer, Rational and 
  97. RealFixedLenght arithmnetic.
  98.  
  99.  prep.ai.mit.edu ~/pub/gnu/gcc-2.2.2.tar.Z
  100.  prep.ai.mit.edu ~/pub/gnu/gcc-lib++-2.2.tar.Z
  101.  
  102.  
  103. It is very easy to use in program. Integeran represenation is hidden
  104. and you can use big numbers in expression the same way as usual ones.
  105. The only problem I had it do very strange things on DJ GPP port for PC386,
  106. when you try to covert back from Rational to double or long.
  107.  
  108. =============================================================================
  109.  
  110. From: dbailey@wk49.nas.nasa.gov (David H. Bailey)
  111. Sender: news@nas.nasa.gov (News Administrator)
  112. Organization: NAS, NASA Ames Research Center, Moffett Field, CA
  113. Date: Fri, 6 Nov 92 01:12:07 GMT
  114.  
  115. Some of you may be aware of a multiprecision computation package and a
  116. multiprecision Fortran translator that I have developed during the
  117. past year or two.  I am now pleased to announce that this software has
  118. been approved by NASA Ames for unlimited international distribution,
  119. at no cost.  A brief description of this software is as follows:
  120.  
  121. The first package contains approximately 85 Fortran subroutines that
  122. perform a variety of arithmetic operations and transcendental
  123. functions.  The basic arithmetic routines are very efficient, and for
  124. extra high levels of precision (about about 1000 digits), some
  125. additional routines are available that employ advanced algorithms,
  126. such FFT-based multiplication and the Borwein transcendental
  127. algorithms, for additional speedup.  On some problems these routines
  128. are over 200 times faster than certain other multiprecision tools.
  129.  
  130. However, as with other such packages, manually converting a program to
  131. use these routines is a tedious and error-prone process.  To
  132. facilitate such conversions, I have now developed a multiprecision
  133. translator for Fortran programs.  By means of source directives
  134. (special comments) placed in a standard Fortran-77 program, the user
  135. declares the precision level and specifies which variables in each
  136. subprogram are to be treated as multiprecision.  The translator
  137. program reads this source program and outputs a program with the
  138. appropriate multiprecision subroutine calls, which can then be linked
  139. with the multiprecision package and executed.
  140.  
  141. This translator program supports multiprecision integer, real and
  142. complex datatypes.  The required array space for multiprecision data
  143. types is automatically allocated.  In the evaluation of computational
  144. expressions, all of the usual conventions for operator precedence and
  145. mixed mode operations are upheld.  Furthermore, most of the Fortran-77
  146. intrinsics, such as ABS, MOD, NINT, COS, EXP are supported and produce
  147. true multiprecision values.
  148.  
  149. Both the multiprecision package and translator are written in highly
  150. portable Fortran-77 and have been successfully implemented on a
  151. variety of systems, ranging from parallel supercomputers to
  152. workstations.
  153.  
  154. If anyone is interested in obtaining this software, plus the
  155. accompanying documentation, send me a note, and I will respond by
  156. e-mail.  I eventually intend to place this software on public media
  157. such as netlib, but for the time being I am handling it myself, so
  158. that any bug fixes or enhancements can be promptly distributed.  Since
  159. it is a small but significant amount of trouble for me to respond,
  160. please don't request unless you are somewhat serious about needing
  161. this software.
  162.  
  163. David H. Bailey 
  164. NASA Ames Research Center 
  165. dbailey@nas.nasa.gov
  166.  
  167. =============================================================================
  168.  
  169. From: moshier@world.std.com (Stephen L Moshier)
  170. Organization: The World Public Access UNIX, Brookline, MA
  171.  
  172.   There are at least three such packages in netlib (research.att.com).
  173. Two Fortran programs are in netlib/toms, and there is a C suite
  174. in netlib/cephes.
  175.