[SciPy-user] Schur complement

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed May 26 10:53:56 CDT 2004


Pearu Peterson wrote:
> 
> 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])
> 
> Pearu
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
> 
Hopefully my last question with respect to this topic ...
Can I apply brentq, brenth in case of complex-valued functions ?

Nils



More information about the SciPy-user mailing list