The sixth chapter of MATLAB Learning notes--basic symbolic calculus and differential equations

Source: Internet
Author: User

1.MATLAB you can use the limit command to calculate limits.

>> syms X

>> Limit ((x^3 + 1)/(X^4 + 2))
Ans =
1/2

2. We can call the isequal command in MATLAB to check whether two quantities are equal, and if two are not equal, IsEqual returns 0.

3. We use the following syntax to calculate the limit in Limx→∞f (x) Form: Limit (F,inf).

4. Calculate the left and right limits: we have to pass the function to calculate the limit of the variable and the "Leave", "right" string, separated by commas.

5. By invoking the diff command, we can calculate the symbolic derivative using MATLAB. Simply pass the request-guided function to the diff command. To get the higher order derivative of the function F, we use diff (f,n).

6. You can use the pretty command to make the expression look better.

7. We can use the subs command to substitute a value in the symbolic function, which is fairly straightforward if there is only one variable. If you want to set x=c, then we call Subs (F,c).

8. Use "RO" instead of "O" to tell Matlab to draw a small red circle, using "O" to draw a small black circle. Use the text command to label this minimum point. When you call text, you must tell it which coordinates the text should print in, and pass the text that you want to print.

9. In MATLAB we can use the dsolve command to solve symbolic differential equations. The higher-order derivative is represented by the number of steps in the back of D. So to enter the equation:

  Y ' + 2y ' = 5sin7x We will write: ' d2y + 2Dy = 5*sin (7*x) '

The sixth chapter of MATLAB Learning notes--basic symbolic calculus and differential equations

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.