(42) Double precision summation and DOT
|
04-14-2020, 02:35 PM
Post: #2
|
|||
|
|||
RE: (42) Double precision summation and DOT
Quote:0.9 SQRT X^2 0.9 - produces 10^-n, where n=12 for a real 42S and 34 for Free42 Decimal. This is just lucky. For decimal precision P, many times it just return 0. Code: P "0.9 SQRT X^2 0.9 -" Kahan suggest a better way, "Matlab’s Loss is Nobody’s Gain", page 5 ULP = abs((4/3 - 1)*3 – 1) round(4/3 - 1) has error of 1/3 ULP (exactly), under both decimal and binary version Example: Free42Binary.exe: ULP = 2^-52 ≈ 2.22E-16 → precision = 53 bits Free42Decimal.exe: ULP = 1E-33 → precision = 34 decimals |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42) Double precision summation and DOT - Werner - 04-14-2020, 08:38 AM
RE: (42) Double precision summation and DOT - Albert Chan - 04-14-2020 02:35 PM
RE: (42) Double precision summation and DOT - Werner - 04-14-2020, 04:20 PM
RE: (42) Double precision summation and DOT - Albert Chan - 04-14-2020, 03:07 PM
RE: (42) Double precision summation and DOT - Albert Chan - 04-15-2020, 12:54 AM
RE: (42) Double precision summation and DOT - Werner - 04-15-2020, 06:50 AM
RE: (42) Double precision summation and DOT - Albert Chan - 04-15-2020, 01:26 PM
|
User(s) browsing this thread: 1 Guest(s)