Do loop is faulty
- To: mathgroup at smc.vnet.net
- Subject: [mg55368] Do loop is faulty
- From: "dumb_founded" <andreajagger_8 at hotmail.com>
- Date: Sun, 20 Mar 2005 04:12:05 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
I define array a[i] and array b[i] of dimension 10. Then I go through the following Do loop, or try to, that is. Array[c,10]; Do[c[i]=NIntegrate[a[i]*x*Sin[b[i]*x],{x,0,b[i]}] I get numerous error messages saying that b[i] is not a valid limit of integration. This is sheer headache. I will never try to use Mathematica for numerical analysis again. All your efforts on this matter are sincerely appreciated. Thanks
- Follow-Ups:
- Re: Do loop is faulty
- From: DrBob <drbob@bigfoot.com>
- Re: Do loop is faulty
- From: Hui Fang <fangh73@xmu.edu.cn>
- Re: Do loop is faulty