Symbolic Constants Module

This module contains common constants used in physics/relativity and classes used to define them:

class einsteinpy.symbolic.constants.SymbolicConstant(name, descriptive_name=None, **assumptions)[source]

Bases: sympy.core.symbol.Symbol

This class inherits from ~sympy.core.symbol.Symbol

Constructor and Initializer

Parameters
  • name (str) – Short, commonly accepted name of the constant. For example, ‘c’ for Speed of light.

  • descriptive_name (str) – The extended name of the constant. For example, ‘Speed of Light’ for ‘c’. Defaults to None.

property descriptive_name

Returns the extended name of the constant

einsteinpy.symbolic.constants.get_constant(name)[source]

Returns a symbolic instance of the constant

Parameters

name (str) – Name of the constant. Currently available names are ‘c’, ‘G’, ‘Cosmo_Const’, ‘eps_0’.

Returns

An instance of the required constant

Return type

SymbolicConstant