早教吧作业答案频道 -->其他-->
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求定积分,请帮忙...的网友还看了以下:
3^x求导是什么?===========================a^x求导,这是个公式,a 2020-04-09 …
根据质量分数推测有机物分子式已知化合物A中各元素的质量分数分别为C 37.5%,H 4.2%,0 2020-05-16 …
原命题.如果a的平方=b的平方,那么a=b.求逆命题如果a=b,那么a的绝对值=b的绝对值等边三角 2020-05-20 …
一些初二下册的数学题,要正确完整:3道呢1.已知b分之a=2,求a+b之a-ab+b的值2.已知3 2020-07-11 …
含参绝对值不等式在系数范围不同的条件下求出的不同的解能求并集吗已知|ax+2|<6的解集为-1<x 2020-07-11 …
数列{a下标n}中,a1=-27,a下标(n+1)+a下标n=3n-54(n属于正整数)1、求数列 2020-07-29 …
问一个概率论的问题那个从几个中选几个,还有什么排列还是组合到底啥意思?我记得在高中学的时候,也没分 2020-07-29 …
帮我看看我做得对不对!要认真,(二次根式)1,若a的平方根为±3,那么√a=32,求-8的立方根与 2020-07-30 …
正弦定理求出角度,怎样取舍解三角形:b=8,c=3,A=60°求出a后,求得sinB=(4√3)/ 2020-08-02 …
对数平均数和几何平均数的区别是?如图,通过一元回归线性分析,求得了a1a2a3和b1b2b3现在要 2020-08-03 …