Re: NIntegrate and Sequence
- To: mathgroup at smc.vnet.net
- Subject: [mg63469] Re: [mg63459] NIntegrate and Sequence
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 2 Jan 2006 05:49:04 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Nintegrate has the attribute HoldAll.
Attributes[NIntegrate]
{HoldAll,Protected}
Use Evaluate.
NIntegrate[r,Evaluate[{r,14,Sequence@@{16,18},40}]]
702.
Bob Hanlon
>
> From: Bruce Colletti <vze269bv at verizon.net>
To: mathgroup at smc.vnet.net
> Date: 2006/01/01 Sun AM 01:16:12 EST
> Subject: [mg63469] [mg63459] NIntegrate and Sequence
>
> Re Mathematica 5.2 under WinXP.
>
> The first command works while the other returns the NIntegrate::nlim error.
Yet {r, 14, Sequence @@ {16, 18}, 40} returns {r,14,16,18,40}.
>
> NIntegrate[r, {r, 14, 16, 18, 40}]
> NIntegrate[r, {r, 14, Sequence @@ {16, 18}, 40}]
>
> What is causing the error?
>
> Thankx.
>
> Bruce
>
>
- Follow-Ups:
- Re: Re: NIntegrate and Sequence
- From: Pratik Desai <pdesai1@umbc.edu>
- Re: Re: NIntegrate and Sequence