Skip to content

Commit 904ecba

Browse files
committed
Update examples
1 parent 47b7db8 commit 904ecba

10 files changed

+197
-487
lines changed
File renamed without changes.

Extras/ExamplesTest.jl

-10
This file was deleted.
File renamed without changes.

Manifest.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ version = "0.3.2"
66

77
[[ApproxFun]]
88
deps = ["AbstractFFTs", "BandedMatrices", "BlockArrays", "BlockBandedMatrices", "Calculus", "DSP", "DomainSets", "DualNumbers", "FFTW", "FastGaussQuadrature", "FastTransforms", "FillArrays", "InfiniteArrays", "IntervalSets", "LazyArrays", "LinearAlgebra", "LowRankApprox", "Random", "RecipesBase", "SparseArrays", "SpecialFunctions", "StaticArrays", "Statistics", "Test", "ToeplitzMatrices"]
9-
path = "/Users/solver/Projects/ApproxFun.jl"
9+
path = "/Users/sheehanolver/.julia/dev/ApproxFun"
1010
uuid = "28f2ccd6-bb30-5033-b560-165f7b14dc2f"
1111
version = "0.9.0+"
1212

1313
[[BandedMatrices]]
1414
deps = ["FillArrays", "LazyArrays", "LinearAlgebra", "Random", "SparseArrays", "Test"]
15-
git-tree-sha1 = "89f5c8110f784cacec900e996e81c1389ddd62a3"
15+
path = "/Users/sheehanolver/.julia/dev/BandedMatrices"
1616
uuid = "aae01518-5342-5314-be14-df237901396f"
17-
version = "0.7.0"
17+
version = "0.7.0+"
1818

1919
[[Base64]]
2020
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
@@ -181,9 +181,9 @@ version = "0.19.0"
181181

182182
[[LazyArrays]]
183183
deps = ["FillArrays", "LinearAlgebra", "StaticArrays", "Test"]
184-
git-tree-sha1 = "44fcd4f946a1e4cc302568eb6c7aba2bfc161911"
184+
path = "/Users/sheehanolver/.julia/dev/LazyArrays"
185185
uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02"
186-
version = "0.3.1"
186+
version = "0.3.1+"
187187

188188
[[LibGit2]]
189189
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"

ODEs/.ipynb_checkpoints/Floquet-checkpoint.ipynb

+47-235
Large diffs are not rendered by default.

ODEs/Floquet.ipynb

+55-231
Large diffs are not rendered by default.

PDEs/Linear KdV.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using ApproxFun
1+
using ApproxFun, Plots
22
import ApproxFun: factor, component
33

44
L = 1.0
55
T = 0.1
6-
d = Interval(0.,T) * Interval(0.,L)
6+
d = Interval(0.,T) × Interval(0.,L)
77
Dx = Derivative(d,[0,1])
88
Dt = Derivative(d,[1,0])
99

@@ -19,3 +19,4 @@ f0 = zeros(component(∂(d),1))
1919
g0 = zeros(component((d),3))
2020

2121
u = \([B;Dt + Dx^3] , [q0;f0;g0;0;0] ; tolerance=1E-5)
22+
surface(u)

PDEs/Manipulate ODEs and PDEs.ipynb

+75-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,82 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 3,
5+
"execution_count": 1,
66
"metadata": {
77
"scrolled": true
88
},
9-
"outputs": [],
9+
"outputs": [
10+
{
11+
"name": "stderr",
12+
"output_type": "stream",
13+
"text": [
14+
"┌ Info: Recompiling stale cache file /Users/sheehanolver/.julia/compiled/v1.0/Interact/XmYW4.ji for Interact [c601a237-2ae4-5e1e-952c-7a85b0c7eef1]\n",
15+
"└ @ Base loading.jl:1184\n"
16+
]
17+
},
18+
{
19+
"data": {
20+
"text/html": [
21+
" <script class='js-collapse-script'>\n",
22+
" var curMatch =\n",
23+
" window.location.href\n",
24+
" .match(/(.*?)\\/notebooks\\/.*\\.ipynb/);\n",
25+
"\n",
26+
" curMatch = curMatch ||\n",
27+
" window.location.href\n",
28+
" .match(/(.*?)\\/apps\\/.*\\.ipynb/);\n",
29+
"\n",
30+
" if ( curMatch ) {\n",
31+
" $('head').append('<base href=\"' + curMatch[1] + '/\">');\n",
32+
" }\n",
33+
" </script>\n"
34+
],
35+
"text/plain": [
36+
"HTML{String}(\" <script class='js-collapse-script'>\\n var curMatch =\\n window.location.href\\n .match(/(.*?)\\\\/notebooks\\\\/.*\\\\.ipynb/);\\n\\n curMatch = curMatch ||\\n window.location.href\\n .match(/(.*?)\\\\/apps\\\\/.*\\\\.ipynb/);\\n\\n if ( curMatch ) {\\n \\$('head').append('<base href=\\\"' + curMatch[1] + '/\\\">');\\n }\\n </script>\\n\")"
37+
]
38+
},
39+
"metadata": {},
40+
"output_type": "display_data"
41+
},
42+
{
43+
"data": {
44+
"text/html": [
45+
"<script class='js-collapse-script' src='/assetserver/4cff54dacccee3fe51908ca997cbe504489cab61-assets/webio/dist/bundle.js'></script>"
46+
],
47+
"text/plain": [
48+
"HTML{String}(\"<script class='js-collapse-script' src='/assetserver/4cff54dacccee3fe51908ca997cbe504489cab61-assets/webio/dist/bundle.js'></script>\")"
49+
]
50+
},
51+
"metadata": {},
52+
"output_type": "display_data"
53+
},
54+
{
55+
"data": {
56+
"text/html": [
57+
"<script class='js-collapse-script' src='/assetserver/4cff54dacccee3fe51908ca997cbe504489cab61-assets/providers/ijulia_setup.js'></script>"
58+
],
59+
"text/plain": [
60+
"HTML{String}(\"<script class='js-collapse-script' src='/assetserver/4cff54dacccee3fe51908ca997cbe504489cab61-assets/providers/ijulia_setup.js'></script>\")"
61+
]
62+
},
63+
"metadata": {},
64+
"output_type": "display_data"
65+
},
66+
{
67+
"data": {
68+
"text/html": [
69+
" <script class='js-collapse-script'>\n",
70+
" $('.js-collapse-script').parent('.output_subarea').css('padding', '0');\n",
71+
" </script>\n"
72+
],
73+
"text/plain": [
74+
"HTML{String}(\" <script class='js-collapse-script'>\\n \\$('.js-collapse-script').parent('.output_subarea').css('padding', '0');\\n </script>\\n\")"
75+
]
76+
},
77+
"metadata": {},
78+
"output_type": "display_data"
79+
}
80+
],
1081
"source": [
1182
"using Plots, ApproxFun, Interact, LinearAlgebra\n",
1283
"gr() # Also works with plotly();"
@@ -2088,15 +2159,15 @@
20882159
"metadata": {
20892160
"anaconda-cloud": {},
20902161
"kernelspec": {
2091-
"display_name": "Julia 1.0.1",
2162+
"display_name": "Julia 1.0.0",
20922163
"language": "julia",
20932164
"name": "julia-1.0"
20942165
},
20952166
"language_info": {
20962167
"file_extension": ".jl",
20972168
"mimetype": "application/julia",
20982169
"name": "julia",
2099-
"version": "1.0.1"
2170+
"version": "1.0.0"
21002171
},
21012172
"widgets": {
21022173
"state": {

Project.toml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ version = "0.1.0"
55

66
[deps]
77
ApproxFun = "28f2ccd6-bb30-5033-b560-165f7b14dc2f"
8+
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
89
BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0"
10+
LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
911
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1012
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

test/runtests.jl

+10
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ include("../ODEs/Newton iteration for nonlinear BVPs.jl")
88
include("../ODEs/Picard iteration.jl")
99
include("../ODEs/Quantum states.jl")
1010
include("../ODEs/Tenth order ODE.jl")
11+
12+
include("../PDEs/Linear KdV.jl")
13+
14+
include("../Sampling/2D Cauchy Distribution.jl")
15+
include("../Sampling/GUE Sampling.jl")
16+
17+
include("../Extras/Delay Equation.jl")
18+
include("../Extras/Dual Numbers.jl")
19+
include("../Extras/Lanczos.jl")
20+
include("../Extras/Maual 3D interpolation.jl")

0 commit comments

Comments
 (0)