Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 728 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 728 Bytes

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