Post Reply 
HP Prime complex division problem in CAS
11-21-2020, 07:20 AM (This post was last modified: 11-21-2020 07:26 AM by parisse.)
Post: #14
RE: HP Prime complex division problem in CAS
(11-20-2020 05:47 PM)Albert Chan Wrote:  Definition of |z| = |x|+|y| is inconsistent. This rule *only* applied for non-vector argument.

CAS> maxnorm(3+4i)      → 7 ???
CAS> maxnorm([3+4i])      → 5

If speed is what we are after, we could just use l1norm:

CAS> l1norm(3+4i)      → 7
CAS> l1norm([3+4i])      → 7

Indeed, linfnorm==maxnorm is inconsistent. It should return 4 for both. However, I don't want to make such a change, because it breaks my regression tests. You will have to live with this inconsistency.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP Prime complex division problem in CAS - parisse - 11-21-2020 07:20 AM



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