Skip to content

[RFC]: add airy to compute Airy functions #6962

Open
@rreusser

Description

@rreusser

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:

airy(x)           // [ Ai(x), Ai'(x), Bi(x), Bi'(x) ]
airy.ai( x )      // Ai(x)
airy.aip( x )     // Ai'(x)
airy.bi( x )      // Bi(x)
airy.bip( x )     // Bi'(x)
airy.assign( x, out, stride, offset )

Exports ai, aip, bi, and bip 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

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedRFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.MathIssue or pull request specific to math functionality.RFCRequest for comments. Feature requests and proposed changes.difficulty: 3Likely to be challenging but manageable.priority: NormalNormal priority concern or feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions