GithubHelp home page GithubHelp logo

Comments (4)

aaustin141 avatar aaustin141 commented on June 4, 2024

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.

nickhale avatar nickhale commented on June 4, 2024

Does this suggest we should make "'blowup', 1" be the default setting for 'on'. I believe this was the case for V4.

from chebfun.

aaustin141 avatar aaustin141 commented on June 4, 2024

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.

kuanxu avatar kuanxu commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.