Can someone please show me the easiest way to write this vector:
(2, (2^2)/2, (2^3)/3, ..., (2^23)/23) ?
Let me know if this is correct.
2^(1:23)/(1:23) #>  2.000000e+00 2.000000e+00 2.666667e+00 4.000000e+00 6.400000e+00 #>  1.066667e+01 1.828571e+01 3.200000e+01 5.688889e+01 1.024000e+02 #>  1.861818e+02 3.413333e+02 6.301538e+02 1.170286e+03 2.184533e+03 #>  4.096000e+03 7.710118e+03 1.456356e+04 2.759411e+04 5.242880e+04 #>  9.986438e+04 1.906502e+05 3.647221e+05
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.