Interactive Demo

Catastrophic Cancellation Demo

Catastrophic Cancellation Demo is a free, interactive learning demo from the CS323: Numerical Analysis and Computing course on Lykke. It helps you build intuition for Dynamic Typing, List Comprehension, Direct vs. Iterative Methods, Big-O Notation. Play with it directly in your browser — it features 1 slider and a live visual canvas. Move the slider to increase b. This demo lives in the “Introduction to Python and Numerical Computing” section of the course.

Preview of the Catastrophic Cancellation Demo interactive demo
Preview of Catastrophic Cancellation Demo — play the live version below.
Loading interactive demo…

How to use this demo

  1. Move the slider to increase b.
  2. Drag the “Standard Formula Root:”, “Stable Formula Root:” sliders to change the inputs and watch the result update live.
  3. Experiment freely — there's nothing to break, and every change is reversible.

What you'll explore

Frequently asked questions

What does the Catastrophic Cancellation Demo demo do?

As b² becomes much larger than 4ac, the standard quadratic formula fails due to Catastrophic Cancellation. Catastrophic Cancellation Demo lets you explore this hands-on instead of only reading about it.

What CS323: Numerical Analysis and Computing concept does Catastrophic Cancellation Demo teach?

Foundational concepts of Python programming for scientific computing and the motivation behind numerical methods. It focuses on Dynamic Typing, List Comprehension, Direct vs. Iterative Methods, Big-O Notation, Asymptotic Analysis from the “Introduction to Python and Numerical Computing” section.

What can I control in Catastrophic Cancellation Demo?

The “Standard Formula Root:”, “Stable Formula Root:” sliders change the key inputs. Every change updates the visualization in real time, so you can see exactly how each variable affects the outcome.

How does Catastrophic Cancellation Demo fit into the CS323: Numerical Analysis and Computing course?

CS323: Numerical Analysis and Computing provides a comprehensive introduction to numerical algorithms, optimization, and differential equations. The course bridges the gap between theoretical mathematics and practical c… This demo is the interactive piece for the “Introduction to Python and Numerical Computing” section. Open the full CS323: Numerical Analysis and Computing course wiki at https://www.getlykke.com/explore/public/cs323-numerical-analysis-and-computing-0ad42441-9711-4b3c-813d-5136707b4a00 for notes, flashcards, quizzes and the other demos.

What will I understand better after using Catastrophic Cancellation Demo?

You'll build intuition for Dynamic Typing, List Comprehension, Direct vs. Iterative Methods, Big-O Notation, Asymptotic Analysis — and, crucially, see how they behave when you change the inputs, which is hard to get from a textbook or lecture on CS323: Numerical Analysis and Computing alone.

From the CS323: Numerical Analysis and Computing course

This interactive demo is part of the Introduction to Python and Numerical Computing section. Explore the full CS323: Numerical Analysis and Computing course wiki on Lykke — with notes, flashcards, quizzes and more interactive demos.

Open the CS323: Numerical Analysis and Computing course →