Question: Error, attempting to assign to "D" which is protected.

While solving cubic formula, i got this warning in Maple.

Why D variable is protected? 

eq1 := A*x^3+B*x^2+C*x+D = 0

``

A := x^2:

B := 2*x*y-4*z^2:

C := -2*x*y*z+x^2-y*z:

D := 4*x^2-x*z

Error, attempting to assign to `D` which is protected.  Try declaring `local D`; see ?protect for details.

 

``

eq1

x^5+(2*x*y-4*z^2)*x^2+(-2*x*y*z+x^2-y*z)*x+D = 0

(1)

 

 

Please Wait...