Skip to content

Add special::Bessel trait with xsf implementation#73

Merged
trueb2 merged 7 commits into
qsib-cbie:mainfrom
SpookyYomo:bessel-xsf
Mar 17, 2025
Merged

Add special::Bessel trait with xsf implementation#73
trueb2 merged 7 commits into
qsib-cbie:mainfrom
SpookyYomo:bessel-xsf

Conversation

@SpookyYomo
Copy link
Copy Markdown
Contributor

  1. Add xsf namespace (without polluting special namespace) as being a strictly internal set of functions.

  2. Add Bessel trait.

  3. Add modified bessel i0 function. Here are the plots.
    log
    diff

  4. Add scaled modified bessel i0e function.

Similar issue to #71 where clippy complains that there is an excess of precision. This is probably however necessary to ease maintainence burden.
Supercedes #71.

Introduces the xsf namespace without tainting the special:: namespace.

Introduces the chbevl function, which will be needed for functions such
as i0, i1, k0, k1, rgamma and shichi.
Implement bessel as a trait for f64 with the modified i0 bessel function
first. Can easily be extended for Vec and Array as necessary later.
We keep the extra precision to keep it easy to maintain the
implementations (currently just mirrored) between the f32 and f64
versions.
@SpookyYomo SpookyYomo requested a review from trueb2 as a code owner March 9, 2025 14:25
@SpookyYomo SpookyYomo changed the title Add Bessel trait with xsf implementation Add special::Bessel trait with xsf implementation Mar 9, 2025
@SpookyYomo SpookyYomo force-pushed the bessel-xsf branch 2 times, most recently from d79ae33 to c017378 Compare March 9, 2025 16:40
@trueb2 trueb2 merged commit e6b55a0 into qsib-cbie:main Mar 17, 2025
@SpookyYomo SpookyYomo deleted the bessel-xsf branch March 17, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants