Skip to content

Commit c207037

Browse files
authored
Merge pull request #27 from QuantEcon/fixedpoint-default-fix
Fix default value for anderson
2 parents b5088a3 + bcfea0d commit c207037

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ jobs:
2828
uses: julia-actions/setup-julia@v1
2929
with:
3030
version: 1.6.0
31-
- name: Install IJulia and Setup Project
31+
- name: Install IJulia
3232
shell: bash -l {0}
3333
run: |
3434
julia -e 'using Pkg; Pkg.add("IJulia");'
35-
julia --project --threads auto -e 'using Pkg; Pkg.instantiate();'
35+
- name: Installing all the packages
36+
shell: bash -l {0}
37+
run: |
38+
julia --project=lectures --threads auto -e 'using Pkg; Pkg.instantiate();'
3639
# Download Jupyter Book Cache
3740
- name: Download "build" folder (cache)
3841
uses: dawidd6/action-download-artifact@v2

lectures/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logo: _static/qe-logo-large.png
44
description: This website presents a set of lectures on quantitative economic modeling, designed and written by Jesse Perla, Thomas J. Sargent and John Stachurski. The language instruction is Julia.
55

66
execute:
7-
execute_notebooks: "cache"
7+
execute_notebooks: "auto"
88
timeout: 600
99

1010
bibtex_bibfiles:

lectures/getting_started_julia/julia_by_example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ using NLsolve
661661
p = 1.0
662662
β = 0.9
663663
f(v) = p .+ β * v # broadcast the +
664-
sol = fixedpoint(f, [0.8])
664+
sol = fixedpoint(f, [0.8]; m = 0)
665665
println("Fixed point = $(sol.zero), and |f(x) - x| = $(norm(f(sol.zero) - sol.zero)) in " *
666666
"$(sol.iterations) iterations")
667667
```

0 commit comments

Comments
 (0)