单位和单位制#

物理量包括物理单位的定义。

class sympy.physics.units.unitsystem.UnitSystem(base_units, units=(), name='', descr='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[源代码]#

UnitSystem代表一组连贯的单元。

单位系统基本上是一个具有尺度概念的维度系统。许多方法都是以相同的方式定义的。

如果所有的基本单位都有一个符号就更好了。

property dim#

给出系统的尺寸。

即返回构成基础的单元数。

extend(base, units=(), name='', description='', dimension_system=None, derived_units: Dict[Dimension, Quantity] = {})[源代码]#

将现有系统扩展为新系统。

取当前系统的基本单位和标准单位,将它们合并到参数中给定的基本单位和标准单位。如果未提供,则名称和说明将被空字符串覆盖。

get_units_non_prefixed() Set[Quantity][源代码]#

Return the units of the system that do not have a prefix.

property is_consistent#

检查基础维度系统是否一致。