MathGroup Archive 2007

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

Search the Archive

Re: Integration in a range of value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78456] Re: Integration in a range of value
  • From: dimitris <dimmechan at yahoo.com>
  • Date: Mon, 2 Jul 2007 06:50:25 -0400 (EDT)
  • References: <f6841f$emm$1@smc.vnet.net>

            mattew       :
> Hi, it's always me!
> I' d need to do something like
>
> Int [0,Pi] Cos[Theta-theta2] dTtheta
>
> which means get the different values of the integration where the variable theta2 assumes all possible values in [0-Pi]. Is there a way to ask mathematica to do something like that (Or the plot the results of the integral as a function of theta2)?

Hello.

In[20]:=
Clear["Global`*"]

In[23]:=
o[theta_] := Cos[theta - theta2]

In[28]:=
lim1 = {theta, 0, Pi};
lim2 = {theta2, 0, Pi};

In[30]:=
oo[theta2_] = Integrate[o[theta], lim1]
Out[30]=
2*Sin[theta2]

In[33]:=
Plot[oo[theta2], Evaluate@lim2]

Dimitris



  • Prev by Date: Re: Combinatorica loading time in V6
  • Next by Date: Re: Integration in a range of value
  • Previous by thread: Integration in a range of value
  • Next by thread: Re: Integration in a range of value