use plotly; fix bitrot
This commit is contained in:
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
using QuadGK
|
||||
using Roots
|
||||
@@ -69,6 +70,7 @@ To see why, any partition of the interval $[a,b]$ by $a = t_0 < t_1 < \cdots < t
|
||||
#| hold: false
|
||||
#| echo: false
|
||||
## {{{arclength_graph}}}
|
||||
gr()
|
||||
function make_arclength_graph(n)
|
||||
|
||||
ns = [10,15,20, 30, 50]
|
||||
@@ -100,6 +102,7 @@ The arc length of the parametric curve can be approximated using straight line s
|
||||
|
||||
"""
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using QuadGK
|
||||
using Roots
|
||||
```
|
||||
@@ -75,7 +76,7 @@ In a previous section, we saw this animation:
|
||||
#| hold: true
|
||||
#| echo: false
|
||||
## {{{archimedes_parabola}}}
|
||||
|
||||
gr()
|
||||
|
||||
f(x) = x^2
|
||||
colors = [:black, :blue, :orange, :red, :green, :orange, :purple]
|
||||
@@ -126,7 +127,7 @@ caption = L"""
|
||||
The first triangle has area $1/2$, the second has area $1/8$, then $2$ have area $(1/8)^2$, $4$ have area $(1/8)^3$, ...
|
||||
With some algebra, the total area then should be $1/2 \cdot (1 + (1/4) + (1/4)^2 + \cdots) = 2/3$.
|
||||
"""
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
@@ -188,6 +189,7 @@ Clearly for a given partition and choice of $c_i$, the above can be computed. Ea
|
||||
```{julia}
|
||||
#| hold: true
|
||||
#| echo: false
|
||||
gr()
|
||||
rectangle(x, y, w, h) = Shape(x .+ [0,w,w,0], y .+ [0,0,h,h])
|
||||
function ₙ(j)
|
||||
a = ("₋","","","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉")
|
||||
@@ -218,6 +220,7 @@ gif(anim, imgfile, fps = 1)
|
||||
|
||||
caption = "Illustration of left Riemann sum for increasing ``n`` values"
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using Roots
|
||||
using QuadGK
|
||||
using SymPy
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using Roots
|
||||
using QuadGK
|
||||
using SymPy
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
using Roots
|
||||
using QuadGK
|
||||
@@ -434,7 +435,7 @@ The value of $a$ does not matter, as long as the integral is defined.
|
||||
#| hold: true
|
||||
#| echo: false
|
||||
##{{{ftc_graph}}}
|
||||
|
||||
gr()
|
||||
function make_ftc_graph(n)
|
||||
a, b = 2, 3
|
||||
ts = range(0, stop=b, length=50)
|
||||
@@ -471,7 +472,7 @@ end
|
||||
|
||||
imgfile = tempname() * ".gif"
|
||||
gif(anim, imgfile, fps = 1)
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
using QuadGK
|
||||
```
|
||||
@@ -27,7 +28,7 @@ To define integrals with either functions having singularities or infinite doma
|
||||
#| hold: true
|
||||
#| echo: false
|
||||
### {{{sqrt_graph}}}
|
||||
|
||||
gr()
|
||||
function make_sqrt_x_graph(n)
|
||||
|
||||
b = 1
|
||||
@@ -58,7 +59,7 @@ end
|
||||
|
||||
imgfile = tempname() * ".gif"
|
||||
gif(anim, imgfile, fps = 1)
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using QuadGK
|
||||
```
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
|
||||
```
|
||||
|
||||
@@ -10,6 +10,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using SymPy
|
||||
using QuadGK
|
||||
```
|
||||
@@ -549,7 +550,7 @@ numericq(val)
|
||||
```{julia}
|
||||
#| hold: true
|
||||
#| echo: false
|
||||
|
||||
gr()
|
||||
## For **some reason** having this in the natural place messes up the plots.
|
||||
## {{{approximate_surface_area}}}
|
||||
|
||||
@@ -582,5 +583,6 @@ Surface of revolution of $f(x) = 2 - x^2$ about the $y$ axis. The lines segments
|
||||
|
||||
"""
|
||||
|
||||
plotly()
|
||||
ImageFile(imgfile, caption)
|
||||
```
|
||||
|
||||
@@ -5,6 +5,7 @@ This section uses these packages:
|
||||
```{julia}
|
||||
using SymPy
|
||||
using Plots
|
||||
plotly()
|
||||
```
|
||||
|
||||
----
|
||||
|
||||
@@ -9,6 +9,7 @@ This section uses these add-on packages:
|
||||
```{julia}
|
||||
using CalculusWithJulia
|
||||
using Plots
|
||||
plotly()
|
||||
using QuadGK
|
||||
using Unitful, UnitfulUS
|
||||
using Roots
|
||||
|
||||
Reference in New Issue
Block a user