From nobody Fri Aug 23 18:06:58 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wr7Lr05Cnz5Tgmn for ; Fri, 23 Aug 2024 18:07:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wr7Lp5lRvz4JcS for ; Fri, 23 Aug 2024 18:06:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724436418; a=rsa-sha256; cv=none; b=AgiJfjJTPYwCwpLCz08WvDndWhRo/18Z/2ZyCT4M2k42HAl5mNrzLwr2eOfrHbBbimNkO+ awfIsK721xjfkLvIngQf/i65EJzF7dHJSzy8iO6YEDg3AgjtxpaC/9drwUdw0GYWR5HGIg x9Wo00cMmfw5wONB2L3quSp60Sz0BOB19AscrHpVY7Nntr9/2fE/O1MqMUgbwI2HI4gBXT XNzWYLR+neQpsG6eynGH47qKDjkkk9BRv3yIaG/dzZhE/+FcOrLbgdfhGkXYAdHITc35Fk SbgQBs/v/gKRGm7AamiLw1mXbfN9PK5WeD1z8nNVfeaLwzRoNIGubLUFD3GAHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724436418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wj1f2105ftTC7o3yoZz0S8jq6CreKEwSltw4ie0mRpQ=; b=IJayJj94aaFAg3gxabo3FHOxsMKPELXLMLdpw43Hi7ZlwN06FiLJXMNxtfB67DGp2NUzIh jX4zj6CeXTtBvZenQv7pBrMT2W111YPPbc+ylHH/HhvMOhqonnIArg2qkLtIt8J5TOz4mt gn0t7cK1fm7K5u1qOSTYvbCn48+FITggDsizZ8pvnPwIVpJG1yEnGImRgQOTRfWwrVOZ6C YbWsW7DGC5w6VdByxSvUUOGX810qur8cppBPhrjqt1QKdSwwEG4pBwNV8BruQ53W9aMIfq kF7gqNLKgZW1yJEM8QG7jzIfNQnbs5slwWr6carMPTm/KYS8ctqSKjp2CbBOQQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wr7Lp5MG6zLsW for ; Fri, 23 Aug 2024 18:06:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47NI6wVH045068 for ; Fri, 23 Aug 2024 18:06:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47NI6w0b045067 for bugs@FreeBSD.org; Fri, 23 Aug 2024 18:06:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281001] Improve accuracy of asinf(x) Date: Fri, 23 Aug 2024 18:06:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281001 Steve Kargl changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #253025|0 |1 is obsolete| | --- Comment #2 from Steve Kargl --- Created attachment 253043 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D253043&action= =3Dedit new patch with changes for both asinf() and acosf(). The new patch has updated the rational approximation in acosf() to match the new rational approximation in asinf(). This change provides only a small improve in accuracy in exhaustive testing over the relevant intervals. Unpatched acosf() gives % ./tlibm acos -fPED -x -1 -X -0x1p-12f Interval tested for acosf: [-1,-0.000244141] ulp <=3D 0.5: 97.008% 97651921 | 97.008% 97651921 0.5 < ulp < 0.6: 2.441% 2457242 | 99.450% 100109163 0.6 < ulp < 0.7: 0.472% 475503 | 99.922% 100584666 0.7 < ulp < 0.8: 0.071% 71309 | 99.993% 100655975 0.8 < ulp < 0.9: 0.007% 7319 | 100.000% 100663294 0.9 < ulp < 1.0: 0.000% 2 | 100.000% 100663296 Max ulp: 0.914007 at -5.01484931e-01 % ./tlibm acos -fPED -x 0x1p-12f -X 1 Interval tested for acosf: [0.000244141,1] ulp <=3D 0.5: 97.317% 97962530 | 97.317% 97962530 0.5 < ulp < 0.6: 2.340% 2355182 | 99.657% 100317712 0.6 < ulp < 0.7: 0.314% 316134 | 99.971% 100633846 0.7 < ulp < 0.8: 0.029% 29450 | 100.000% 100663296 Max ulp: 0.796035 at 4.99814630e-01 Patched acosf() gives % ./tlibm acos -fPED -x -1 -X -0x1p-12f Interval tested for acosf: [-1,-0.000244141] ulp <=3D 0.5: 97.010% 97653245 | 97.010% 97653245 0.5 < ulp < 0.6: 2.442% 2458373 | 99.452% 100111618 0.6 < ulp < 0.7: 0.473% 476012 | 99.925% 100587630 0.7 < ulp < 0.8: 0.068% 68603 | 99.993% 100656233 0.8 < ulp < 0.9: 0.007% 7063 | 100.000% 100663296 Max ulp: 0.896189 at -5.04511118e-01 % ./tlibm acos -fPED -x 0x1p-12f -X 1 Interval tested for acosf: [0.000244141,1] ulp <=3D 0.5: 97.650% 98298175 | 97.650% 98298175 0.5 < ulp < 0.6: 2.028% 2041709 | 99.679% 100339884 0.6 < ulp < 0.7: 0.292% 293555 | 99.970% 100633439 0.7 < ulp < 0.8: 0.030% 29857 | 100.000% 100663296 Max ulp: 0.775875 at 4.91849005e-01 --=20 You are receiving this mail because: You are the assignee for the bug.=