怎么用matlab计算定积分,y=((2*pi*h*c^2)/x^5)/(exp((h*c)/(x*k*t))-1) 需要得到具体的数值,h=6.626176*10^-27;c=2.997924580*10^10;k=1.380662*10^-16;t=758;
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 03:40:19
怎么用matlab计算定积分,y=((2*pi*h*c^2)/x^5)/(exp((h*c)/(x*k*t))-1) 需要得到具体的数值,h=6.626176*10^-27;c=2.997924580*10^10;k=1.380662*10^-16;t=758;
怎么用matlab计算定积分,y=((2*pi*h*c^2)/x^5)/(exp((h*c)/(x*k*t))-1) 需要得到具体的数值,
h=6.626176*10^-27;
c=2.997924580*10^10;
k=1.380662*10^-16;
t=758;
怎么用matlab计算定积分,y=((2*pi*h*c^2)/x^5)/(exp((h*c)/(x*k*t))-1) 需要得到具体的数值,h=6.626176*10^-27;c=2.997924580*10^10;k=1.380662*10^-16;t=758;
syms h c x y t k
h=6.626176*10^-27;
c=2.997924580*10^10;
k=1.380662*10^-16;
t=758;
f=int((2*pi*h*c^2)/x^5)/(exp((h*c)/(x*k*t))-1)
反正程序时这样的,但是里面没有x的值,你把x的取值范围设定出来然后带进去,就可以了
x取值范围多少啊
y =
1380492207496529/147573952589676412928/x^4-976762170794544860805288092259345/49548633609729790029848312551571456/x^3*log(1-exp(1343018405083933/707546312460442305/x))-2073313416289610854...
全部展开
y =
1380492207496529/147573952589676412928/x^4-976762170794544860805288092259345/49548633609729790029848312551571456/x^3*log(1-exp(1343018405083933/707546312460442305/x))-2073313416289610854016336570732118923023756408770675/66544726884627460551637233581528235498038727016448/x^2*polylog(2,exp(1343018405083933/707546312460442305/x))+1466965262270476092058242297548538402214563109863231520613491813405875/44685396483669144825433847114878528113619380587958643100055764992/x*polylog(3,exp(1343018405083933/707546312460442305/x))-1037945861827040972134729372107564265209031632371670829685622666117450200046230985541875/60013309916040522814231971117871151685793858794488594533090281701927658283073536*polylog(4,exp(1343018405083933/707546312460442305/x))
收起
y =
1380492207496529/147573952589676412928/x^4-976762170794544860805288092259345/49548633609729790029848312551571456/x^3*log(1-exp(1343018405083933/707546312460442305/x))-2073313416289610854...
全部展开
y =
1380492207496529/147573952589676412928/x^4-976762170794544860805288092259345/49548633609729790029848312551571456/x^3*log(1-exp(1343018405083933/707546312460442305/x))-2073313416289610854016336570732118923023756408770675/66544726884627460551637233581528235498038727016448/x^2*polylog(2,exp(1343018405083933/707546312460442305/x))+1466965262270476092058242297548538402214563109863231520613491813405875/44685396483669144825433847114878528113619380587958643100055764992/x*polylog(3,exp(1343018405083933/707546312460442305/x))-1037945861827040972134729372107564265209031632371670829685622666117450200046230985541875/60013309916040522814231971117871151685793858794488594533090281701927658283073536*polylog(4,exp(1343018405083933/707546312460442305/x))
把这个表达式当做一个新的语句,点回车就能算出值了!
收起
值?你的积分的定义域都没给,怎么能有值,定积分要有积分域的。
用MTALAB计算再简单不过,一系列的数值积分函数,如TRAP,只要给定Y向量和X向量就能求了。x的取值是3.2到4.8 为做的为什么得不到结果 只是个表达式,用了好几个函数都不行,大侠帮帮忙...
全部展开
值?你的积分的定义域都没给,怎么能有值,定积分要有积分域的。
用MTALAB计算再简单不过,一系列的数值积分函数,如TRAP,只要给定Y向量和X向量就能求了。
收起