Problem with "globalsolve:true"



globalsolve does not redefine functions.  You seem to be using much more 
complicated syntax and ideas than needed. Also you should use linsolve 
if you want to have globalsolve work. Solve on systems apparently 
ignores globalsolve, perhaps because algebraic systems may have many 
solutions... which should be assigned globally>

Try

M:  K2+A*z-q*z^2/2;
globalsolve:true;

linsolve([M=0,z=0],[K2,z]);

ev(M);


or just substituting z=0 in Helge Hansen wrote:
> Hi,
>
> Does anybody understand why K2 in the following script is not solved global?
> What am I doing wrong? In my opinion the last line should be:
> M(z)=z*A-(q*z^2)/2
>
> (%i1) M(z)::=K2+A*z-q*z^2/2;
> (%o1) M(z)::=K2+A*z+((-q)*z^2)/2
>
> (%i2) globalsolve:true$
>
> (%i3) solve([M(z)=0,z=0],[K2,z]);
> (%o3) [[K2=0,z=0]]
>
> (%i4) display(M(z))$
>
> M(z)=K2+z*A-(q*z^2)/2
>
>
>  
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>