Skip to content

Commit

Permalink
Update chebyshev_derivative.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
RJDennis committed Apr 23, 2021
1 parent 7e9a444 commit 89ce862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chebyshev_derivative.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ function chebyshev_derivative(weights::Array{T,N},x::Array{T,1},pos::S,order::S,
poly = Array{Array{T,2},1}(undef,N)
@inbounds for i = 1:N
if i === pos
poly[i] = derivative_of_chebyshev_polynomial(order[i],normalize_node(x[i],domain[:,i]))
poly[i] = derivative_of_chebyshev_polynomial(order,normalize_node(x[i],domain[:,i]))
else
poly[i] = chebyshev_polynomial(order[i],normalize_node(x[i],domain[:,i]))
poly[i] = chebyshev_polynomial(order,normalize_node(x[i],domain[:,i]))
end
end

Expand Down

0 comments on commit 89ce862

Please sign in to comment.