use quarto, not Pluto to render pages

This commit is contained in:
jverzani
2022-07-24 16:38:24 -04:00
parent 93c993206a
commit 7b37ca828c
879 changed files with 793311 additions and 2678 deletions

View File

@@ -4,7 +4,7 @@
```julia; echo=false; results="hidden"
using CalculusWithJulia
using CalculusWithJulia.WeaveSupport
const frontmatter = (
frontmatter = (
title = "Ranges and Sets",
description = "Calculus with Julia: Ranges and Sets",
tags = ["CalculusWithJulia", "precalc", "ranges and sets"],
@@ -155,7 +155,7 @@ collected to realize the values.
The number of points is specified with keyword arguments, as in:
```julia;
xs = range(-1, 1, length=9) # or simply range(-1, 1, 9)
xs = range(-1, 1, length=9) # or simply range(-1, 1, 9) as of v"1.7"
```
and
@@ -164,11 +164,9 @@ and
collect(xs)
```
```julia;echo=false
note("""
There is also the `LinRange(a, b, n)` function which can be more performant than `range`, as it doesn't try to correct for floating point errors.
""")
```
!!! note
There is also the `LinRange(a, b, n)` function which can be more performant than `range`, as it doesn't try to correct for floating point errors.
## Modifying sequences
@@ -466,8 +464,8 @@ q"1:99",
q"1:3:99",
q"1:2:99"
]
ans = 3
radioq(choices, ans)
answ = 3
radioq(choices, answ)
```
@@ -477,8 +475,8 @@ Which of these will create the sequence $2, 9, 16, 23, \dots, 72$?
```julia; hold=true;echo=false;
choices = [q"2:7:72", q"2:9:72", q"2:72", q"72:-7:2"]
ans = 1
radioq(choices, ans)
answ = 1
radioq(choices, answ)
```
@@ -502,8 +500,8 @@ choices = [
"`1:-1:10`",
"`1:10`"
]
ans = 1
radioq(choices, ans)
answ = 1
radioq(choices, answ)
```
###### Question
@@ -538,8 +536,8 @@ choices = ["It is just random",
"Addition happens prior to the use of `:` so this is like `1:(4+2):5`",
"It gives the correct answer, a generator for the vector `[3,5,7,9]`"
]
ans = 2
radioq(choices, ans)
answ = 2
radioq(choices, answ)
```
###### Question
@@ -548,8 +546,8 @@ How is `a:b-1` interpreted:
```julia; hold=true;echo=false;
choices = ["as `a:(b-1)`", "as `(a:b) - 1`, which is `(a-1):(b-1)`"]
ans = 1
radioq(choices, ans)
answ = 1
radioq(choices, answ)
```
###### Question
@@ -558,8 +556,8 @@ Create the sequence $10, 100, 1000, \dots, 1,000,000$ using a list comprehension
```julia; hold=true;echo=false;
choices = [q"[10^i for i in 1:6]", q"[10^i for i in [10, 100, 1000]]", q"[i^10 for i in [1:6]]"]
ans = 1
radioq(choices, ans)
answ = 1
radioq(choices, answ)
```
###### Question
@@ -571,8 +569,8 @@ choices = [
q"[10^-i for i in 1:7]",
q"[(1/10)^i for i in 1:7]",
q"[i^(1/10) for i in 1:7]"]
ans = 2
radioq(choices, ans)
answ = 2
radioq(choices, answ)
```
###### Question
@@ -581,8 +579,8 @@ Evaluate the expression $x^3 - 2x + 3$ for each of the values $-5, -4, \dots, 4,
```julia; hold=true;echo=false;
choices = [q"[x^3 - 2x + 3 for i in -5:5]", q"[x^3 - 2x + 3 for x in -(5:5)]", q"[x^3 - 2x + 3 for x in -5:5]"]
ans = 3
radioq(choices, ans)
answ = 3
radioq(choices, answ)
```
###### Question