The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
( Free42 , DM42 ) Overflow is not trapped of basic matrix arithmetic,
08-12-2023, 12:44 PM
Post: #1
( Free42 , DM42 ) Overflow is not trapped of basic matrix arithmetic,
Dear all

I came across something strange with overflow or out range error reporting for basic matrix arithmetic.

With flag 24 clear and 25 clear, any overflow should result in aborted calculation and a warning.

However consider this simple example where matrix multiplication and overflow is not trapped, it only result in elements being silently replaced by maxreal

DM42 or Free42 in decimal mode flag 24 clear, flag 25 clear

1
ENTER
NEW
8E6144
+
STO M

Matrix multiplication:
RCL M
ENTER
x
result in numbers being silently replaced by maxreal ( 9.99999E6144)

Matrix scaling:
RCL M 10 x
if you scale by 10 you get an error as you should

Matrix addition:
RCL M ENTER +
for addition you get an error as it should.

When in binary mode the limits are different but with same inconsistency

Can anyone check this on a real hp42s?

It is not often you get overflow with the new large floating point range, but still surprising to find this after all the use for many years.

Best regards
Gjermund
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
( Free42 , DM42 ) Overflow is not trapped of basic matrix arithmetic, - Gjermund Skailand - 08-12-2023 12:44 PM



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