diff --git a/AUTHORS b/AUTHORS index 4713cb59b1ed13e31dc09498edb8e80b14a2cf42..9326b6781a270c9b7acf0e3441dcea8410346cf0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -96,3 +96,4 @@ Gabe Mulley <gabe@edx.org> Iain Dunning <idunning@mit.edu> Olivier Marquez <oliviermarquez@gmail.com> Florian Dufour <neurolit@gmail.com> +Manuel Freire <manuel.freire@fdi.ucm.es> diff --git a/common/lib/calc/calc/calc.py b/common/lib/calc/calc/calc.py index efb30f93d7fedf0736c739283a7bb29c1d63f8f1..0d283d3966aa36318c0d400ecb8f38187ae70fd0 100644 --- a/common/lib/calc/calc/calc.py +++ b/common/lib/calc/calc/calc.py @@ -57,7 +57,7 @@ DEFAULT_VARIABLES = { 'pi': numpy.pi, 'k': scipy.constants.k, # Boltzmann: 1.3806488e-23 (Joules/Kelvin) 'c': scipy.constants.c, # Light Speed: 2.998e8 (m/s) - 'T': 298.15, # 0 deg C = T Kelvin + 'T': 298.15, # Typical room temperature: 298.15 (Kelvin), same as 25C/77F 'q': scipy.constants.e # Fund. Charge: 1.602176565e-19 (Coulombs) } diff --git a/common/lib/calc/calc/tests/test_calc.py b/common/lib/calc/calc/tests/test_calc.py index 3b8981f5c356ecd7c02eed6cdc2f7b7ffce8c646..9d7f3a0199cb048f27b2287c631bbab6f43a1496 100644 --- a/common/lib/calc/calc/tests/test_calc.py +++ b/common/lib/calc/calc/tests/test_calc.py @@ -370,7 +370,7 @@ class EvaluatorTest(unittest.TestCase): ('pi', 3.1416, 1e-4), ('k', 1.3806488e-23, 1e-26), # Boltzmann constant (Joules/Kelvin) ('c', 2.998e8, 1e5), # Light Speed in (m/s) - ('T', 298.15, 0.01), # 0 deg C = T Kelvin + ('T', 298.15, 0.01), # Typical room temperature (Kelvin) ('q', 1.602176565e-19, 1e-22) # Fund. Charge (Coulombs) ] for (variable, value, tolerance) in default_variables: diff --git a/docs/course_authors/source/appendices/e.rst b/docs/course_authors/source/appendices/e.rst index d6e06f0d9ccff1a5b498ff48e160706dc7202195..44c747b38c42b755ebf2868a7f03e8b4d9e9b5d2 100644 --- a/docs/course_authors/source/appendices/e.rst +++ b/docs/course_authors/source/appendices/e.rst @@ -580,7 +580,7 @@ default. These include: - ``pi`` - ``k``: the Boltzmann constant (~1.38e-23 in Joules/Kelvin) - ``c``: the speed of light in m/s (2.998e8) -- ``T``: the positive difference between 0K and 0°C (285.15) +- ``T``: typical room temperature (298.15 Kelvin, same as 25C/77F) - ``q``: the fundamental charge (~1.602e-19 Coloumbs) Operators and Functions