# NumPy polymulx()

Rate this post
`numpy.polynomial.polynomial.polymulx(c)`

The `numpy.polymulx` function multiplies the polynomial `c` with a value `x` which is the independent variable.

The following table shows the return value of the function:

Let’s dive into some examples to show how the function is used in practice:

### Examples

```import numpy as np
import numpy.polynomial.polynomial as poly

print(poly.polymulx() == )
print(poly.polymulx() == [0, 1])
for i in range(1, 5):
ser = *i + 
tgt = *(i + 1) + 
print(poly.polymulx(ser) == tgt)

'''
[ True]
[ True  True]
[ True  True  True]
[ True  True  True  True]
[ True  True  True  True  True]
[ True  True  True  True  True  True]
'''```

This function is inspired from this Github repository.

Any master coder has a “hands-on” mentality with a bias towards action. Try it yourself—play with the function in the following interactive code shell:

Exercise: Change the parameters of your polynomials and print them without the comparisons. Do you understand where they come from?

Master NumPy—and become a data science pro: