---
title: "Ten Little Algorithms, Part 5: Quadratic Extremum Interpolation and Chandrupatla's Method"
url: https://daily.dev/posts/ten-little-algorithms-part-5-quadratic-extremum-interpolation-and-chandrupatla-s-method-gm9mcdxvh
source_url: https://www.embeddedrelated.com/showarticle/855.php
type: article
source: "EmbeddedRelated"
published: 2026-05-31T07:48:20.877Z
updated: 2026-05-31T09:30:10.255Z
tags: ["python", "embedded"]
reading_time: 21
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Ten Little Algorithms, Part 5: Quadratic Extremum Interpolation and Chandrupatla's Method

**[EmbeddedRelated](https://daily.dev/sources/embeddedrelated)** · 21 min read · 0 upvotes · 0 comments

## Summary

Two compact numerical algorithms are explored for embedded and scientific computing: quadratic extremum interpolation and Chandrupatla's root-finding method. Quadratic interpolation fits a parabola to three sampled points around a waveform peak, achieving cubic error scaling with timestep — a significant improvement over the quadratic scaling of raw sample maxima. The technique requires smooth, well-sampled data to work reliably. Chandrupatla's 1997 method is presented as a simpler alternative to Brent's method for bracketed root-finding, combining bisection with inverse quadratic interpolation using a straightforward switching criterion. Python implementations and convergence comparisons against scipy's brentq are provided, showing Chandrupatla converges comparably or faster on flat/multiple-root functions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.embeddedrelated.com/showarticle/855.php>

## Similar posts on daily.dev

- [Fast calculation of the distance to cubic Bezier curves on the GPU](https://daily.dev/posts/fast-calculation-of-the-distance-to-cubic-bezier-curves-on-the-gpu-h77osvxoc) · Hacker News · 3 upvotes · 0 comments
- [Notes on Lagrange Interpolating Polynomials](https://daily.dev/posts/notes-on-lagrange-interpolating-polynomials-xnjlb9qsp) · Eli Bendersky · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#embedded](https://daily.dev/tags/embedded)

[View this post on daily.dev](https://daily.dev/posts/ten-little-algorithms-part-5-quadratic-extremum-interpolation-and-chandrupatla-s-method-gm9mcdxvh)
