Post Reply 
DM 42
05-28-2017, 08:57 PM
Post: #72
RE: DM 42
I just released Free42 2.0.3, which fixes acos(cos(1+i)) and asin(acos(atan(tan(cos(sin(1+0i)))))), and a few other edge cases.

I found that some of the incorrect branches were because of negative zeros. I added code to test for those where I found them, but the more rigorous approach would be to change the < and > operators to not consider -0 < 0. That would make the internal semantics of Free42 match those of the HP-42S. I'll do that in the next release.

(05-26-2017 01:17 PM)jch Wrote:  I had to use a paper clip to reset my DM42 after I tried to create a 100 x 100 matrix.
That yields to a 'Malloc Error' and I had to reset the calculator. I first tried a gentle pressure, but it requires a firm one.

That is something you should definitely report to SwissMicros. When memory allocation fails while trying to create a matrix that is too large, Free42 handles the NULL returned by malloc(), and cleans up gracefully and returns the "Insufficient Memory" error message, just like the HP-42S. It should not freeze!

Perhaps they decided to catch malloc() failures at the system level because there are a few places in Free42 where it doesn't handle memory allocation failures properly, but the thing to do is to fix those places *in Free42*, not make malloc() do weird things when it can't satisfy an allocation request.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
DM 42 - Geoff Quickfall - 05-19-2017, 05:21 PM
RE: DM 42 - Dave Frederickson - 05-19-2017, 05:29 PM
RE: DM 42 - Dave Frederickson - 05-26-2017, 08:32 PM
RE: DM 42 - Massimo Gnerucci - 05-19-2017, 05:30 PM
RE: DM 42 - Ángel Martin - 05-19-2017, 05:53 PM
RE: DM 42 - Massimo Gnerucci - 05-19-2017, 06:08 PM
RE: DM 42 - Dan B - 05-19-2017, 08:58 PM
RE: DM 42 - Geoff Quickfall - 05-19-2017, 09:30 PM
RE: DM 42 - Luigi Vampa - 05-19-2017, 09:38 PM
RE: DM 42 - Namir - 05-20-2017, 01:07 AM
RE: DM 42 - 48GX - 05-24-2017, 11:37 AM
RE: DM 42 - Dave Britten - 05-24-2017, 01:27 PM
RE: DM 42 - matthiaspaul - 05-25-2017, 09:09 PM
RE: DM 42 - matthiaspaul - 05-26-2017, 12:18 AM
RE: DM 42 - matthiaspaul - 05-29-2017, 11:26 PM
RE: DM 42 - 48GX - 05-30-2017, 12:37 AM
RE: DM 42 - rprosperi - 05-30-2017, 02:21 AM
RE: DM 42 - grsbanks - 05-30-2017, 10:31 AM
RE: DM 42 - Logan - 05-24-2017, 11:38 AM
RE: DM 42 - HP-Collection - 05-24-2017, 12:15 PM
RE: DM 42 - Dave Frederickson - 05-24-2017, 03:58 PM
RE: DM 42 - Guenter Schink - 05-24-2017, 01:53 PM
RE: DM 42 - Ángel Martin - 05-26-2017, 01:36 PM
RE: DM 42 - Thomas Okken - 05-26-2017, 04:30 PM
RE: DM 42 - Guenter Schink - 05-26-2017, 04:53 PM
RE: DM 42 - Ángel Martin - 05-27-2017, 05:27 AM
RE: DM 42 - Logan - 05-24-2017, 04:32 PM
RE: DM 42 - Ángel Martin - 05-24-2017, 04:44 PM
RE: DM 42 - Vtile - 05-24-2017, 05:34 PM
RE: DM 42 - Guenter Schink - 05-24-2017, 06:42 PM
RE: DM 42 - Ángel Martin - 05-24-2017, 06:48 PM
RE: DM 42 - Vtile - 05-24-2017, 07:58 PM
RE: DM 42 - Thomas Okken - 05-24-2017, 11:25 PM
RE: DM 42 - Ángel Martin - 05-25-2017, 04:50 AM
RE: DM 42 - Thomas Okken - 05-25-2017, 11:31 AM
RE: DM 42 - Ángel Martin - 05-25-2017, 04:35 PM
RE: DM 42 - Thomas Okken - 05-25-2017, 06:16 PM
RE: DM 42 - matthiaspaul - 05-26-2017, 11:38 AM
RE: DM 42 - Hsilop - 05-24-2017, 08:25 PM
RE: DM 42 - Logan - 05-24-2017, 08:29 PM
RE: DM 42 - Vtile - 05-24-2017, 08:30 PM
RE: DM 42 - Hsilop - 05-24-2017, 09:05 PM
RE: DM 42 - Vtile - 05-24-2017, 09:08 PM
RE: DM 42 - Logan - 05-24-2017, 09:09 PM
RE: DM 42 - Vtile - 05-24-2017, 09:11 PM
RE: DM 42 - Paul Dale - 05-25-2017, 12:59 AM
RE: DM 42 - Thomas Okken - 05-25-2017, 02:13 AM
RE: DM 42 - Guenter Schink - 05-25-2017, 09:52 AM
RE: DM 42 - Paul Dale - 05-25-2017, 11:11 AM
RE: DM 42 - Ángel Martin - 05-25-2017, 04:31 PM
RE: DM 42 - toml_12953 - 05-25-2017, 05:15 PM
RE: DM 42 - Thomas Okken - 05-25-2017, 06:21 PM
RE: DM 42 - Paul Dale - 05-26-2017, 12:05 AM
RE: DM 42 - toml_12953 - 05-26-2017, 01:37 AM
RE: DM 42 - pier4r - 05-25-2017, 08:03 PM
RE: DM 42 - Thomas Okken - 05-25-2017, 10:57 PM
RE: DM 42 - Paul Dale - 05-26-2017, 03:51 AM
RE: DM 42 - Ángel Martin - 05-26-2017, 05:33 AM
RE: DM 42 - Thomas Okken - 05-26-2017, 07:24 AM
RE: DM 42 - toml_12953 - 05-26-2017, 07:41 AM
RE: DM 42 - toml_12953 - 05-26-2017, 07:33 AM
RE: DM 42 - Paul Dale - 05-26-2017, 07:34 AM
RE: DM 42 - toml_12953 - 05-26-2017, 12:52 PM
RE: DM 42 - Thomas Okken - 05-26-2017, 04:36 PM
RE: DM 42 - toml_12953 - 05-26-2017, 07:37 PM
RE: DM 42 - AlexFekken - 05-26-2017, 10:24 AM
RE: DM 42 - Ángel Martin - 05-26-2017, 12:19 PM
RE: DM 42 - jch - 05-26-2017, 01:17 PM
RE: DM 42 - Thomas Okken - 05-28-2017 08:57 PM
RE: DM 42 - rprosperi - 05-28-2017, 09:09 PM
RE: DM 42 - Thomas Okken - 05-28-2017, 09:47 PM
RE: DM 42 - rprosperi - 05-28-2017, 10:04 PM
RE: DM 42 - Thomas Okken - 05-28-2017, 10:24 PM
RE: DM 42 - rprosperi - 05-29-2017, 12:10 AM
RE: DM 42 - Thomas Okken - 05-29-2017, 01:30 AM
RE: DM 42 - rprosperi - 05-29-2017, 02:12 AM
RE: DM 42 - Massimo Gnerucci - 05-26-2017, 06:16 PM
RE: DM 42 - pier4r - 05-26-2017, 06:24 PM
RE: DM 42 - Thomas Okken - 05-26-2017, 06:56 PM
RE: DM 42 - Geoff Quickfall - 05-26-2017, 08:59 PM
RE: DM 42 - Dave Frederickson - 05-26-2017, 09:22 PM
RE: DM 42 - Geoff Quickfall - 05-26-2017, 09:44 PM
RE: DM 42 - matthiaspaul - 05-30-2017, 10:45 AM
RE: DM 42 - Massimo Gnerucci - 05-30-2017, 11:37 AM
RE: DM 42 - Guenter Schink - 05-30-2017, 12:24 PM
RE: DM 42 - Thomas Okken - 05-30-2017, 12:50 PM
RE: DM 42 - Ángel Martin - 05-30-2017, 04:44 PM
RE: DM 42 - Guenter Schink - 05-30-2017, 06:48 PM
RE: DM 42 - Ángel Martin - 05-30-2017, 07:47 PM
RE: DM 42 - David Hayden - 02-10-2018, 08:51 PM
RE: DM 42 - Logan - 02-10-2018, 09:47 PM
RE: DM 42 - Guenter Schink - 02-10-2018, 11:18 PM



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