octavenumerical-integrationoctave-gui

indefinite integral in octave


I am trying to integrate x^3/(exp(x)-1) in the limit 0 to infinity with respect to x,and it should answer pi^4/15 but it instead of this ocatve is printing original integral in symbolic form. How to resolve this issue? I tried same integral on MATLAB mobile and it is giving correct pi^4/15


Solution

  • First of all:

    pi^4 / 15 = 6.4939
    

    I tried the below code in octave online

    fun = @(x) (x.^3)./(exp(x)-1); 
    q = integral(fun, 0, Inf)
    

    The answer is:

    q = 6.4939