Post Reply 
(DM42) Matrix exponential
08-23-2023, 02:51 PM
Post: #24
RE: (DM42) Matrix exponential
(08-23-2023 09:09 AM)Gil Wrote:  What is the meaning (perhaps with an example) of the function/command MAXAB(X)?

MAXAB(X) is from JFG "Math Pac 2" - Version 2B Feb. 2021
MAXAB = Array Element Maximum Absolute Value. (Perhaps it should be named MAXABS)
It has a side effect of saving where element is located.

>mat disp x
-5.46969688594
22010.2875425
-22141314.9958

>maxab(x), arow, acol
22141314.9958            3      1
>minab(x), arow, acol
5.46969688594            1      1

Quote:P=MAX(0,IROUND(LOG2(MAXAB(X)))+10)

This is to make sure X/2^P elements size at most ε = 2^(-9.5) ≈ 0.00138

expm1(ε) = ε + ε^2/2! + ε^3/3! + ε^4/4! + ...

If I drop..., expm1 relative error ≈ (ε^5/5!)/ε = ε^4/120 ≤ 3.0E-14, less than machine epsilon.

Note: matrix multiply is a dot product of row and col, it really depends on cell values.
Above is *very* rough estimate of relative errors. (and, only if ε is truly small)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (DM42) Matrix exponential - Gil - 08-11-2023, 11:46 PM
RE: (DM42) Matrix exponential - Gil - 08-12-2023, 10:01 AM
RE: (DM42) Matrix exponential - Gil - 08-12-2023, 08:26 PM
RE: (DM42) Matrix exponential - Gil - 08-12-2023, 08:55 PM
RE: (DM42) Matrix exponential - Gil - 08-13-2023, 10:51 AM
RE: (DM42) Matrix exponential - Gil - 08-13-2023, 09:46 PM
RE: (DM42) Matrix exponential - Gil - 08-15-2023, 11:42 PM
RE: (DM42) Matrix exponential - John Keith - 08-16-2023, 12:01 PM
RE: (DM42) Matrix exponential - Gil - 08-16-2023, 12:45 PM
RE: (DM42) Matrix exponential - Werner - 08-23-2023, 07:16 AM
RE: (DM42) Matrix exponential - John Keith - 08-27-2023, 04:46 PM
RE: (DM42) Matrix exponential - Gil - 08-23-2023, 09:09 AM
RE: (DM42) Matrix exponential - Albert Chan - 08-23-2023 02:51 PM
RE: (DM42) Matrix exponential - Werner - 08-24-2023, 01:14 PM
RE: (DM42) Matrix exponential - Gil - 08-28-2023, 08:57 AM



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