rm WeaveSupport

This commit is contained in:
jverzani
2022-09-19 16:10:49 -04:00
parent 847109baea
commit e35ee2f6ca
66 changed files with 213 additions and 883 deletions

View File

@@ -14,21 +14,6 @@ using QuadGK
using Roots
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
frontmatter = (
title = "Arc length",
description = "Calculus with Julia: Arc length",
tags = ["CalculusWithJulia", "integrals", "arc length"],
);
fig_size=(800, 600)
nothing
```
---
@@ -1071,4 +1056,3 @@ In [Martin](https://www.maa.org/sites/default/files/pdf/cmj_ftp/CMJ/January%2020
After demonstrating mathematical talent at an early age, Blaise Pascal turned his attention to theology, denouncing the study of mathematics as a vainglorious pursuit. Then one night, unable to sleep as the result of a toothache, he began thinking about the cycloid and to his surprise, his tooth stopped aching. Taking this as a sign that he had Gods approval to continue, Pascal spent the next eight days studying the curve. During this time he discovered nearly all of the geometric properties of the cycloid. He issued some of his results in $1658$ in the form of a contest, offering a prize of forty Spanish gold pieces and a second prize of twenty pieces.
:::

View File

@@ -13,24 +13,6 @@ using QuadGK
using Roots
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
fig_size = (800, 600)
using Markdown, Mustache
const frontmatter = (
title = "Area under a curve",
description = "Calculus with Julia: Area under a curve",
tags = ["CalculusWithJulia", "integrals", "area under a curve"],
);
nothing
```
---
@@ -1406,20 +1388,6 @@ numericq(val)
###### Question
```{julia}
#| hold: true
#| echo: false
caption = """
The area under a curve approximated by a Riemann sum.
"""
#CalculusWithJulia.WeaveSupport.JSXGraph(joinpath(@__DIR__, "riemann.js"), caption)
# url = "riemann.js"
#CalculusWithJulia.WeaveSupport.JSXGraph(:integrals, url, caption)
# This is just wrong...
#CalculusWithJulia.WeaveSupport.JSXGraph(url, caption)
nothing
```
```{=html}
<div id="jsxgraph" style="width: 500px; height: 500px;"></div>
```
@@ -1550,4 +1518,3 @@ f(x) = exp(x)
val = sum([f(wi)*ni for (wi, ni) in zip(wts, ns)])
numericq(val)
```

View File

@@ -14,18 +14,6 @@ using QuadGK
using SymPy
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Area between two curves",
description = "Calculus with Julia: Area between two curves",
tags = ["CalculusWithJulia", "integrals", "area between two curves"],
);
nothing
```
---
@@ -752,4 +740,3 @@ Roberval, avoiding a trignometric integral, instead used symmetry to show that t
"""
ImageFile(:integrals, imgfile, caption)
```

View File

@@ -15,18 +15,6 @@ using SymPy
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Center of Mass",
description = "Calculus with Julia: Center of Mass",
tags = ["CalculusWithJulia", "integrals", "center of mass"],
);
nothing
```
---
@@ -640,4 +628,3 @@ xs = rs[4] .- rs
val = sum(ms .* xs) / sum(ms)
numericq(val)
```

View File

@@ -14,19 +14,6 @@ using Roots
using QuadGK
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Fundamental Theorem or Calculus",
description = "Calculus with Julia: Fundamental Theorem or Calculus",
tags = ["CalculusWithJulia", "integrals", "fundamental theorem or calculus"],
);
fig_size = (800, 600)
nothing
```
---
@@ -1284,5 +1271,3 @@ Finding the value of a definite integral through the fundamental theorem of calc
* This is a heuristic version of the Risch algorithm, meaning that it is not deterministic. This is tried as a last resort because it can be very slow. It is still used because not enough of the full Risch algorithm is implemented, so that there are still some integrals that can only be computed using this method. The goal is to implement enough of the Risch and Meijer G-function methods so that this can be deleted. Setting `heurisch=true` will cause `integrate` to use only this method. Set `heurisch=false` to not use it.

View File

@@ -13,20 +13,6 @@ using SymPy
using QuadGK
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Improper Integrals",
description = "Calculus with Julia: Improper Integrals",
tags = ["CalculusWithJulia", "integrals", "improper integrals"],
);
fig_size=(800, 600)
nothing
```
---
@@ -587,4 +573,3 @@ a, b= 0, 1
val, _ = quadgk(f, a, b)
numericq(val)
```

View File

@@ -15,15 +15,7 @@ using SymPy
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
using QuadGK
frontmatter = (
title = "Integration By Parts",
description = "Calculus with Julia: Integration By Parts",
tags = ["CalculusWithJulia", "integrals", "integration by parts"],
);
nothing
```
@@ -703,4 +695,3 @@ choices = [
answ = 1
radioq(choices, answ)
```

View File

@@ -12,18 +12,6 @@ using Plots
using QuadGK
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Mean value theorem for integrals",
description = "Calculus with Julia: Mean value theorem for integrals",
tags = ["CalculusWithJulia", "integrals", "mean value theorem for integrals"],
);
nothing
```
---
@@ -391,4 +379,3 @@ L"The exponential of the average of $\log(f)$"
answ = val1 > val2 ? 1 : 2
radioq(choices, answ)
```

View File

@@ -8,19 +8,6 @@ using CalculusWithJulia
using SymPy
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Partial Fractions",
description = "Calculus with Julia: Partial Fractions",
tags = ["CalculusWithJulia", "integrals", "partial fractions"],
);
nothing
```
---
@@ -537,4 +524,3 @@ choices = ["``-2b\\arctan((x - \\alpha)/(\\beta))``",
"``2b\\sec^2(-(x-\\alpha)/(-\\beta))``"]
radioq(choices, 1)
```

View File

@@ -13,18 +13,6 @@ using SymPy
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Substitution",
description = "Calculus with Julia: Substitution",
tags = ["CalculusWithJulia", "integrals", "substitution"],
);
nothing
```
---
@@ -864,4 +852,3 @@ L"We could differentiate $\log\lvert (\sec(u) + \tan(u))\rvert$ "]
answ = 2
radioq(choices, answ)
```

View File

@@ -13,20 +13,6 @@ using SymPy
using QuadGK
```
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
const frontmatter = (
title = "Surface Area",
description = "Calculus with Julia: Surface Area",
tags = ["CalculusWithJulia", "integrals", "surface area"],
);
fig_size=(800, 600)
nothing
```
---
@@ -585,4 +571,3 @@ a, b = 0, pi
val, _ = quadgk(t -> 2pi* f(t) * sqrt(g'(t)^2 + f'(t)^2), a, b)
numericq(val)
```

View File

@@ -18,15 +18,7 @@ using SymPy
```{julia}
#| echo: false
#| results: "hidden"
using CalculusWithJulia.WeaveSupport
import LinearAlgebra: norm
const frontmatter = (
title = "Volumes by slicing",
description = "Calculus with Julia: Volumes by slicing",
tags = ["CalculusWithJulia", "integrals", "volumes by slicing"],
);
nothing
```
@@ -848,4 +840,3 @@ rad(u) = sqrt((u*cos(theta) - xval(u))^2 + (u*sin(theta) - f(xval(u)))^2)
val, _ = quadgk(u -> pi*rad(u)^2, a, b)
numericq(val)
```