a simpler loop
- To: mathgroup at smc.vnet.net
- Subject: [mg42104] a simpler loop
- From: CAP F <Ferdinand.Cap at eunet.at>
- Date: Thu, 19 Jun 2003 03:59:20 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Prasad, Here is a simpler loop (* c13 : Learn a loop for the shooting method.The shooting method, see codes c10 and c11, should be executed using a loop. *) Clear[a, l]; a[1] = 1.6; For[l = 1, l < 4, Print[{"iteration=", l, "value of a=", a, a[l]}]; a[l] = a[1] + 0.01*l l++1];