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

Computing the Zernike polynomials coefficients? #848

Open
Veenty opened this issue Dec 1, 2022 · 1 comment
Open

Computing the Zernike polynomials coefficients? #848

Veenty opened this issue Dec 1, 2022 · 1 comment

Comments

@Veenty
Copy link

Veenty commented Dec 1, 2022

I want to expand a function on the unit disk using the Zernike polynomials. I've seen that the domain Disk exists, but I cannot find that much documentation on how to use it, and nothing about Zernike polynomials. However all the pieces are there, so it should be possible.

@dlfivefifty
Copy link
Member

You can do this with https://github.com/JuliaApproximation/MultivariateOrthogonalPolynomials.jl

using MultivariateOrthogonalPolynomials, ContinuumArrays
Z = Zernike()
f = (x,y) -> exp(x*cos(y)) # function to be expanded
expand(Z, 𝐱 -> f(𝐱...))

The long term goal is to have ApproxFun.jl sit on top of ContinuumArrays.jl

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