Re: [Numpy-discussion] Evaluate bivariate polynomials

2011-10-19 Thread Charles R Harris
On Wed, Oct 19, 2011 at 5:58 AM, Nils Wagner wrote: > Hi all, > > how do I evaluate a bivariate polynomial > > p(x,y)=c_0 + c_1 x + c_2 y +c_3 x**2 + c_4 x*y+ c_5 y**2 + > c_6 x**3 + c_7 x**2*y + c_8 x*y**2+c_9*y**3 + \dots > > in numpy ? > > In case of univariate polynomials I can use np.polyval.

[Numpy-discussion] Evaluate bivariate polynomials

2011-10-19 Thread Nils Wagner
Hi all, how do I evaluate a bivariate polynomial p(x,y)=c_0 + c_1 x + c_2 y +c_3 x**2 + c_4 x*y+ c_5 y**2 + c_6 x**3 + c_7 x**2*y + c_8 x*y**2+c_9*y**3 + \dots in numpy ? In case of univariate polynomials I can use np.polyval. Any pointer would be appreciated. Nils __