define infinty in matlap

Discussion in 'Homework Help' started by TAKYMOUNIR, Oct 19, 2012.

  1. TAKYMOUNIR

    Thread Starter Active Member

    Jun 23, 2008
    351
    1

    Ʃn=0 (1/2)^n
    i need to do this geometric series by matlap i do not know how to do the infinty i know that there is function called inf but it does not work
    n=0:;
    y=(1/2).^n;
    sum(y);
     
  2. TAKYMOUNIR

    Thread Starter Active Member

    Jun 23, 2008
    351
    1
    we can not define infinity in matlab
     
Loading...