how to write procedures that use go to in Maple

November 16 2010 by eclark 201
false
Maple

0


Recently I was looking at an algorithm in one of Knuth's books.

The algorithm is described in steps with many of the form 

if condition 1 then goto step 7; if condition 2 go to step 8, 

etc.

I managed to write up the algorithm by making each step

a procedure, but had trouble with handling global variables.

 

Is there in Maple some standard method for dealing with such algorithms.

A friend tells me  that in some languages there are "cases" and

"switches" that can be used.  Is there any thing like that in Maple?

 

Thanks,

Edwin

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account