Skip to content

Commit

Permalink
Working now
Browse files Browse the repository at this point in the history
  • Loading branch information
Austen Lamacraft committed May 21, 2018
1 parent f8bfe74 commit 5a43af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TracyWidom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function F2(s::Real, N::Integer)
nodes, weights = gausslegendre(N)
sqrt_weights = sqrt.(weights)
weights_matrix = kron(transpose(sqrt_weights),sqrt_weights)
K_matrix = [K2tilde(ξ,η,s) for ξ in nodes, η in nodes]
K_matrix = [_K2tilde(ξ,η,s) for ξ in nodes, η in nodes]
det(eye(N) - weights_matrix .* K_matrix)
end

Expand All @@ -22,6 +22,6 @@ end

(ξ, s) = s + 10*tan*+1)/4)
_ϕprime(ξ) = (5π/2)*(sec*+1)/4))^2
_K2tilde(ξ,η,s) = sqrt(ϕprime(ξ) * ϕprime(η)) * airy_kernel(ϕ(ξ,s), ϕ(η,s));
_K2tilde(ξ,η,s) = sqrt(_ϕprime(ξ) * _ϕprime(η)) * _airy_kernel((ξ,s), (η,s));

end # module

0 comments on commit 5a43af5

Please sign in to comment.