[libcxx-commits] [libcxx] [libc++][math][c++17] P0226R1 - Mathematical Special Functions: infra + `std::assoc_laguerre` (PR #205649)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 26 09:30:46 PDT 2026
================
@@ -0,0 +1,23 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++17
+
+// <cmath>
+//
+// [sf.cmath.assoc.laguerre], associated Laguerre polynomials
+// float assoc_laguerref(unsigned n, unsigned m, float x);
+
+#include <cassert>
+#include <cmath>
+
+int main() {
+ // Single value tested against known solution.
+ // Note, underlying Boost.Math is itself well-tested.
----------------
PaulXiCao wrote:
@Zingam I just pushed it (had it locally but uncommitted). See a47f9e902e5c427c84115f4af119eedf8778e182 .
It is mostly taken 1-to-1 from the Phabricator issue. Do you think we should add more tests?
https://github.com/llvm/llvm-project/pull/205649
More information about the libcxx-commits
mailing list