Skip to content

Commit ddfa0e4

Browse files
committed
Exercises and solutions
1 parent 3960618 commit ddfa0e4

6 files changed

Lines changed: 680 additions & 80 deletions

Applications.ipynb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,15 @@
267267
"$(b)$ Expand your work in part $(a)$ to a seventh degree poynomial that passes through all eight planets. The first object in the Kuiper Belt, Ceres, was discovered by Giuseppe Piazzi in 1801. Ceres has an average distance from the sun of 413.5 million km. Based on the points on the graph, estimate the orbital velocity of Ceres. What does the polynomial suggest the value would be?"
268268
]
269269
},
270+
{
271+
"cell_type": "code",
272+
"execution_count": null,
273+
"metadata": {},
274+
"outputs": [],
275+
"source": [
276+
"## Code solution here."
277+
]
278+
},
270279
{
271280
"cell_type": "markdown",
272281
"metadata": {},

Inner_Products.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"## Inner Products\n",
88
"\n",
9-
"In this chapter, we introduce the idea of an inner product, examine the additional structure that it imposes on a vector space, and look at some common applications. An inner product is an operation on two vectors in a vector space that is defined in such a way as to satisfy certain algebraic requirements. To begin, we will focus only on one specific inner product defined for vectors in $\\mathbb{R}^n$. Later in the chapter we will consider other examples of inner products in $\\mathbb{R}^n$.\n",
9+
"In this chapter we introduce the idea of an inner product, examine the additional structure that it imposes on a vector space, and look at some common applications. An inner product is an operation on two vectors in a vector space that is defined in such a way as to satisfy certain algebraic requirements. To begin, we will focus only on one specific inner product defined for vectors in $\\mathbb{R}^n$. Later in the chapter we will consider other examples of inner products in $\\mathbb{R}^n$.\n",
1010
"\n",
1111
"The **dot product** is the most common example of an inner product. For vectors $U$ and $V$ in $\\mathbb{R}^n$, the dot product is written as $U\\cdot V$, and is defined in the following way.\n",
1212
"\n",
@@ -445,7 +445,7 @@
445445
"source": [
446446
"### Exercises\n",
447447
"\n",
448-
"- Create a Python function named $\\texttt{Magnitude}$ that accepts as an argument vector in the form of a NumPy array object with shape $n\\times 1$, and returns the magnitude of that vector."
448+
"**Exercise 1:** Create a Python function named $\\texttt{Magnitude}$ that accepts as an argument vector in the form of a NumPy array object with shape $n\\times 1$, and returns the magnitude of that vector."
449449
]
450450
},
451451
{
@@ -461,12 +461,12 @@
461461
"cell_type": "markdown",
462462
"metadata": {},
463463
"source": [
464-
"- Use the $\\texttt{random}$ module of NumPy to generate random $4\\times 1$ vectors $U$, $V$, and $W$, and a random scalar $k$. Verify the algebraic properties of the dot product listed above. Try to make use of a conditional statement to check each statement."
464+
"**Exercise 2:** Use the $\\texttt{random}$ module of NumPy to generate random $4\\times 1$ vectors $U$, $V$, and $W$, and a random scalar $k$. Verify the algebraic properties of the dot product listed above. Try to make use of a conditional statement to check each statement."
465465
]
466466
},
467467
{
468468
"cell_type": "code",
469-
"execution_count": null,
469+
"execution_count": 9,
470470
"metadata": {},
471471
"outputs": [],
472472
"source": [
@@ -477,7 +477,7 @@
477477
"cell_type": "markdown",
478478
"metadata": {},
479479
"source": [
480-
"- Let $X$ and $Y$ be the following vectors.\n",
480+
"**Exercise 3:** Let $X$ and $Y$ be the following vectors.\n",
481481
"\n",
482482
"$$\n",
483483
"\\begin{equation}\n",
@@ -486,7 +486,7 @@
486486
"\\end{equation}\n",
487487
"$$\n",
488488
"\n",
489-
"- Determine the angle between $X$ and $Y$. (*You will need the $\\texttt{acos}$ function in Python's $\\texttt{math}$ module.*)"
489+
"$(a)$ Determine the angle between $X$ and $Y$. (*You will need the $\\texttt{acos}$ function in Python's $\\texttt{math}$ module.*)"
490490
]
491491
},
492492
{
@@ -502,7 +502,7 @@
502502
"cell_type": "markdown",
503503
"metadata": {},
504504
"source": [
505-
"- Find a vector in $\\mathbb{R}^3$ that is orthogonal to the vector $X$. Verify your answer with a computation."
505+
"$(b)$ Find a vector in $\\mathbb{R}^3$ that is orthogonal to the vector $X$. Verify your answer with a computation."
506506
]
507507
},
508508
{
@@ -518,7 +518,7 @@
518518
"cell_type": "markdown",
519519
"metadata": {},
520520
"source": [
521-
"- Construct a unit vector $Z$ such that $Z\\cdot Y = -||Y||$. Verify your answer with a computation."
521+
"$(c)$ Construct a unit vector $Z$ such that $Z\\cdot Y = -||Y||$. Verify your answer with a computation."
522522
]
523523
},
524524
{

0 commit comments

Comments
 (0)