v0.3.0 is out (commit 316aca3, tag v0.3.0).
Today's debt-repayment release adds the mechanics trio:
- power — mw, kw, w, hp (mechanical = 550 ft·lbf/s), hp(m) (metric PS), hp(e) (electric 746 W), btu/h (IT), ftlb/s
- force — kn, n, dyn, lbf, kgf (kp), gf (standard gravity 9.80665 m/s²)
- torque — n.m, kgf.m, lbfft, lbfin
Why these three: LLMs frequently conflate the three different horsepower definitions (mechanical 745.7 W vs metric 735.5 W vs electric 746 W — a 1.4% silent error) and treat lbf/kgf as mass. Now 17 categories, still zero runtime dependencies and pure arithmetic.
Symbol disambiguation in this release: typed kn resolves to knot (speed) — use kilonewton for kN; nm stays nanometer, torque newton meter is n.m.
Verified end-to-end in an isolated profile: 150 kw → 201.153313 hp, 1 lbfft → 1.355818 n.m, 1 kilonewton → 1000 n.
Install / update:
dsh plugin --profile web add github:TYEclipse/dsh-units
中文:v0.3.0 发布(还债版)——新增功率(三种马力定义严格区分)、力、扭矩三个类别,共 17 类,零运行时依赖不变。符号消歧:输入 kn 是节(速度),千牛用全名;nm 是纳米,扭矩牛米用 n.m。安装自测通过。
v0.3.0 is out (commit 316aca3, tag v0.3.0).
Today's debt-repayment release adds the mechanics trio:
Why these three: LLMs frequently conflate the three different horsepower definitions (mechanical 745.7 W vs metric 735.5 W vs electric 746 W — a 1.4% silent error) and treat lbf/kgf as mass. Now 17 categories, still zero runtime dependencies and pure arithmetic.
Symbol disambiguation in this release: typed
knresolves to knot (speed) — usekilonewtonfor kN;nmstays nanometer, torque newton meter isn.m.Verified end-to-end in an isolated profile: 150 kw → 201.153313 hp, 1 lbfft → 1.355818 n.m, 1 kilonewton → 1000 n.
Install / update:
中文:v0.3.0 发布(还债版)——新增功率(三种马力定义严格区分)、力、扭矩三个类别,共 17 类,零运行时依赖不变。符号消歧:输入 kn 是节(速度),千牛用全名;nm 是纳米,扭矩牛米用 n.m。安装自测通过。