当前位置:网站首页>MATLAB【函数求导】
MATLAB【函数求导】
2022-07-01 08:17:00 【桜キャンドル淵】
目录
一、求导函数
求导函数diff,替换变量subs
syms x
f=x^(1/2)+sin(x);
diff(f) 
求导函数的零点
syms x
df=3*x^2-6*x+3
s=solve(df)
求高阶导数
syms x
df=3*x^2-6*x+3
z=diff(df,2)
复合函数求导
syms x
f=log(cos(exp(x)));
diff(f)
隐函数求导
这里我们需要用到隐函数求导公式
%声明两个符号变量
syms x y
%生成我们的函数
f=exp(y)+x*y+exp(x);
%对x求偏导
dfx=diff(f,x);
%对y求偏导
dfy=diff(f,y);
%隐函数求导公式
dyx=-dfx/dfy
参数方程求导
syms t
x=t-sin(t);
y=1-cos(t);
%求dx/dt
dx=diff(x,t);
%dy/dt
dy=diff(y,t);
dy/dx

求函数的零点
使用fzero(函数,范围)就能够求出在该范围的零点
syms x
[email protected](x) exp(x)+sin(x)+x;
fzero(f,[-1,1])
边栏推荐
猜你喜欢

01 numpy introduction

机动目标跟踪——当前统计模型(CS模型)扩展卡尔曼滤波/无迹卡尔曼滤波 matlab实现

【js逆向】md5加密参数破解

Use threejs simple Web3D effect

Koltin35, headline Android interview algorithm

Learn the knowledge you need to know about the communication protocol I2C bus

CPU设计实战-第四章实践任务一简单CPU参考设计调试

Embedded-c language-10-enumeration / (function) pointer (function) / multi-level pointer /malloc dynamic allocation / file operation

7-26 word length (input and output in the loop)

軟鍵盤高度報錯
随机推荐
Yolov5进阶之七目标追踪最新环境搭建
The data analyst will be ruined without project experience. These 8 project resources will not be taken away
[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order
Use threejs simple Web3D effect
谈谈数字化转型的几个关键问题
[introduction] approximate value
Intelligent water conservancy solution
Intelligent water supply system solution
Intelligent constant pressure irrigation system
Leetcode t31: prochain arrangement
The difference between interceptors and filters
Instead of houses, another kind of capital in China is rising
Embedded-c language-10-enumeration / (function) pointer (function) / multi-level pointer /malloc dynamic allocation / file operation
[getting started] extract non repeating integers
[JS reverse] MD5 encryption parameter cracking
To prevent "activation" photos from being muddled through, databao "live detection + face recognition" makes face brushing safer
CPU设计实战-第四章实践任务一简单CPU参考设计调试
Luogu p1088 [noip2004 popularization group] Martians
Tita OKR: a dashboard to master the big picture
Anddroid 文本合成语音TTS实现

