<jupyter_start><jupyter_text>Markdown As mentioned in the previous problem, Markdown is a special way of writing text in order to specify formatting, like whether text should be bold, italicized, etc.For the following few exercises, try to format the specified text using Markdown. You can use the following website as a reference: https://help.github.com/articles/markdown-basics- Hint 1: after editing the Markdown, you will need to run the cell so that the formatting appears.- Hint 2: try selecting *this* cell so you can see what the Markdown looks like when you're editing it. Remember to run the cell again to see what it looks like when it is formatted.Note that in this assignment, the formatted text and equations are actually images, so you cannot look at the cell in edit mode to see the answer. However, in future assignments, we will write all the instructions and equations in Markdown, so in the future you will always be able to look at the cell in edit mode to see how the formatting is done.  Italics and Boldface Italicize the word "Banana", like this:![](images/banana-italics.png) YOUR ANSWER HERE Bold the word "Orange", like this:![](images/orange-bold.png) YOUR ANSWER HERE  Lists Make a bulleted list consisting of the words "Apple", "Banana", and "Orange", like this:![](images/bulleted-list.png) YOUR ANSWER HERE Make a numbered list consisting of the words "Strawberry", "Blueberry", and "Raspberry", like this:![](images/numbered-list.png) YOUR ANSWER HERE Make the following list of lists:![](images/list-of-lists.png) YOUR ANSWER HERE  LaTeX Equations One of the advantages of using Markdown is that it allows us to easily write equations using LaTeX.The next few exercises will go over the basics of LaTeX equation formatting. You should be able to find all of the symbols you need on [this](http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html) page. Alternatively, if you forget the mathematical operation that a particular symbol corresponds to, check the [Wikipedia page](https://en.wikipedia.org/wiki/List_of_mathematical_symbols_by_subject) on mathematical notation.  Basic equation formatting To format an equation using LaTeX, you must wrap the text in dollar signs, $like this$. Format "y=ax+b" to produce the following:![](images/latex-basic-equation.png) YOUR ANSWER HERE  Subscripts and superscripts Many equations require the use of exponents or underscores. To include a superscript, use the `^` symbol, and for subscripts, use the `_` symbol.Format the following equation:![](images/latex-subscripts-and-superscripts.png) YOUR ANSWER HERE Sometimes, we need to use exponents or underscores that require more than one character. Unfortunately, by default, the `^` or `_` symbols only apply to the *next* character. To tell them to apply to multiple characters, the exponent or subscript needs to be wrapped in curly braces.Format the following equation:![](images/latex-curly-braces.png) YOUR ANSWER HERE  Greek letters We may ask you to use Greek variable names or letters in some of the assignments for this course. In general, greek letters can be formatted in LaTeX with `\letter`, where "letter" is the name of the greek letter. For the lowercase version, use `\letter`, and for the uppercase version, use `\Letter`. For example, to format the greek letter "delta", you would do `\delta` to produce $\delta$ and `\Delta` to produce $\Delta$.Format the following equation, which uses several common greek variables (note: the only letters that are *not* greek are the numbers and the "m" and "n" subscripts).![](images/latex-greek-variables.png) For reference, the greek letters used in this equation are called:![](images/latex-greek-variable-names.png) YOUR ANSWER HERE  Logarithm and exponential LaTeX has special commands for some common functions, such as logarithms of exponentials. For logarithms, the relevant command is `\log{}`, and for exponentials, the relevant command is `\exp{}`, where the expression inside the logarithm or exponential goes inside the curly braces.Format the following equation (you'll need to look up the appropriate symbol for the arrow yourself!)![](images/latex-log-exp.png) YOUR ANSWER HERE Similar to the logarithm and the exponential is the square root, which can be formatted using the `\sqrt{}` command.Format the following equation:![](images/latex-sqrt.png) YOUR ANSWER HERE  Dots Many equations use dots, either to signify multiplication (or a dot product), or to indicate that the operation should be repeated. For a single dot, use `\cdot{}`, and for multiple dots, use `\ldots{}`.Format the following equation:![](images/latex-dots.png) YOUR ANSWER HERE  Fractions LaTeX can also render fractions using the `\frac{}{}` command. The numerator goes in the first pair of curly brackets, and the denominator goes in the second pair of curly brackets.Format the following equation:![](images/latex-fraction.png) YOUR ANSWER HERE  Sums and products Sums and products across variables can be displayed using `\sum` and `\prod`. To get the variables above and below the sum or product symbols, you can use superscripts and subscripts.As a reminder, the large sum and product symbols mean the sum or product of a series of numbers or variables. Usually, the index variable along with its starting value is defined underneath the sum/product symbol (e.g. $i=1$), and its final value is given above the sum/product. For example, the following is a sum of all $x_i$ where $1\leq i\leq N$:![](images/latex-example-sum.png)and similarly, the following is a product of all $y_j$ where $1\leq j\leq M$:![](images/latex-example-product.png) Format the following equation using double dollar signs (instead of single dollar signs like above). This will always make the equation display on a new line, and will make symbols like sums and products look nicer.![](images/latex-sum-product.png) YOUR ANSWER HERE  Integrals Displaying an integral is very similar to a sum or product. To do so, use the `\int` command. The integral limits can be set using superscripts and subscripts. Format the following equation (again using double dollar signs):![](images/latex-integral.png) YOUR ANSWER HERE  Derivatives Derivatives can be displayed using fractions, in addition to the `\partial` symbol, which looks like this: $\partial$ Format the following equation (using single dollar signs):![](images/latex-derivative.png) YOUR ANSWER HERE  Putting it all together (1.15 points) Format the following equation (using double dollar signs):![](images/latex-challenge.png) YOUR ANSWER HERE Before finishing this problem in remember to do the following steps:1. **Restart the kernel** (Kernel$\rightarrow$Restart)2. **Run all cells** (Cell$\rightarrow$Run All)3. **Save** (File$\rightarrow$Save and Checkpoint) After you have completed these three steps, ensure that the following cell has printed "No errors". If it has not printed "No errors", then your code has a bug in it and has thrown an error! Make sure you fix this error before finishing this notebook.<jupyter_code>print("No errors!")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07615286983500212, 'fraction_numerical': 0.0015512621633055987, 'mean_word_length': 5.020373514431239, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '597223', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 1893, 'n_tokens_neox': 1760, 'n_words': 991, 'path': 'PS0/2 - Markdown and LaTeX Cheatsheet.ipynb', 'repo_name': 'smitchaute/COGSCI-C131-PSYCH-123-FA20', 'size': '7091'}