Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Jupyter notebook 2015-09-30-R-value-calculation.ipynb
The code below tells the computer that each of the variables (watt
, ft
, ...) represent a unit.
This is the representation in mathematics
Below is an implementation of the calculation in Python code with units.
We define the conductivities of wood and foam using values from a table in Wikipedia. We also define the units.
We define the thicknesses of the layers of wood and foam in the panel.
We can then calculate the R-values for the a wood layer and a foam layer.
The R-value is the sum of the layers. One wood, one foam, and then another wood layer.
We can multiply by a conversion factor to find the english R-value.
The software we are using allows the computer to convert between these units. We see the numbers agree to 4 significant figures.
We can also calculate the power lost by a large area of this wall.