Skip to content

Commit 5ef5b6f

Browse files
authored
Merge pull request #54 from QuantEcon/general-packages-cleanup
Cleaned up some examples in the general_packages
2 parents d72b8c1 + a73a64a commit 5ef5b6f

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

lectures/more_julia/general_packages.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Also see {doc}`data and statistical packages <../more_julia/data_statistical_pac
4444
tags: [hide-output]
4545
---
4646
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
4949
```
5050

5151
## Numerical Integration
@@ -82,15 +82,6 @@ f(x) = x^2
8282

8383
The only problem with the `FastGaussQuadrature` package is that you will need to deal with affine transformations to the non-default domains yourself.
8484

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-
9485
### Expectations
9586

9687
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
213204

214205
## General Tools
215206

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-
225207
### ProgressMeter.jl
226208

227209
For long-running operations, you can use the [ProgressMeter.jl](https://github.com/timholy/ProgressMeter.jl) package.

0 commit comments

Comments
 (0)