Sums, Products, & Function Tables

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
Post Reply
richmit
Posts: 28
Joined: Tue Feb 16, 2021 2:51 am

Sums, Products, & Function Tables

Post by richmit »

So I was inspired by the new PGMMENU function. Eventually I want a better function plotter, but first I decided to implement sums, products, and function tables. It works a lot like the built in INTEG function. For tables, the result is a matrix. If the function returns multiple values, then they are all put in the matrix -- up to 4 of them in reverse order. For the sum & product, only the last return value from the function is used. It also has an option to take the ln of returned function values. Anyhow, have fun:

https://richmit.github.io/hp42/pgmforfun.html

EDIT: You need free42 v3 -- so use the beta firmware recently posted.
Post Reply