Is it possible to pass parameters to the function that will be integrated? For example if I am integrating Ae^x, and the value of A might change, can I do something like
function f(x,A)
return Aexp^x
end
Avec=[1 2 3 4]
Res=ones(length(Avec))
for i in 1:length(Avec)
Res[i]=pquadrature(f(Avec[i],x),xmin, xmax,reltol=1e-8, abstol=0, maxevals=0)
end
Is it possible to pass parameters to the function that will be integrated? For example if I am integrating Ae^x, and the value of A might change, can I do something like
?