IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Num.PhysicalConstant Struct Reference

Data of a physical constant, including its value, standard error, units, symbol and description. This is alro used for derived SI units and non-SI units. More...

Public Member Functions

 PhysicalConstant (double value, double relativeerror, SI[] numerator, SI[] denominator, string symbol, string name, string description)
 Creates a new physical constant with specified properties (value, units, description...). More...
 
 PhysicalConstant (double value, double relativeerror, SI[] numerator, SI[] denominator)
 Creates a new physical constant with specified properties (value, units, description...). More...
 
override string ToString ()
 Returns a string representation of a physical constant. More...
 

Public Attributes

double _error
 
SI[] _unitsabove
 
SI[] _unitsbelow
 
string _name
 
string _description
 

Properties

double Value [get]
 Gets the value of the physical constant. More...
 
double Error [get]
 Gets the standard uncertainty of the physical constant. As constants can be measured more precisley with time, this value is likely subject to changes. More...
 
double RelativeError [get]
 Getst the relative standard uncertainty of the physical constant. More...
 
SI[] UnitsNumerator [get]
 Gets the array of SI physical units in the nominator of the physical constant. More...
 
SI[] UnitsDenumerator [get]
 Gets the array of SI physical units in the denominator of the physical constant. More...
 
string Symbol [get]
 Gets the symbol used for a physical constant. More...
 
string Name [get]
 Gets the name of the physical constant. More...
 
string Description [get]
 Gets the description of the physical constant. More...
 

Private Member Functions

void Init (double value, double relativeerror, SI[] numerator, SI[] denominator, string symbol, string name, string description)
 Auxiliary function for constructors. More...
 
string UnitsString (SI[] units)
 Returns a string that represents units listed in units. More...
 

Private Attributes

double _value
 
string _symbol
 

Detailed Description

Data of a physical constant, including its value, standard error, units, symbol and description. This is alro used for derived SI units and non-SI units.

Constructor & Destructor Documentation

IG.Num.PhysicalConstant.PhysicalConstant ( double  value,
double  relativeerror,
SI[]  numerator,
SI[]  denominator,
string  symbol,
string  name,
string  description 
)
inline

Creates a new physical constant with specified properties (value, units, description...).

Parameters
valueValue of the constant.
relativeerrorStandard error of the current constant measurements.
numeratorList of units in the numerator. Units that are raised to some power are repeated the corresponding number of times.
denominatorList of units in the denominator.
symbolSymbol of the constant.
nameName of the constant.
descriptionA short one line description of the constant.
IG.Num.PhysicalConstant.PhysicalConstant ( double  value,
double  relativeerror,
SI[]  numerator,
SI[]  denominator 
)
inline

Creates a new physical constant with specified properties (value, units, description...).

Parameters
valueValue of the constant.
relativeerrorStandard error of the current constant measurements.
numeratorList of units in the numerator. Units that are raised to some power are repeated the corresponding number of times.
denominatorList of units in the denominator.

Member Function Documentation

void IG.Num.PhysicalConstant.Init ( double  value,
double  relativeerror,
SI[]  numerator,
SI[]  denominator,
string  symbol,
string  name,
string  description 
)
inlineprivate

Auxiliary function for constructors.

string IG.Num.PhysicalConstant.UnitsString ( SI[]  units)
inlineprivate

Returns a string that represents units listed in units.

References IG.Num.A, IG.Num.cd, IG.Num.K, IG.Num.kg, IG.Num.m, IG.Num.mol, and IG.Num.s.

override string IG.Num.PhysicalConstant.ToString ( )
inline

Returns a string representation of a physical constant.

Returns

Member Data Documentation

double IG.Num.PhysicalConstant._value
private
double IG.Num.PhysicalConstant._error
SI [] IG.Num.PhysicalConstant._unitsabove
SI [] IG.Num.PhysicalConstant._unitsbelow
string IG.Num.PhysicalConstant._symbol
private
string IG.Num.PhysicalConstant._name
string IG.Num.PhysicalConstant._description

Property Documentation

double IG.Num.PhysicalConstant.Value
get

Gets the value of the physical constant.

double IG.Num.PhysicalConstant.Error
get

Gets the standard uncertainty of the physical constant. As constants can be measured more precisley with time, this value is likely subject to changes.

double IG.Num.PhysicalConstant.RelativeError
get

Getst the relative standard uncertainty of the physical constant.

SI [] IG.Num.PhysicalConstant.UnitsNumerator
get

Gets the array of SI physical units in the nominator of the physical constant.

SI [] IG.Num.PhysicalConstant.UnitsDenumerator
get

Gets the array of SI physical units in the denominator of the physical constant.

string IG.Num.PhysicalConstant.Symbol
get

Gets the symbol used for a physical constant.

string IG.Num.PhysicalConstant.Name
get

Gets the name of the physical constant.

string IG.Num.PhysicalConstant.Description
get

Gets the description of the physical constant.


The documentation for this struct was generated from the following file: