physics — a reasoning module

Quantities checked as a physicist checks them, as a DKE Python module you compile into your own store. You record quantities in their units and equations as products of quantities; it converts each to SI, names a quantity in a unit it does not know or handed to a reader who expects another, finds the dimensions an equation leaves over, and adds resistances in series and in parallel, withdrawing each answer when you correct the fact it rests on. It calculates a pendulum's period exactly and by integration, an orbit under three integrators, the heat equation, a linear system and its bridge circuit, and the Ising model of a magnet.

Licence: MIT. Current version: 1.0.3, released in rev 145.

Get it

The whole release, as one archive:

curl -O https://dke.langsyn.com/source/physics/1.0.3/physics-1.0.3.tar.gz

Its SHA-256: 4e5251ef13cd2305d3b893b6bdc3dbb1783092cf5bd2e1755ea298f2059a0c78.

Or browse version 1.0.3 file by file. /source/physics/latest/ always redirects to the current version. A release's files never change. When the next release supersedes this one, this version stays served at its URL, marked superseded, so cite the version and the archive's digest to say exactly which bytes you read, and use latest for a link that follows each new release.

Current release