The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Product Series and Limit Expressions on the 50G
Message #1 Posted by Matt Agajanian on 2 Sept 2013, 11:44 a.m.

Although the 50G does have summation series, definite and indefinite integral entry directly in the Equation Writer, how do I input a Product Series expression into the 50G?

Next, how do I enter a Limit expression in the 50G Equation Writer?

Thanks

      
Re: Product Series and Limit Expressions on the 50G
Message #2 Posted by Gilles Carpentier on 2 Sept 2013, 12:07 p.m.,
in response to message #1 by Matt Agajanian

For 'limit' with EWQ, I do :

Shift Calc Limit LIM then enter the equation and the limit in the second argument in the form X=0

It's unclear in the doc but

X=0+0 X=0-0

means right and left limits

However the input is not in '2D'... It's become '2D' after ENTER and you can edit in 2D after that. Perhaps there is another way ?

            
Re: Product Series and Limit Expressions on the 50G
Message #3 Posted by Matt Agajanian on 2 Sept 2013, 3:09 p.m.,
in response to message #2 by Gilles Carpentier

A little help, please. How would asample expression be written in RPN mode?

Thamk you

NEVER MIND!

I got the idea.

So, how do I enter a product series (upper case Greek Pi) expression?

Edited: 2 Sept 2013, 3:20 p.m.

                  
Re: Product Series and Limit Expressions on the 50G
Message #4 Posted by Gerson W. Barbosa on 2 Sept 2013, 3:36 p.m.,
in response to message #3 by Matt Agajanian

There is no PI operator, but you can use SIGMA, LN and EXP together. Let's say you want the product of the first ten natural numbers (a.k.a. 10!), or

'PI(n=1,10,n)'
But the HP 50g lacks PI, as we know. No problem, do that instead:
'EXP(SIGMA(n=1,10,LN(n)))'
EVAL
You'll get 3628800.00009. Well, those extra 0.00009 are a small price to pay :-)

HTH,

Gerson.

Edited: 2 Sept 2013, 3:38 p.m.

                        
Re: Product Series and Limit Expressions on the 50G
Message #5 Posted by Matt Agajanian on 2 Sept 2013, 4:32 p.m.,
in response to message #4 by Gerson W. Barbosa

So, are you saying, in the last argument (from your example, 'LN(n)', justl replace the argument n with my math expression?

But, if the expression, n, produces a negative value through the range of the series, taking LN(expression) will result in an error condition. Wouldn't it? Or, since the 50G will handle complex results, the calculation of the Product Series will calculate thoroughly?

                              
Re: Product Series and Limit Expressions on the 50G
Message #6 Posted by Gerson W. Barbosa on 2 Sept 2013, 4:49 p.m.,
in response to message #5 by Matt Agajanian

Quote:
But, if the expression, n, produces a negative value through the range of the series, taking LN(expression) will result in an error condition.
Yes, that's a concern. This method won't work for all cases, still a few of them will be easily handled. For instance, if all terms have negative value, just make them positive then change the sign of the result if the numbers of terms is odd.
                                    
Re: Product Series and Limit Expressions on the 50G
Message #7 Posted by Matt Agajanian on 2 Sept 2013, 4:58 p.m.,
in response to message #6 by Gerson W. Barbosa

Okie doke!

Thanks.

                                          
Re: Product Series and Limit Expressions on the 50G
Message #8 Posted by Bunuel66 on 2 Sept 2013, 5:16 p.m.,
in response to message #7 by Matt Agajanian

May be computing with absolute value will solve the problem...and then finding the final sign by hand....

                                                
Re: Product Series and Limit Expressions on the 50G
Message #9 Posted by Matt Agajanian on 2 Sept 2013, 5:34 p.m.,
in response to message #8 by Bunuel66

There's got to be a better way with such a feature- and function-loaded calculator.

                                    
Re: Product Series and Limit Expressions on the 50G
Message #10 Posted by Thomas Ritschel on 2 Sept 2013, 5:14 p.m.,
in response to message #6 by Gerson W. Barbosa

Outside the equation writer one could use a combination of SEQ and PILIST (from the MTH/LIST menu). This would also work for negative members of the series.

For example for odd integers from n=-5 to n=5:

n
n
-5
5
2
SEQ

You'll get a list:

{-5 -3 -1 1 3 5}

PILIST
yields -225.

In ALG mode one could combine the two statements into just one line. However I haven't found a way to enter this in RPN mode (apart from temporarily switching to and from ALG mode).

Edited: 2 Sept 2013, 5:17 p.m.

                                          
Re: Product Series and Limit Expressions on the 50G
Message #11 Posted by Matt Agajanian on 2 Sept 2013, 6:00 p.m.,
in response to message #10 by Thomas Ritschel

Well, that sounda like a good fix. Besides, it feels and sounds like that programming routine gets my RPN programming juices fired up. Yeah, after taking a break and looking at this in a relaxed mood, this idea (and I wouldn't mind seeing other methods) makes for a good alternative.

                                          
Re: Product Series and Limit Expressions on the 50G
Message #12 Posted by Matt Agajanian on 2 Sept 2013, 7:37 p.m.,
in response to message #10 by Thomas Ritschel

Actually, to keep this an entirely RPN item, you could do what I just tried and just put that PiList command into the program as the last instruction. Or were you trying for a stack-based function instead of a program?

Edited: 2 Sept 2013, 7:38 p.m.

                                                
Re: Product Series and Limit Expressions on the 50G
Message #13 Posted by Thomas Ritschel on 3 Sept 2013, 2:23 a.m.,
in response to message #12 by Matt Agajanian

Quote:
Or were you trying for a stack-based function instead of a program?

Yes, I was trying for a stack-based function (equation). Within a program it is no problem to put the PiList directly after the SEQ statement...

      
Re: Product Series and Limit Expressions on the 50G
Message #14 Posted by Simone Cerica on 3 Sept 2013, 2:02 p.m.,
in response to message #1 by Matt Agajanian

Quote:
Although the 50G does have summation series, definite and indefinite integral entry directly in the Equation Writer, how do I input a Product Series expression into the 50G?

Next, how do I enter a Limit expression in the 50G Equation Writer?

Thanks


You must read "PI (Product) function for 48/49/50" of John H Meyers on comp.sys.hp48

best regards, Simone Cerica


[ Return to Index | Top of Index ]

Go back to the main exhibit hall