Re: Integration in a range of value
- To: mathgroup at smc.vnet.net
- Subject: [mg78527] Re: Integration in a range of value
- From: chuck009 <dmilioto at comcast.com>
- Date: Tue, 3 Jul 2007 05:42:40 -0400 (EDT)
Here's two examples. The second case just uses a pure function and some short-hand notation. f[tval_] := NIntegrate[Cos[theta - tval], {theta, 0, Pi}] Plot[f[t], {t, 0, Pi}] Plot[(NIntegrate[Cos[theta - #], {theta, 0, Pi}]) &[tval], {tval, 0, Pi}]