From 072dd7451ab2ff98afaefbf74be68c904bd8fb0f Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 09:57:02 -0500 Subject: [PATCH 1/7] Define \increment as alias of Laplacian() and export it For \increment vs. \Delta, see the discussion at https://tex.stackexchange.com/questions/76553/correct-symbol-for-the-laplace-operator-delta. --- src/Extras/poetry.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extras/poetry.jl b/src/Extras/poetry.jl index 8f22cdcb0..d352068f0 100644 --- a/src/Extras/poetry.jl +++ b/src/Extras/poetry.jl @@ -3,7 +3,7 @@ ##### -export chebyshevt, chebyshevu, legendre, ∫, ⨜, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟 +export chebyshevt, chebyshevu, legendre, ∫, ⨜, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟, ∆ ## Chebyshev & Legendre polynomials @@ -48,4 +48,4 @@ const ℝ = Line() const 𝕌 = Circle() 𝒟 = Derivative() -Δ = Laplacian() +∆ = Laplacian() From 3635585a70680c5c3833e038b09b2db6ab60aa74 Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 11:01:23 -0500 Subject: [PATCH 2/7] Describe in comment how to enter exported unicode symbols --- src/Extras/poetry.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Extras/poetry.jl b/src/Extras/poetry.jl index d352068f0..cfc507185 100644 --- a/src/Extras/poetry.jl +++ b/src/Extras/poetry.jl @@ -43,9 +43,9 @@ cross(∇::Function,F::Vector{M}) where {M<:MultivariateFun} = curl(F) ## Domains -const 𝕀 = ChebyshevInterval() -const ℝ = Line() -const 𝕌 = Circle() +const 𝕀 = ChebyshevInterval() # \bbI +const ℝ = Line() # \bbR +const 𝕌 = Circle() # \bbU -𝒟 = Derivative() -∆ = Laplacian() +𝒟 = Derivative() # \scrD +∆ = Laplacian() # \increment, not \Delta From da7c8abfc4ca34aa0485c7dcc46f095ebe836c08 Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 11:06:33 -0500 Subject: [PATCH 3/7] =?UTF-8?q?Export=20=E2=88=91=20(\sum)=20as=20alias=20?= =?UTF-8?q?for=20sum()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extras/poetry.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extras/poetry.jl b/src/Extras/poetry.jl index cfc507185..b9a4a4349 100644 --- a/src/Extras/poetry.jl +++ b/src/Extras/poetry.jl @@ -3,7 +3,7 @@ ##### -export chebyshevt, chebyshevu, legendre, ∫, ⨜, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟, ∆ +export chebyshevt, chebyshevu, legendre, ∫, ⨜, ∑, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟, ∆ ## Chebyshev & Legendre polynomials @@ -32,7 +32,7 @@ ChebyshevWeight()=ChebyshevWeight(0) ∫(f::Fun)=integrate(f) ⨜(f::Fun)=cumsum(f) -for OP in (:Σ,:∮,:⨍,:⨎) +for OP in (:∑,:∮,:⨍,:⨎) # ∑ entered by \sum, not \Sigma @eval $OP(f::Fun)=sum(f) end From cb2977f78e632f1649671e05c9e985bbe0ee2efb Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 11:42:06 -0500 Subject: [PATCH 4/7] Add unit tests for exported symbols --- test/ExtrasTest.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/ExtrasTest.jl b/test/ExtrasTest.jl index 1f09a0727..c4cc1caf9 100644 --- a/test/ExtrasTest.jl +++ b/test/ExtrasTest.jl @@ -2,6 +2,12 @@ using ApproxFun, Test, DualNumbers import ApproxFun: eigs @testset "Extras" begin + @testset "Exported symbols" begin + f = Fun() + @test ∑(f)==sum(f)==0 + @test ∆ == Laplacian() + end + @testset "Dual numbers" begin @test dual(1.5,1) ∈ Segment(dual(1.0,1),dual(2.0)) From 75b3a4a39d297c57871950bffd98d8420052d177 Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 11:43:06 -0500 Subject: [PATCH 5/7] Add packages in [extras] to make tests succeed --- Project.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 00c1b6a58..95e8a3894 100644 --- a/Project.toml +++ b/Project.toml @@ -35,8 +35,10 @@ SpecialFunctions = "1.1, 2" julia = "1.6" [extras] +DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "Random"] +test = ["DualNumbers", "Random", "SpecialFunctions", "Test"] From fa34125d86757ee22783ba6030da1462d4f95c0d Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Thu, 20 Jan 2022 11:43:54 -0500 Subject: [PATCH 6/7] Do not import ApproxFunOrthogonalPolynomials for tests It is already re-exported from ApproxFun by @reexport. --- test/NumberTypeTest.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/NumberTypeTest.jl b/test/NumberTypeTest.jl index 0eb494308..b8e841ccb 100644 --- a/test/NumberTypeTest.jl +++ b/test/NumberTypeTest.jl @@ -1,4 +1,4 @@ -using ApproxFun, ApproxFunOrthogonalPolynomials, Test +using ApproxFun, Test @testset "BigFloat" begin @testset "BigFloat constructor" begin From 2561b303a7f908da7829f5a713c834eb5b36c6ec Mon Sep 17 00:00:00 2001 From: Wonseok Shin Date: Fri, 21 Jan 2022 12:21:15 -0500 Subject: [PATCH 7/7] Bump up minor version number --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 95e8a3894..e74a76c24 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ApproxFun" uuid = "28f2ccd6-bb30-5033-b560-165f7b14dc2f" -version = "0.13" +version = "0.13.1" [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"