edits
This commit is contained in:
@@ -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]
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user