Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > Methods: Chapters 3, 4, 5, and 6

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2002, 09:20 AM
jaje jaje is offline
Registered User
 
Join Date: Jul 2002
Posts: 49
Series acceleration

I'm presently working on evaluating functions via infinite series. So far, most of the series I have worked on have REALLY slow convergence. Does anyone here know how to apply the convergence acceleration techniques (e.g. Euler-Maclaurin, Wynn epsilon, Levin's transform, etc.) to programs?

I would appreciate any info. on this matter. Thanks.

Jan M. (^_')
Reply With Quote
  #2  
Old 08-11-2002, 05:10 PM
Bill Press Bill Press is offline
Numerical Recipes Author
 
Join Date: Dec 2001
Posts: 202
Jan,

I assume you've already read section 5.1 of Numerical Recipes and want to go beyond that?

Bill P.
Reply With Quote
  #3  
Old 08-12-2002, 12:57 AM
jaje jaje is offline
Registered User
 
Join Date: Jul 2002
Posts: 49
I have read them, Mr. Press. However, I would like to try other convergence acceleration methods so that I can compare the evaluation speeds with the routines in the present book.

I may as well mention the reason for asking. I mentioned in an earlier post that I was going to try to implement the Weierstrass P function in C. I came upon this series for the function. See the attached for the formula. (N.B. The prime on the second summation symbol signifies that any n which will make the general term undefined is to be removed.) I tried doing Aitken and Euler's method (not the same as Euler-Maclaurin; Euler-Maclaurin uses an integral to approximate the sum.). There was not much improvement in speed. Can you please help?

Jan M. (^_^)
Attached Images
File Type: gif weipseries.gif (2.8 KB, 901 views)
Reply With Quote
  #4  
Old 08-12-2002, 10:59 AM
Saul Teukolsky Saul Teukolsky is offline
Numerical Recipes Author
 
Join Date: Dec 2001
Posts: 183
Hi Jan,

I haven't tried the series you are interested in, but I doubt that series acceleration will help. (A good reference on series acceleration, beyond what's in NR, is Weniger, Computer Physics Reports, vol. 10, p. 189, 1989).

First, are you sure you want to deal with Weierstrass elliptic functions? The Jacobi functions are generally easier to deal with, and the routine in NR is fine for them. You could evaluate Weierstrass functions by converting them to Jacobi functions using the formulas in Abramowitz and Stegun, but these would fail at certain values. I don't know of any public software that evaluates Weierstrass functions in general. There is an algorithm on Netlib that is for special values of the parameters.

Hope this helps.

Saul Teukolsky
Reply With Quote
  #5  
Old 08-13-2002, 05:51 AM
jaje jaje is offline
Registered User
 
Join Date: Jul 2002
Posts: 49
Mr. Teukolsky, I really have to deal with Weierstrass` P function. I am aware that identities exist for converting Weierstrass functions to Jacobi functions (see attached for an example. N.B. the lambda is the modular lambda function; e1, e2, and e3 are the values of the Weierstrass P function at the so-called half-periods.) However, as you have said, they do fail at certain values; besides, I want to write something that has as little dependencies as possible.

Could you please explain what you meant when you said that you doubt that the series I gave can be helped by series acceleration?

Thank you very much for taking your time to answer my questions, Sirs.

Jan M. (^_^)
Attached Images
File Type: gif jacobitowei.gif (622 Bytes, 896 views)
Reply With Quote
  #6  
Old 08-13-2002, 07:45 AM
Saul Teukolsky Saul Teukolsky is offline
Numerical Recipes Author
 
Join Date: Dec 2001
Posts: 183
Hi Jan,

Not every series can have its convergence accelerated. The series you are interested in doesn't look like one of the simple ones where you can tell ahead of time that acceleration will work. So you could waste a lot of time trying different methods without success (see the Weniger reference if you want to try the methods there). You may be better off with something like Mathematica, which has the Weierstrass functions built in. (Being an algebraic system as opposed to numerical, Mathematica can use brute force with many significant digits if necessary.)

Good luck.
Saul Teukolskyand in the
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.