fix these bugs

This commit is contained in:
jverzani 2024-05-25 15:10:10 -04:00
parent 5866fa9531
commit 98eccda0f7
2 changed files with 1 additions and 7 deletions

View File

@ -1,4 +1,4 @@
version: "0.19" version: "0.20"
engine: julia engine: julia
project: project:

View File

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