Post Reply 
First Month with 50g
04-16-2015, 12:36 PM
Post: #31
RE: First Month with 50g
(04-16-2015 10:05 AM)Tugdual Wrote:  
(04-16-2015 01:56 AM)ttw Wrote:  I use my HP50g for running through various mathematical computations before actually writing a program for the computer. I like to get the feel of how a computation proceeds. I also do lots of quick stuff like for investments. Sometimes just convert prices between currencies. (Don't use it much for converting units as the unit conversion stuff, IMHO, is awful. It's rather difficult to just get the conversion ration between one unit and another.)

I did figure out how to compute a running sum this week. I've been looking for a fast way for years. I'll post it as a program, but normally I just parts of the code in other programs.

<< SIZE LASTARG -> N X
<< 0 X + << + DUP >>
STREAM DROP N ->LIST >> >>

The program takes a list and outputs the sum. The 0 at the beginning is needed because STREAM needs something to work with. The DROP is because STREAM works on the hole list.
How about ΣLIST ?
That gives the total. I need the running total: x1,x1+x2, x1+x2+x3....
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
First Month with 50g - MarkMason - 04-09-2015, 03:32 AM
RE: First Month with 50g - Han - 04-09-2015, 03:49 AM
RE: First Month with 50g - Voldemar - 04-09-2015, 06:54 AM
RE: First Month with 50g - Thomas Radtke - 04-09-2015, 06:59 AM
RE: First Month with 50g - Voldemar - 04-09-2015, 07:23 AM
RE: First Month with 50g - MarkMason - 04-09-2015, 01:04 PM
RE: First Month with 50g - Brad Barton - 04-09-2015, 08:15 PM
RE: First Month with 50g - walter b - 04-09-2015, 09:09 PM
RE: First Month with 50g - MarkMason - 04-10-2015, 08:34 PM
RE: First Month with 50g - Tugdual - 04-09-2015, 05:50 AM
RE: First Month with 50g - Sukiari - 04-15-2015, 09:02 PM
RE: First Month with 50g - Tugdual - 04-16-2015, 09:36 AM
RE: First Month with 50g - Voldemar - 04-09-2015, 06:53 AM
RE: First Month with 50g - Gilles - 04-09-2015, 07:38 AM
RE: First Month with 50g - Voldemar - 04-09-2015, 08:30 AM
RE: First Month with 50g - MarkMason - 04-09-2015, 12:12 PM
RE: First Month with 50g - rprosperi - 04-09-2015, 01:53 PM
RE: First Month with 50g - MarkMason - 04-10-2015, 12:45 AM
RE: First Month with 50g - Joe Horn - 04-10-2015, 01:00 AM
RE: First Month with 50g - Omar Deen - 04-12-2015, 03:41 AM
RE: First Month with 50g - Tugdual - 04-14-2015, 06:57 PM
RE: First Month with 50g - Thomas Radtke - 04-15-2015, 05:15 AM
RE: First Month with 50g - Tugdual - 04-16-2015, 09:32 AM
RE: First Month with 50g - BartDB - 04-15-2015, 12:38 PM
RE: First Month with 50g - ElectroDuende - 04-17-2015, 11:46 AM
RE: First Month with 50g - Claudio L. - 04-17-2015, 08:52 PM
RE: First Month with 50g - rogeriol - 04-14-2015, 02:03 PM
RE: First Month with 50g - MarkMason - 04-16-2015, 07:47 PM
RE: First Month with 50g - ttw - 04-16-2015, 01:56 AM
RE: First Month with 50g - walter b - 04-16-2015, 03:57 AM
RE: First Month with 50g - Tugdual - 04-16-2015, 10:05 AM
RE: First Month with 50g - ttw - 04-16-2015 12:36 PM
RE: First Month with 50g - Gilles - 04-16-2015, 02:13 PM
RE: First Month with 50g - Thomas Klemm - 04-16-2015, 03:13 AM
RE: First Month with 50g - ttw - 04-16-2015, 08:37 AM
RE: First Month with 50g - Voldemar - 04-22-2015, 08:11 PM
RE: First Month with 50g - Han - 04-22-2015, 11:01 PM
RE: First Month with 50g - rprosperi - 04-23-2015, 12:39 AM
RE: First Month with 50g - Tugdual - 04-23-2015, 07:25 AM
RE: First Month with 50g - Claudio L. - 04-23-2015, 02:03 PM
RE: First Month with 50g - Helix - 04-23-2015, 01:04 PM



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