# Python | Numpy np.chebvander () method

Using the `np.chebvander() ` method, we can get the Pseudo-Vandermonde matrix from a given array having a degree that is passed as a parameter using ` np .chebvander () `.

Syntax: ` np.chebvander (array, degree) `
Return: Return the matrix having size ie array.size + (degree + 1).

Example # 1:
This In the example, we can see that using ` np.chebvander () ` we can get the pseudovandermonde matrix using this method.

` `

``` # import NumPy import numpy as np import numpy.polynomial.chebyshev as cheb   # using the np.chebvander () method gfg = cheb.chebvander (( 2 , 4 , 8 , 1 ), 2 )   print (gfg ) ```

Output:

[[1. 2. 7.]
[1. 4. 31.]
[1. 8. 127.]
[1. 1. 1.]]

Example # 2:

` `

``` Output: [[1.0000e + 00 3.0000e + 00 1.7000e + 01 9.9000 e + 01 5.7700e + 02] [1.0000e + 00 5.0000e + 00 4.9000e + 01 4.8500e + 02 4.8010e + 03] [1.000 0e + 00 1.0000e + 00 1.0000e + 00 1.0000e + 00 1.0000e + 00] [1.0000e + 00 1.0000e + 01 1.9900e + 02 3.9700e + 03 7.9201e + 04]] (adsbygoogle = window.adsbygoogle || []).push({}); © 2021 Python.Engineering Best Python tutorials books for beginners and professionals Become an author and write for us Architect Development For dummies Machine Learning Analysis Loops Counters NumPy NLP Regular Expressions File Handling Arrays String Variables Knowledge Database X Submit new EBook # NumPy import import numpy as np import numpy.polynomial.chebyshev as cheb   # using the np.chebvander () method gfg = cheb.chebvander (( 3 , 5 , 1 , 10 ), 4 )   print (gfg) \$(document).ready(function () { \$(".modal_galery").owlCarousel({ items: 1, itemsCustom: false, itemsDesktop: [1300, 1], itemsDesktopSmall: [960, 1], itemsTablet: [768, 1], itemsTabletSmall: false, itemsMobile: [479, 1], singleItem: false, itemsScaleUp: false, pagination: false, navigation: true, rewindNav: true, autoPlay: true, stopOnHover: true, navigationText: [ "<img class='img_no_nav_mob' src='/wp-content/themes/nimani/image/prevCopy.png'>", "<img class='img_no_nav_mob' src='/wp-content/themes/nimani/image/nextCopy.png'>" ], }); \$(".tel_mask").mask("+9(999) 999-99-99"); }) ```