MathGroup Archive 2005

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

Search the Archive

Re: Do loop is faulty

  • To: mathgroup at
  • Subject: [mg55390] Re: Do loop is faulty
  • From: "dumb_founded" <andreajagger_8 at>
  • Date: Mon, 21 Mar 2005 03:01:57 -0500 (EST)
  • References: <d1jfsj$sa4$>
  • Sender: owner-wri-mathgroup at

Oops, sorry, I mistyped the code.  It should read:


dumb_founded wrote:
> I define array a[i] and array b[i] of dimension 10.  Then I go
> 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
> 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

  • Prev by Date: Re: findroot
  • Next by Date: Re: Do loop is faulty
  • Previous by thread: Re: Do loop is faulty
  • Next by thread: Re: Re: Do loop is faulty