第二篇 MATLAB的数学运算.ppt

2.6 高等数学中的问题 1. 求极限 设 ,求当x→0, x→1+, x→1-,x →∞时函数的极限。 syms x f=(exp(3*x)-1)/x; limit(f,x,0) %求x→0的极限 ans = 3 limit(f,x,1,‘right’) %求x→1+的极限 ans = exp(3) - 1 limit(f,x,1,left) %求x→1-的极限 ans = exp(3) - 1 limit(f,x,inf) %求x→∞的极限 ans = Inf 2. 求导数 设 ,求 。 syms x n; y=x^(n)*sqrt(1-2*x); diff(y) %求 ans = n*x^(n - 1)*(1 - 2*x)^(1/2) - x^n/(1 - 2*x)^(1/2) %注意: diff(y) 与diff(y,x)和diff(y,x,1)得到的结果完全一样 diff(diff(y)) %求 ans = n*x^(n - 2)*(1 - 2*x)^(1/2)*(n - 1) - (2*n*

文档评论(0)

1亿VIP精品文档

相关文档