question for a part of my code

Thread Starter

theo23

Joined Nov 29, 2008
16
Hi,
I have this part of my code.

syms E;
static1=(sqrt((pi*de1)/2));
paronomastis1=1+exp((E-(v/L))/(k*T));
function1=(G*ndot1)./(paronomastis1*static1);
ek8eths1=-2*(((E+Edot1+(v/L))/de1).^2);
function2=exp(ek8eths1);
final1=function1.*function2.*static1;
inline_final1 = vectorize (inline (char (final1)));
subtotal1 = quad (inline_final1, 0, 1e13);


I have values for all the factors except E because i want to integrate with respect to E.I would like to tell me if with this code which i have,the last 2 lines integrate with respect to E(0,1e13) surely,or i must write a function handle something like that subtotal1 =@(E) quad (inline_final1, 0, 1e13)?
Thank you!!!!
 
Top