I'm programming the montecarlo method for solving integrals. My vector with abscissas is defined inside the routine. As such, i'd like to be able to receive a function to be integrated as an argument in my routine, instead of having to manually change it every time in my code.
How can I do this? Where should I read about this?
Thanks.