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
|
243 Discussions
|
Please Login in order to post a comment
code
import numpy print(numpy.polyval(list(map(float,input().split())),int(input())))
import numpy as np arr = np.array(list(map(float, input().split()))) x = int(input()) print(np.polyval(arr, x))
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}")