Skip to content

MATLAB functions that return natural constants in SI units.

Notifications You must be signed in to change notification settings

OE-FET/natural_constants

Repository files navigation

Natural constants

Provides MATLAB functions that return commonly used physical constants in SI units.

Usage

Functions take no arguments and return one or two valaues. If present, the second value gives the standard uncertainty from CODATA:

>> h = hbar
>> [h,sigma] = hbar

Contributing

If a constant which you need is missing, you can add it yourself. Please use the following template format to do so:

function [h, sigma] = hbar()
% hbar Reduced Planck's constant
%
%   h = hbar
%   [h,sigma] = hbar
%
%   Returns the reduced Planck constant in
%   Joule*second. sigma is the standard
%   uncertainty (2014 CODATA).

h = 6.62607015*1E-34/(2*pi);
sigma = 0.000000081*1E-34/(2*pi);

end

About

MATLAB functions that return natural constants in SI units.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages