Re: Problem with Integration
- To: mathgroup at smc.vnet.net
- Subject: [mg22553] Re: [mg22496] Problem with Integration
- From: BobHanlon at aol.com
- Date: Thu, 9 Mar 2000 03:24:35 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
U[f_] := Evaluate[ Integrate[Cos[(f*Pi)/(180*2) + alpha], {alpha, -(Pi/3), Pi/3}]] ?U "Global`U" U[f_] := Sqrt[3]*Cos[(f*Pi)/360] U[60] 3/2 U[60.] 1.5 Bob Hanlon In a message dated 3/8/2000 4:05:12 AM, hans.steffani at e-technik.tu-chemnitz.de writes: >In[1]:= U[f_]:=1.0*Integrate[Cos[(f*Pi)/(180*2) + alpha],{alpha,-(Pi/3), >Pi/3}] > >In[2]:= U[60] > > -16 >Out[2]= 1.5 - 6.08617 10 I > >In[3]:= Integrate[Cos[(f*Pi)/(180*2) + alpha],{alpha, -(Pi/3), Pi/3}] > > f Pi >Out[3]= Sqrt[3] Cos[----] > 360 > >Cos[f Pi/360] should be real vor any real f. How can I avoid results >like Out[2] (exepct using Chop[] or Re[])? >