Post Reply 
[WP 34s] Simple sum procedure
06-13-2015, 07:19 AM (This post was last modified: 06-16-2015 12:56 AM by Marcio.)
Post: #1
[WP 34s] Simple sum procedure
Hello all,

Would you be kind enough as to explain how the \(\sum\) works, especially with functions like \(\frac{1}{x}\)?

For example:

Compute the following: \(\sum_{1}^{10}\frac{1}{x}\)

Answer \(\approx\) 2.92896825397

I tried creating a program as simple as 1/x but somehow the routine fills the stack with zeros.

Thanks
Find all posts by this user
Quote this message in a reply
06-13-2015, 08:42 AM
Post: #2
RE: [WP 34s] Simple sum procedure
Enter this program:

Code:
001: LBL 00
002: 1/x
003: END

Return to run mode and enter:

10.001 ∑ 00

The result is 2.92896825396854


Pauli
Find all posts by this user
Quote this message in a reply
06-13-2015, 12:36 PM (This post was last modified: 06-13-2015 01:03 PM by Marcio.)
Post: #3
RE: [WP 34s] Simple sum procedure
Hello Paul,

Would you please point me to a reference where I can read about this method of entering data in detail?

I thought it was as simples as \(1\) ENTER \(10\) \(\sum\) \(00\). That is probably why the routine was filling the stack with zeros and returning \(+\infty\) and an error message.

Thank you.

**EDIT: From a quick scan on the 34s user's manual, I saw that the data should be entered using the cccccc.fffii format. Alright, if that is how it is supposed to work, allow me to ask a couple of questions:

How do I separate the lower limit from the increment?
Do those 3 f's mean the number can not be greater than 999?

Marcio
Find all posts by this user
Quote this message in a reply
06-13-2015, 12:57 PM
Post: #4
RE: [WP 34s] Simple sum procedure
Here is a reference:
http://sourceforge.net/projects/wp34s/fi...f/download
on page 112
Find all posts by this user
Quote this message in a reply
06-13-2015, 01:05 PM
Post: #5
RE: [WP 34s] Simple sum procedure
OK. Thank you. Questions answered!
Find all posts by this user
Quote this message in a reply
06-13-2015, 08:04 PM
Post: #6
RE: [WP 34s] Simple sum procedure
(06-13-2015 12:57 PM)Thomas_Sch Wrote:  Here is a reference:
http://sourceforge.net/projects/wp34s/fi...f/download
on page 112
I didn't find the v3.1 manual's remarks in that section helpful at all, particularly because it had no example and contained an error. But the same section on page 174 of the v3.3 manual explained it very well.
Find all posts by this user
Quote this message in a reply
06-13-2015, 10:13 PM
Post: #7
RE: [WP 34s] Simple sum procedure
(06-13-2015 08:04 PM)striegel Wrote:  
(06-13-2015 12:57 PM)Thomas_Sch Wrote:  Here is a reference:
http://sourceforge.net/projects/wp34s/fi...f/download
on page 112
I didn't find the v3.1 manual's remarks in that section helpful at all, particularly because it had no example and contained an error. But the same section on page 174 of the v3.3 manual explained it very well.
That's correct.
But the manual v3.3 is not available for all users without ordering, so I had choosen the manual v3.1 instead.
Find all posts by this user
Quote this message in a reply
06-14-2015, 06:53 AM (This post was last modified: 06-14-2015 06:55 AM by Thomas Klemm.)
Post: #8
RE: [WP 34s] Simple sum procedure
(06-13-2015 08:04 PM)striegel Wrote:  I didn't find the v3.1 manual's remarks in that section helpful at all

WP 34S pocket reference

Σ lbl                  x → r
Compute a sum using the routine specified at LBL.
Initially, X contains the loop control number in the format cccccc.fffii and the sum is set to 0. Each run through the routine specified by lbl computes a summand. Then, this summand is added to the sum; the operation then decrements cccccc by ii and repeats until ccccccfff.

HTH
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 4 Guest(s)