Using the np.chebvander2d()
method we can get a 2D PseudoVandermonde matrix from a given array, the degree of which is passed as a parameter using np .chebvander2d ()
.
Syntax:
np.chebvander2d (x, y, degree)
Return: Return the 2D matrix having size ie array.size + (degree + 1).
Example # 1:
In this example, we can see that with np.chebvander2d ()
we can get a 2D pseudovandermonde matrix using this method.

Exit:
[[1. 2. 7.]
[1. 4. 31.]
[1. 8. 127.]
[1. 1. 1.]]Example # 2:
# NumPy import
import
numpy as np
import
numpy.polynomial.chebyshev as cheb
# using the method np.chebvander2d ()
gfg
=
cheb.chebvander2d ((
3
,
5
,
1
,
10
), (
3
,
5
,
1
,
10
),
4
)
(gfg)
Output:
[[1.0000e + 00 3.0000e + 00 1.7000e + 01 9.9000e + 01 5.7700e + 02]
[1.0000e + 00 5.0000e + 00 4.9000e + 01 4.8500e + 02 4.8010e + 03]
[1.0000e + 00 1.0000e + 00 1.0000e + 00 1.0000e + 00 1.0000e + 00]
[1.0000 e + 00 1.0000e + 01 1.9900e + 02 3.9700e + 03 7.9201e + 04]]
Vincent Bumgarner has been designing software for nearly 20 years, working in many languages on nearly as many platforms. He started using Splunk in 2007 and has enjoyed watching the product evolve ov...
10/07/2020
Mark Lutz is the global leader in Python training, author of the oldest and bestselling Python texts, and a pioneer in the Python community since 1992.
Mark Lutz is the author of the found...
11/08/2021
ig Data applications are growing very rapidly around the globe. This new approach to decision making takes into account data gathered from multiple sources. Here my goal is to show how these diverse s...
10/07/2020
We are experiencing a renaissance of artificial intelligence, and everyone and their neighbor wants to be a part of this movement. That’s quite likely why you are browsing through this book. There a...
23/09/2020