[SciPy-user] Schur complement

Pearu Peterson pearu at scipy.org
Wed May 26 10:49:23 CDT 2004

On Wed, 26 May 2004, Nils Wagner wrote:

> Thank you very much for your help. Moreover, it would be very kind of 
> you, if you could send me a short example for complex-valued functions 
> as well.

In [1]: from scipy import *

In [2]: def cfunc(z): return z+2j

In [3]: def rfunc2(x): 
   ...:   v = cfunc(x[0]+x[1]*1j)
   ...:   return v.real,v.imag

In [4]: optimize.fsolve(rfunc2,(3,1))
Out[4]: array([ -8.07793567e-28,  -2.00000000e+00])


More information about the SciPy-user mailing list