[WP 34s] Simple sum procedure - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: [WP 34s] Simple sum procedure (/thread-4143.html) [WP 34s] Simple sum procedure - Marcio - 06-13-2015 07:19 AM 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 RE: [WP 34s] Simple sum procedure - Paul Dale - 06-13-2015 08:42 AM 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 RE: [WP 34s] Simple sum procedure - Marcio - 06-13-2015 12:36 PM 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 RE: [WP 34s] Simple sum procedure - Thomas_Sch - 06-13-2015 12:57 PM Here is a reference: http://sourceforge.net/projects/wp34s/files/doc/Manual_wp_34s_3_1.pdf/download on page 112 RE: [WP 34s] Simple sum procedure - Marcio - 06-13-2015 01:05 PM OK. Thank you. Questions answered! RE: [WP 34s] Simple sum procedure - striegel - 06-13-2015 08:04 PM (06-13-2015 12:57 PM)Thomas_Sch Wrote:  Here is a reference: http://sourceforge.net/projects/wp34s/files/doc/Manual_wp_34s_3_1.pdf/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. RE: [WP 34s] Simple sum procedure - Thomas_Sch - 06-13-2015 10:13 PM (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/files/doc/Manual_wp_34s_3_1.pdf/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. RE: [WP 34s] Simple sum procedure - Thomas Klemm - 06-14-2015 06:53 AM (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 cccccc ≤ fff. HTH Thomas