I want to choose which variable will be the integration variable in a function when I integrate it with scipy.integral.quadrature. for example
def f(x,a,b):
return a*x+b
print scipy.integrate.quadrature(f,0,3,args=(2,3))
This code works nice and the result is 17.9999999999 as it should be. What should I write in quadrature parenthesis if I wanted b to be my integration variable and not x? Also in args can I set the values by name, for example a=2 b=3? I want to apply quadrature in functions with more arguments and I don't want the user to remember the queue of arguments, just setting the integration variable and giving values to the others, which are parameters, just by name.