On Tuesday 10 April 2007 15:57:00 mark wrote: > Hello List - > > Any reason why the following doesn't work? > > >>> x,y = meshgrid(linspace(-1,1,10),linspace(-1,1,10)) > >>> z = complex(x,y)
Because complex is a python function that doesn't work well w/ ndarrays. int/float/bool would give the same result. Please try: z = x + 1j *y _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
