HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
olivierverdier
pychebfun
Python2015–2015
olivierverdier / pychebfun

pychebfun

Python implementation of chebfun

2Distinct people
2Mentions
0Explicit recommenders
25GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Python implementation of chebfun

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2015-08-25 11:11:01 UTC to 2015-09-04 11:23:09 UTC.

012015-08-25 00:00:00 UTC to 2015-08-26 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsAug 252015-08-26 00:00:00 UTC to 2015-08-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-08-27 00:00:00 UTC to 2015-08-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-08-28 00:00:00 UTC to 2015-08-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-08-29 00:00:00 UTC to 2015-08-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-08-30 00:00:00 UTC to 2015-08-31 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsAug 302015-08-31 00:00:00 UTC to 2015-09-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-09-01 00:00:00 UTC to 2015-09-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-09-02 00:00:00 UTC to 2015-09-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-09-03 00:00:00 UTC to 2015-09-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-09-04 00:00:00 UTC to 2015-09-05 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 4

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Aug 252015-08-25 00:00:00 UTC2015-08-26 00:00:00 UTC101
Aug 262015-08-26 00:00:00 UTC2015-08-27 00:00:00 UTC000
Aug 272015-08-27 00:00:00 UTC2015-08-28 00:00:00 UTC000
Aug 282015-08-28 00:00:00 UTC2015-08-29 00:00:00 UTC000
Aug 292015-08-29 00:00:00 UTC2015-08-30 00:00:00 UTC000
Aug 302015-08-30 00:00:00 UTC2015-08-31 00:00:00 UTC000
Aug 312015-08-31 00:00:00 UTC2015-09-01 00:00:00 UTC000
Sep 12015-09-01 00:00:00 UTC2015-09-02 00:00:00 UTC000
Sep 22015-09-02 00:00:00 UTC2015-09-03 00:00:00 UTC000
Sep 32015-09-03 00:00:00 UTC2015-09-04 00:00:00 UTC000
Sep 42015-09-04 00:00:00 UTC2015-09-05 00:00:00 UTC101

What Hacker News says

2 sources
Folks interested in this topic should look at Chebfun, http://www.chebfun.org Also at Lloyd Trefethen’s book Approximation Theory and Approximation Practice, of which the first 6 chapters are available online, http://www.chebfun.org/ATAP/ The author of this blog post might as well have used Clenshaw’s algorithm as he mentioned was suggested by Numerical Recipes. It’s like 4–5 lines of code, fast, and has been proven numerically stable. If bk1, and bk2 are the previous two terms of the recurrence, and c the coefficient array, code to find y = f(x) for x in [-1, 1] looks like: x2 = 2*x bk2 = bk1 = 0 for ck in c[:0:-1]: bk2, bk1 = bk1, ck + x2*bk1 - bk2 y = c[0] + x * bk1 - bk2 (Note: There might be some typos there, I didn’t try running that. Here’s a vectorized Matlab version https://github.com/chebfun/chebfun/blob/developme
Read the rest
nt/%40chebt... with coefficients in that version ordered from highest to lowest) Or if he wanted an easy Python tool, just used this (partial) python port of Chebfun (though I guess it dates from around the same time as his post), https://github.com/olivierverdier/pychebfun I’m not convinced about his measurements on an arbitrary grid -> chebyshev coefficients via weighted least squares method. If his measurement points are reasonably clustered near the endpoints of his interval, he could just use an exactly interpolating polynomial and use the barycentric interpolation formula to get the values at the chebyshev points (see Trefethen’s book). His approach might also be fine, I haven’t thought deeply about it. Also see http://www.chebfun.org/examples/approx/RationalInterp.html http://www.chebfun.org/examples/approx/EquispacedData.html http://www.chebfun.org/examples/approx/BestL2Approximation.h... The neat thing about Chebyshev polynomials is that it’s possible to convert from values at the Chebyshev points (either extrema or roots of the Chebyshev polynomial) to Chebyshev coefficients by using an FFT, which takes O(n log n) time. Along with various other efficient algorithms for differentiation, integration, root finding, solving differential equations, etc., Chebfun makes it practical to deal with polynomials of very high degree, and do lots of neat stuff with them. This blog post’s statement that “higher degree polynomials can have problems with numerical accuracy” turns out to be a myth: https://people.maths.ox.ac.uk/trefethen/mythspaper.pdf
In Chebyshev Approximation

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.