Native Shell
Native Shell은 모든 플랫폼의 앱 안에서 만들어지는 AI UI입니다
수학·물리·통계 특수 함수(감마, 베타, 오류, 베셀 등)를 실수·복소수 인수로 평가합니다
Evaluates the special functions of mathematical physics and statistics, including gamma, beta, error, Bessel, Airy, hypergeometric, elliptic and zeta functions, for real and complex arguments, using t
개발 도구R · CGitHub @pedrobtz온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Evaluates the special functions of mathematical physics and statistics, including gamma, beta, error, Bessel, Airy, hypergeometric, elliptic and zeta functions, for real and complex arguments, using the same kernels as the SciPy librarys scipy.special module (<https://docs.scipy.org/doc/scipy/reference/special.html>). Functions keep SciPy names and argument order so that code translates directly between Python and R, and results agree with SciPy to within its own test tolerances. SciPy' is descr
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗R's special functions are scattered. Base R has the gamma function and
Bessel functions of real argument; complex Bessel functions,
hypergeometric functions, elliptic integrals and the Lambert W function
each live in their own package, or in gsl, which needs the GNU
Scientific Library installed. And when a model is written in Python and
checked in R, or the other way round, two libraries that disagree in the
last digits are a needless source of doubt.
zuspecial gives R the special functions of
scipy.special,
computed by the same C++ kernels: xsf,
the library SciPy's special functions are built from, at the commit
SciPy 1.18.1 uses.
sc_jv(v, z) is
scipy.special.jv(v, z), so code translates line by line.NA-aware, keeping
names and dimensions; floating-point conditions follow SciPy's
seterr(), as warnings or errors when asked for.LinkingTo: zuspecial.Nothing is needed at run time; Boost.Math headers, from the BH package, are needed to build it.
Install zuspecial from CRAN with:
install.packages("zuspecial")
or the development version from GitHub with:
# install.packages("pak")
pak::pak("pedrobtz/zuspecial")
library(zuspecial)
Functions are vectorised, and take complex arguments where SciPy does:
sc_gamma(c(0.5, 5))
#> [1] 1.772454 24.000000
sc_gamma(1 + 1i)
#> [1] 0.4980157-0.1549498i
Arguments come in SciPy's order, the order first for the Bessel
functions, where base R's besselJ() puts it second:
sc_jv(2.5, 3)
#> [1] 0.41271
besselJ(3, 2.5)
#> [1] 0.41271
As in SciPy, the type of the argument picks the result: the Bessel
function of order 0.5 at -1 is NaN for a real -1, and a complex
number for -1+0i:
sc_jv(0.5, -1)
#> [1] NaN
sc_jv(0.5, -1 + 0i)
#> [1] 5.551115e-17+0.6713967i
Poles, overflow and loss of precision are silent by default, as in SciPy, and can be turned into warnings or errors:
sc_gamma(-1)
#> [1] NaN
sc_errstate(sc_gamma(-1), singular = "warn")
#> Warning in sc_gamma(-1): sc_gamma: singular in 1 element, first at index 1.
#> [1] NaN
Functions that return several values in SciPy return a named list:
str(sc_airy(1))
#> List of 4
#> $ ai : num 0.135
#> $ aip: num -0.159
#> $ bi : num 1.21
#> $ bip: num 0.932
Every function is sc_ followed by its name in scipy.special, the
alias SciPy's own documentation uses (import scipy.special as sc).
zuspecial_info() for the versions and the table of functions.The kernels are SciPy's xsf, with its
bundled Cephes, AMOS, specfun, Faddeeva and qd code, and Boost.Math for
the functions SciPy evaluates with it. The reference values come from
xsref. zuspecial is also checked
against the gsl, Bessel, hypergeo, lamW, expint and Rmpfr
packages.