I have a problem using the function integrate.nquad.
I get this error: "TypeError: can't multiply sequence by non-int of type 'float'"
I understand that I have a string somewhere, but I can´t find it exactly
If someone would please help me with this I would be very grateful. Thanks in advance.
from scipy import integrate
import numpy as np
def f(D,S):
Ka = 0.08
C = 500
R = 0.05
return np.exp(-Ka*C*((R-S)*np.cos(D) *(np.sin(D))**2))
Io = 3.58*10**16
R = 0.05
I = (Io/(R*np.pi)) * integrate.nquad(f,[[0, R],[0, np.pi]])