I can't understand what's wrong with this code. Can someone help me please? This is a Pareto type II integrand from 1 to infinite and a and b are the parameters of the distribution. TypeError: object of type 'int' has no len() -> that's the error when I try to compute E
import numpy as np
from scipy.integrate import quad
from mpmath import *
def integrand(a, b, x):
return x*a(b**a)/((x+1)**a)
a = 3
b = 2
E = quad(integrand, 1, np.inf, args=(a, b))
E