updates after up

This commit is contained in:
jverzani
2024-05-25 14:52:20 -04:00
parent 52aaa5d487
commit f9df119df0
6 changed files with 350 additions and 12 deletions

View File

@@ -359,7 +359,7 @@ We can parameterize the sphere by plotting values for $x$, $y$, and $z$ produced
```{julia}
#| hold: true
#| eval: false
thetas = range(0, stop=pi, length=50)
phis = range(0, stop=pi/2, length=50)
@@ -379,6 +379,7 @@ For convenience, the `plot_parametric` function from `CalculusWithJulia` can pro
```{julia}
#| eval: false
#| hold: true
F(theta, phi) = [X(1, theta, phi), Y(1, theta, phi), Z(1, theta, phi)]
plot_parametric(0..pi, 0..pi/2, F)
@@ -401,6 +402,7 @@ $$
To illustrate, we have:
```{julia}
#| eval: false
# cf. https://discourse.julialang.org/t/general-plotting-code-for-cone-in-3d-with-glmakie-or-plots/92104/3
basecurve(u) = [cos(u), sin(u) + sin(u/2), 0]
@@ -419,6 +421,7 @@ To use it, we see what happens when a sphere if rendered:
```{julia}
#| eval: false
#| hold: true
f(x,y,z) = x^2 + y^2 + z^2 - 25
CalculusWithJulia.plot_implicit_surface(f)
@@ -428,6 +431,7 @@ This figure comes from a February 14, 2019 article in the [New York Times](https
```{julia}
#| eval: false
#| hold: true
a,b = 1,3
f(x,y,z) = (x^2+((1+b)*y)^2+z^2-1)^3-x^2*z^3-a*y^2*z^3