Collection of functions for DM42/Free42 (updated on 2021-02-23)

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.
ferni123
Posts: 36
Joined: Tue Aug 08, 2017 11:24 am

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by ferni123 »

Thanks! If you find any issue, please let me know.

The ideas was to emulate the built-in functions like Solve or Integrate and provide some numerical derivative capabilities to the calculator.

By the way, use the files with the tag 1.1.0 in the repository. Those ones are the latest version.

Cheers,
Fernando
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by salvomic »

ferni123 wrote:
Tue Feb 23, 2021 8:07 pm
Thanks! If you find any issue, please let me know.
The ideas was to emulate the built-in functions like Solve or Integrate and provide some numerical derivative capabilities to the calculator.
well. Maybe in SUMN you could avoid to output X to set, letting only LLIM, ULIM, STEP, VARS (?) and SUM, or has that a particular relevance or value?
I tried: sum(0, 10, FF), without input X it was ok.
ferni123 wrote:
Tue Feb 23, 2021 8:07 pm
By the way, use the files with the tag 1.1.0 in the repository. Those ones are the latest version.
ok, I'll control for it.
@Thomas: maybe I don't remember if there is a way to delete a whole suite like this with all the subroutines without delete them one by one... or, at least, replace e.g. "allsuite.raw" with a new version, upgrading all at once, as Fernando present to us quite a lot of nice programs, and it is so boring to delete one by one to test a new version :)
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
ferni123
Posts: 36
Joined: Tue Aug 08, 2017 11:24 am

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by ferni123 »

Hi Salvo,

Actually, if you set X to a value, LLIM is automatically updated with that value. As the variable selection is done through VARMENU, you can take advantage of that to set LLIM at the same time that you select LLIM.

The CALC functions are sharing some auxiliary functions and the "Set vars; Select var" message is shared between functions.

Regarding deleting the programs, if you delete one function of a "module", all the module is deleted. Also, another option is to clear all the memory.

Cheers,
Fernando
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by salvomic »

understood ;-)
thanks

Salvo

EDIT: in the meantime, I'm appreciating much the new Catalog menu in Free42 3.0.
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by salvomic »

ferni123 wrote:
Sat Jan 23, 2021 8:00 pm

Time: second, minute, hour, day, sideral day, week
hi Fernando,
if h==24, sd==1.002738, d==3600,
is it correct so?

thanks,
Salvo

EDIT: both Free42 3.0.1 and the new firmware of DM42 (DMCP-3.21 / DM42-3.18b2 BETA).
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
ferni123
Posts: 36
Joined: Tue Aug 08, 2017 11:24 am

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by ferni123 »

Hi Salvo,

Thanks for the notification. Indeed, it is a bug. It is already fixed in gitlab. The line 189 of the module UNIT should be 86400.

Best regards,
Fernando
User avatar
salvomic
Posts: 186
Joined: Sat Dec 30, 2017 10:09 am
Location: Ragusa, Sicily
Contact:

Re: Collection of functions for DM42/Free42 (updated on 2021-02-23)

Post by salvomic »

ferni123 wrote:
Tue Mar 30, 2021 3:45 pm
Hi Salvo,

Thanks for the notification. Indeed, it is a bug. It is already fixed in gitlab. The line 189 of the module UNIT should be 86400.

Best regards,
Fernando
thanks for info.
I'll try to encode in .raw with the Tool, that, perhaps should be reviewed with the new extensions...
(or simply correct line 189) :)
∫aL√0mic (IT9CLU) :: DM42 (SN: 00881), DM41X (SN 00523), DM16, HP Prime, 50g, 41CX, 42s, 71b, 15C, 12C, 35s, WP34s -- Free42
Post Reply