Explicit integral could not be found

前端 未结 1 1870
花落未央
花落未央 2021-01-07 03:43

I am getting a well-known error of \"Explicit integral could not be found\" if I try to evaluate following integral

         


        
相关标签:
1条回答
  • 2021-01-07 03:59

    Try variable-precision arithmetic, vpa:

    syms z; 
    funz=1./(1+exp((z*z-0.5)/0.1));
    
    Integ2=int(funz,z,0,inf)
    Warning: Explicit integral could not be found. 
    
    Integ2 =
    int(1/(exp(10*z^2 - 5) + 1), z = 0..Inf)
    
    vpa(Integ2,5)  % 5 is the number of significant digits
    ans =     
    0.69305
    

    See the last example in the documentation, "Approximate Definite Integrals". Quote:

    If int cannot compute a closed form of a definite integral, try approximating that integral numerically using vpa.

    0 讨论(0)
提交回复
热议问题