⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch11_3_1.htm

📁 一个不错的matlab工程实际问题的解决方法
💻 HTM
字号:
<! Made by Html Translation Ver 1.0>

<HTML>

<HEAD>

<TITLE>  微分 </TITLE>

</HEAD>



<BODY BACKGROUND="bg0000.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/bg0000.gif">

<FONT COLOR="#0000FF">

<H1>11.3.1  微分</H1>

</FONT>

<HR>



<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">diff</FONT>函数用以演算一函数的微分项,相关的函数语法有下列<FONT FACE="Times New Roman">4</FONT>个:

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">diff(f)    </FONT>传回<FONT COLOR=#FF0000 FACE="Times New Roman">f</FONT>对预设独立变数的一次微分值

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">diff(f,</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">t</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">)</FONT><FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000>   </FONT>传回<FONT COLOR=#FF0000 FACE="Times New Roman">f</FONT>对独立变数<FONT COLOR=#FF0000 FACE="Times New Roman">t</FONT>的一次微分值

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">diff(f,n)</FONT><FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000>   </FONT>传回<FONT COLOR=#FF0000 FACE="Times New Roman">f</FONT>对预设独立变数的<FONT COLOR=#FF0000 FACE="Times New Roman">n</FONT>次微分值

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">diff(f,</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">t</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">,n)</FONT><FONT FACE="Times New Roman">

</FONT><FONT COLOR=#FF0000>  </FONT>传回<FONT COLOR=#FF0000 FACE="Times New Roman">f</FONT>对独立变数<FONT COLOR=#FF0000 FACE="Times New Roman">t</FONT>的<FONT COLOR=#FF0000 FACE="Times New Roman">n</FONT>次微分值

<BR>

<P>

因为之前再第八章介绍的数值微分函数也是用<FONT COLOR=#FF0000 FACE="Times New Roman">diff</FONT>,因此这个函数是靠输入的引数决定是以数值或是符号

微分,如果引数为向量则执行数值微分,如果引数为符号表示式则执行符号微分。

<BR>

<P>

先定义下列三个方程式,接著再演算其微分项:

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;S1 = </FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">6*x^3-4*x^2+b*x-5</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">;</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;S2 = </FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">sin(a)</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">;</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;S3 = </FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">(1

- t^3)/(1 + t^4)</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">;

<BR>

</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;diff(S1)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">18*x^2-8*x+b</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;diff(S1,2)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">36*x-8</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;diff(S1,</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">b</FONT><FONT COLOR=#FF0000>'</FONT><FONT COLOR=#FF0000 FACE="Times New Roman">)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">x</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;diff(S2)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">cos(a)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;diff(S3)</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">-3*t^2/(1+t^4)-4*(1-t^3)/(1+t^4)^2*t^3</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">&gt;&gt;simplify(diff(S3))</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">ans=</FONT>

<P>

<FONT COLOR=#FF0000 FACE="Times New Roman">t^2*(-3+t^4-4*t)/(1+t^4)^2</FONT><HR>

<A HREF="ch11_3.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch11_3.htm"><IMG SRC="lastpage.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/lastpage.gif" BORDER=0></A>

<A HREF="ch11_3_2.htm" tppabs="http://166.111.167.223/computer/cai/matlabjc/ch11_3_2.htm"><IMG SRC="nextpage-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/nextpage.gif" BORDER=0 HSPACE=10></A>

<A HREF="index.html" tppabs="http://166.111.167.223/computer/cai/matlabjc/index.html"><IMG SRC="outline-1.gif" tppabs="http://166.111.167.223/computer/cai/matlabjc/img/outline.gif" BORDER=0 HSPACE=6></A><BR>

<FONT SIZE=2 COLOR=#AA55FF> 上一页 下一页 讲义大纲 </FONT>

</BODY>

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -