This commit is contained in:
jverzani
2025-08-29 15:33:24 -04:00
parent 7c869a83ce
commit c044529cba
5 changed files with 133 additions and 5 deletions

View File

@@ -1828,6 +1828,43 @@ answ = 1
radioq(choices, answ)
```
###### Question
[Durer](https://mathshistory.st-andrews.ac.uk/Curves/Durers/)'s curves are parameterized by $a$ and $b$ and given by:
```{julia}
durer(a=1, b=1) = (x,y) ->(x^2 + x*y + a*x - b^2)^2 - (b^2 - x^2)*(x-y+a)^2
```
They can be visualized with a contour plot as follows (a plot of an implicit function)
```{julia}
xs = ys = range(-5, 5, 500)
b = 4; a = b/4
contour(xs, ys, durer(a,b); levels=[0])
```
The definition of `durer` above creates a closure. Take the values of $b=4$ and $a=b/2$. Is the point $(-2a, -a)$ on the curve?
```{julia}
#| echo: false
b = 4
a = b/2
yesnoq(durer(a,b)(-2a, -a) == 0)
```
What about the point $(-2a, a)$?
```{julia}
#| echo: false
b = 4
a = b/2
yesnoq(durer(a,b)(-2a, a) == 0)
```
(One is the cusp which is a loop if `a=b/4` and smooths out if `a=b/(3/2)`, say.
###### Question