[libc-commits] [libc] [libc][math] Add missing parenthesis in sollya command (PR #132298)

Krishna Pandey via libc-commits libc-commits at lists.llvm.org
Thu Mar 20 16:02:25 PDT 2025


https://github.com/krishna2803 created https://github.com/llvm/llvm-project/pull/132298

This PR adds the missing opening parenthesis for sollya command comment in `libc/src/math/generic/cbrtf.cpp#L28`.

>From 365050307379b1201e609278e956d3c078e5d75e Mon Sep 17 00:00:00 2001
From: krishna2803 <kpandey81930 at gmail.com>
Date: Fri, 21 Mar 2025 04:28:18 +0530
Subject: [PATCH] fix: missing parenthesis in sollya command

Signed-off-by: krishna2803 <kpandey81930 at gmail.com>
---
 libc/src/math/generic/cbrtf.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/math/generic/cbrtf.cpp b/libc/src/math/generic/cbrtf.cpp
index 0abbf6e879421..71b23c4a8c742 100644
--- a/libc/src/math/generic/cbrtf.cpp
+++ b/libc/src/math/generic/cbrtf.cpp
@@ -25,7 +25,7 @@ constexpr double CBRT2[3] = {1.0, 0x1.428a2f98d728bp0, 0x1.965fea53d6e3dp0};
 // Degree-7 polynomials approximation of ((1 + x)^(1/3) - 1)/x for 0 <= x <= 1
 // generated by Sollya with:
 // > for i from 0 to 15 do {
-//     P = fpminimax((1 + x)^(1/3) - 1)/x, 6, [|D...|], [i/16, (i + 1)/16]);
+//     P = fpminimax(((1 + x)^(1/3) - 1)/x, 6, [|D...|], [i/16, (i + 1)/16]);
 //     print("{", coeff(P, 0), ",", coeff(P, 1), ",", coeff(P, 2), ",",
 //           coeff(P, 3), ",", coeff(P, 4), ",", coeff(P, 5), ",",
 //           coeff(P, 6), "},");



More information about the libc-commits mailing list