Skip to content
Python code for studying the convergence of Legendre series for piecewise analytic functions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Legendre Series for Piecewise Analytic Functions

This repository is related to my article Exploring the Pointwise Convergence of Legendre Series for Piecewise Analytic Functions.


  • contains the code for computing the Legendre series and analysing the pointwise convergence.
  • contains the code for plotting the results from the computations.
  • scripts directory contains script files for creating the different plots.


Install Miniconda (or Anaconda).

Install Conda environment

conda env create -f environment.yml 

Activate the environment

source activate legendre36

Create the figures

python scripts/
python scripts/
python scripts/
python scripts/
python scripts/

Additionally, creating the animations requires FFmpeg.

python scripts/
You can’t perform that action at this time.