You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/more_julia/general_packages.md
+2-20Lines changed: 2 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,8 @@ Also see {doc}`data and statistical packages <../more_julia/data_statistical_pac
44
44
tags: [hide-output]
45
45
---
46
46
using LinearAlgebra, Statistics
47
-
using QuantEcon, QuadGK, FastGaussQuadrature, Distributions, Expectations
48
-
using Interpolations, Plots, LaTeXStrings, ProgressMeter
47
+
using QuadGK, FastGaussQuadrature, Distributions, Expectations
48
+
using Interpolations, Plots, ProgressMeter
49
49
```
50
50
51
51
## Numerical Integration
@@ -82,15 +82,6 @@ f(x) = x^2
82
82
83
83
The only problem with the `FastGaussQuadrature` package is that you will need to deal with affine transformations to the non-default domains yourself.
84
84
85
-
Alternatively, `QuantEcon.jl` has routines for Gaussian quadrature that translate the domains.
86
-
87
-
```{code-cell} julia
88
-
using QuantEcon
89
-
90
-
x, w = qnwlege(65, -2π, 2π);
91
-
@show w ⋅ cos.(x); # i.e. on [-2π, 2π] domain
92
-
```
93
-
94
85
### Expectations
95
86
96
87
If the calculations of the numerical integral is simply for calculating mathematical expectations of a particular distribution, then [Expectations.jl](https://github.com/QuantEcon/Expectations.jl) provides a convenient interface.
@@ -213,15 +204,6 @@ See [here](https://docs.julialang.org/en/v1/stdlib/LinearAlgebra/) for further d
213
204
214
205
## General Tools
215
206
216
-
### LaTeXStrings.jl
217
-
218
-
When you need to properly escape latex code (e.g. for equation labels), use [LaTeXStrings.jl](https://github.com/stevengj/LaTeXStrings.jl).
219
-
220
-
```{code-cell} julia
221
-
using LaTeXStrings
222
-
L"an equation: $1 + \alpha^2$"
223
-
```
224
-
225
207
### ProgressMeter.jl
226
208
227
209
For long-running operations, you can use the [ProgressMeter.jl](https://github.com/timholy/ProgressMeter.jl) package.
0 commit comments