{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "# Workshop \"Teaching Sciences and Engineering with Jupyter Notebooks\" 2021\n", "C. Hardebolle, CC BY-NC-SA 4.0 Int.\n", "\n", "
shift + enter
. def tension_norm(alpha):\n",
" tension = (1/2 * m * g) / np.sin(alpha)\n",
" return tension\n",
"
\n",
"\n",
"m_cw = T / g
\n",
" \n",
"Of course, if you are at ease with Python you can write this as a function, which could also call the ``tension_norm`` function defined earlier instead of using ``T``...\n",
"