Post Reply 
(12C) Signum Function
03-04-2019, 02:02 AM (This post was last modified: 03-04-2019 02:30 AM by Albert Chan.)
Post: #19
RE: (12C) Signum Function
(03-03-2019 11:27 PM)Thomas Klemm Wrote:  If we just look at the mantissa it appears that this only happens for values between \(\sqrt{10} \approx 3.16228\) and \(5\).

This range can be explained by squaring errors: (x·(1+ε))² = x²·(1+2ε+ε²) ≈ x²·(1+2ε)
Assuming numbers in scientific notation, with mantissa = [1, 10), ulp = 1e-9

Max rel error of √(x²) ≈ ½ Max rel error of x² = ½ (½ ulp / mantissa(x²))

Max abs error of √(x²) ≈ ¼ ulp (mantissa(x) / mantissa(x²))

Round-trip errors occurs if √(x²) abs error ≥ ½ ulp
-> mantissa(x)    between √10 and 5.0
-> Max abs error between 0.79 and 0.50 ulp

Edit: this also explained why (√x)² may have errors upto 3 ULP
Example: (√9.11)² = 9.110000003
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Signum Function - Gamo - 03-01-2019, 06:29 AM
RE: (12C) Signum Function - Dieter - 03-04-2019, 10:57 AM
RE: (12C) Signum Function - Gamo - 03-02-2019, 05:47 AM
RE: (12C) Signum Function - Dieter - 03-02-2019, 05:22 PM
RE: (12C) Signum Function - rprosperi - 03-02-2019, 08:57 PM
RE: (12C) Signum Function - Gamo - 03-03-2019, 02:31 AM
RE: (12C) Signum Function - Dieter - 03-03-2019, 12:38 PM
RE: (12C) Signum Function - Thomas Klemm - 03-03-2019, 08:17 AM
RE: (12C) Signum Function - Albert Chan - 03-03-2019, 01:15 PM
RE: (12C) Signum Function - Gamo - 03-03-2019, 02:39 PM
RE: (12C) Signum Function - rprosperi - 03-03-2019, 03:34 PM
RE: (12C) Signum Function - Dieter - 03-03-2019, 05:51 PM
RE: (12C) Signum Function - Dieter - 03-04-2019, 10:49 AM
RE: (12C) Signum Function - rprosperi - 03-03-2019, 07:59 PM
RE: (12C) Signum Function - Thomas Klemm - 03-03-2019, 04:59 PM
RE: (12C) Signum Function - Albert Chan - 03-03-2019, 07:49 PM
RE: (12C) Signum Function - Thomas Klemm - 03-03-2019, 11:27 PM
RE: (12C) Signum Function - Albert Chan - 03-04-2019 02:02 AM
RE: (12C) Signum Function - Gamo - 03-04-2019, 04:58 AM



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