Special Functions in MATLAB
Posted on Dec 04, 2012 in Computer Science
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
-
sincalculates sine of arguments in radian whilesindcalculates sine of arguments in degrees;asincalculates inverse of sine resulting in radian whileasindcalculates inverse of sine resulting in degrees. Other triangular functions behave similarly. -
The modified Bessel function of the first kind
$I_n(x)$is implemented asbesseliin MATLAB. Notice that for large valuex,$I_n(x)$is huge, so it is better to use scaled Bessel function for largex. To do this, you just need specify an extra argument forbesseli. Notice that other kind of Bessel functions are also implemented in MATLAB. -
Incomplete Beta function is implemented as
betaincand incomplete Gamma function is implemented asgammaincin MATLAB. -
The logarithm of Gamma function is implemented as
gammalnand the logarithm of Beta function is implemented asbetalnin MATLAB. -
cart2sph, cart2pol, pol2crt, sph2cart, hsv2rgbandrgb2hsvcan transform coordinates between different coordinate systems. -
mfuncan help evaluate special mathematica functions numerically, but you should be aware of the fact that the result return by callingmfunis not as accurate as invoking these special function directly in MATLAB, especially when a function is near its root and its arguments are relatively large. Alsomfunlistcan list special functions for use withmfun.