Help computing definite integral

Here is my code
syms x
fun= (1+.5.*x.^3-x.^2).^(1/4)
Q=int(fun,0,3)
When I execute the code, it doesn't solve the integral numerically, it just shows the function with the integral and the bounds 0 to 3. Any help with this is appreciated. It seems as if it is only an issue with how the output is being formatted. I am using the 2017 version of Matlab I believe. Thanks in advance.

 Respuesta aceptada

Roger Stafford
Roger Stafford el 5 de Dic. de 2017

0 votos

It is quite possible that Matlab is unable to solve that integral symbolically. I don't think I know its solution. If not, you will have to evaluate it numerically using the 'integral' function rather than 'int'.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Dic. de 2017

Respondida:

el 5 de Dic. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by