[R] for loop of a geometric sequence

BJN1417 BJN1417 at uncw.edu
Fri Aug 30 18:57:31 CEST 2013


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 message in context: http://r.789695.n4.nabble.com/for-loop-of-a-geometric-sequence-tp4675035.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list