The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Romberg Integration for 33s, 35s
Message #1 Posted by Matt Agajanian on 25 Mar 2012, 1:44 a.m.

Hello all.

I looked through the Arrticle Archives and the 34s port is a little bit hard to understand and it seems that the register exchange instructions are cryptic.

So, has anyone ported the WP-34S Romberg Integration program to the 33s or 35s? If so, could you let me know and if it's suitable, could you list the program and instructions, please? Thanks

Edited: 25 Mar 2012, 1:45 a.m.

      
Re: Romberg Integration for 33s, 35s
Message #2 Posted by Paul Dale on 25 Mar 2012, 1:48 a.m.,
in response to message #1 by Matt Agajanian

The code in the articles section is straight port of the 41C PPC integration routine. The PPC manual has extensive documentation on all its routines and this one isn't an exception.

Don't have the PPC manual? Buy the museum DVD set. It is on there.

- Pauli

            
Re: Romberg Integration for 33s, 35s
Message #3 Posted by Matt Agajanian on 25 Mar 2012, 2:39 p.m.,
in response to message #2 by Paul Dale

Got the DVD a coupla week, ago. Which item should I be looking for?

                  
Re: Romberg Integration for 33s, 35s
Message #4 Posted by Gerson W. Barbosa on 25 Mar 2012, 3:22 p.m.,
in response to message #3 by Matt Agajanian

You should look for HP-41C PPC ROM Users Manual in Calculator Software Manuals.

                        
Re: Romberg Integration for 33s, 35s
Message #5 Posted by Matt Agajanian on 25 Mar 2012, 3:38 p.m.,
in response to message #4 by Gerson W. Barbosa

Sounds like a plan

            
Re: Romberg Integration for 33s, 35s
Message #6 Posted by Nick_S on 26 Mar 2012, 3:25 a.m.,
in response to message #2 by Paul Dale

Quote:
The code in the articles section is straight port of the 41C PPC integration routine.

Is this the same routine as the modified Romberg integration method used in the 15c?

Nick

                  
Re: Romberg Integration for 33s, 35s
Message #7 Posted by Paul Dale on 26 Mar 2012, 3:40 a.m.,
in response to message #6 by Nick_S

The 15c has a machine code implementation not a keystroke program, so they won't be the same. However the basic algorithm will be similar.

- Pauli

                        
Re: Romberg Integration for 33s, 35s
Message #8 Posted by Nick_S on 26 Mar 2012, 7:08 a.m.,
in response to message #7 by Paul Dale

I gather that the 15c uses non-uniformly spaced samples to avoid problems with periodic integrands and that it usually does not evaluate the function at either limit of integration to reduce problems when the function is not defined at the one of the limits. Do you know if these features are also implemented in the PPC integration routine?

Nick

Edited: 26 Mar 2012, 7:10 a.m.

                              
Re: Romberg Integration for 33s, 35s
Message #9 Posted by Paul Dale on 26 Mar 2012, 9:54 a.m.,
in response to message #8 by Nick_S

Non-uniform samples is a standard transform.

Not evaluating at the end points is part of the algorithm I believe.

- Pauli

                                    
Re: Romberg Integration for 33s, 35s
Message #10 Posted by Nick_S on 26 Mar 2012, 10:00 a.m.,
in response to message #9 by Paul Dale

Thanks for this information. I also came across the forum article by Les Wright which gives the wp34s version of the code here:

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=1126

he says that "There are first two transformations of variable--the first a linear one to standardize the interval of integration to [-1,1], the second a nonlinear one so that points are sampled at uneven intervals and problems with some periodic functions are avoided."

I look forward to playing with this code on other platforms.

Nick

Edited: 26 Mar 2012, 10:01 a.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall