Function defined correctly?
The built-in range function doesn’t support the multiplication operation. Instead you want to use a numpy array, which you can create in this case by using the arange() function. import numpy as np import matplotlib.pyplot as plt def pdf(gamma, d, r, t, D): return (1 / np.power(dispersion(gamma, d, t, D), (d / 2))) * np.exp((-A(gamma, … Read more