I just started learning netlogo a couple of days ago and would appreciate some help. I have a list called "distance", which gives me the distance from each patch in a given radius to a current patch. I want to plug in each value of "distance" into the following, to get an "attractiveness" value for each patch:
Patch attractiveness = exp ((distance / 800) * (log e (.2 / 1)))]
I would like to store these values in another list called "patch_attractiveness." I think I should use either map or foreach, but I do get the error "Nothing named d has been defined." Below is what I have tried:
let Patch_attractiveness map [d -> distance] exp ((d / 800) * (log e (.2 / 1)))]
I think my confusion is primarily with how to use anonymous procedures.