MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: goto and label


Hi,

a) don't use Goto[] Mathematica has many other 
programing constructs
b)
myFunction[x_] :=
  Module[{i, w = x},
    i = 0;
    Label[start];
      i++;
      w += w*x + 1;
    If[i < 5, Goto[start]];
    w
  ]

??

Regards

  Jens

"Guy Israeli" <guyi1 at netvision.net.il> schrieb im 
Newsbeitrag news:d83dta$o1u$1 at smc.vnet.net...
> Hi
>
> can someone give clearer instruction on how to 
> use Goto and label than the
> help offers?
>
> Thanks,
>
> Guy
>
> 



  • Prev by Date: Re: Finding Position in an ordered list
  • Next by Date: Re: Constrained Optimization
  • Previous by thread: goto and label
  • Next by thread: Re: goto and label