We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Polynomials
- Discussions
Polynomials
Polynomials
Sort by
recency
|
241 Discussions
|
Please Login in order to post a comment
import numpy as np A = np.array(list(map(float,input().split()))) B=int(input()) print(np.polyval(A, B))
Understandable solution from my side
try:
except ValueError as e: print(f"Input error: {e}")
import numpy p=list(map(float,input().split())) x=int(input()) arr=numpy.array(p) print(numpy.polyval(arr,x))