Polynomials

Sort by

recency

|

251 Discussions

|

  • + 0 comments

    import numpy as np

    i = np.array(list(map(float,input().split(' ')))) x = int(input()) print(np.polyval(i,x))

  • + 0 comments

    import numpy

    P = list(map(float, input().split())) x = float(input())

    print(numpy.polyval(P,x))

  • + 0 comments

    For Python3 Platform

    import numpy as np
    
    A = np.array(list(map(int, input().split())))
    B = np.array(list(map(int, input().split())))
    
    print(np.inner(A, B))
    print(np.outer(A, B))
    
  • + 0 comments
    import numpy as np
    print(np.polyval(list(map(float, input().split())), float(input())))
    
  • + 0 comments

    import numpy as np

    p = list(map(float, input().split())) x= float(input()) print(np.polyval(p,x))