Numerical methods

From rnavarych/alpha-engineer · View interactive version

Numerical methods is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Implements numerical methods — floating-point arithmetic (IEEE 754, Kahan summation, catastrophic cancellation), matrix operations (LU/QR/SVD decomposition, sparse formats), root finding (Newton-Raphson, Brent's method), numerical integration (Simpson, Gaussian quadrature, adaptive), FFT/NTT, and cr

How to use this skill

Skill file

Numerical Methods

When to use

Core principles

  1. Never compare floats with == — always use absolute or relative epsilon; this is not optional
  2. Partial pivoting is not optional in Gaussian elimination — skipping it breaks numerical stability
  3. SVD is the Swiss Army knife — when LU and QR fail or when rank matters, SVD solves it
  4. Brent's method is the default root finder — combines guaranteed convergence with superlinear speed
  5. Never implement your own crypto — use libsodium, OpenSSL, or Web Crypto API; rolling your own is a security incident waiting to happen

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.