Thread: [Mathlib-commitlog] SF.net SVN: mathlib:[466] JMathLib/trunk/src/jmathlib/toolbox
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-11-23 11:16:14
|
Revision: 466
http://mathlib.svn.sourceforge.net/mathlib/?rev=466&view=rev
Author: st_mueller
Date: 2008-11-23 11:16:11 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
added information for each toolbox
Added Paths:
-----------
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/changelog.txt
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/license.txt
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/readme.txt
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/version_info.txt
Added: JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/version_info.txt
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/version_info.txt (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/version_info.txt 2008-11-23 11:16:11 UTC (rev 466)
@@ -0,0 +1,12 @@
+# JMathLib
+# Toolbox: toolbox_skeleton
+#
+# (c) 2008 Stefan Mueller (st...@he...)
+#
+jmathlib.toolboxes.toolbox_skeleton.name="skeleton"
+jmathlib.toolboxes.toolbox_skeleton.version=0.0.1
+jmathlib.toolboxes.toolbox_skeleton.release=major 0.0.1
+jmathlib.toolboxes.toolbox_skeleton.description=splines
+jmathlib.toolboxes.toolbox_skeleton.date=2008/01/01
+jmathlib.toolboxes.toolbox_skeleton.copyright=(c) 2008 Stefan Mueller (st...@he...)
+jmathlib.toolboxes.toolbox_skeleton.message=This is a skeleton for toolbox information
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2008-12-20 12:35:39
|
Revision: 554
http://mathlib.svn.sourceforge.net/mathlib/?rev=554&view=rev
Author: st_mueller
Date: 2008-12-20 12:35:33 +0000 (Sat, 20 Dec 2008)
Log Message:
-----------
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/specfun/betaln.m
JMathLib/trunk/src/jmathlib/toolbox/specialmatrix/hankel.m
Modified: JMathLib/trunk/src/jmathlib/toolbox/specfun/betaln.m
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/specfun/betaln.m 2008-12-20 12:34:01 UTC (rev 553)
+++ JMathLib/trunk/src/jmathlib/toolbox/specfun/betaln.m 2008-12-20 12:35:33 UTC (rev 554)
@@ -48,10 +48,10 @@
retval = gammaln (a) + gammaln (b) - gammaln (a + b);
endfunction
-%!assert (betaln(3,4),log(beta(3,4)),eps)
+//%!assert (betaln(3,4),log(beta(3,4)),eps)
-%!error (betaln(1.))
-%!error (betaln(1.,1.,1.))
+//%!error (betaln(1.))
+//%!error (betaln(1.,1.,1.))
/*
@GROUP
Modified: JMathLib/trunk/src/jmathlib/toolbox/specialmatrix/hankel.m
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/specialmatrix/hankel.m 2008-12-20 12:34:01 UTC (rev 553)
+++ JMathLib/trunk/src/jmathlib/toolbox/specialmatrix/hankel.m 2008-12-20 12:35:33 UTC (rev 554)
@@ -101,11 +101,11 @@
endfunction
-%!assert(hankel(1:3),[1,2,3;2,3,0;3,0,0])
-%!assert(hankel(1),[1]);
-%!assert(hankel(1:3,3:6),[1,2,3,4;2,3,4,5;3,4,5,6]);
-%!assert(hankel(1:3,3:4),[1,2;2,3;3,4]);
-%!assert(hankel(1:3,4:6),[1,2,3;2,3,5;3,5,6]);
+//%!assert(hankel(1:3),[1,2,3;2,3,0;3,0,0])
+//%!assert(hankel(1),[1]);
+//%!assert(hankel(1:3,3:6),[1,2,3,4;2,3,4,5;3,4,5,6]);
+//%!assert(hankel(1:3,3:4),[1,2;2,3;3,4]);
+//%!assert(hankel(1:3,4:6),[1,2,3;2,3,5;3,5,6]);
/*
@GROUP
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2008-12-20 12:37:02
|
Revision: 556
http://mathlib.svn.sourceforge.net/mathlib/?rev=556&view=rev
Author: st_mueller
Date: 2008-12-20 12:36:53 +0000 (Sat, 20 Dec 2008)
Log Message:
-----------
removed test code
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/physical_constants/physical_constant.m
JMathLib/trunk/src/jmathlib/toolbox/polynomial/mkpp.m
JMathLib/trunk/src/jmathlib/toolbox/polynomial/polyvalm.m
Modified: JMathLib/trunk/src/jmathlib/toolbox/physical_constants/physical_constant.m
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/physical_constants/physical_constant.m 2008-12-20 12:36:09 UTC (rev 555)
+++ JMathLib/trunk/src/jmathlib/toolbox/physical_constants/physical_constant.m 2008-12-20 12:36:53 UTC (rev 556)
@@ -1955,310 +1955,310 @@
v=sign(L1-L2);
return;
end
-%!assert( physical_constant( "ALPHA_PARTICLE_ELECTRON_MASS_RATIO" ),7294.2995363,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_MASS" ),6.6446565e-27,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_MASS_ENERGY_EQUIVALENT" ),5.9719194e-10,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_MASS_ENERGY_EQUIVALENT_IN_MEV" ),3727.37917,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_MASS_IN_U" ),4.001506179149,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_MOLAR_MASS" ),4.001506179149e-3,eps);
-%!assert( physical_constant( "ALPHA_PARTICLE_PROTON_MASS_RATIO" ),3.97259968907,eps);
-%!assert( physical_constant( "ANGSTROM_STAR" ),1.00001509e-10,eps);
-%!assert( physical_constant( "ATOMIC_MASS_CONSTANT" ),1.66053886e-27,eps);
-%!assert( physical_constant( "ATOMIC_MASS_CONSTANT_ENERGY_EQUIVALENT" ),1.49241790e-10,eps);
-%!assert( physical_constant( "ATOMIC_MASS_CONSTANT_ENERGY_EQUIVALENT_IN_MEV" ),931.494043,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_ELECTRON_VOLT" ),931.494043e6,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_HARTREE" ),3.423177686e7,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_HERTZ" ),2.252342718e23,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_INVERSE_METER" ),7.513006608e14,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_JOULE" ),1.49241790e-10,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_KELVIN" ),1.0809527e13,eps);
-%!assert( physical_constant( "ATOMIC_MASS_UNIT_KILOGRAM" ),1.66053886e-27,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_1ST_HYPERPOLARIZABLITY" ),3.20636151e-53,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_2ND_HYPERPOLARIZABLITY" ),6.2353808e-65,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ACTION" ),1.05457168e-34,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_CHARGE" ),1.60217653e-19,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_CHARGE_DENSITY" ),1.081202317e12,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_CURRENT" ),6.62361782e-3,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_DIPOLE_MOMENT" ),8.47835309e-30,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_FIELD" ),5.14220642e11,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_FIELD_GRADIENT" ),9.71736182e21,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_POLARIZABLITY" ),1.648777274e-41,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_POTENTIAL" ),27.2113845,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_QUADRUPOLE_MOMENT" ),4.48655124e-40,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_ENERGY" ),4.35974417e-18,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_FORCE" ),8.2387225e-8,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_LENGTH" ),0.5291772108e-10,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGNETIZABILITY" ),7.89103660e-29,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGN_DIPOLE_MOMENT" ),1.85480190e-23,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGN_FLUX_DENSITY" ),2.35051742e5,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_MASS" ),9.1093826e-31,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_MOMENTUM" ),1.99285166e-24,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_PERMITTIVITY" ),1.112650056e-10,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_TIME" ),2.418884326505e-17,eps);
-%!assert( physical_constant( "ATOMIC_UNIT_OF_VELOCITY" ),2.1876912633e6,eps);
-%!assert( physical_constant( "AVOGADRO_CONSTANT" ),6.0221415e23,eps);
-%!assert( physical_constant( "BOHR_MAGNETON" ),927.400949e-26,eps);
-%!assert( physical_constant( "BOHR_MAGNETON_IN_EV_PER_T" ),5.788381804e-5,eps);
-%!assert( physical_constant( "BOHR_MAGNETON_IN_HZ_PER_T" ),13.9962458e9,eps);
-%!assert( physical_constant( "BOHR_MAGNETON_IN_INVERSE_METERS_PER_TESLA" ),46.6864507,eps);
-%!assert( physical_constant( "BOHR_MAGNETON_IN_K_PER_T" ),0.6717131,eps);
-%!assert( physical_constant( "BOHR_RADIUS" ),0.5291772108e-10,eps);
-%!assert( physical_constant( "BOLTZMANN_CONSTANT" ),1.3806505e-23,eps);
-%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_EV_PER_K" ),8.617343e-5,eps);
-%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_HZ_PER_K" ),2.0836644e10,eps);
-%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_INVERSE_METERS_PER_KELVIN" ),69.50356,eps);
-%!assert( physical_constant( "CHARACTERISTIC_IMPEDANCE_OF_VACUUM" ),376.730313461,eps);
-%!assert( physical_constant( "CLASSICAL_ELECTRON_RADIUS" ),2.817940325e-15,eps);
-%!assert( physical_constant( "COMPTON_WAVELENGTH" ),2.426310238e-12,eps);
-%!assert( physical_constant( "COMPTON_WAVELENGTH_BY_2_PI" ),386.1592678e-15,eps);
-%!assert( physical_constant( "CONDUCTANCE_QUANTUM" ),7.748091733e-5,eps);
-%!assert( physical_constant( "CONVENTIONAL_VALUE_OF_JOSEPHSON_CONSTANT" ),483597.9e9,eps);
-%!assert( physical_constant( "CONVENTIONAL_VALUE_OF_VON_KLITZING_CONSTANT" ),25812.807,eps);
-%!assert( physical_constant( "CU_X_UNIT" ),1.00207710e-13,eps);
-%!assert( physical_constant( "DEUTERON_ELECTRON_MAGN_MOMENT_RATIO" ),-4.664345548e-4,eps);
-%!assert( physical_constant( "DEUTERON_ELECTRON_MASS_RATIO" ),3670.4829652,eps);
-%!assert( physical_constant( "DEUTERON_MAGN_MOMENT" ),0.433073482e-26,eps);
-%!assert( physical_constant( "DEUTERON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),0.4669754567e-3,eps);
-%!assert( physical_constant( "DEUTERON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),0.8574382329,eps);
-%!assert( physical_constant( "DEUTERON_MASS" ),3.34358335e-27,eps);
-%!assert( physical_constant( "DEUTERON_MASS_ENERGY_EQUIVALENT" ),3.00506285e-10,eps);
-%!assert( physical_constant( "DEUTERON_MASS_ENERGY_EQUIVALENT_IN_MEV" ),1875.61282,eps);
-%!assert( physical_constant( "DEUTERON_MASS_IN_U" ),2.01355321270,eps);
-%!assert( physical_constant( "DEUTERON_MOLAR_MASS" ),2.01355321270e-3,eps);
-%!assert( physical_constant( "DEUTERON_NEUTRON_MAGN_MOMENT_RATIO" ),-0.44820652,eps);
-%!assert( physical_constant( "DEUTERON_PROTON_MAGN_MOMENT_RATIO" ),0.3070122084,eps);
-%!assert( physical_constant( "DEUTERON_PROTON_MASS_RATIO" ),1.99900750082,eps);
-%!assert( physical_constant( "DEUTERON_RMS_CHARGE_RADIUS" ),2.1394e-15,eps);
-%!assert( physical_constant( "ELECTRIC_CONSTANT" ),8.854187817e-12,eps);
-%!assert( physical_constant( "ELECTRON_CHARGE_TO_MASS_QUOTIENT" ),-1.75882012e11,eps);
-%!assert( physical_constant( "ELECTRON_DEUTERON_MAGN_MOMENT_RATIO" ),-2143.923493,eps);
-%!assert( physical_constant( "ELECTRON_DEUTERON_MASS_RATIO" ),2.7244371095e-4,eps);
-%!assert( physical_constant( "ELECTRON_GYROMAGN_RATIO" ),1.76085974e11,eps);
-%!assert( physical_constant( "ELECTRON_GYROMAGN_RATIO_BY_2_PI" ),28024.9532,eps);
-%!assert( physical_constant( "ELECTRON_G_FACTOR" ),-2.0023193043718,eps);
-%!assert( physical_constant( "ELECTRON_MAGN_MOMENT" ),-928.476412e-26,eps);
-%!assert( physical_constant( "ELECTRON_MAGN_MOMENT_ANOMALY" ),1.1596521859e-3,eps);
-%!assert( physical_constant( "ELECTRON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),-1.0011596521859,eps);
-%!assert( physical_constant( "ELECTRON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),-1838.28197107,eps);
-%!assert( physical_constant( "ELECTRON_MASS" ),9.1093826e-31,eps);
-%!assert( physical_constant( "ELECTRON_MASS_ENERGY_EQUIVALENT" ),8.1871047e-14,eps);
-%!assert( physical_constant( "ELECTRON_MASS_ENERGY_EQUIVALENT_IN_MEV" ),0.510998918,eps);
-%!assert( physical_constant( "ELECTRON_MASS_IN_U" ),5.4857990945e-4,eps);
-%!assert( physical_constant( "ELECTRON_MOLAR_MASS" ),5.4857990945e-7,eps);
-%!assert( physical_constant( "ELECTRON_MUON_MAGN_MOMENT_RATIO" ),206.7669894,eps);
-%!assert( physical_constant( "ELECTRON_MUON_MASS_RATIO" ),4.83633167e-3,eps);
-%!assert( physical_constant( "ELECTRON_NEUTRON_MAGN_MOMENT_RATIO" ),960.92050,eps);
-%!assert( physical_constant( "ELECTRON_NEUTRON_MASS_RATIO" ),5.4386734481e-4,eps);
-%!assert( physical_constant( "ELECTRON_PROTON_MAGN_MOMENT_RATIO" ),-658.2106862,eps);
-%!assert( physical_constant( "ELECTRON_PROTON_MASS_RATIO" ),5.4461702173e-4,eps);
-%!assert( physical_constant( "ELECTRON_TAU_MASS_RATIO" ),2.87564e-4,eps);
-%!assert( physical_constant( "ELECTRON_TO_ALPHA_PARTICLE_MASS_RATIO" ),1.37093355575e-4,eps);
-%!assert( physical_constant( "ELECTRON_TO_SHIELDED_HELION_MAGN_MOMENT_RATIO" ),864.058255,eps);
-%!assert( physical_constant( "ELECTRON_TO_SHIELDED_PROTON_MAGN_MOMENT_RATIO" ),-658.2275956,eps);
-%!assert( physical_constant( "ELECTRON_VOLT" ),1.60217653e-19,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_ATOMIC_MASS_UNIT" ),1.073544171e-9,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_HARTREE" ),3.67493245e-2,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_HERTZ" ),2.41798940e14,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_INVERSE_METER" ),8.06554445e5,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_JOULE" ),1.60217653e-19,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_KELVIN" ),1.1604505e4,eps);
-%!assert( physical_constant( "ELECTRON_VOLT_KILOGRAM" ),1.78266181e-36,eps);
-%!assert( physical_constant( "ELEMENTARY_CHARGE" ),1.60217653e-19,eps);
-%!assert( physical_constant( "ELEMENTARY_CHARGE_BY_H" ),2.41798940e14,eps);
-%!assert( physical_constant( "FARADAY_CONSTANT" ),96485.3383,eps);
-%!assert( physical_constant( "FARADAY_CONSTANT_FOR_CONVENTIONAL_ELECTRIC_CURRENT" ),96485.336,eps);
-%!assert( physical_constant( "FERMI_COUPLING_CONSTANT" ),1.16639e-5,eps);
-%!assert( physical_constant( "FINE_STRUCTURE_CONSTANT" ),7.297352568e-3,eps);
-%!assert( physical_constant( "FIRST_RADIATION_CONSTANT" ),3.74177138e-16,eps);
-%!assert( physical_constant( "FIRST_RADIATION_CONSTANT_FOR_SPECTRAL_RADIANCE" ),1.19104282e-16,eps);
-%!assert( physical_constant( "HARTREE_ATOMIC_MASS_UNIT" ),2.921262323e-8,eps);
-%!assert( physical_constant( "HARTREE_ELECTRON_VOLT" ),27.2113845,eps);
-%!assert( physical_constant( "HARTREE_ENERGY" ),4.35974417e-18,eps);
-%!assert( physical_constant( "HARTREE_ENERGY_IN_EV" ),27.2113845,eps);
-%!assert( physical_constant( "HARTREE_HERTZ" ),6.579683920721e15,eps);
-%!assert( physical_constant( "HARTREE_INVERSE_METER" ),2.194746313705e7,eps);
-%!assert( physical_constant( "HARTREE_JOULE" ),4.35974417e-18,eps);
-%!assert( physical_constant( "HARTREE_KELVIN" ),3.1577465e5,eps);
-%!assert( physical_constant( "HARTREE_KILOGRAM" ),4.85086960e-35,eps);
-%!assert( physical_constant( "HELION_ELECTRON_MASS_RATIO" ),5495.885269,eps);
-%!assert( physical_constant( "HELION_MASS" ),5.00641214e-27,eps);
-%!assert( physical_constant( "HELION_MASS_ENERGY_EQUIVALENT" ),4.49953884e-10,eps);
-%!assert( physical_constant( "HELION_MASS_ENERGY_EQUIVALENT_IN_MEV" ),2808.39142,eps);
-%!assert( physical_constant( "HELION_MASS_IN_U" ),3.0149322434,eps);
-%!assert( physical_constant( "HELION_MOLAR_MASS" ),3.0149322434e-3,eps);
-%!assert( physical_constant( "HELION_PROTON_MASS_RATIO" ),2.9931526671,eps);
-%!assert( physical_constant( "HERTZ_ATOMIC_MASS_UNIT" ),4.439821667e-24,eps);
-%!assert( physical_constant( "HERTZ_ELECTRON_VOLT" ),4.13566743e-15,eps);
-%!assert( physical_constant( "HERTZ_HARTREE" ),1.519829846006e-16,eps);
-%!assert( physical_constant( "HERTZ_INVERSE_METER" ),3.335640951e-9,eps);
-%!assert( physical_constant( "HERTZ_JOULE" ),6.6260693e-34,eps);
-%!assert( physical_constant( "HERTZ_KELVIN" ),4.7992374e-11,eps);
-%!assert( physical_constant( "HERTZ_KILOGRAM" ),7.3724964e-51,eps);
-%!assert( physical_constant( "INVERSE_FINE_STRUCTURE_CONSTANT" ),137.03599911,eps);
-%!assert( physical_constant( "INVERSE_METER_ATOMIC_MASS_UNIT" ),1.3310250506e-15,eps);
-%!assert( physical_constant( "INVERSE_METER_ELECTRON_VOLT" ),1.23984191e-6,eps);
-%!assert( physical_constant( "INVERSE_METER_HARTREE" ),4.556335252760e-8,eps);
-%!assert( physical_constant( "INVERSE_METER_HERTZ" ),299792458,eps);
-%!assert( physical_constant( "INVERSE_METER_JOULE" ),1.98644561e-25,eps);
-%!assert( physical_constant( "INVERSE_METER_KELVIN" ),1.4387752e-2,eps);
-%!assert( physical_constant( "INVERSE_METER_KILOGRAM" ),2.21021881e-42,eps);
-%!assert( physical_constant( "INVERSE_OF_CONDUCTANCE_QUANTUM" ),12906.403725,eps);
-%!assert( physical_constant( "JOSEPHSON_CONSTANT" ),483597.879e9,eps);
-%!assert( physical_constant( "JOULE_ATOMIC_MASS_UNIT" ),6.7005361e9,eps);
-%!assert( physical_constant( "JOULE_ELECTRON_VOLT" ),6.24150947e18,eps);
-%!assert( physical_constant( "JOULE_HARTREE" ),2.29371257e17,eps);
-%!assert( physical_constant( "JOULE_HERTZ" ),1.50919037e33,eps);
-%!assert( physical_constant( "JOULE_INVERSE_METER" ),5.03411720e24,eps);
-%!assert( physical_constant( "JOULE_KELVIN" ),7.242963e22,eps);
-%!assert( physical_constant( "JOULE_KILOGRAM" ),1.112650056e-17,eps);
-%!assert( physical_constant( "KELVIN_ATOMIC_MASS_UNIT" ),9.251098e-14,eps);
-%!assert( physical_constant( "KELVIN_ELECTRON_VOLT" ),8.617343e-5,eps);
-%!assert( physical_constant( "KELVIN_HARTREE" ),3.1668153e-6,eps);
-%!assert( physical_constant( "KELVIN_HERTZ" ),2.0836644e10,eps);
-%!assert( physical_constant( "KELVIN_INVERSE_METER" ),69.50356,eps);
-%!assert( physical_constant( "KELVIN_JOULE" ),1.3806505e-23,eps);
-%!assert( physical_constant( "KELVIN_KILOGRAM" ),1.5361808e-40,eps);
-%!assert( physical_constant( "KILOGRAM_ATOMIC_MASS_UNIT" ),6.0221415e26,eps);
-%!assert( physical_constant( "KILOGRAM_ELECTRON_VOLT" ),5.60958896e35,eps);
-%!assert( physical_constant( "KILOGRAM_HARTREE" ),2.06148605e34,eps);
-%!assert( physical_constant( "KILOGRAM_HERTZ" ),1.35639266e50,eps);
-%!assert( physical_constant( "KILOGRAM_INVERSE_METER" ),4.52443891e41,eps);
-%!assert( physical_constant( "KILOGRAM_JOULE" ),8.987551787e16,eps);
-%!assert( physical_constant( "KILOGRAM_KELVIN" ),6.509650e39,eps);
-%!assert( physical_constant( "LATTICE_PARAMETER_OF_SILICON" ),543.102122e-12,eps);
-%!assert( physical_constant( "LATTICE_SPACING_OF_SILICON" ),192.0155965e-12,eps);
-%!assert( physical_constant( "LOSCHMIDT_CONSTANT" ),2.6867773e25,eps);
-%!assert( physical_constant( "MAGN_CONSTANT" ),12.566370614e-7,eps);
-%!assert( physical_constant( "MAGN_FLUX_QUANTUM" ),2.06783372e-15,eps);
-%!assert( physical_constant( "MOLAR_GAS_CONSTANT" ),8.314472,eps);
-%!assert( physical_constant( "MOLAR_MASS_CONSTANT" ),1e-3,eps);
-%!assert( physical_constant( "MOLAR_MASS_OF_CARBON_12" ),12e-3,eps);
-%!assert( physical_constant( "MOLAR_PLANCK_CONSTANT" ),3.990312716e-10,eps);
-%!assert( physical_constant( "MOLAR_PLANCK_CONSTANT_TIMES_C" ),0.11962656572,eps);
-%!assert( physical_constant( "MOLAR_VOLUME_OF_IDEAL_GAS" ),22.710981e-3,eps);
-%!assert( physical_constant( "MOLAR_VOLUME_OF_SILICON" ),12.0588382e-6,eps);
-%!assert( physical_constant( "MO_X_UNIT" ),1.00209966e-13,eps);
-%!assert( physical_constant( "MUON_COMPTON_WAVELENGTH" ),11.73444105e-15,eps);
-%!assert( physical_constant( "MUON_COMPTON_WAVELENGTH_BY_2_PI" ),1.867594298e-15,eps);
-%!assert( physical_constant( "MUON_ELECTRON_MASS_RATIO" ),206.7682838,eps);
-%!assert( physical_constant( "MUON_G_FACTOR" ),-2.0023318396,eps);
-%!assert( physical_constant( "MUON_MAGN_MOMENT" ),-4.49044799e-26,eps);
-%!assert( physical_constant( "MUON_MAGN_MOMENT_ANOMALY" ),1.16591981e-3,eps);
-%!assert( physical_constant( "MUON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),-4.84197045e-3,eps);
-%!assert( physical_constant( "MUON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),-8.89059698,eps);
-%!assert( physical_constant( "MUON_MASS" ),1.88353140e-28,eps);
-%!assert( physical_constant( "MUON_MASS_ENERGY_EQUIVALENT" ),1.69283360e-11,eps);
-%!assert( physical_constant( "MUON_MASS_ENERGY_EQUIVALENT_IN_MEV" ),105.6583692,eps);
-%!assert( physical_constant( "MUON_MASS_IN_U" ),0.1134289264,eps);
-%!assert( physical_constant( "MUON_MOLAR_MASS" ),0.1134289264e-3,eps);
-%!assert( physical_constant( "MUON_NEUTRON_MASS_RATIO" ),0.1124545175,eps);
-%!assert( physical_constant( "MUON_PROTON_MAGN_MOMENT_RATIO" ),-3.183345118,eps);
-%!assert( physical_constant( "MUON_PROTON_MASS_RATIO" ),0.1126095269,eps);
-%!assert( physical_constant( "MUON_TAU_MASS_RATIO" ),5.94592e-2,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_ACTION" ),1.05457168e-34,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_ACTION_IN_EV_S" ),6.58211915e-16,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_ENERGY" ),8.1871047e-14,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_ENERGY_IN_MEV" ),0.510998918,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_LENGTH" ),386.1592678e-15,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_MASS" ),9.1093826e-31,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_MOMENTUM" ),2.73092419e-22,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_MOMENTUM_IN_MEV_PER_C" ),0.510998918,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_TIME" ),1.2880886677e-21,eps);
-%!assert( physical_constant( "NATURAL_UNIT_OF_VELOCITY" ),299792458,eps);
-%!assert( physical_constant( "NEUTRON_COMPTON_WAVELENGTH" ),1.3195909067e-15,eps);
-%!assert( physical_constant( "NEUTRON_COMPTON_WAVELENGTH_BY_2_PI" ),0.2100194157e-15,eps);
-%!assert( physical_constant( "NEUTRON_ELECTRON_MAGN_MOMENT_RATIO" ),1.04066882e-3,eps);
-%!assert( physical_constant( "NEUTRON_ELECTRON_MASS_RATIO" ),1838.6836598,eps);
-%!assert( physical_constant( "NEUTRON_GYROMAGN_RATIO" ),1.83247183e8,eps);
-%!assert( physical_constant( "NEUTRON_GYROMAGN_RATIO_BY_2_PI" ),29.1646950,eps);
-%!assert( physical_constant( "NEUTRON_G_FACTOR" ),-3.82608546,eps);
-%!assert( physical_constant( "NEUTRON_MAGN_MOMENT" ),-0.96623645e-26,eps);
-%!assert( physical_constant( "NEUTRON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),-1.04187563e-3,eps);
-%!assert( physical_constant( "NEUTRON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),-1.91304273,eps);
-%!assert( physical_constant( "NEUTRON_MASS" ),1.67492728e-27,eps);
-%!assert( physical_constant( "NEUTRON_MASS_ENERGY_EQUIVALENT" ),1.50534957e-10,eps);
-%!assert( physical_constant( "NEUTRON_MASS_ENERGY_EQUIVALENT_IN_MEV" ),939.565360,eps);
-%!assert( physical_constant( "NEUTRON_MASS_IN_U" ),1.00866491560,eps);
-%!assert( physical_constant( "NEUTRON_MOLAR_MASS" ),1.00866491560e-3,eps);
-%!assert( physical_constant( "NEUTRON_MUON_MASS_RATIO" ),8.89248402,eps);
-%!assert( physical_constant( "NEUTRON_PROTON_MAGN_MOMENT_RATIO" ),-0.68497934,eps);
-%!assert( physical_constant( "NEUTRON_PROTON_MASS_RATIO" ),1.00137841870,eps);
-%!assert( physical_constant( "NEUTRON_TAU_MASS_RATIO" ),0.528740,eps);
-%!assert( physical_constant( "NEUTRON_TO_SHIELDED_PROTON_MAGN_MOMENT_RATIO" ),-0.68499694,eps);
-%!assert( physical_constant( "NEWTONIAN_CONSTANT_OF_GRAVITATION" ),6.6742e-11,eps);
-%!assert( physical_constant( "NEWTONIAN_CONSTANT_OF_GRAVITATION_BY_H_BAR_C" ),6.7087e-39,eps);
-%!assert( physical_constant( "NUCLEAR_MAGNETON" ),5.05078343e-27,eps);
-%!assert( physical_constant( "NUCLEAR_MAGNETON_IN_EV_PER_T" ),3.152451259e-8,eps);
-%!assert( physical_constant( "NUCLEAR_MAGNETON_IN_INVERSE_METERS_PER_TESLA" ),2.54262358e-2,eps);
-%!assert( physical_constant( "NUCLEAR_MAGNETON_IN_K_PER_T" ),3.6582637e-4,eps);
-%!assert( physical_constant( "NUCLEAR_MAGNETON_IN_MHZ_PER_T" ),7.62259371,eps);
-%!assert( physical_constant( "PLANCK_CONSTANT" ),6.6260693e-34,eps);
-%!assert( physical_constant( "PLANCK_CONSTANT_BY_2_PI" ),1.05457168e-34,eps);
-%!assert( physical_constant( "PLANCK_CONSTANT_BY_2_PI_IN_EV_S" ),6.58211915e-16,eps);
-%!assert( physical_constant( "PLANCK_CONSTANT_BY_2_PI_TIMES_C_IN_MEV_FM" ),197.326968,eps);
-%!assert( physical_constant( "PLANCK_CONSTANT_IN_EV_S" ),4.13566743e-15,eps);
-%!assert( physical_constant( "PLANCK_LENGTH" ),1.61624e-35,eps);
-%!assert( physical_constant( "PLANCK_MASS" ),2.17645e-8,eps);
-%!assert( physical_constant( "PLANCK_TEMPERATURE" ),1.41679e32,eps);
-%!assert( physical_constant( "PLANCK_TIME" ),5.39121e-44,eps);
-%!assert( physical_constant( "PROTON_CHARGE_TO_MASS_QUOTIENT" ),9.57883376e7,eps);
-%!assert( physical_constant( "PROTON_COMPTON_WAVELENGTH" ),1.3214098555e-15,eps);
-%!assert( physical_constant( "PROTON_COMPTON_WAVELENGTH_BY_2_PI" ),0.2103089104e-15,eps);
-%!assert( physical_constant( "PROTON_ELECTRON_MASS_RATIO" ),1836.15267261,eps);
-%!assert( physical_constant( "PROTON_GYROMAGN_RATIO" ),2.67522205e8,eps);
-%!assert( physical_constant( "PROTON_GYROMAGN_RATIO_BY_2_PI" ),42.5774813,eps);
-%!assert( physical_constant( "PROTON_G_FACTOR" ),5.585694701,eps);
-%!assert( physical_constant( "PROTON_MAGN_MOMENT" ),1.41060671e-26,eps);
-%!assert( physical_constant( "PROTON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),1.521032206e-3,eps);
-%!assert( physical_constant( "PROTON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),2.792847351,eps);
-%!assert( physical_constant( "PROTON_MAGN_SHIELDING_CORRECTION" ),25.689e-6,eps);
-%!assert( physical_constant( "PROTON_MASS" ),1.67262171e-27,eps);
-%!assert( physical_constant( "PROTON_MASS_ENERGY_EQUIVALENT" ),1.50327743e-10,eps);
-%!assert( physical_constant( "PROTON_MASS_ENERGY_EQUIVALENT_IN_MEV" ),938.272029,eps);
-%!assert( physical_constant( "PROTON_MASS_IN_U" ),1.00727646688,eps);
-%!assert( physical_constant( "PROTON_MOLAR_MASS" ),1.00727646688e-3,eps);
-%!assert( physical_constant( "PROTON_MUON_MASS_RATIO" ),8.88024333,eps);
-%!assert( physical_constant( "PROTON_NEUTRON_MAGN_MOMENT_RATIO" ),-1.45989805,eps);
-%!assert( physical_constant( "PROTON_NEUTRON_MASS_RATIO" ),0.99862347872,eps);
-%!assert( physical_constant( "PROTON_RMS_CHARGE_RADIUS" ),0.8750e-15,eps);
-%!assert( physical_constant( "PROTON_TAU_MASS_RATIO" ),0.528012,eps);
-%!assert( physical_constant( "QUANTUM_OF_CIRCULATION" ),3.636947550e-4,eps);
-%!assert( physical_constant( "QUANTUM_OF_CIRCULATION_TIMES_2" ),7.273895101e-4,eps);
-%!assert( physical_constant( "RYDBERG_CONSTANT" ),10973731.568525,eps);
-%!assert( physical_constant( "RYDBERG_CONSTANT_TIMES_C_IN_HZ" ),3.289841960360e15,eps);
-%!assert( physical_constant( "RYDBERG_CONSTANT_TIMES_HC_IN_EV" ),13.6056923,eps);
-%!assert( physical_constant( "RYDBERG_CONSTANT_TIMES_HC_IN_J" ),2.17987209e-18,eps);
-%!assert( physical_constant( "SACKUR_TETRODE_CONSTANT" ),-1.1648677,eps);
-%!assert( physical_constant( "SECOND_RADIATION_CONSTANT" ),1.4387752e-2,eps);
-%!assert( physical_constant( "SHIELDED_HELION_GYROMAGN_RATIO" ),2.03789470e8,eps);
-%!assert( physical_constant( "SHIELDED_HELION_GYROMAGN_RATIO_BY_2_PI" ),32.4341015,eps);
-%!assert( physical_constant( "SHIELDED_HELION_MAGN_MOMENT" ),-1.074553024e-26,eps);
-%!assert( physical_constant( "SHIELDED_HELION_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),-1.158671474e-3,eps);
-%!assert( physical_constant( "SHIELDED_HELION_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),-2.127497723,eps);
-%!assert( physical_constant( "SHIELDED_HELION_TO_PROTON_MAGN_MOMENT_RATIO" ),-0.761766562,eps);
-%!assert( physical_constant( "SHIELDED_HELION_TO_SHIELDED_PROTON_MAGN_MOMENT_RATIO" ),-0.7617861313,eps);
-%!assert( physical_constant( "SHIELDED_PROTON_GYROMAGN_RATIO" ),2.67515333e8,eps);
-%!assert( physical_constant( "SHIELDED_PROTON_GYROMAGN_RATIO_BY_2_PI" ),42.5763875,eps);
-%!assert( physical_constant( "SHIELDED_PROTON_MAGN_MOMENT" ),1.41057047e-26,eps);
-%!assert( physical_constant( "SHIELDED_PROTON_MAGN_MOMENT_TO_BOHR_MAGNETON_RATIO" ),1.520993132e-3,eps);
-%!assert( physical_constant( "SHIELDED_PROTON_MAGN_MOMENT_TO_NUCLEAR_MAGNETON_RATIO" ),2.792775604,eps);
-%!assert( physical_constant( "SPEED_OF_LIGHT_IN_VACUUM" ),299792458,eps);
-%!assert( physical_constant( "STANDARD_ACCELERATION_OF_GRAVITY" ),9.80665,eps);
-%!assert( physical_constant( "STANDARD_ATMOSPHERE" ),101325,eps);
-%!assert( physical_constant( "STEFAN_BOLTZMANN_CONSTANT" ),5.670400e-8,eps);
-%!assert( physical_constant( "TAU_COMPTON_WAVELENGTH" ),0.69772e-15,eps);
-%!assert( physical_constant( "TAU_COMPTON_WAVELENGTH_BY_2_PI" ),0.111046e-15,eps);
-%!assert( physical_constant( "TAU_ELECTRON_MASS_RATIO" ),3477.48,eps);
-%!assert( physical_constant( "TAU_MASS" ),3.16777e-27,eps);
-%!assert( physical_constant( "TAU_MASS_ENERGY_EQUIVALENT" ),2.84705e-10,eps);
-%!assert( physical_constant( "TAU_MASS_ENERGY_EQUIVALENT_IN_MEV" ),1776.99,eps);
-%!assert( physical_constant( "TAU_MASS_IN_U" ),1.90768,eps);
-%!assert( physical_constant( "TAU_MOLAR_MASS" ),1.90768e-3,eps);
-%!assert( physical_constant( "TAU_MUON_MASS_RATIO" ),16.8183,eps);
-%!assert( physical_constant( "TAU_NEUTRON_MASS_RATIO" ),1.89129,eps);
-%!assert( physical_constant( "TAU_PROTON_MASS_RATIO" ),1.89390,eps);
-%!assert( physical_constant( "THOMSON_CROSS_SECTION" ),0.665245873e-28,eps);
-%!assert( physical_constant( "UNIFIED_ATOMIC_MASS_UNIT" ),1.66053886e-27,eps);
-%!assert( physical_constant( "VON_KLITZING_CONSTANT" ),25812.807449,eps);
-%!assert( physical_constant( "WEAK_MIXING_ANGLE" ),0.22215,eps);
-%!assert( physical_constant( "WIEN_DISPLACEMENT_LAW_CONSTANT" ),2.8977685e-3,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_ELECTRON_MASS_RATIO" ),7294.2995363,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_MASS" ),6.6446565e-27,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_MASS_ENERGY_EQUIVALENT" ),5.9719194e-10,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_MASS_ENERGY_EQUIVALENT_IN_MEV" ),3727.37917,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_MASS_IN_U" ),4.001506179149,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_MOLAR_MASS" ),4.001506179149e-3,eps);
+//%!assert( physical_constant( "ALPHA_PARTICLE_PROTON_MASS_RATIO" ),3.97259968907,eps);
+//%!assert( physical_constant( "ANGSTROM_STAR" ),1.00001509e-10,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_CONSTANT" ),1.66053886e-27,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_CONSTANT_ENERGY_EQUIVALENT" ),1.49241790e-10,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_CONSTANT_ENERGY_EQUIVALENT_IN_MEV" ),931.494043,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_ELECTRON_VOLT" ),931.494043e6,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_HARTREE" ),3.423177686e7,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_HERTZ" ),2.252342718e23,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_INVERSE_METER" ),7.513006608e14,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_JOULE" ),1.49241790e-10,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_KELVIN" ),1.0809527e13,eps);
+//%!assert( physical_constant( "ATOMIC_MASS_UNIT_KILOGRAM" ),1.66053886e-27,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_1ST_HYPERPOLARIZABLITY" ),3.20636151e-53,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_2ND_HYPERPOLARIZABLITY" ),6.2353808e-65,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ACTION" ),1.05457168e-34,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_CHARGE" ),1.60217653e-19,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_CHARGE_DENSITY" ),1.081202317e12,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_CURRENT" ),6.62361782e-3,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_DIPOLE_MOMENT" ),8.47835309e-30,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_FIELD" ),5.14220642e11,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_FIELD_GRADIENT" ),9.71736182e21,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_POLARIZABLITY" ),1.648777274e-41,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_POTENTIAL" ),27.2113845,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ELECTRIC_QUADRUPOLE_MOMENT" ),4.48655124e-40,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_ENERGY" ),4.35974417e-18,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_FORCE" ),8.2387225e-8,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_LENGTH" ),0.5291772108e-10,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGNETIZABILITY" ),7.89103660e-29,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGN_DIPOLE_MOMENT" ),1.85480190e-23,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_MAGN_FLUX_DENSITY" ),2.35051742e5,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_MASS" ),9.1093826e-31,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_MOMENTUM" ),1.99285166e-24,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_PERMITTIVITY" ),1.112650056e-10,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_TIME" ),2.418884326505e-17,eps);
+//%!assert( physical_constant( "ATOMIC_UNIT_OF_VELOCITY" ),2.1876912633e6,eps);
+//%!assert( physical_constant( "AVOGADRO_CONSTANT" ),6.0221415e23,eps);
+//%!assert( physical_constant( "BOHR_MAGNETON" ),927.400949e-26,eps);
+//%!assert( physical_constant( "BOHR_MAGNETON_IN_EV_PER_T" ),5.788381804e-5,eps);
+//%!assert( physical_constant( "BOHR_MAGNETON_IN_HZ_PER_T" ),13.9962458e9,eps);
+//%!assert( physical_constant( "BOHR_MAGNETON_IN_INVERSE_METERS_PER_TESLA" ),46.6864507,eps);
+//%!assert( physical_constant( "BOHR_MAGNETON_IN_K_PER_T" ),0.6717131,eps);
+//%!assert( physical_constant( "BOHR_RADIUS" ),0.5291772108e-10,eps);
+//%!assert( physical_constant( "BOLTZMANN_CONSTANT" ),1.3806505e-23,eps);
+//%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_EV_PER_K" ),8.617343e-5,eps);
+//%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_HZ_PER_K" ),2.0836644e10,eps);
+//%!assert( physical_constant( "BOLTZMANN_CONSTANT_IN_INVERSE_METERS_PER_KELVIN" ),69.50356,eps);
+//%!assert( physical_constant( "CHARACTERISTIC_IMPEDANCE_OF_VACUUM" ),376.730313461,eps);
+//%!assert( physical_constant( "CLASSICAL_ELECTRON_RADIUS" ),2.817940325e-15,eps);
+//%!assert( physical_constant( "COMPTON_WAVELENGTH" ),2.426310238e-12,eps);
+//%!assert( physical_constant( "COMPTON_WAVELENGTH_BY_2_PI" ),386.1592678e-15,eps);
+//%!assert( physical_constant( "CONDUCTANCE_QUANTUM" ),7.748091733e-5,eps);
+//%!assert( physical_constant( "CONVENTIONAL_VALUE_OF_JOSEPHSON_CONSTANT" ),483597.9e9,eps);
...
[truncated message content] |
|
From: <st_...@us...> - 2009-01-19 20:33:36
|
Revision: 691
http://mathlib.svn.sourceforge.net/mathlib/?rev=691&view=rev
Author: st_mueller
Date: 2009-01-19 20:33:26 +0000 (Mon, 19 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/crypto/aes.java
JMathLib/trunk/src/jmathlib/toolbox/demos/example01.java
JMathLib/trunk/src/jmathlib/toolbox/demos/example04.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/crypto/aes.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/crypto/aes.java 2009-01-17 19:23:42 UTC (rev 690)
+++ JMathLib/trunk/src/jmathlib/toolbox/crypto/aes.java 2009-01-19 20:33:26 UTC (rev 691)
@@ -6,6 +6,7 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**An external function for computing a mesh of a matrix */
@@ -16,7 +17,7 @@
* @param operands[1] = y values (e.g. [-2:0.2:2])
* @param operands[2] = y values (e.g. [-2:0.2:2])
* @return [X,Y] as matrices */
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// one operand
Modified: JMathLib/trunk/src/jmathlib/toolbox/demos/example01.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/demos/example01.java 2009-01-17 19:23:42 UTC (rev 690)
+++ JMathLib/trunk/src/jmathlib/toolbox/demos/example01.java 2009-01-19 20:33:26 UTC (rev 691)
@@ -10,7 +10,7 @@
{
/**Execute the function returning the first parameter
operands - array of parameters*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (operands[0] instanceof DoubleNumberToken)
{
Modified: JMathLib/trunk/src/jmathlib/toolbox/demos/example04.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/demos/example04.java 2009-01-17 19:23:42 UTC (rev 690)
+++ JMathLib/trunk/src/jmathlib/toolbox/demos/example04.java 2009-01-19 20:33:26 UTC (rev 691)
@@ -10,7 +10,7 @@
{
/**Execute the function returning the first parameter
operands - array of parameters*/
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
ErrorLogger.debugLine("example04 right-hand arguments= "+operands.length);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-20 20:12:53
|
Revision: 697
http://mathlib.svn.sourceforge.net/mathlib/?rev=697&view=rev
Author: st_mueller
Date: 2009-01-20 20:12:50 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/time/date.java
JMathLib/trunk/src/jmathlib/toolbox/time/pause.java
JMathLib/trunk/src/jmathlib/toolbox/time/tic.java
JMathLib/trunk/src/jmathlib/toolbox/time/time.java
JMathLib/trunk/src/jmathlib/toolbox/time/toc.java
JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/template.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/date.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/date.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/date.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -1,14 +1,14 @@
package jmathlib.toolbox.time;
-/* This file is part or MATHLIB */
+/* This file is part or JMATHLIB */
import jmathlib.core.tokens.*;
import java.util.*;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/*
-
-Author: Stefan Mueller (st...@he...) 2002
+author: Stefan Mueller (st...@he...) 2002
*/
@@ -17,7 +17,7 @@
{
/**returns a string
* @return the current date as a string */
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Calendar date = Calendar.getInstance();
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/pause.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/pause.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/pause.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -5,16 +5,17 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/*
-Author: Stefan Mueller (st...@he...) 2003
+author: Stefan Mueller (st...@he...) 2003
*/
/**wait for a specified period of time*/
public class pause extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/tic.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/tic.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/tic.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -1,30 +1,29 @@
package jmathlib.toolbox.time;
-/* This file is part or MATHLIB */
+/* This file is part or JMathLib *
+author: Stefan Mueller (st...@he...) 2002
+*/
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.interpreter.*;
import jmathlib.core.functions.ExternalFunction;
-import jmathlib.toolbox.general.global;
import java.util.*;
-/*
-Author: Stefan Mueller (st...@he...) 2002
-*/
+
/**An external function for starting the internal stop watch */
public class tic extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Date d = new Date();
double start = (double)d.getTime();
- Variable ticVar = getGlobalVariables().createVariable("_tic");
+ Variable ticVar = globals.getGlobalVariables().createVariable("_tic");
ticVar.assign(new DoubleNumberToken(start));
return null; //DoubleNumberToken.one;
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/time.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/time.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/time.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -1,23 +1,21 @@
package jmathlib.toolbox.time;
-/* This file is part or MATHLIB */
+/* This file is part or JMathLib
+author: Stefan Mueller (st...@he...) 2002
+*/
+
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
+
import java.util.*;
-
-/*
-
-Author: Stefan Mueller (st...@he...) 2002
-*/
-
-
/**An external function for computing a mesh of a matrix */
public class time extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Date d = new Date();
Modified: JMathLib/trunk/src/jmathlib/toolbox/time/toc.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/time/toc.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/time/toc.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -1,34 +1,34 @@
package jmathlib.toolbox.time;
-/* This file is part or MATHLIB */
+/* This file is part or JMathLib
+author: Stefan Mueller (st...@he...) 2002
+*/
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
+
import java.util.*;
-/*
-Author: Stefan Mueller (st...@he...) 2002
-*/
-
/**An external function for computing the time difference between a
call to tic() and toc() (internal stop watch) */
public class toc extends ExternalFunction
{
/**returns a time difference
* @return the time difference in seconds as a double number */
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
Date d = new Date();
double stop = (double)d.getTime();
- if (!getGlobalVariables().isVariable("_tic"))
+ if (!globals.getGlobalVariables().isVariable("_tic"))
throwMathLibException("toc: you must call tic before toc");
- OperandToken ticTok = getGlobalVariables().getVariable("_tic").getData();
+ OperandToken ticTok = globals.getGlobalVariables().getVariable("_tic").getData();
if (ticTok instanceof DoubleNumberToken)
{
Modified: JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/template.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/template.java 2009-01-20 20:08:20 UTC (rev 696)
+++ JMathLib/trunk/src/jmathlib/toolbox/toolbox_skeleton/template.java 2009-01-20 20:12:50 UTC (rev 697)
@@ -1,12 +1,13 @@
package jmathlib.toolbox.toolbox_skeleton;
/* This file is part or JMathLib
- * author: stefan 2009
+ * author: stefan (st...@he...) 2009
* */
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
/**An external function for computing a mesh of a matrix */
@@ -16,7 +17,7 @@
* @param operands[0] = x values (e.g. [-2:0.2:2])
* @param operands[1] = y values (e.g. [-2:0.2:2])
* @return [X,Y] as matrices */
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// one operand (e.g. [x,y]=template([-2:0.2:2],[-2:0.2:2]) )
@@ -72,10 +73,11 @@
Returns the sign of value.
@EXAMPLES
<programlisting>
-SIGN(-10)=-1
-SIGN(10)=1
+sign(-10)=-1
+sign(10)=1
</programlisting>
@NOTES
+This functions is used as a template for developing toolbox functions.
@SEE
template
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-20 20:21:33
|
Revision: 702
http://mathlib.svn.sourceforge.net/mathlib/?rev=702&view=rev
Author: st_mueller
Date: 2009-01-20 20:21:24 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/specfun/gammaln.java
JMathLib/trunk/src/jmathlib/toolbox/statistics/average.java
JMathLib/trunk/src/jmathlib/toolbox/statistics/variation.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/specfun/gammaln.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/specfun/gammaln.java 2009-01-20 20:20:27 UTC (rev 701)
+++ JMathLib/trunk/src/jmathlib/toolbox/specfun/gammaln.java 2009-01-20 20:21:24 UTC (rev 702)
@@ -3,11 +3,12 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.functions.ExternalFunction;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.toolbox.specfun._private.*;
public class gammaln extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
if (getNArgIn(operands) != 1)
Modified: JMathLib/trunk/src/jmathlib/toolbox/statistics/average.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/statistics/average.java 2009-01-20 20:20:27 UTC (rev 701)
+++ JMathLib/trunk/src/jmathlib/toolbox/statistics/average.java 2009-01-20 20:21:24 UTC (rev 702)
@@ -1,6 +1,7 @@
package jmathlib.toolbox.statistics;
import jmathlib.core.functions.*;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
@@ -12,7 +13,7 @@
public class average extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
int i;
OperandToken ot = (OperandToken) operands[0];
Modified: JMathLib/trunk/src/jmathlib/toolbox/statistics/variation.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/statistics/variation.java 2009-01-20 20:20:27 UTC (rev 701)
+++ JMathLib/trunk/src/jmathlib/toolbox/statistics/variation.java 2009-01-20 20:21:24 UTC (rev 702)
@@ -1,6 +1,7 @@
package jmathlib.toolbox.statistics;
import jmathlib.core.functions.*;
+import jmathlib.core.interpreter.GlobalValues;
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
@@ -12,7 +13,7 @@
public class variation extends ExternalFunction
{
- public OperandToken evaluate(Token[] operands)
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
{
// Check if there's only one or zero parameters
if (operands.length < 2)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|