Re: [R] for loop of a geometric sequence

2013-09-04 Thread MacQueen, Don
So look at the examples found in ?Control and give it a try. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 8/30/13 9:57 AM, "BJN1417" wrote: >so I have to create a for loop of the geometric sequence >h(x,n)=1+x+x^2+x^3^4

[R] for loop of a geometric sequence

2013-08-30 Thread BJN1417
so I have to create a for loop of the geometric sequence h(x,n)=1+x+x^2+x^3^4...x^n. I know that it would be easier to simply vectorize the sequence to x^(0:n), but I am required to make the loop, and I can't wrap my brain around how to loop it because the equation is so simple. -- View this m