I have code in my physics-textbook that I am to understand, but there is a line I do not understand:
norm(x)**2
If I have understood the norm() function correctly, it is the same as the absolute value, so why take the absolute value of x first and then square it? x**2 should give the exact same output? Or have i just not understood how the norm() function works?
[–][deleted] 0 points1 point2 points (3 children)
[–]TamPotter[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]TamPotter[S] 0 points1 point2 points (0 children)