First time here? Check out the FAQ!
asked 13 years ago
Is there a simply syntax to apply a function like f(x) = x*exp(x) to a list of points L for example L=[1,2,3,4,19]. I want to be able to write something like f(L) which is a new list with the elements [f(1),f(2),f(3),f(4),f(19)]
f(x) = x*exp(x)
L
L=[1,2,3,4,19]
f(L)
[f(1),f(2),f(3),f(4),f(19)]