Skip to content

Commit

Permalink
typeo
Browse files Browse the repository at this point in the history
  • Loading branch information
eford committed Sep 5, 2020
1 parent caabef4 commit 161a77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alg/calc_rv/project_flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function calc_d2fluxdlnlambda2!(d2fdlogλ2::AbstractArray{T1,1}, flux::AbstractA
#logλ = log.(λ)
#d2fdlogλ2 = Array{T1,1}(undef,length(flux))
#d2fdlogλ2[2:end-1] .= 0.25*(flux[3:end].+flux[1:end-2].-2.0.*flux[2:end-1])./(λ[3:end].+λ[1:end-2].-2.0*λ[2:end-1]).*(λ[3:end].+λ[end-2]).^2
d2fdlogλ2[2:end-1] .= 0.5 * (flux[3:end].+flux[1:end-2].-2.0.*flux[2:end-1]).* ((λ[3:end].+λ[1:end-2]).^2 ./ (2.0.*log.(logλ[3:end]./logλ[1:end-2])))
d2fdlogλ2[2:end-1] .= 0.5 * (flux[3:end].+flux[1:end-2].-2.0.*flux[2:end-1]).* ((λ[3:end].+λ[1:end-2]).^2 ./ (2.0.*log.(λ[3:end]./λ[1:end-2])))
d2fdlogλ2[end] = d2fdlogλ2[end-1]
d2fdlogλ2[1] = d2fdlogλ2[2]
return d2fdlogλ2
Expand Down

0 comments on commit 161a77f

Please sign in to comment.