molket-io / molket.jl

MIT License
5 stars 0 forks source link

Chebyshev-Hermite polynomials #1

Open gh85 opened 3 months ago

gh85 commented 3 months ago

I think it is Chebyshev polynomial of first kind https://en.wikipedia.org/wiki/Chebyshev_polynomials need correction of implemtation image

correction

function gchebhermite_at_n(n,x) t=0 for j in 0:div(n,2) t+=binomial(n, 2j)((x^2 - 1)^ j)x^( n - (2 j)) end
return t end

function gchebhermite(n,x) T = zeros(Float64,n+1) for i in 1:n+1 T[i]=gchebhermite_at_n(i-1,x) end return T end

tahaselim commented 3 months ago

Thanks @gh85 , we will look into that :)