define infinty in matlap

Thread Starter

TAKYMOUNIR

Joined Jun 23, 2008
352

Ʃ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);
 
Top