Hi all!
Could somebody help me. I have error: only length-1 arrays can be converted to Python scalar
in this programm. Thanks for attention
Could somebody help me. I have error: only length-1 arrays can be converted to Python scalar
Code:
import math
k=6*(10**-8)
Q=100
h=50
a=7
zp=-a
zi=a
z=0
E=Q/2*math.pi*k*h
import numpy as np
def func(x,y):
return z
W = np.arange(10)
x = np.arange(10)
y = np.arange(10)
z=x+y*1j
W=E*math.log((z-zp)/(z-zi))
print func(W)
Comment