Spheroidal wave functions: which angular normalization?

未关闭
#1,630 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
backend

调研方向

The issue proposes prolate and oblate spheroidal wave functions and asks maintainers to choose an angular normalization. Read the linked discussion in #303 and compare the stated Meixner–Schäfke and Flammer conventions, including the SciPy conversion and reference constraints. Done means a convention is agreed on; implementation and high-precision reference tests are described as follow-up work.

由索引模型根据 Issue 内容生成。

描述

Following @dschmitz89's request in #303: we're going to add prolate and oblate spheroidal wave functions (characteristic value, angular function of the first kind, radial functions of the first and second kind, and derivatives), ported from Van Buren's MIT-licensed codes and tested against high-precision Arb/MPFR references.

The radial functions are normalized the same way in every convention. The angular function $S_{mn}(c,\eta)$ is not, and we need to pick one:

Meixner–Schäfke (DLMF 30.4, Mathematica's SpheroidalPS, Van Buren's default)

  • Includes the Condon–Shortley phase, consistent with boost::math::legendre_p.
  • $|S_{mn}| = |P_n^m|$ for every $c$, so the function stays bounded as $c$ grows.

Flammer (scipy.special.pro_ang1/obl_ang1)

  • No Condon–Shortley phase; $S_{mn}(c,0) = P_n^m(0)$ for even $n-m$, $S_{mn}'(c,0) = P_n^{m\prime}(0)$ for odd.
  • Drop-in for SciPy.
  • For oblate functions the norm grows quickly with $c$: $|S_{00}|/|P_0^0|$ is about 1.2e3 at $c=10$, 3.4e11 at $c=30$ and 2.6e24 at $c=60$.

I lean towards Meixner–Schäfke. SciPy can convert with $S^{\text{Flammer}} = \frac{P_n^m(0)}{\mathrm{Ps}(0)},\mathrm{Ps}$ (and use derivatives at 0 for odd $n-m$), with the phase factor $(-1)^m$. The other option is to ship both. Opinions welcome, especially from the SciPy side.

Note that SciPy's current values can't serve as test references: the reference pro_rad2 satisfies the Wronskian $R^{(1)}R^{(2)\prime} - R^{(1)\prime}R^{(2)} = 1/(c(\xi^2-1))$ to 1e-47, while SciPy's differs from it by 1.1% at $(m,n,c,\xi) = (1,2,2,1.5)$ and by a factor of about 7 at $(3,7,10,1.2)$.

主要语言
C++
星标
378
派生
271
平均合并
12 小时 37 分钟
30 天内合并 PR
66

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

boostorg/math 的其他 Issue

查看 boostorg/math 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。