From nobody Mon Sep 25 18:20:25 2023 X-Original-To: freebsd-hackers@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 4RvWQP1FsQz4ttCx for ; Mon, 25 Sep 2023 18:20:45 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RvWQP0dwPz3J46; Mon, 25 Sep 2023 18:20:45 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695666045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gjIsEQ5J+A25eUjbgtypvExcRt5RlUpdUUCrB96Dapo=; b=Zs2iSD+awEWiIxcdCfNimj5YXFFNEk+xEmI/sLTRz8YmdL29iOLrd2AE8IewAITsgEfuuy T7tS5wzC0FLfrAPjlaPgpN+gDvtSxcbPVlNPzEj7TllRvk2g1mUs61aYnvKo8gWmRW/dO8 bq0xeyGW3+pejdlH+6wXxf9e8UZWgx1mrmQHTpAsLWugyNRfzkOLLRpEiVfEbUsy5KLjtM MQikG4mKr6+Wd0oQKSZaeJjKNKCX5jlMfEdCJgqcMiYEiGp0GGsz/FFKonRN3Cx9BUScPw qOCkNqHzHv2T5gZWylXVFexlLEdVa3RaTaQ2vcBsp4TpgJ8B4k+sM7V/EVZvOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695666045; a=rsa-sha256; cv=none; b=k+ePR1vJOAFUD2T3Zkuyol5BlGkrzYWuHmXGg/+f8ZbwsvETna5ib3Nsiqa1NwfyOxzMr9 bE7uzGoQ0NhPogn8zvbHJ3QF5lHA05+U5Pweh6G9zBcsZxg52Oy0/BIMIa9aKsgVwIqlIQ yjq474GXc2UnnYrW6x1fd/1xmM3MVzpYjzJJJrG90U8VLLT4PIih2Eywr7XJvn9wXmTVVN I6+IL0mxhDzRsGWnlQlK3/1rZhFEKOvcT1NqG1ToHtptU1EWT0jwfqa8Od3VMCrIqaANZ+ 9ZPeF+W3g8oXN0ZzQrIZFye2+LgdDgeIneQa7IxF71MLVtlG7GcE/399x5WX4w== 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=1695666045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gjIsEQ5J+A25eUjbgtypvExcRt5RlUpdUUCrB96Dapo=; b=rHnF/p5FEN49Sqa/a+94sIDX1yr4qlf1YDnFG2f2j2SicWUtVwXp6VyCRg/e5mHvsEA01Z 7GvbQuwhCY/ntUlUsSHplt/0C/wt7VZdbdhgecnD04MYFtrfcgfNbNsdJBH06bTTMIfw2O KVN6tnIZEEVa6wBLAKgrMPJuOl+aaAqVQ3QsqP4PJCaRWRN6aXwih5w+hfJoUeKC77NAHE DBFGUYFkMEwQKKgxmpVkSzSYn8ZUF1ujk3vPldetqmcrklx7GBn2uIcxfrvkLyFrycOVr2 wcUEZTT6uPdQj2E5WPqjWXiOtu1aoNXXzLvI6rzejISpDz6w5uk0zbsUOl9nTQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RvWQN5zH0z1Ksw; Mon, 25 Sep 2023 18:20:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AE7422ADAA; Mon, 25 Sep 2023 20:20:42 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_24E27A91-7539-491E-A37D-966F2689EC15"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Accuracy of Mathematical Functions From: Dimitry Andric In-Reply-To: Date: Mon, 25 Sep 2023 20:20:25 +0200 Cc: freebsd-hackers@freebsd.org Message-Id: References: To: Paul Zimmermann X-Mailer: Apple Mail (2.3731.700.6) --Apple-Mail=_24E27A91-7539-491E-A37D-966F2689EC15 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 25 Sep 2023, at 15:50, Paul Zimmermann = wrote: >=20 > I hope this is not off-topic for this list (Technical discussions = relating > to FreeBSD). The freebsd-numerics@ list might have been a better match, but it receives very low traffic, and the audience on this list will be larger. > We have updated our comparison: >=20 > https://members.loria.fr/PZimmermann/papers/accuracy.pdf >=20 > This new update includes for the first time the FreeBSD math library, > whose accuracy is quite good, except: >=20 > * single precision: the Bessel functions, lgammaf, cospif, sinpif, = tanpif, powf > * double precision: the Bessel functions, lgammaf, tgammaf, cospi, = sinpi, > tanpi, pow > * double-extended precision: erfcl, lgammal, tgammal, cospil, sinpil, = tanpil, > powl >=20 > Some issues have already been fixed in the development version by = Steve > Kargl (we used FreeBSD 13.2). Very interesting paper! Of course we are always interested in improvements for libm, and Steve semi-regularly posts patches in our bug tracker. (Steve's no longer a committer, but usually these get committed by others quickly enough.) At the moment FreeBSD 14.0 is in beta phase, and there have been a number of updates to libm, so it would be interesting to see if it makes the ulp situation a bit better. -Dimitry --Apple-Mail=_24E27A91-7539-491E-A37D-966F2689EC15 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZRHPaQAKCRCwXqMKLiCW o2TMAJ9/Q+8EvzDIV+ICI9t0Mis+s43PwQCgvTM2PSETRbFIrvjwkpm7dtrCDyM= =JAfZ -----END PGP SIGNATURE----- --Apple-Mail=_24E27A91-7539-491E-A37D-966F2689EC15--