|
setup diary |
R | julia | ruby | python3 | |
導入 | julia using Pkg Pkg.add("SpecialFunctions") | aptitude install ruby-gsl | aptitude install python3-scipy | |
初期化 | using SpecialFunctions | require "gsl" | from scipy import special | |
ガンマ関数 | gamma(3) | gamma(3) | Math.gamma(3) | special.gamma(3) |
ダイガンマ関数 | digamma(3) | digamma(3) | GSL::Sf::psi(3) | special.psi(3) |
ベッセル関数 | besselJ(0.1,1) | besselj(1,0.1) | GSL::Sf::bessel_Jn(1,0.1) | special.jv(1,0.1) |
R | julia | ruby | python3 | |
導入 | aptitude install r-cran-polynom R install.packages("orthopolynom") | julia using Pkg Pkg.add("SpecialPolynomials") | aptitude install ruby-gsl | aptitude install python3-scipy |
初期化 | library(polynom);library(orthopolynom) | using SpecialPolynomials | require "gsl" | from scipy import special |
エルミート多項式 | predict(hermite.h.polynomials(3)[[3]],0.8) | basis(Hermite,2)(0.8) | GSL::Poly.hermite(2).eval(0.8) | special.hermite(2)(0.8) |
R | julia | ruby | python3 | |
導入 | aptitude install r-cran-gsl | julia using Pkg Pkg.add("WignerSymbols") | aptitude install ruby-gsl | aptitude install python3-sympy |
初期化 | library(gsl) | using WignerSymbols | require "gsl" | from sympy.physics.wigner import wigner_3j |
厳密 | wigner3j(0.5,1,1.5,0.5,0,-0.5) | wigner_3j(0.5,1,1.5,0.5,0,-0.5) | ||
浮動小数 | coupling_3j(1,2,3,1,0,-1) | wigner3j(Float64,0.5,1,1.5,0.5,0,-0.5) | GSL::Sf::coupling_3j(1,2,3,1,0,-1) | float(wigner_3j(0.5,1,1.5,0.5,0,-0.5)) |