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

David Peter e157883a81 Add examples to the documentation 2 years ago
assets 0bd5accd3d Better number highlighting for vim 2 years ago
book e157883a81 Add examples to the documentation 2 years ago
examples e157883a81 Add examples to the documentation 2 years ago
modules 8dcc4606f0 Better definitions for imperial units 2 years ago
numbat f0d603f9aa declare => define, new book chapters 2 years ago
numbat-cli 85a482e7d6 Only save history when in interactive mode 2 years ago
numbat-exchange-rates 1dea49d18c Preprations for crates.io release 2 years ago
numbat-wasm 12e202c0e9 Fix wasm tests 2 years ago
vscode-extension fa93191843 Remove aliases_short 2 years ago
.gitignore c0dda22e0d Properly store history in .local/share 3 years ago
Cargo.lock 3c4d93af1b Shorthand notation for adding new dimensions, closes #42 2 years ago
Cargo.toml 3c4d93af1b Shorthand notation for adding new dimensions, closes #42 2 years ago
README.md b7929a580c Clean up README even further 2 years ago

README.md

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

Key features

  • First class support for physical units and dimensions
  • Static type checking (unit safety)
  • 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