for(x in 0.00001:10000) How do I structure the loop to get it to return: 0.00001, 0.0001, 0.001, 0.01, 0.1, 1, 10, 100, 1000, 10000?
No loops are necessary because the exponent function is vectorized, i.e. it automatically accepts multiple values and applies the same operation to each:
10^(-5:4)
2.1m questions
2.1m answers
60 comments
57.0k users