How to integrate a function u^3/(exp(u)-1) in the range of [0 0.033]??.
2 次查看(过去 30 天)
显示 更早的评论
The code is as follows:
syms x
fun=x^3/(exp(x)-1)
defIntVal=int(fun,[0 0.033])
I have used integral command also in place of int
the defIntVal is giving a very complex sym type variable. How to get value from this variable???
2 个评论
回答(1 个)
Bjorn Gustavsson
2019-9-16
if numerical integration is good enough:
Val = integral(@(x) x.^3./(exp(x)-1),0,0.033)
% for which I get: 1.1831e-05
HTH
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!