em dash; sentence case
This commit is contained in:
@@ -14,7 +14,7 @@ using LaTeXStrings
|
||||
gr();
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
In the March 2003 issue of the College Mathematics Journal, Leon M Hall posed 12 questions related to the following figure:
|
||||
|
||||
@@ -80,7 +80,7 @@ zs = solve(f(x) ~ nl, x)
|
||||
q = only(filter(!=(a), zs))
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
The first question is simply:
|
||||
|
||||
@@ -115,7 +115,7 @@ In the remaining examples we don't show the code by default.
|
||||
|
||||
:::
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 1b. The length of the line segment $PQ$
|
||||
|
||||
@@ -133,7 +133,7 @@ lseg = sqrt((f(a) - f(q))^2 + (a - q)^2);
|
||||
```
|
||||
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 2a. The horizontal distance between $P$ and $Q$
|
||||
|
||||
@@ -151,7 +151,7 @@ plot!([q₀, a₀], [f(a₀), f(a₀)], linewidth=5)
|
||||
|
||||
hd = a - q;
|
||||
```
|
||||
----
|
||||
---
|
||||
|
||||
> 2b. The area of the parabolic segment
|
||||
|
||||
@@ -172,7 +172,7 @@ plot!(xs, ys, fill=(:green, 0.25, 0))
|
||||
A = simplify(integrate(nl - f(x), (x, q, a)));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 2c. The volume of the rotated solid formed by revolving the parabolic segment around the vertical line $k$ units to the right of $P$ or to the left of $Q$ where $k > 0$.
|
||||
|
||||
@@ -185,7 +185,7 @@ A = simplify(integrate(nl - f(x), (x, q, a)));
|
||||
V = simplify(integrate(2PI*(nl-f(x))*(a - x + k),(x, q, a)));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 3. The $y$ coordinate of the centroid of the parabolic segment
|
||||
|
||||
@@ -214,7 +214,7 @@ yₘ = integrate( (1//2) * (nl^2 - f(x)^2), (x, q, a)) / A
|
||||
yₘ = simplify(yₘ);
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 4. The length of the arc of the parabola between $P$ and $Q$
|
||||
|
||||
@@ -233,7 +233,7 @@ p
|
||||
L = integrate(sqrt(1 + fp(x)^2), (x, q, a));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 5. The $y$ coordinate of the midpoint of the line segment $PQ$
|
||||
|
||||
@@ -254,7 +254,7 @@ p
|
||||
mp = nl(x => (a + q)/2);
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 6. The area of the trapezoid bound by the normal line, the $x$-axis, and the vertical lines through $P$ and $Q$.
|
||||
|
||||
@@ -273,7 +273,7 @@ p
|
||||
trap = 1//2 * (f(q) + f(a)) * (a - q);
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 7. The area bounded by the parabola and the $x$ axis and the vertical lines through $P$ and $Q$
|
||||
|
||||
@@ -295,7 +295,7 @@ p
|
||||
pa = integrate(x^2, (x, q, a));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 8. The area of the surface formed by revolving the arc of the parabola between $P$ and $Q$ around the vertical line through $P$
|
||||
|
||||
@@ -321,7 +321,7 @@ vv(x) = f(a - uu(x))
|
||||
SA = 2PI * integrate(uu(x) * sqrt(diff(uu(x),x)^2 + diff(vv(x),x)^2), (x, q, a));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 9. The height of the parabolic segment (i.e. the distance between the normal line and the tangent line to the parabola that is parallel to the normal line)
|
||||
|
||||
@@ -350,7 +350,7 @@ segment_height = sqrt((b-b′)^2 + (f(b) - nl(x=>b′))^2);
|
||||
```
|
||||
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 10. The volume of the solid formed by revolving the parabolic segment around the $x$-axis
|
||||
|
||||
@@ -371,7 +371,7 @@ end
|
||||
Vₓ = integrate(pi * (nl^2 - f(x)^2), (x, q, a));
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 11. The area of the triangle bound by the normal line, the vertical line through $Q$ and the $x$-axis
|
||||
|
||||
@@ -392,7 +392,7 @@ plot!([p₀,q₀,q₀,p₀], [0,f(q₀),0,0];
|
||||
triangle = 1/2 * f(q) * (a - f(a)/(-1/fp(a)) - q);
|
||||
```
|
||||
|
||||
----
|
||||
---
|
||||
|
||||
> 12. The area of the quadrilateral bound by the normal line, the tangent line, the vertical line through $Q$ and the $x$-axis
|
||||
|
||||
@@ -417,7 +417,7 @@ x₁,x₂,x₃,x₄ = (a,q,q,tl₀)
|
||||
y₁, y₂, y₃, y₄ = (f(a), f(q), 0, 0)
|
||||
quadrilateral = (x₁ - x₂)*(y₁ - y₃)/2 - (x₁ - x₃)*(y₁ - y₂)/2 + (x₁ - x₃)*(y₁ - y₄)/2 - (x₁ - x₄)*(y₁ - y₃)/2;
|
||||
```
|
||||
----
|
||||
---
|
||||
|
||||
The answers appear here in sorted order, some given as approximate floating point values:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user