Update variables.qmd

This commit is contained in:
Andrew Lin authored and GitHub committed 2022-08-16 19:40:20 -07:00
1 parent 88d334c281
commit 42ee3d0367
1 file changed
+2 -2
+2 -2
View File
@@ -217,7 +217,7 @@ Julia allows variable names to use Unicode identifiers. Such names allow `julia`
ϵ = 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:
@@ -318,7 +318,7 @@ Let `x = 4`. Compute $y=100 - 2x - x^2$. What is the value:
#| hold: true
#| echo: false
x = 4
y =- 100 - 2x - x^2
y = 100 - 2x - x^2
numericq(y, 0.1)
```