Skip to content
Skills Library
Programming · Building & coding

role-algorithms:numerical-methods

/role-algorithms:numerical-methods

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 cryptographic foundations (SHA-256, AES-GCM, safe implementation patterns). Use when implementing numerical computation, signal processing, matrix algebra, or cryptographic primitives.

Licence
MIT
Last repository change
24.07.2026

Assessment and security

80/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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 cryptographic foundations (SHA-256, AES-GCM, safe implementation patterns). Use when implementing numerical computation, signal processing, matrix algebra, or cryptographic primitives.

Original author description

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 cryptographic foundations (SHA-256, AES-GCM, safe implementation patterns). Use when implementing numerical computation, signal processing, matrix algebra, or cryptographic primitives.

How it works

  1. When to use
  2. Core principles
  3. Reference Files
Original SKILL.md headings · 23 lines, 227 words
SKILL.md preview
---
name: role-algorithms:numerical-methods
description: 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 cryptographic foundations (SHA-256, AES-GCM, safe implementation patterns). Use when implementing numerical computation, signal processing, matrix algebra, or cryptographic primitives.
allowed-tools: Read, Grep, Glob, Bash
---

# Numerical Methods

## When to use
- Diagnosing floating-point precision issues (cancellation, accumulation error, overflow)
- Choosing between LU, QR, or SVD decomposition for a linear algebra problem
- Implementing root-finding when an analytical solution does not exist
- Selecting a numerical integration method based on smoothness and accuracy requirements
- Using FFT for polynomial multiplication, convolution, or signal analysis
- Reviewing cryptographic primitive usage for correctness and safety

## 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
- `references/floating-point-and-matrix.md` — IEEE 754 pitfalls, Kahan summation, precision type selection, Gaussian elimination with pivoting, LU/QR/SVD decompositions, sparse matrix formats (COO/CSR/CSC)
- `references/root-finding-and-integration.md` — bisection, Newton-Raphson, secant, Brent's method, trapezoidal/Simpson's/Gaussian quadrature, adaptive integration, Cooley-Tukey FFT, NTT for exact polynomial multiplication
- `references/cryptographic-foundations.md` — secure hash functions (SHA-256, BLAKE3), HMAC, AES-256-GCM, ChaCha20-Poly1305, key derivation (Argon2, bcrypt), RSA/ECDSA/ECDH, timing-safe comparisons, CSPRNG usage
Files in this package (4)
  • SKILL.md 2 KB
  • references/cryptographic-foundations.md 2 KB
  • references/floating-point-and-matrix.md 3 KB
  • references/root-finding-and-integration.md 3 KB

Versions

The database has no other skills named role-algorithms:numerical-methods.

Database snapshot: 13.11.2026 · package version 416564d71c71 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85numerical-analysis-and-computation
    Do numerical analysis: floating point, root finding, interpolation, numerical integration, linear solvers, eigenvalue algorithms, ODE and PDE solvers, error analysis, stability, convergence, Fast Fourier Transform. Includes Python scripts. Use for any numerical computation or…
  • 95blas_lapack
    Complete CBLAS and LAPACKE C API reference (LAPACK v3.12.1) covering 1284 functions for numerical linear algebra: BLAS Level 1/2/3 vector and matrix operations, linear system solvers (LU, Cholesky, LDL), eigenvalue/eigenvector computation, singular value decomposition, least…
  • 100mathnet
    Guidance for Math.NET Numerics library for .NET. USE FOR: linear algebra (matrices, vectors, decompositions), statistics (descriptive, distributions, regression), numerical integration, interpolation, random number generation, signal processing. DO NOT USE FOR: symbolic math…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.