Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/+const/@physics/physics.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % PHYSICS class that defines common physical constants. | |
2 % | |
3 % The usage of these utils it is now deprecated and will be removed in future releases. | |
4 % Please use the syntax | |
5 % >> plist(plist('Built-In', 'physical_constants')).find('<constant_name>'); instead! | |
6 % | |
7 % M Hewitson 08-08-08 | |
8 % | |
9 % $Id: physics.m,v 1.5 2011/07/06 06:41:15 mauro Exp $ | |
10 % | |
11 | |
12 classdef physics | |
13 properties (Constant = true) | |
14 c = 299792458; % m s^-1 | |
15 epsilon0 = 8.854187817e-12; % F m^-1 | |
16 mu0 = 4*pi*1.e-7; % N A^-2 | |
17 h = 6.62606896e-34; % J s | |
18 G = 6.67428e-11; % m^3 kg^-1 s^-2 | |
19 e = 1.602176487e-19; % C | |
20 kB = 1.3806504e-23; % J K^-1 | |
21 | |
22 dep = deprecation_message(); | |
23 | |
24 end | |
25 end | |
26 | |
27 function out = deprecation_message() | |
28 out = ['The usage of these utils it is now deprecated and will be removed in future releases. ' ... | |
29 'Please use the syntax '' plist(plist(''Built-In'', ''physical_constants'')).find('' constant_name ''); '' instead!']; | |
30 disp(out); | |
31 end |