Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Error from NIntegrate of variable Cos(theta)?

Posted 4 years ago
R = 3.9
x = Cos[\[Theta]]
b = (r^2 + R^2 - 2*r*R*x)^0.5
 NIntegrate[(Sqrt[15]/4)*
      Integrate[(R - r*x)*(3 x^2 - 1)*E^(-1.5566*b), {x, -1, 1}]*r^4*
      E^(-3.313066*r), {r, 0, R}]

I'm sharing the ERROS IN THE ATTACHED IMAGE

POSTED BY: S Sarkar
2 Replies

If d Cos[u] is not accepted as integration-variable you should change it to ( - Sin[u] du ). You have to change the boundaries as well Then: your inner integrand is really complicated containing transcedent functions.

So I tried it numerically in total:

f1[R_, r_?NumericQ] := 
 NIntegrate[(R - r*Cos[u])*(3 Cos[u]^2 - 1)*
   E^(-1.5566*(r^2 + R^2 - 2*r*R*Cos[u])^0.5) (-Sin[u]), {u, -Pi, 0}]

and

NIntegrate[(Sqrt[15]/4)*f1[3.9, r]*r^4*E^(-3.313066*r), {r, 0, 3.9}]
POSTED BY: Hans Dolhaine
POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard