Kernel: Python 2 (SageMath)
In [21]:
[ 1. 1.5 2. 2.5]
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-21-806b2ab735c6> in <module>()
16 #equations
17 f0 = (fmax*dT)/T
---> 18 fn = ((2*fmax)/(np.pi*n))*sin((np.pi*dT)/T)
19 A0 = f0/np.sqrt((w0**2)**2)
20 An = fn/np.sqrt((((w0**2)-(n**2)*(w0**2))**2) + 4*(B**2)(n**2)(w0**2))
TypeError: unsupported operand type(s) for *: 'float' and 'type'
In [22]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-22-300aeccd2056> in <module>()
7 np.arange(1, 2.6, .5)
8 # np.arange(10000,100000,10000)
----> 9 np.pi*n
TypeError: unsupported operand type(s) for *: 'float' and 'type'
In [0]: