Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

SetDelayed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92875] SetDelayed
  • From: Itzhak <shechtma at netvision.net.il>
  • Date: Thu, 16 Oct 2008 05:06:07 -0400 (EDT)

Why does Mathematica reply with:

.."Integrand [(x-Cos[y])/(1+x^2-2*x*Cos[y])^1.5 is not numerical at {y}={1.5708}", to the following:

Clear[f]
f[x_]:=NIntegrate[(x-Cos[y])/(1+x^2-2*x*Cos[y])^1.5,{y,0,Pi}];
Plot[Evaluate[f[x],{x,0,2}]

How should it be written?

Thank you.


  • Prev by Date: Re: integration
  • Next by Date: Re: tiny negative numbers
  • Previous by thread: Re: Mathematica 6.0.0 on Suse 11.0
  • Next by thread: Re: SetDelayed