早教吧作业答案频道 -->其他-->
matlab求定积分,请帮忙解释一下这是怎么回事,定积分不是应该是常数吗,为什么是带X的!>>symsX;>>fy=1.84*10^(-17)*X^6-7.115*10^(-23)*X^7-3.586*10^(-27)*X^8-7.575*10^(-13)*X^5+1.525*10^(-8)*X^4-0.0001752*X^3+1.1
题目详情
matlab求定积分,请帮忙解释一下这是怎么回事,定积分不是应该是常数吗,为什么是带X的!
>>syms X;
>> fy=1.84*10^(-17)*X^6 - 7.115*10^(-23)*X^7 - 3.586*10^(-27)*X^8 - 7.575*10^(-13)*X^5 + 1.525*10^(-8)*X^4 - 0.0001752*X^3 + 1.172*X^2 - 4266.0*X + 6.531*10^6;
>> df=diff(fy,X);
>> s=int(sqrt(df^2+1),X,7650,14550)
Warning: Explicit integral could not be found.
> In C:\MATLAB6p5\toolbox\symbolic\@sym\int.m at line 58
s =
int(1/5444517870735015415413993718908291383296000*(-592826091262412925646223236545697161897167167868933879129503881788141246201373998972928000*X+243788836981838604512389536075078229464211542160405824108055301718016000*X^6-17199258859148058798922578776264791727300818479839975812913692672000*X^7+836015684830162937057655846186206288647098436686564804263936000*X^8-2455042263422814359550191117417433970067890726631768352250006729234841600000*X^5+17623765259909929754913743816455340804773872726841283896722234675699145244672000*X^4-88467818098490634312132992461009158581373047709636339485620908443441427029950464000*X^3+295797993624507655235967093492635481959570306084275496869962857849943134473467751038976*X^2+369377216719355074893027274872661002458140508160000000*X^10+3181919480229446297889598125829423496167424000000*X^11-180413533967084666291167649647674454016000000*X^12-25696885005271077824881410766423093957900645217337344000000*X^9+847075396239762079191152580501104000000*X^13+24396043537121066792355686227515625*X^14+539461656205371589805588589676481055708173339218872031820038907690776863597233346445312000000)^(1/2),X = 7650 .. 14550)
>> double(s)
? Error: Assignment statements do not produce results. (Use == to test
for equality.)
Error in ==> C:\MATLAB6p5\toolbox\symbolic\@sym\double.m
On line 45 ==> D = reshape(eval(X),m,n);
>>syms X;
>> fy=1.84*10^(-17)*X^6 - 7.115*10^(-23)*X^7 - 3.586*10^(-27)*X^8 - 7.575*10^(-13)*X^5 + 1.525*10^(-8)*X^4 - 0.0001752*X^3 + 1.172*X^2 - 4266.0*X + 6.531*10^6;
>> df=diff(fy,X);
>> s=int(sqrt(df^2+1),X,7650,14550)
Warning: Explicit integral could not be found.
> In C:\MATLAB6p5\toolbox\symbolic\@sym\int.m at line 58
s =
int(1/5444517870735015415413993718908291383296000*(-592826091262412925646223236545697161897167167868933879129503881788141246201373998972928000*X+243788836981838604512389536075078229464211542160405824108055301718016000*X^6-17199258859148058798922578776264791727300818479839975812913692672000*X^7+836015684830162937057655846186206288647098436686564804263936000*X^8-2455042263422814359550191117417433970067890726631768352250006729234841600000*X^5+17623765259909929754913743816455340804773872726841283896722234675699145244672000*X^4-88467818098490634312132992461009158581373047709636339485620908443441427029950464000*X^3+295797993624507655235967093492635481959570306084275496869962857849943134473467751038976*X^2+369377216719355074893027274872661002458140508160000000*X^10+3181919480229446297889598125829423496167424000000*X^11-180413533967084666291167649647674454016000000*X^12-25696885005271077824881410766423093957900645217337344000000*X^9+847075396239762079191152580501104000000*X^13+24396043537121066792355686227515625*X^14+539461656205371589805588589676481055708173339218872031820038907690776863597233346445312000000)^(1/2),X = 7650 .. 14550)
>> double(s)
? Error: Assignment statements do not produce results. (Use == to test
for equality.)
Error in ==> C:\MATLAB6p5\toolbox\symbolic\@sym\double.m
On line 45 ==> D = reshape(eval(X),m,n);
▼优质解答
答案和解析
运行没问题
>> clear;clc
syms X
fy=1.84*10^(-17)*X^6 - 7.115*10^(-23)*X^7 - 3.586*10^(-27)*X^8 - 7.575*10^(-13)*X^5 + 1.525*10^(-8)*X^4 - 0.0001752*X^3 + 1.172*X^2 - 4266.0*X + 6.531*10^6;
df=diff(fy,X);
s=int(sqrt(df^2+1),X,7650,14550);
double(s)
Warning:Explicit integral could not be found.
ans =
5.1925e+004
>>
>> clear;clc
syms X
fy=1.84*10^(-17)*X^6 - 7.115*10^(-23)*X^7 - 3.586*10^(-27)*X^8 - 7.575*10^(-13)*X^5 + 1.525*10^(-8)*X^4 - 0.0001752*X^3 + 1.172*X^2 - 4266.0*X + 6.531*10^6;
df=diff(fy,X);
s=int(sqrt(df^2+1),X,7650,14550);
double(s)
Warning:Explicit integral could not be found.
ans =
5.1925e+004
>>
看了 matlab求定积分,请帮忙...的网友还看了以下:
帮我算下10+(x-10)*0.1=20+0.1{x-20-10+0.1(x-10帮我算下10+( 2020-04-27 …
求下列函数的导数1)y=x^2-2lnx2)y=1/根号下x根号x3)y=1-x^2/根号x4)y 2020-05-14 …
如果X=a×10的n+1次方,Y=b×10的n次方(1≤a<10,1≤b<10,n是正整数),计算 2020-05-14 …
在10*10的正方形网格中建立如图所示的平面直角坐标系,已知A(2,4),B(4,2),C是第一象 2020-05-16 …
是:一辆重为3.2乘以10的四次方N的卡车,以9.6乘以10的四次方W的功率沿与水平面成三十度角的 2020-05-16 …
x+y=(x+y)*1=(x+y)*(1/x+9/y)=1+9+y/x+9x/y=10+y/x+9 2020-05-20 …
用水不大于10吨的部分按1.5元每吨收费,大于10吨不大于m吨的部分按2元收费,大于m吨的按3元收 2020-05-21 …
求证:2/X*X-1+4/x*x-4+6/x*x-9+.+20/x*x-100=11/(x-1)( 2020-06-02 …
x(10-x)sin(nπx/10)在0到10对X进行积分?求步骤1/5000∫x(10-x)si 2020-06-13 …
地球的质量是5.976*10的24次方千克,合多少吨?和多少克?太阳的质量是1.989*10的30 2020-07-17 …