-
-
Notifications
You must be signed in to change notification settings - Fork 818
[RFC]: add airy
to compute Airy functions
#6962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rreusser Yes, this makes sense to me and would be a welcome addition! |
@rreusser Are you thinking to follow the SciPy implementation or is there some other reference implementation (e.g., Boost) which serves as the gold standard? |
SciPy's implementation in |
It looks to me like:
I don't have a strong opinion myself. My preference would be for cephes or xsf, then boost, mainly just since boost seems very, very well done, but in a way that requires a lot more untangling of dependencies and logic and probably a couple/few precursor packages. (I think it was for bessel where functions keep calling themselves with differently-typed arguments until templating sifts through it and selects the proper implementation. C++ certainly is certainly a higher-effort candidate for translation.) Just one note, am I missing something that it looks to me like scipy depends on cephes and not xsf? See scipy.airy notes:
Perhaps the notes are outdated? |
|
Ah, that makes sense. How about xsf then? |
I am fine with using the |
@rreusser Well, you are a pro. |
It's criminally easy to just |
We'll see how well that withstands code review. 😅 |
close stdlib-js#6962 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: passed - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: passed - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
Description
Airy functions are a common special function in scientific applications, particularly wave phenomena. This RFC proposes to add a single package to compute for real-valued inputs the Airy function of the first kind, Ai(x), the second kind, Bi(x), and respective derivatives, Ai'(x) and Bi'(x).
The four outputs share a lot of computation, so for similar reasons and in the style of @stdlib/math/base/special/ellipj, perhaps the structure that makes sense is a single package,
airy
with exports:Exports
ai
,aip
,bi
, andbip
would be convenience functions that compute all four values and throw away three.Related Issues
No response
Questions
No.
Other
See also:
scipy.special.airy
cephes airy
Checklist
RFC:
.The text was updated successfully, but these errors were encountered: