From patchwork Tue Mar 5 01:10:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 86776 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 66C763858298 for ; Tue, 5 Mar 2024 01:10:48 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by sourceware.org (Postfix) with ESMTPS id CB4603858414 for ; Tue, 5 Mar 2024 01:10:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB4603858414 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CB4603858414 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=145.40.73.55 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709601026; cv=none; b=ZmiLmGbti/Dsn5gbzALHtueMyAqtphSY0zXkX/HbOhRJ/LI81CzPeDY91TIVrax4ZhJk1b7QJjHG00TARjcNY6F4/v9P2/zeihH28yRFeSgGF3nG/WSGA353nnxTQjt/ERryhy8BhQLyHuOnrBkDXl8WdOmwNvKrf5ZgInGMfsM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709601026; c=relaxed/simple; bh=oW5NwtK0hNzXzD7fH5BCGXdppiqCEYRKK4/CQYznglc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=PZK/9uE4jLeUtS6AhcsE3OW6+RtssVapOTVOCvuueQvO35nQfinyrVH3FxyTheepG6BHiIZs/jHESw4yDKtTPOFfZtNDI8Q311FwU6xYIHwOCl88sOpWXcix0QehTrGgY23pSh2k//y0PE4RO3eyjcThwz7MKYFJgpXTbXu//yQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 76928CE14E5; Tue, 5 Mar 2024 01:10:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4609C433F1; Tue, 5 Mar 2024 01:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709601019; bh=oW5NwtK0hNzXzD7fH5BCGXdppiqCEYRKK4/CQYznglc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nFIXjFfXlj3WjhUXlnNnyTREoh0q7qVBdGq+JwAq0VyEyFRYSb2xyPF2Se4CZ9E9w ASxyl5rni7AGqbJ+566R9sGVF2k2SjaidFja8RiHaxXHQXDYOuMW6Aelob+0I2cctL z+qntuYTRai5S2XiE7Z4b6zSZlpvpCMKD3sxwu2yc6ePz3OLuxtJWijh16YcGH1GOb zHn58pFmSJjR/aktdSpaeKB9SIY3SvOhN51SHfHylFDjQZJxWonwGV4urcXH2K+1mv bJju1TfJnaUz0+0ZudHLgf+yNJ9nAG02vkUEeYIbWfdi9h9ibxa5jUD1ku7ioayD/v 2nE+O5wy2SNzg== Date: Tue, 5 Mar 2024 02:10:17 +0100 From: Alejandro Colomar To: libc-alpha@sourceware.org Cc: Alejandro Colomar , Morten Welinder , Adhemerval Zanella Netto Subject: [PATCH] manual: Cube roots are rarely representable Message-ID: <20240305010917.8460-2-alx@kernel.org> X-Mailer: git-send-email 2.43.0 References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Reported-by: Morten Welinder Cowritten-by: Morten Welinder Cc: Adhemerval Zanella Netto Signed-off-by: Alejandro Colomar --- Hi Adhemerval, I've used semantic newlines, but maybe you prefer not. Just let me know. Have a lovely night! Alex manual/math.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/manual/math.texi b/manual/math.texi index bf4027c4ee..bc65400bc8 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -697,8 +697,12 @@ Mathematically, it should return a complex number. @standardsx{cbrtfN, TS 18661-3:2015, math.h} @standardsx{cbrtfNx, TS 18661-3:2015, math.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions return the cube root of @var{x}. They cannot -fail; every representable real value has a representable real cube root. +These functions return the cube root of @var{x}. +They cannot fail; +every representable real value +has a real cube root, +and rounding it to a representable value +never causes overflow nor underflow. @end deftypefun @deftypefun double hypot (double @var{x}, double @var{y})