%@P:maxima1 %@M: \textbf{Variables locales} L'instruction \texttt{block} permet l'utilisation de variables locales ainsi que les séquences et les structures de contrôle dans les définitions. .m v3:7; .m block([v3],v3); .m g(x):=block([u:x+3,w],u:u^2,w:(y+2)^2,u+w); .m g(2); .m h(x) := block([u:x+3,w],u:u^2, if (u<3) then w:(y+2)^2 else w:(y+2)^2+1, u+w); .f .m [h(3),h(2)]; .m block([w:0],for i:1 thru 10 do (w:w+i^2)); .m block([w:0],for i:1 thru 10 do (w:w+i^2),w);