The 11th chapter of MATLAB Learning notes--using special functions

Source: Internet
Author: User

1. In Matlab, the gamma function of n can be accessed using the following form: x = Gamma (n)

For example, gamma (6) = 5! = 120, check it in MATLAB:
>> Gamma (6)
Ans =
120

2. To display data in a table, you can include single quotes at the end of the line:

>> x = (1:0.1:2) ';

3.MATLAB allows you to calculate incomplete gamma functions (incomplete gamma function), the command used in MATLAB to find this function is:

y = gammainc (x,n)
When X<<1 and n<<1, the incomplete gamma function satisfies p (x, N) ≈xn.

4. Bessel functions:

In Matlab, the first type of Bayes function is implemented using BESSELJ. The invocation is in the form: y = BesselJ (n,x)

The second type of Bayes function is implemented using bessely (n, x).

We can also implement other types of Bessa-Hankel functions (Hankel function) in MATLAB. Call Besselh (Nu, K, z) to take advantage of these functions, a total of two classes of Hankel functions (first and second Class), in Matlab, the type of the function is indicated by K. If we omit k from the argument and write Besselh (Nu, z), MATLAB defaults to using the first class Hankel function.

5.MATLAB uses Nan to denote "not a numeric value (not a number)".

6. Beta function: To use the beta function in MATLAB, we use:

x = Beta (m,n)

7. Power Integral: Use the following syntax in MATLAB to perform this function:

y = expint (x), note expint (0) = INF.

8. Many other special functions can be calculated numerically by using the Mfun command:

>> Help Mfunlist

9. To use the Riemann ζ function calculation in matlab, we write:

W = mfun (' Zeta ', z)

10. Accompanying Legendre equation in matlab You can use the following command to calculate:

    p = Legendre (n,x)

11. We use AI (z) to represent the Assyrian function: Use w = Airy (z) in MATLAB to calculate the value of AI (z).

The 11th chapter of MATLAB Learning notes--using special functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.