Computational Physics, Linear Algebra, Python, Math, Matrix.
corresponding y value is calculated (and thus has the same shape as x ). Since the result of the square root can be negative or positive (for instance, 4 can be the result of 2² but also of (-2²)) we need to plot both solutions ( y and -y in plt.plot). Note also that a lot of values are needed if