# # # Written by: # -- # John L. Weatherwax 2009-04-21 # # email: wax@alum.mit.edu # # Please send comments and especially bug reports to the # above email address. # #----- N=100000 y=c(); system.time(for (t in 1:N){ y[t]=exp(t) }) system.time(exp(1:N)) system.time(sapply(1:N,exp))