Comments (4)
From some of the crazy values for the exponents that we see in the output above, it looks to me like this is another symptom of the same, more general problems we've been having with the singularity detector. If we allow only poles instead of arbitrary singularities or specify the exponents manually everything works just fine:
>> G = chebfun(@gamma, [-4 4], 'blowup', 1, 'splitting', 'on')
G =
chebfun column (5 smooth pieces)
interval length endpoint values endpoint exponents
[ -4, -3] 37 Inf Inf [-1 -1]
[ -3, -2] 21 -Inf -Inf [-1 -1]
[ -2, -1] 20 Inf Inf [-1 -1]
[ -1,2.2e-308] 19 -Inf -Inf [-1 -1]
[2.2e-308, 4] 32 Inf 6 [-1 0]
Epslevel = 2.350567e-14. Vscale = 1.200000e+01. Total length = 129.
>> G = chebfun(@gamma, [-4 -3 -2 -1 0 4], 'exps', [-1 -1 -1 -1 -1 -1 -1 -1 -1 0])
G =
chebfun column (5 smooth pieces)
interval length endpoint values endpoint exponents
[ -4, -3] 30 Inf Inf [-1 -1]
[ -3, -2] 29 -Inf -Inf [-1 -1]
[ -2, -1] 24 Inf Inf [-1 -1]
[ -1, 0] 27 -Inf -Inf [-1 -1]
[ 0, 4] 35 Inf 6 [-1 0]
Epslevel = 8.881784e-16. Vscale = 1.200000e+01. Total length = 145.
from chebfun.
Does this suggest we should make "'blowup', 1" be the default setting for 'on'. I believe this was the case for V4.
from chebfun.
Even if it weren't the case for v4, I think I'd suggest that we do that anyway. Sadly, detection of fractional-order singularities is just too fragile right now to be trusted...
from chebfun.
I think the problem has been fixed as 'blowup' 1 has been the default for 'on' (introduced by the merge of feature-singfun-misc). As AA tried, gamma is now OK.
>> gam = chebfun('gamma(x)',[-4 4],'blowup','on','splitting','on')
gam =
chebfun column (5 smooth pieces)
interval length endpoint values endpoint exponents
[ -4, -3] 37 Inf Inf [-1 -1]
[ -3, -2] 21 -Inf -Inf [-1 -1]
[ -2, -1] 20 Inf Inf [-1 -1]
[ -1,2.2e-308] 19 -Inf -Inf [-1 -1]
[2.2e-308, 4] 32 Inf 6 [-1 0]
Epslevel = 2.350567e-14. Vscale = 1.200000e+01. Total length = 129.
from chebfun.
Related Issues (20)
- Chebfun2 mtimes bug
- Minor typo in chebop documentation HOT 1
- Newton method in hermpts_rec can be improved
- Implementation of Fourier derivatives (inconsistency between "Spectral Methods in MATLAB" and chebfun) HOT 1
- bug in minimax
- trigcoeffs does not respect domain HOT 2
- Spin with non-constant coefficients HOT 1
- Overheads in piecewise construction
- I am getting this error Non-integer difference in the exponents of the two SINGFUN objects HOT 1
- More efficient representation of trigonometric series possible? HOT 2
- bug in minimax HOT 1
- Diskfun PhaseTwo constructor fails to resolve f(t, r) = r in default maxLength HOT 12
- AAA may return incorrect final error HOT 2
- How to add forcing terms in spin? HOT 1
- spin produces wrong results when solve diffusion-reaction equations HOT 3
- A chebfun3 function failed to pass the vectorCheck() of chebfun2 HOT 3
- chebpoly(1e5) fails HOT 1
- The constructor chebfun3() cannot handle a chebfun3 function as an input in parfor loops.
- 2D mixed derivative in Gray-Scott example throwing error HOT 1
- chebfun.org expired? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chebfun.