A statically typed programming language for scientific computations with first class support for physical dimensions and units
命令行科学计算器,支持很多种单位量
https://numbat.dev/

David Peter b393b6af56 Add string interpolation ("f-strings") 2 years ago
.github aec6e3a9fe Simple CI pipeline 2 years ago
assets bb7491c641 Update documentation, syntaxes 2 years ago
book 3319c2cc59 Complete list of units 2 years ago
examples e8a709684b Add strings to the language, use markup for printing 2 years ago
modules a75c86e2fc Review (and fix some) TODOs in the codebase 2 years ago
numbat b393b6af56 Add string interpolation ("f-strings") 2 years ago
numbat-cli b393b6af56 Add string interpolation ("f-strings") 2 years ago
numbat-exchange-rates 8d3f85eb04 Use rustls to avoid openssl dependency 2 years ago
numbat-wasm cbcd88cb72 Fix wasm version 2 years ago
vscode-extension bb7491c641 Update documentation, syntaxes 2 years ago
.gitignore c0dda22e0d Properly store history in .local/share 3 years ago
Cargo.lock 864c3acd75 Add gamma(…) function 2 years ago
Cargo.toml 3c4d93af1b Shorthand notation for adding new dimensions, closes #42 2 years ago
LICENSE-APACHE bb1417febb Add license files 2 years ago
LICENSE-MIT bb1417febb Add license files 2 years ago
README.md aaa15795fd README update 2 years ago
create_release.sh 912647b346 Add simple script to create release zip file 2 years ago

README.md

Numbat is a statically typed programming language for scientific computations with first class support for physical dimensions and units.

Key features

  • Static type checking with physical dimensions as types
  • Type inference
  • Strict syntax
  • REPL mode
  • Excellent error messages
  • Customizable: the whole system of physical dimensions and units is written in Numbat itself and can be modified or replaced

Development

Run Numbat CLI

cargo run -- <numbat args>

Install the CLI version

cargo install -f --path numbat-cli

Run all tests

cargo test