# sharkdp/numbat

A statically typed programming language for scientific computations with first class support for physical dimensions and units

Repository: https://github.com/sharkdp/numbat
Canonical: https://ross.abutalabs.com/products/numbat
Homepage: https://numbat.dev
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: calculator, physics, programming-language, statically-typed, terminal-based, units, web-app
Last push: 2026-08-25T08:03:31+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 1502, "days_push": 8, "days_rel": 10, "gap_med": 12.0, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2668, forks 113 (observed 2026-08-28T04:07:09.240887+00:00)

## What it is
Numbat is a statically typed programming language for scientific computations with first-class support for physical dimensions and units, implemented in Rust. It works as a high-precision interactive terminal calculator and also runs in the browser via WebAssembly.

## Use cases
- convert between physical units like km/h to mph
- do scientific calculations with units checked for correctness
- high precision terminal calculator
- compute physics problems with dimensional analysis
- define custom units and physical dimensions
- quick unit-aware calculations in the browser

## When to choose
- you frequently compute with physical units and want dimension errors caught statically
- you need a precise, scriptable scientific calculator with a rich unit library
- you want a calculator with strict syntax and excellent error messages

## When to avoid
- you need a general-purpose programming language for building applications
- you need symbolic algebra or a computer algebra system
- you need heavy numerical libraries like NumPy or MATLAB toolboxes

## Facets
- artifact type: cli-tool
- maturity: active
- function: interpreter, compiler, math
- domain: programming-languages, mathematics, developer-tools
- platform: cross-platform, cli, wasm, rust
- tags: scientific-calculator, physical-units, dimensional-analysis, type-system, terminal-calculator, programming-language, physics, command-line, web

## Member repositories
- sharkdp/numbat (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.240887+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:31:46.969483+00:00, confidence not recorded.
  - readme: https://github.com/sharkdp/numbat (fetched 2026-08-28T04:07:09.240887+00:00, sha 52b5e9933185)
  - homepage: https://numbat.dev (fetched 2026-08-29T10:00:58.145656+00:00, sha 5cc02a7b04d5)
  - site_page: https://numbat.dev/docs (fetched 2026-08-29T10:00:58.154882+00:00, sha 700434a555ef)
  - site_page: https://numbat.dev/docs/examples/example-numbat_syntax (fetched 2026-08-29T10:00:58.157131+00:00, sha 18653d662426)
  - site_page: https://numbat.dev/docs/web/usage (fetched 2026-08-29T10:00:58.158918+00:00, sha bad4ad987dc8)
  - registry_crates: https://crates.io/api/v1/crates/numbat (fetched 2026-08-29T10:00:58.160446+00:00, sha 3f9fe7d7eab5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
