[Numpy-discussion] Evaluate bivariate polynomials

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Oct 19 07:58:58 EDT 2011


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



More information about the NumPy-Discussion mailing list