| 1 | initial version |
Can you put the function part to a separate function? If you can, please try:
def f(a,b,c):
return c*a*b
a,b,c = var('a,b,c')
c = 1
monte_carlo_integral(f(a,b,c), [0,0], [3,3], 1000)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.