Unverified Commit 332bb5de authored by Pierre Navaro's avatar Pierre Navaro Committed by GitHub
Browse files

Update chebyshev.jl

parent 122e1f95
"""
Chebyshev( nx, xmin, xmax )
Chebyshev( xmin, xmax, nx )
Chebyshev nodes
......@@ -14,7 +14,7 @@ struct Chebyshev <: NodesType
function Chebyshev( xmin, xmax, nx )
xk = zeros(Float64, nx)
θ = (π:-π/(nx-1):-1e-14);
θ = (π:-π/(nx-1):-1e-14)
xk .= ((cos.(θ).+1)*(xmax-xmin))/2 .+ xmin
new( nx, xmin, xmax, xk )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment