早教吧作业答案频道 -->其他-->
matlab中的求积分问题我用matalb求解一个积分,4*r/sqrt(r^2-(R*sin(sita))^2),其中sita是积分变量。>>symsrRsita>>int(4*r/sqrt(r^2-(R*sin(sita))^2),sita,0,asin(r/R))???Errorusing==>sym.mapleError,(inlim
题目详情
matlab中的求积分问题我用matalb求解一个积分,4*r/sqrt(r^2-(R*sin(sita))^2),其中sita是积分变量。 >> syms r R sita >> int(4*r/sqrt(r^2-(R*sin(sita))^2),sita,0,asin(r/R)) ??? Error using ==> sym.maple Error, (in limit) numeric exception: division by zero Error in ==> sym.int at 51 r = reshape(maple('map','int',f(:),[x.s '=(' a.s ')..(' b.s ')']),size(f)); 各位高手帮我看看这是什么错误,请说出具体改进方法,如果有用继续加分。
▼优质解答
答案和解析
>> syms r R sita int(4*r/sqrt(r^2-(R*sin(sita))^2),sita,0,asin(r/R)) Warning: Explicit integral could not be found. > In sym.int at 64 ans = int((4*r)/(r^2 - R^2*sin(sita)^2)^(1/2), sita = 0..asin(r/R)) >> 也就是没有解析解。 其实你没有必要这样写,因为只有sita是变量,所以在你积分之前,给r,R赋值即可,如下: r=1; R=2; syms sita int(4*r/sqrt(r^2-(R*sin(sita))^2),sita,0,asin(r/R)) ans = 4*ellipticF(pi/6, 4) >>
看了 matlab中的求积分问题我...的网友还看了以下:
问几个c问题1,设x=2.5,y=4.7,a=7,则x+a%3*(int)(x+y)%2/4=2, 2020-04-08 …
在时间类(详见下面)里面,语句Time Add(Time t);中的Time指什么啊,时间类cla 2020-05-14 …
求助MATLAB符号计算:%声明符号变量syms c w t b a D n T v Q x y; 2020-05-16 …
● 给定 C 语言的数据结构 struct T { int w; union T { char c; 2020-05-26 …
● 执行 C 程序代码 “int a = 1; int b = 0; int c = 0; int 2020-05-26 …
给定C语言的数据结构struct T { int w; union T { char c;int i 2020-05-26 …
执行C程序代码“int a=1;int b=0;int c=0;int d=(++a)*(c=1); 2020-05-26 …
给定C语言的数据结构 struct T { int w; union T { char c; int 2020-05-26 …
执行C程序代码“int a=1;int b=0;int c=0;int d=(++a)*(c=1); 2020-05-26 …
给定C语言的数据结构 struct T{ int w; union T{char c; int I; 2020-05-26 …