I want to evaluate my function fast for many values.
Is there a easy way to do this in Julia?
y(x) = 4*x^2 + 6*x + 34
x1 = [44,75,45]
y(x1) # my favorite sintax does not work, i was really hopping this works
for i in x1 println(y(i)) end # this works but is there a better way?
Btw, the dot syntax is better than y(x1), since is doesnβt make sense to take powers of a vector, and the dot syntax makes it explicit that you are applying y elememtwise.