edits; parameterized surface

This commit is contained in:
jverzani 2023-07-28 14:09:32 -04:00
parent 61ae657e28
commit 8ac05ad90a
2 changed files with 4 additions and 7 deletions

View File

@ -71,7 +71,7 @@ books visit <https://quarto.org/docs/books>.
These notes may be compiled into a `pdf` file through Quarto. As the result is rather large, we do not provide that file for download. For the interested reader, downloading the repository, instantiating the environment, and running `quarto` to render to `pdf` in the `quarto` subdirectory should produce that file (after some time). These notes may be compiled into a `pdf` file through Quarto. As the result is rather large, we do not provide that file for download. For the interested reader, downloading the repository, instantiating the environment, and running `quarto` to render to `pdf` in the `quarto` subdirectory should produce that file (after some time).
To *contribute* -- say by suggesting addition topics, correcting a To *contribute* -- say by suggesting addition topics, correcting a
mistake, or fixing a typo -- click the "Edit this page" link and join the list of [contributors](https://github.com/jverzani/CalculusWithJuliaNotes.jl/graphs/contributors). Thanks to all contributors and a special thanks to `@fangliu-tju` for their careful proofreading. mistake, or fixing a typo -- click the "Edit this page" link and join the list of [contributors](https://github.com/jverzani/CalculusWithJuliaNotes.jl/graphs/contributors). Thanks to all contributors and a *very* special thanks to `@fangliu-tju` for their careful and most-appreciated proofreading.
---- ----

View File

@ -23,7 +23,6 @@ The `Julia` packages loaded below are all loaded when the `CalculusWithJulia` pa
A `Julia` package is loaded with the `using` command: A `Julia` package is loaded with the `using` command:
```{julia} ```{julia}
using LinearAlgebra using LinearAlgebra
``` ```
@ -455,6 +454,7 @@ This should be contrasted to the case when both `xs` and `ys` are (column) vecto
```{julia} ```{julia}
#| error: true
g.(xs, [4,5]) g.(xs, [4,5])
``` ```
@ -710,10 +710,7 @@ implicit_plot(f)
### Plotting a parameterized surface $f:R^2 \rightarrow R^3$ ### Plotting a parameterized surface $f:R^2 \rightarrow R^3$
The `pyplot` (and `plotly`) backends allow plotting of parameterized surfaces. The `pyplot` (and `plotly`) backends allow plotting of parameterized surfaces. The low-level `surface(xs,ys,zs)` is used, as illustrated here.
The low-level `surface(xs,ys,zs)` is used, and can be specified directly as follows:
```{julia} ```{julia}
@ -723,7 +720,7 @@ Y(theta, phi) = sin(phi)*sin(theta)
Z(theta, phi) = cos(phi) Z(theta, phi) = cos(phi)
thetas = range(0, pi/4, length=20) thetas = range(0, pi/4, length=20)
phis = range(0, pi, length=20) phis = range(0, pi, length=20)
surface(X.(thetas, phis'), Y.(thetas, phis'), Z.(thetas, phis')) # surface(X.(thetas, phis'), Y.(thetas, phis'), Z.(thetas, phis'))
``` ```
### Plotting a vector field $F:R^2 \rightarrow R^2$. ### Plotting a vector field $F:R^2 \rightarrow R^2$.