Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
69ef7531
Commit
69ef7531
authored
Nov 19, 2013
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1641 from manuel-freire/master
298.15 K is 25 C, not 0 (0 is defined to be at 273.15) #os
parents
4efafe41
cdc3ad1c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
AUTHORS
+1
-0
common/lib/calc/calc/calc.py
+1
-1
common/lib/calc/calc/tests/test_calc.py
+1
-1
docs/course_authors/source/appendices/e.rst
+1
-1
No files found.
AUTHORS
View file @
69ef7531
...
...
@@ -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>
common/lib/calc/calc/calc.py
View file @
69ef7531
...
...
@@ -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)
}
...
...
common/lib/calc/calc/tests/test_calc.py
View file @
69ef7531
...
...
@@ -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
:
...
...
docs/course_authors/source/appendices/e.rst
View file @
69ef7531
...
...
@@ -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``: t
he positive difference between 0K and 0°C (285.15
)
- ``T``: t
ypical room temperature (298.15 Kelvin, same as 25C/77F
)
- ``q``: the fundamental charge (~1.602e-19 Coloumbs)
Operators and Functions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment