complex log
|
02-11-2024, 06:32 PM
Post: #7
|
|||
|
|||
RE: complex log
(02-10-2024 09:55 PM)Albert Chan Wrote: Update: previously, I used shift of (M_LN2*732) to avoid hypot() function. Version 1b with smaller shift (M_LN2*61) avoid most double rounding problem, but not all. There are still holes where log part and final result ULP size are different. This version traded hypot() for frexp(), and have no performance penalty. I still use 732 for rough shift, but any number that get finite (x²+y²) is OK (x²+y²) = h * 2^n log(x²+y²)/2 = log(h)/2 + (n/2)*log(2) With h = [0.5, 1), log(h)/2 = [-.3466, -0). max ulp = (ulp of 1/4), same as version 2 Clog Version 1c Code: static Complex Clog(Complex z) { |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
complex log - Albert Chan - 02-07-2024, 12:47 AM
RE: complex log - Albert Chan - 02-07-2024, 12:49 AM
RE: complex log - Albert Chan - 02-07-2024, 11:24 PM
RE: complex log - Albert Chan - 02-07-2024, 11:03 AM
RE: complex log - Albert Chan - 02-08-2024, 09:04 PM
RE: complex log - Albert Chan - 02-10-2024, 09:55 PM
RE: complex log - Albert Chan - 02-11-2024 06:32 PM
|
User(s) browsing this thread: 1 Guest(s)