Skip to main content

pyzernike

Description

pyzernike is a Python package to compute Zernike polynomials and their derivatives. See the documentation below for more informations.

The Zernike polynomials are defined as follows:

Zernike Cosinus Equation Zernike Sinus Equation

with :

Zernike Radial Equation

where n is the radial order, m is the azimuthal frequency, \rho is the normalized radial coordinate (\rho in [0, 1]) and \theta is the azimuthal angle.

All input arrays are automatically converted to numpy.float64 so that every calculation is performed in double‑precision, guaranteeing numerical stability throughout the library.

Usage

import numpy
from pyzernike import zernike_polynomial

rho = numpy.linspace(0, 1, 100)
theta = numpy.linspace(0, 2*numpy.pi, 100)
result = zernike_polynomial(rho, theta, n=[2], m=[0])
polynomial = result[0]  # result is a list, we take the first element

Also compute the symbolic sympy expression and display the polynomials as follow :

Zernike Display

Authors

Installation

Install with pip

pip install pyzernike-polynomials
pip install git+https://github.com/Artezaru/pyzernike.git

Clone with git

git clone https://github.com/Artezaru/pyzernike.git

License

Copyright 2025 Artezaru

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for pyzernike-polynomials 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyzernike-polynomials 3.0.0
File Size Uploaded
pyzernike_polynomials-3.0.0.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyzernike-polynomials 3.0.0
File Interpreter ABI Platform
pyzernike_polynomials-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / pyzernike_polynomials-3.0.0.tar.gz

Download URL pyzernike_polynomials-3.0.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
a3670843a1b197560bba8557f967e0e86e163fa1294b474e257cacde578323ce
BLAKE2b-256 checksum
How to use checksums
5d839d1113e36aaed8bd52ee0be72f032380ec86813ffd90828dbe8d9c55dc5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / pyzernike_polynomials-3.0.0-py3-none-any.whl

Download URL pyzernike_polynomials-3.0.0-py3-none-any.whl
Size 280.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6877ff5a4fe9c0c789ec1eb09f4068a2ecec69d5d67fbb2b0d0738e12f75a4c8
BLAKE2b-256 checksum
How to use checksums
68fc50347acc3e52ba3d4b9095be4e3180e2608e08cf38bb719838d1f3e8f7e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.3.1

2 release files

2.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page