Next: Question 2: I Up: Some Maple Questions and Previous: Contents

Question 1: I'm using nested for loops, and any assignments or other statements I make within the second loop do not appear. At first I didn't think statements in the inner loop were being processed at all but I could force something to print by using lprint. Why don't they print regularly and how can I make them print?


Answer: Maple has a global variable called printlevel. This controls how much information is printed. The default setting is 1. At this setting only statements one nested level or less away from the top level will echo their results. In our example we would need to raise the printlevel to 2. this can be easily done by assigning 2 to the global variable printlevel.
This could cause other information to appear. See the help page for printlevel for details on how it affects other information messages and procedures.
Other help pages relevant to this topic include: print, lprint, loops.


gagin@thsun1.jinr.ru