# Evaluate suitiability function for given stocks
g3_eval(
g3_suitability_andersen(0,1,2,3,4),
predator_length = 100,
stock = g3_stock('prey', 1:10))
# Parameters can be filled in with "param." items in environment
g3_eval(quote( g3_param('x') ), param.x = 88)
g3_eval(
g3_parameterized('lln.alpha', by_stock = TRUE, value = 99),
stock = g3_stock("fish", 1:10),
param.fish.lln.alpha = 123)
# Graph gadget3's built-in logspace_add()
if (interactive()) {
curve(g3_eval(quote( logspace_add(a, 10) ), a = x), 0, 50)
}
Run the code above in your browser using DataLab