physical-constant

Jun 20th, 2018 Jack Black

A module for physical constant in Python, along with unit conversion feature.

Introduction

The following definition is extracted from Wikipedia page physical constant:

A physical constant, sometimes fundamental physical constant or universal constant, is a physical quantity that is generally believed to be both universal in nature and have constant value in time. It is contrasted with a mathematical constant, which has a fixed numerical value, but does not directly involve any physical measurement. https://en.wikipedia.org/wiki/Physical_constant

There are two parts in this project:

  • constant: a module including physics constant;
  • conversion: a module doing unit conversion.
  • This project is open source in my GitHub repository. Here is the source code.

    Module: constant

    The constant module will be organized in such manner:

    
        VAR = value #  [unit] {relative standard uncertainty} 
                    

    where the value is refered to Wikipedia page physical constant.

    Module: conversion

    The conversion module will be organized in such manner:

    
        def UNITA_2_UNITB(varA):
            '''
                description
            '''
            {conversion program}
            return varB
                    

    where varA is a value in UNITA and varB is a value in UNITB.


    Written & published @Peking University, 11:14 AM (UTC+08:00)


    See All Projects