PythonStreamlitPlotlyNumPySymPyPandas

Numerical Methods Visualizer.

An interactive Streamlit app that visualizes numerical methods step by step, covering root finding, interpolation, differentiation, integration, curve fitting, linear systems and ODEs.

Overview

Numerical Methods Visualizer is a Python application built with Streamlit and Plotly that makes classical numerical algorithms easier to explore interactively. SymPy parses functions and supplies symbolic derivatives, while NumPy and Pandas support computation and result tables; separate algorithm modules cover seven topics. An iteration slider replays solver steps alongside method-specific geometry, and results tables highlight convergence. The app also includes root-finding benchmarks and head-to-head comparisons, polynomial analysis, linear-system diagnostics, and light and dark modes.

Key Features

  • Step-by-Step Playback: replay every iteration with a slider and watch the algorithm converge.
  • Benchmark & Comparison: run all root-finding methods on one function, or race two methods head to head.
  • Root Scanner & Polynomial Analysis: find every root in a range, with bounds and starting guesses suggested for polynomials.
  • Seven Numerical Topics: root finding, interpolation, differentiation, integration, curve fitting, linear systems and ODE solvers, each with multiple classical methods and worked steps.

Application Architecture & Pages

Landing Page

Landing Page

The landing page groups the seven numerical topics into Equation Solvers, Data Analysis, and Calculus cards, with a sample visualization and launch control for each topic.

Root Finding Setup

Root Finding Setup

The root-finding setup accepts a function and exposes polynomial bounds, suggested starting values, and sign-change brackets alongside single-root and multi-root solver configuration.

Iteration Dashboard

Iteration Dashboard

The bisection dashboard pairs an iteration slider with a convergence plot and iteration table, then summarizes the found root and step-by-step calculation.

Benchmark & Comparison

Benchmark & Comparison

A benchmark table compares eight root-finding methods by iteration count, root, error, and convergence status, with controls below for visualizing or racing methods.

Root Scanner

Root Scanner

The Find All Roots page scans a selected range, plots the function and detected roots, and lists interval checks with sign-change status.

Interpolation

Interpolation

The interpolation page shows a divided-difference table and the interpolating curve through the supplied data points, including tangent markers and an evaluated point.

Differentiation

Differentiation

The differentiation page displays the input data table and difference coefficients, reports function and derivative values, and visualizes the curve and tangent.

Integration

Integration

The integration page selects a quadrature rule, shows its formula and substituted calculation, and graphs the area under the input data.

Linear Systems

Linear Systems

The system solver reports determinant, matrix ranks, consistency, and condition-number stability, with elimination steps and a 3D plane intersection below.

ODE Solver

ODE Solver

The ODE solver configures an initial-value problem and selected numerical methods, then compares solution trajectories over a slope field.

Challenges Faced

Each solver returns its iteration history in a different shape, so the app normalizes those results before plotting them together or comparing methods. Newton-Raphson can fail at zero derivatives or singularities, so the solvers handle those cases rather than letting an invalid step crash the app.

Future Plans

Adding unit tests for the algorithm modules is planned, along with exploring additional methods such as Steffensen's.