Update variables.qmd
This commit is contained in:
@@ -217,7 +217,7 @@ Julia allows variable names to use Unicode identifiers. Such names allow `julia`
|
|||||||
ϵ = 1e-10
|
ϵ = 1e-10
|
||||||
```
|
```
|
||||||
|
|
||||||
Entering Unicode names follows the pattern of "slash" + LaTeX name + `[tab]` key. Some other ones that are useful are `\delta[tab]`, `\alpha[tab]`, and `\beta[tab]`, though there are [hundreds](https://github.com/JuliaLang/julia/blob/master/stdlib/REPL/src/latex_symbols.jl) of other values defined.
|
Entering Unicode names follows the pattern of "backslash" + LaTeX name + `[tab]` key. Some other ones that are useful are `\delta[tab]`, `\alpha[tab]`, and `\beta[tab]`, though there are [hundreds](https://github.com/JuliaLang/julia/blob/master/stdlib/REPL/src/latex_symbols.jl) of other values defined.
|
||||||
|
|
||||||
|
|
||||||
For example, we could have defined `theta` (`\theta[tab]`) and `v0` (`v\_0[tab]`) using Unicode to make them match more closely the typeset math:
|
For example, we could have defined `theta` (`\theta[tab]`) and `v0` (`v\_0[tab]`) using Unicode to make them match more closely the typeset math:
|
||||||
@@ -318,7 +318,7 @@ Let `x = 4`. Compute $y=100 - 2x - x^2$. What is the value:
|
|||||||
#| hold: true
|
#| hold: true
|
||||||
#| echo: false
|
#| echo: false
|
||||||
x = 4
|
x = 4
|
||||||
y =- 100 - 2x - x^2
|
y = 100 - 2x - x^2
|
||||||
numericq(y, 0.1)
|
numericq(y, 0.1)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user