How to fix up positional arguments error?
On Jupyter
TypeError: norm() takes 1 positional argument but 3 were given
I have this code.
plot((norm(x, 0, 1), 0.0625*(3+x)^2), (x, -2, 2), ymin=0)
It works but as soon as I change it to
plot((norm(x, 0, 1), 0.0625*(3+x)^2), (x, -3, -1), ymin=0)
to improve accuracy, it stops working.
Neither code works in a fresh SageMath session, because the built-in function
norm
takes only one positional argument. You should check where your ownnorm
function is defined, and ensure that your definition is used in both cases.