I'm trying to run the following code:
β = 1;
ωc = 15;
G = 0.01;
integral4 :=
G ω Exp[-ω/ωc] ((
1 - Cos[ω τ] )/ω^2 ) Coth [βω/2]
Plot[ - (1/τ) Log[
1/2 + 1/2 Exp[ -
NIntegrate[integral4, {ω, 0, 70000},
Method -> "LocalAdaptive", MaxRecursion -> 15]] ], {τ, 0,
3}]
But I get the errors:
- NIntegrate::inumr: The integrand integral4 has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,70000}}. >>
- NIntegrate::inumr: The integrand integral4 has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,70000}}. >>
- NIntegrate::inumr: The integrand integral4 has evaluated to non-numerical values for all sampling points in the region with boundaries {{0.,70000.}}. >>
- General::stop: Further output of NIntegrate::inumr will be suppressed during this calculation. >>
How do I get around it?
Cos[]
andCoth[]
(capitalization matters!) and square brackets, not parentheses. Please do read the docs on how to use these functions. $\endgroup$(1/2)
in your code? $\endgroup$