Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.3K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Calculate a numerical integration with NIntegrate?

Attachments:
POSTED BY: Giovanni Iacucci
3 Replies

The functions Rs and Rp become complex for \[Theta]0 = ArcSin[50/69]. You can insert that value into the integration interval as {\[Theta], 0, \[Theta]0, \[Pi]/2}, which silences the messages. You are using the symbol R with two different meanings, which may not be a good idea. The. I am afraid NIntegrate does not have a special notation.

POSTED BY: Gianluca Gorni

Dear Gianluca, thanks a lot for your reply. If a priori you do not know if the integral is solvable analytically do you suggest in any case to use directly Nintegrate or to try before with Integrate? Are the warning messages that we silenced somehow "dangerous" for the result of the calculated integral?

POSTED BY: Giovanni Iacucci

I am not an expert in integration. In your case for the integrals without Abs I could find an analytical primitive, but it was not easy to use, because it has a discontinuity in the imaginary part. Still, I think you can find an exact result in that case, with some patience. If you are content with a floating-point result, NIntegrate can be more than enough. I think that your warnings come because the algorithm somehow senses the singular point, but you have to study every case on its own.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard