Skip to content

v0.4.0

Choose a tag to compare

@jaehyukchoi jaehyukchoi released this 25 May 22:26
· 42 commits to main since this release
af7817d

What's new

New compiled module mathpf.mills — the Mills ratio R(x)=N(-x)/n(x) and its derivatives:

  • millsratio (R), millsratio_d1 (−R′), millsratio_d3 (−R‴), millsratio_rel_below1 ((√(π/2)−R)/x on [0,1])
  • Cimport-able C kernels _R / _R1 / _R3 / _Rrel_below1 (noexcept nogil) for downstream Cython use
  • Segmented Chebyshev (flat bucket-major tables) + tiered Laplace continued fraction; data in _mills_coef.h (static const double[], C/C++-includable)
  • Bit-identical to the mpmath-verified reference; ~190× faster than the scalar Python loop

See #1.