home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / math / 15369 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.3 KB  |  32 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!wsu-cs!trace.eng.wayne.edu!uds
  3. From: uds@trace.eng.wayne.edu (Seetamraju Udaybhaskar)
  4. Subject: Re: 1+1/2+1/3+1/4+...+1/n
  5. Message-ID: <1992Nov22.201409.23876@cs.wayne.edu>
  6. Sender: usenet@cs.wayne.edu (Usenet News)
  7. Reply-To: uds@trace.eng.wayne.edu (Seetamraju Udaybhaskar)
  8. Organization: Wayne State University, Detroit
  9. References: <92324.132329K3032E2@ALIJKU11.BITNET>
  10. Date: Sun, 22 Nov 1992 20:14:09 GMT
  11. Lines: 19
  12.  
  13. In article <92324.132329K3032E2@ALIJKU11.BITNET> Mutter Christoph Johannes <K3032E2@ALIJKU11.BITNET> writes:
  14. >I've a problem. I have to calculate the sum 1+1/2+1/3+1/4+...+1/n.
  15. >The result should be 100. But my computer is far too slow, to solve this
  16. >problem. I need the index n when the sum > 100.0
  17. >And that exactly.
  18.  
  19.  
  20. we know the series can be obtained from substituting x -> 1-, in the integral of the
  21. binomial expansion of   1/(1-x).   Try computing the definite integral of 1/(1-x)
  22. at some value very close to 1.  That should give U a good starting point...
  23. Then its brute force search technique...
  24.  
  25. BTW, I very much doubt 32 bit precision would help...  Use double precision (64 bit)
  26. to be able to accurately sum the series...
  27.  
  28.  
  29. Seetamraju Udaya Bhaskar Sarma
  30. (email : seetam @ ece7 . eng . wayne . edu)
  31.  
  32.