5.1.26 execute
--------------
Syntax:
execute ( string_expression )
Type:
none
Purpose:
executes a string containing a sequence of SINGULAR commands.
Note:
The command return cannot appear in the string.

 execute should be avoided in procedures
whenever possible, since it may give rise to name conflicts.  Moreover,
such procedures cannot be precompiled (a feature which SINGULAR will
provide in the future).
Example:
  ring r=32003,(x,y,z),dp;
  ideal i=x+y,z3+22y;
  write(":w save_i",i);
  ring r0=0,(x,y,z),Dp;
  string s="ideal k="+read("save_i")+";";
  s;
==> ideal k=x+y,z3+22y
==> ;
  execute(s); // define the ideal k
  k;
==> k[1]=x+y
==> k[2]=z3+22y
<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
