lqkhai
Junior Member level 3
Hello everybody,
I'd like to use Matlab to calculate the following expression
C=∫x^4*exp(x)/(exp(x)-1)^2 dx with x[a,b].
I made the matlab code as following
f=inline('x.^4*exp(x)./(exp(x)-1).^2');
C=quad(f,a,b);
Could you please to tell me whether my code is right or not?
Are there any suggestions for solving the above expression?
Thanks in advance.
lqkhai
I'd like to use Matlab to calculate the following expression
C=∫x^4*exp(x)/(exp(x)-1)^2 dx with x[a,b].
I made the matlab code as following
f=inline('x.^4*exp(x)./(exp(x)-1).^2');
C=quad(f,a,b);
Could you please to tell me whether my code is right or not?
Are there any suggestions for solving the above expression?
Thanks in advance.
lqkhai