New Reply

Mathematica problem involving integral

 
Share Thread Thread Tools
Jun26-12, 07:38 AM   #1
 

Mathematica problem involving integral


Hi

We know that in Debye theory,

[tex]C_v=9kN\left(\frac{T}{\theta}\right)^3 \int_0^{\theta/T} \frac{x^4 e^x}{(e^x-1)^2}\;dx[/tex]

is the heat capacity of the solid. I want to plot [itex]C_v/3Nk[/itex] as a function of [itex]T/ \theta[/itex] from 0.001 to 1.4 using mathematica. The hint says to use NIntegrate. Now should I first create a vector of values of [itex]T/ \theta[/itex] from 0.001 to 1.4 using "Table" ? Then maybe I can feed this vector to NIntegrate which could be placed inside another "Table"
statement.

any help ?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> King Richard III found in 'untidy lozenge-shaped grave'
>> Google Drive sports new view and scan enhancements
>> Researcher admits mistakes in stem cell study
Jun26-12, 09:41 AM   #2
 
No need for a table. Just create a function that does what you want and plot it, like the attached notebook.
Attached Files
File Type: nb Debye.nb (6.3 KB, 2 views)
Jun26-12, 11:10 AM   #3
 
thanks, I tried to do something like that, but since the upper limit of the integration is
a variable itself, NIntegrate tried to give warning and didn't seem to give correct answer
Jun26-12, 12:29 PM   #4
 

Mathematica problem involving integral


Post what you did and we can probably figure out why.
Note that if you ask for immediate evaluation (=), and the limit of NIntegrate is a variable, then it can't evaluate and will give you an error. That's why I asked for delayed evaluation(:=), so it doesn't try to evaluate NIntegrate until after it has been supplied with a numeric limit. In this case, it doesn't even try to evaluate NIntegrate until it is making the plot and Plot has supplied it with a number to integrate up to.
Jun26-12, 12:41 PM   #5
 
You nailed it..... that was the problem........ mathematica is very easy once we become familiar with it....

I read on their website that they are coming up with cloud services... In that case, people don't have to worry about the slower processing time of mathematica as compared to say, Fortran.......since cloud servers are very powerful.........
Jun26-12, 01:04 PM   #6
 
Yes, Mathematica definitely has a learning curve, but it is very powerful once you become familiar with it.
Jun26-12, 01:21 PM   #7
 
do you think it will be possible send mathematica notebooks to cloud computers for evaluation since ordinary computers don't have memory sometimes. mathematica simplifies the work of a physicist to a great extent. if you are programming in say fortran, then lot of time is spent in thinking about the programming issues.
New Reply
Thread Tools


Similar Threads for: Mathematica problem involving integral
Thread Forum Replies
Integral Problem involving e Calculus & Beyond Homework 5
Using polar co-ord. to change double integral into single integral involving only r. Calculus & Beyond Homework 5
Solving a complex equation involving conjugates with Mathematica Math & Science Software 1
[Mathematica Help] An integration involving many vector variables Math & Science Software 1
Simple problem in Mathematica involving lists Math & Science Software 3