Solving Mathematica Problem with FindRoot Function

  • Thread starter Thread starter Petar Mali
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion centers on a Mathematica issue involving the FindRoot function. The user is struggling to obtain numerical values due to an integrand that becomes undefined at the limits of 0 and pi. It is suggested to adjust the integration limits slightly beyond these points for better results. Additionally, using a separate function instead of incorporating a constant directly within NIntegrate is recommended. The root of the problem appears to be a T2 value around 11,000, as indicated in the attached workbook.
Petar Mali
Messages
283
Reaction score
0

Homework Statement


I have a problem with program Mathematica and function FindRoot


Homework Equations


Relevent equations are in the mathematica document in attachment of this post.


The Attempt at a Solution



I tried in the same document but I don't get numerical value? What I need to change. Thanks for your answer.
 

Attachments

Physics news on Phys.org
Didn't we have this conversation a month or so ago? One problem is that your integrand blows up at the limits of 0 and pi, so you need to stop the integration a little larger than 0 and a little smaller than pi. Also, FindRoot has trouble with a constant inside of NIntegrate like that. Try making a separate function like I did in the attached workbook. It looks like the root of your problem is a T2 value of about 11,000 - see attached.
 

Attachments

Back
Top