📚 The CoCalc Library - books, templates and other resources
License: OTHER
Unless otherwise specified, each part of this problem is worth 0.1 points, for a total of 2.75 points.
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
Banana
Orange
Lists
Apple
Banana
Orange
Strawberry
Blueberry
Raspberry
Fruits
Apple
Banana
Orange
Berries
Strawberry
Blueberry
Raspberry
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 page. Alternatively, if you forget the mathematical operation that a particular symbol corresponds to, check the Wikipedia page on mathematical notation.
Basic equation formatting
$like this$
. Format "y=ax+b" to produce the following:
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.
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.
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 and \Delta
to produce .
For reference, the greek letters used in this equation are called:
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.
Similar to the logarithm and the exponential is the square root, which can be formatted using the \sqrt{}
command.
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{}
.
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.
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. ), and its final value is given above the sum/product. For example, the following is a sum of all where :
and similarly, the following is a product of all where :
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.
Derivatives
Derivatives can be displayed using fractions, in addition to the \partial
symbol, which looks like this: