Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add roots #59

Open
dlfivefifty opened this issue Aug 3, 2021 · 6 comments
Open

Add roots #59

dlfivefifty opened this issue Aug 3, 2021 · 6 comments

Comments

@dlfivefifty
Copy link
Member

We can port the code

https://github.com/JuliaApproximation/ApproxFunOrthogonalPolynomials.jl/blob/master/src/roots.jl

I think call it findall(iszero,f).

@yewalenikhil65
Copy link

@dlfivefifty i can help with roots for hermite, legendre, lagaurre polynomials of degree N. Shall i start creating a PR if these roots are welcome ?

@dlfivefifty
Copy link
Member Author

I think we already have it in FastGaussQuadrature.jl

1 similar comment
@dlfivefifty
Copy link
Member Author

I think we already have it in FastGaussQuadrature.jl

@yewalenikhil65
Copy link

@dlfivefifty Sorry , i didn't knew that ! The way i was proposing to find roots was based on finding eigen values of tridiagonal jacobi matrices(that's the general way i guess). And i saw codes for jacobi matrices residing in ClassicalOrthogonalPolynomials.jl , so thought this must be the right place

@dlfivefifty
Copy link
Member Author

They use more sophisticated asymptotics which get O(n) complexity

@dlfivefifty
Copy link
Member Author

We could provide an interface to those routines. Say support findall(iszero, Legendre()[:,5])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants