Suppose I have some number a, and I want to get vector [ 1 , a , a^2 , ... , a^N ]. I use [ 1 , cumprod( a * ones( 1 , N - 1 ) ) ] cod
a
[ 1 , a , a^2 , ... , a^N ]
[ 1 , cumprod( a * ones( 1 , N - 1 ) ) ]
What about a.^[0:N] ?
a.^[0:N]