October 23, 2024
Chicago 12, Melborne City, USA
python

What is the equivalent of np.polyval in the new np.polynomial API?


I can’t find a direct answer in NumPy documentation. This snippet will populate y with polynomial p values on domain x:

p = [1, 2, 3]
x = np.linspace(0, 1, 10)
y = [np.polyval(p, i) for i in x]

What is the new API equivalent when p = Polynomial(poly)?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video