Jan 15, 2007 #1 lqkhai Junior Member level 3 Joined Mar 7, 2006 Messages 31 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,465 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
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
Jan 27, 2007 #2 K KhangKhang Member level 2 Joined Jan 4, 2007 Messages 48 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Activity points 1,612 I have the code for this expression! Send me ur email, i will give u it!
Mar 11, 2011 #3 V viorelbadicu Newbie level 1 Joined Mar 11, 2011 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,285 Hello, I have a question regarding a integral computation: I = A*cos(f*t)/((t/t0)^n+(t/t0)^m) A, n, m, t0 are known constants t= variable, and can take values between 1 and 3600 Could you please help me with the code? I would be greateful... Thank you
Hello, I have a question regarding a integral computation: I = A*cos(f*t)/((t/t0)^n+(t/t0)^m) A, n, m, t0 are known constants t= variable, and can take values between 1 and 3600 Could you please help me with the code? I would be greateful... Thank you