How do I find the integral of Gamma(x) = x^(a-1) * e^-x
from 0 to infinity when a = 3/2
using scipy.integrate.quad
?
So far I've tried some code but I am being told that "quad: The first argument is not callable".
This is the code I've used:
import numpy as np
import math as m
import matplotlib.pyplot as plt
from math import exp
from scipy import *
import scipy.integrate
def f(a):
return x**(a-1)*exp(-x)
a = 3/2
print scipy.integrate.quad(f(a), 0, inf)