question for a part of my code

Discussion in 'Programmer's Corner' started by theo23, Feb 21, 2009.

  1. theo23

    Thread Starter Member

    Nov 29, 2008
    16
    0
    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!!!!
     
  2. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    paronomastis1=1+exp((E-(v/L))/(k*T));

    function2=exp(ek8eths1);

    Where are you from, Greece or Cyprus?
     
  3. theo23

    Thread Starter Member

    Nov 29, 2008
    16
    0
    from greece....:)
     
Loading...