Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: NIntegrate a list

  • To: mathgroup at
  • Subject: [mg52969] Re: [mg52940] NIntegrate a list
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Sat, 18 Dec 2004 03:59:43 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

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.



  • 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