MathGroup Archive 2004

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

Search the Archive

Re: NIntegrate a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52969] Re: [mg52940] NIntegrate a list
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Sat, 18 Dec 2004 03:59:43 -0500 (EST)
  • References: <200412171019.FAA16101@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Dec 17, 2004, at 5:19 AM, Aaron Fude wrote:

> Hi,
>
> I can Integrate this, but apparently not NIntegrate this:
>
> Integrate[x*Sin[x]*{1, 2}, {theta, -Pi, Pi}]
>
> but not
>
> NIntegrate[x*Sin[x]*{1, 2}, {theta, -Pi, Pi}]
>
> Is there a good way to do this (w/o writing loops)?
>
> Many thanks!

It's not clear what you are trying to do.  The first expression is 
equivalent to

x Sin[x] {1,2} Integrate[1,{theta,-Pi,Pi}]

is that really what you meant?  Or did you mean Integrate[theta 
Sin[theta] {1,2},{theta,-Pi,Pi}]?

Anyway x Sin[x] is not a numeric expression and NIntegrate works only 
on numeric expressions.

Regards,

Ssezi


  • Prev by Date: Re : simply problem (not for me) about axes scale
  • Next by Date: Re : NIntegrate a list
  • Previous by thread: NIntegrate a list
  • Next by thread: Re: NIntegrate a list