Polynomials

  • + 0 comments
    import numpy as np
    
    p = list(map(float,input().split()))
    x = int(input())
    arr = np.polyval(p,x)
    print(arr)