Git Product home page Git Product logo

annuliorthogonalpolynomials.jl's Introduction

AnnuliOrthogonalPolynomials.jl

Build Status codecov.io

A Julia package for orthogonal polynomials on an annulus.

This code used to be part of AlgebraicCurveOrthogonalPolynomials.jl.

This experimental package implements ZernikeAnnulus and ComplexZernikeAnnulus, families of orthogonal polynomials on the annulus {ρ² ≤ x² + y² ≤ 1} with respect to the weight (r² - ρ²)ᵃ * (1-r²)ᵇ. This builds on top of SemiclassicalOrthogonalPolynomials.jl and MultivariateOrthogonalPolynomials.jl.

julia> using AnnuliOrthogonalPolynomials, StaticArrays

julia> ρ, a, b = 0.5, 0.0, 0.0;

julia> Z = ZernikeAnnulus(ρ, a, b)
ZernikeAnnulus{Float64}(0.5, 0.0, 0.0)

julia> Z[SVector(0.5,0.2), Block.(1:3)] # Blocked by degree
3-blocked 6-element BlockVector{Float64}:
 1.0
 ───────────────────
 0.20000000000000004
 0.5000000000000001
 ───────────────────
 1.547298721428197
 0.20000000000000007
 0.21000000000000008

julia> x,y = first.(axes(Z,1)), last.(axes(Z,1));

julia> u = Z * (Z \ (exp.(x) .* cos.(y))) # Expand in annulus OPs
ZernikeAnnulus{Float64}(0.5, 0.0, 0.0) * [1.0, 9.352800883640776e-18, 0.9999999999999999, -5.2512913921638607e-17, -2.337754850841795e-18, 0.5, 2.153350906504162e-18, 1.1925107582660448e-17, -5.513529126039963e-18, 0.1666666666666666    ]

julia> u[SVector(0.5,0.2)] # Evaluate expansion
1.6158566135891377

annuliorthogonalpolynomials.jl's People

Contributors

ioannispapapadopoulos avatar dlfivefifty avatar

Stargazers

Timon Salar Gutleb avatar

Watchers

 avatar  avatar  avatar

annuliorthogonalpolynomials.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.