First Month with 50g
|
04-16-2015, 01:56 AM
Post: #24
|
|||
|
|||
RE: First Month with 50g
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. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)