clear,clc;
% x = 1:2:100;
syms f x;
f = cos(x^4)+3*sin(x)+log(x)
% sym 声明变量
% limit 求极限
% diff(f,x,n) 微分n阶
limit(f,x,0,'right');
% x = 1:2:100;
% f = cos(x.^2)+3*sin(x)+log(x);%因为是行向量 所以.^
% plot(x,f);
diff(f,x,2)
%%
% int(f,x,a,b) 上下限ab 对f积分
syms x I
for i=0:10
for j=0:10
f = sin(i*x).*cos(j*x);
I(i+1,j+1)=int(f,x,-pi,pi);
end
end
I
%%
% 解方程
syms x
solve(-x^2+x+1==0,x);
matlab 微积分计算 自用1
于 2022-06-07 20:36:53 首次发布