Robert M. Corless
Department of Applied Mathematics
University of Western Ontario
London, Canada

Copyright 2001 by Robert M. Corless
All rights reserved

Programming in Maple 

Программирование в Maple

Local vs. global vs. environment variables 

Локальные - глобальные - текущие переменные

Exporting local variables 

Экспорт локальных переменных

> restart;
> Holodeck := proc() local Moriarty; Moriarty end proc;

Holodeck := proc () local Moriarty; Moriarty end pr...

> escaped[1] := Holodeck();

escaped[1] := Moriarty

> Moriarty - escaped[1] ;

Moriarty-Moriarty

> escaped[2] := Holodeck();

escaped[2] := Moriarty

> escaped[1] - escaped[2];

Moriarty-Moriarty

> cat(``,escaped[1])-cat(``,escaped[2]);

0

 
Hosted by uCoz