This commit is contained in:
jverzani
2022-07-20 13:23:19 -04:00
parent a2b62ded04
commit 93c993206a
5 changed files with 12 additions and 8 deletions

View File

@@ -252,7 +252,7 @@ plot(chain, -1, 1)
How long is the chain? Looking at the graph we can guess an answer is
between $2$ and $2.5$, say, but it isn't much work to get
an approximate numeric answer. Recall, the accompanying `CalculusWithJulia` package deines `f'` to find the derivative using the `ForwardDiff` package.
an approximate numeric answer. Recall, the accompanying `CalculusWithJulia` package defines `f'` to find the derivative using the `ForwardDiff` package.
```julia;
@@ -310,7 +310,7 @@ compute the length of Johns' catenary in inches:
```julia; hold=true
a = 13
b = 118 + a
f(x) = cat(x, a=13, b=118+13)
f(x) = cat(x; a=13, b=118+13)
quadgk(x -> sqrt(1 + f'(x)^2), -78/2, 78/2)[1]
```