"This page shows some exercises on calculating Taylor expansions. If you reload this page, you'll get new values.\n",
"Use this page to practice calculating Taylor expansions. This requires\n",
"\n",
" Click `rocket` -->`Live Code` to start practising.\n"
"```{tip}\n",
"\n",
"This page presents several functions of $x$ that you should approximate with Taylor Series. You can click `rocket` -->`Live Code` to check your answers, however, note the following:\n",
"\n",
"1. You should work out the exercises \"by hand\" first (using paper or a digital notebook)\n",
"2. You can type your answer in the code cell and then click \"Check Answer\" to see if it is correct. Use basic Python syntax for representing the equation, for example, `x**2 + 1` for $x^2+1$; use `pi` or `sin()` and `cos()` for the trigonometric functions (not numpy!)\n",
"3. You can click the \"Show correct answer\" button to see the solution; however, note that the form of the equation will be different than that which you are expected to derive, so you will need to do some arithmetic to confirm you are correct.\n",
"\n",
"_The reason the Python syntax is different is because it uses Sympy, a library for symbolic mathematics._\n",
"Note that for Exercise 1, the equation is an even-order polynomial, which means that the Taylor Series should not introduce any error!\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
%% Cell type:markdown id: tags:
# Exercises on Taylor expansion
This page shows some exercises on calculating Taylor expansions. If you reload this page, you'll get new values.
Use this page to practice calculating Taylor expansions. This requires
Click `rocket` -->`Live Code` to start practising.
```{tip}
This page presents several functions of $x$ that you should approximate with Taylor Series. You can click `rocket` -->`Live Code` to check your answers, however, note the following:
1. You should work out the exercises "by hand" first (using paper or a digital notebook)
2. You can type your answer in the code cell and then click "Check Answer" to see if it is correct. Use basic Python syntax for representing the equation, for example, `x**2 + 1` for $x^2+1$; use `pi` or `sin()` and `cos()` for the trigonometric functions (not numpy!)
3. You can click the "Show correct answer" button to see the solution; however, note that the form of the equation will be different than that which you are expected to derive, so you will need to do some arithmetic to confirm you are correct.
_The reason the Python syntax is different is because it uses Sympy, a library for symbolic mathematics._