Python | Numpy np.chebmulx() method

With the help of np.chebmulx() method, we can get the multiplication of Chebyshev series with independent variable x by using np.chebmulx() method.

Syntax : np.chebmulx(s1)
Return : Return an array after multiplication with x.

Example #1 :
In this example we can see that by using np.chebmulx() method, we are able to get the multiplication of chebyshev series with an independent variable x using this method.



filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
s1 = (4, 6, 8)
  
# using np.chebmulx() method
gfg = C.chebmulx(s1)
  
print(gfg)

chevron_right


Output :

[3. 8. 3. 4.]

Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy
import numpy as np
from numpy.polynomial import chebyshev as C
  
s1 = (4, 6, 8, 1, 3, 5)
  
# using np.chebmulx() method
gfg = C.chebmulx(s1)
  
print(gfg)

chevron_right


Output :

[3. 8. 3.5 5.5 3. 1.5 2.5]



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.