Can This Be Made Cleaner
- To: mathgroup at smc.vnet.net
- Subject: [mg29797] Can This Be Made Cleaner
- From: Flip at safebunch.com
- Date: Tue, 10 Jul 2001 20:25:33 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
I would like to move the sequence into the module and would like to add a max
parameter to give up by (for example, if it doesn't find d by some time, print
out cold not converge after max iterations).
Can this be made easier, cleaner and faster with the sequence embedded within
the module and it progresses the module one step at a time until it finds the
Does it make sense to do it this way?
Here is the short code.
a[n_]:= a[n] = (-1)^(n+1) (Abs[a[n-1]]+2)
(*find the first D in a[n] for which JS[a,n] = -1 *)
!= -1, i++];lst[[i]]]
Thank you for any inputs ... Wilson
Prev by Date:
Can Anyone Help With This?
Next by Date:
Re: icon to Evaluate Notebook?
Previous by thread:
RE: Can Anyone Help With This?
Next by thread:
Re: Can This Be Made Cleaner