Question: Division assignment for function in Maple

The input

f(x) := x^2;

n := evalf(int(f(x)^2, x = 0 .. 1));

f(x) :=  f(x)/n;

plot(f(x), x = 0 .. 1)

leads to the error

Error, (in f) too many levels of recursion
I need to reassign the function as itself divided by n that depends on the old f...

A piece of code like this is supposed to be inside a loop, so creating f_new(x):=f(x)/n doesn't solve the issue.

If it was a cpp code I'd write something like f(x)/=n for every x. How can I do it in Maple?

Thank you in advance for you answers!

Please Wait...