ApproxFun.jl
ApproxFun.jl copied to clipboard
Julia package for function approximation
After this, the following is type-inferred ```julia julia> x=Fun(Chebyshev(0..1)) Fun(Chebyshev(0..1),[0.5, 0.5]) julia> u1 = 0.5*one(x) Fun(Chebyshev(0..1),[0.5]) julia> u2 = 0.5*one(x) Fun(Chebyshev(0..1),[0.5]) julia> N_dep = (u1,u2) -> [ u1(0)*u1(0)*u1(0) - 0.125;...
This PR exports `∆` and `∑` as aliases of `Laplacian()` and `sum()`. Note that these symbols are entered by `\increment` and `\sum`, and different from `Δ` (`\Delta`) and `Σ` (`\Sigma`)...
Thank you for your incredible library! I'm using it to solve the wave equation but it runs a bit slow. So I'd like to restrict the number of coefficients used,...
The following function requires north of 2 million Chebyshev coefficients to represent: `Fun(x -> exp(-12(x + 4.9)^2), Chebyshev(-12..12))` This is in contrast to the function's "neighbors", see as follows: ```...
The following command produces an error ``` Fun(t->zeros(2,0),Fourier(0..pi)) ERROR: BoundsError: attempt to access 2×0 Matrix{ApproxFunBase.SumSpace{Tuple{CosSpace{PeriodicSegment{Float64}, Float64}, SinSpace{PeriodicSegment{Float64}, Float64}}, PeriodicSegment{Float64}, Float64}} at index [1] Stacktrace: [1] getindex @ .\array.jl:861 [inlined] [2]...
Hi @dlfivefifty Firstly, thanks for ApproxFun. :) !! I wanted to translate a Burger's equation solver from chebfun to ApproxFun. Could you point me to the equivalent of `spinop` in...
I would like to use Approxfun for creating custom distributions in Turing.jl but it seems that Approxfun is not compatible with ForwardDiff.Dual ``` using ForwardDiff, ApproxFun f = Fun(x->exp(ForwardDiff.Dual(x,1))) ```...
ApproxFun results in "InExact Error" whenever we try to construct a 2D complex-valued function in an ultraspherical or Legendre space. It works well in Chebyshev space. However, all spaces work...
`f(t) = sin(2*t)` is a periodic function with period `π` but it is equally a periodic function of period `kπ`, for any integer `k`. I was courious if this is...
I noticed that some examples in the documentation of ApproxFun.jl are not working in Julia 1.7.2. Some of the examples with Fourier returned FFTW cannot create plan in Julia 1.7.2....