I wrote a simple function. The problem is that I only see the final outcome. I would like to see each step results.
See an example here:
t0 <- 100
f1 <- function(x) x*(1.5)^30
f1(t0)
#[1] 31447174
I would like to see diplayed the outcome for every power from 1 to 30:
[1] 150 (100*1.5)
[2] 225 (100*(1.5)^2)
...
[30] 31447174
How can I do it?