Skip to content

Commit

Permalink
Add ideal gas constant R
Browse files Browse the repository at this point in the history
  • Loading branch information
anilanar authored and sharkdp committed Oct 6, 2018
1 parent 762b164 commit 826f9af
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ Documentation
(`electronMass`), elementary charge (`elementaryCharge`),
magnetic constant (`µ0`), electric constant (`eps0`), Bohr
magneton (`µ_B`), Avogadro's constant (`N_A`), Boltzmann
constant (`k_B`), gravitational acceleration (`g0`), ...
constant (`k_B`), gravitational acceleration (`g0`), ideal gas
constant (`R`), ...

- **Last result**: you can use `ans` (answer) to refer to the
result of the last calculation.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"output"
],
"dependencies": {
"purescript-quantities": "^8.0.2",
"purescript-quantities": "^8.1.0",
"purescript-parsing": "^5.0.0",
"purescript-ordered-collections": "^1.0.0",
"jquery.terminal": "=1.6.3",
Expand Down
2 changes: 1 addition & 1 deletion docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Documentation
Planck's constant (`h_bar`), electron mass (`electronMass`), elementary charge
(`elementaryCharge`), magnetic constant (`µ0`), electric constant (`eps0`),
Bohr magneton (`µ_B`), Avogadro's constant (`N_A`), Boltzmann constant
(`k_B`), gravitational acceleration (`g0`), ...
(`k_B`), gravitational acceleration (`g0`), ideal gas constant (`R`), ...

* **Last result**: you can use `ans` (answer) to refer to the result of the
last calculation.
Expand Down
1 change: 1 addition & 0 deletions src/Insect/Environment.purs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ initialEnvironment =
, constVal "planckConstant" Q.planckConstant
, constVal "protonMass" Q.protonMass
, constVal "speedOfLight" Q.speedOfLight
, constVal "R" Q.idealGasConstant

-- Hidden constants
, hiddenVal "hundred" (Q.scalar 1.0e2)
Expand Down

0 comments on commit 826f9af

Please sign in to comment.