Using the method np.chebval2d()
, we can get an array of coefficients after evaluating by (x, y) on Chebyshev series using np.chebval2d ( )
.
Syntax:
np.chebval2d (x, y, c)
Return : Return an array after evaluation on (x, y).
Example # 1:
In this example, we see that using np.chebval2d ()
we can get an array of coefficients by evaluating (x, y) by Chebyshev series.
# import NumPy
import
numpy as np
import
numpy.polynomial.chebyshev as cheb
# using the np.chebval2d () method
gfg
=
cheb.chebval2d (( 2
,
5
), (
1
,
3
), (
2
,

4
,
1
))
print
( gfg)
Output:
[32. 94.]
Example # 2:

Exit :
[719680. 6486180.52831708.]
Roger Jennings is an author and consultant specializing in Microsoft .NET ntier database applications and dataintensive Windows Communication Foundation (WCF) Web services with SQL Server. He’s be...
10/07/2020
Cloud computing provides the capability to use computing and storage resources on a metered basis and reduce the investments in an organization’s computing infrastructure. The spawning and deletion ...
10/07/2020
The rate at which we produce data is growing steadily, thus creating even larger streams of continuously evolving data. Online news, microblogs, search queries are just a few examples of these contin...
10/07/2020
Efficiently perform data collection, wrangling, analysis, and visualization using Python. Recent advancements in computing and artificial intelligence have completely changed the way we understand ...
23/09/2020