MATLAB Answers

How to integrate a function u^3/(exp(u)-1) in the range of [0 0.033]??.

1 view (last 30 days)
Raj Kishor
Raj Kishor on 16 Sep 2019
Answered: Bjorn Gustavsson on 16 Sep 2019
The code is as follows:
syms x
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???

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 16 Sep 2019
if numerical integration is good enough:
Val = integral(@(x) x.^3./(exp(x)-1),0,0.033)
% for which I get: 1.1831e-05

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!