Skip to content

Commit

Permalink
Fix generic AbstractSD correlation methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisola committed Aug 15, 2024
1 parent 62cd27c commit 9131a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AbstractSD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ given time delay `τ` and inverse temperature `β`.
"""
function correlations_real(J::AbstractSD, τ, β; ωcutoff=Inf)
IRe = quadgk(sd(J,ω)*cos*τ)*tanh*β/2), zero(τ), ωcutoff)
IRe = quadgk(ω -> sd(J,ω)*cos*τ)*coth*β/2), zero(τ), ωcutoff)
return IRe[1]
end

Expand All @@ -129,7 +129,7 @@ the given time delay `τ`.
"""
function correlations_imag(J::AbstractSD, τ; ωcutoff=Inf)
IIm = quadgk(-sd(J,ω)*sin*τ), zero(τ), ωcutoff)
IIm = quadgk(ω -> -sd(J,ω)*sin*τ), zero(τ), ωcutoff)
return IIm[1]
end

Expand Down

0 comments on commit 9131a7f

Please sign in to comment.