Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"]
14 changes: 7 additions & 7 deletions src/Extras/poetry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#####


export chebyshevt, chebyshevu, legendre, ∫, ⨜, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟
export chebyshevt, chebyshevu, legendre, ∫, ⨜, ∑, ⨍, ChebyshevWeight, 𝕀, 𝕌, 𝒟, ∆

## Chebyshev & Legendre polynomials

Expand Down Expand Up @@ -32,7 +32,7 @@ ChebyshevWeight()=ChebyshevWeight(0)
∫(f::Fun)=integrate(f)
⨜(f::Fun)=cumsum(f)

for OP in (:Σ,:∮,:⨍,:⨎)
for OP in (:,:∮,:⨍,:⨎) # ∑ entered by \sum<tab>, not \Sigma<tab>
@eval $OP(f::Fun)=sum(f)
end

Expand All @@ -43,9 +43,9 @@ cross(∇::Function,F::Vector{M}) where {M<:MultivariateFun} = curl(F)

## Domains

const 𝕀 = ChebyshevInterval()
const ℝ = Line()
const 𝕌 = Circle()
const 𝕀 = ChebyshevInterval() # \bbI<tab>
const ℝ = Line() # \bbR<tab>
const 𝕌 = Circle() # \bbU<tab>

𝒟 = Derivative()
Δ = Laplacian()
𝒟 = Derivative() # \scrD<tab>
= Laplacian() # \increment<tab>, not \Delta<tab>
6 changes: 6 additions & 0 deletions test/ExtrasTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion test/NumberTypeTest.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApproxFun, ApproxFunOrthogonalPolynomials, Test
using ApproxFun, Test

@testset "BigFloat" begin
@testset "BigFloat constructor" begin
Expand Down