units (SWI-Prolog unit-aware arithmetic library)
A unit-aware arithmetic library for SWI-Prolog, modeled after the C++ mp-units library. It leverages Prolog's ability to store unit system data as code, performs unit conversion via iterative deepening depth-first search, and makes symbolic arithmetic manipulation easy. It currently requires building SWI-Prolog from source because it uses unreleased features.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
units (SWI-Prolog unit-aware arithmetic library)
A unit-aware arithmetic library for SWI-Prolog, modeled after the C++ mp-units library. It leverages Prolog's ability to store unit system data as code, performs unit conversion via iterative deepening depth-first search, and makes symbolic arithmetic manipulation easy. It currently requires building SWI-Prolog from source because it uses unreleased features.
Posted by @kwon-young · Original source ↗
Source text · @kwon-young · · Source ↗
I am working on a unit-aware arithmetic library for swi-prolog (1) modeled after the c++ mp-units library (2).
units
A SWI-Prolog library for unit-aware arithmetic, essentially a port of the C++ mp-units library. It manipulates symbolic representations of units and quantities, and comes with example programs showcasing its use. The library is still in a bare-bones state, especially its documentation.
Posted by @kwon-young · Original source ↗
Source text · @kwon-young · · Source ↗
I have recently started working on a swi-prolog library for unit aware arithmetic[1]. It is still very bare bone (especially in documentation), but I started writing some examples[2] to showcase the library. It is essentially a port of the mp-units[3] library in c++.