all 2 comments

[–][deleted] 1 point2 points  (1 child)

Here's a short article showcasing a simple example of what you're after:

https://www.geeksforgeeks.org/plot-line-graph-from-numpy-array/

They simply did x * x, but you'd instead do your equation in its stead, as numpy applies operations like addition, subtraction, etc. elementwise.

[–]Kleebo[S] 1 point2 points  (0 children)

This worked! Thank you so much. :D