Symbolic math integrals not solving at all
47 vues (au cours des 30 derniers jours)
Hi all, I am playing around with functions and the symbolic math toolbox.
I want to calculate an integral of a difficult function:
syms t t0 tau x;
It can not integrate p directly, which is not that difficult, wolfram alpha does is. But anyhow, I'll help a little and do the substitution:
But it still just comes up with nothing. It just puts out a formated version of my input instead of calculating the integral.
The answer should be
Did I use the toolbox wrong or is it just not that powerfull?
Tanmay Das le 29 Juil 2021
Your function has no obvious closed form integral. You need to switch to numeric integration, such as with integral() or vpaintegral() which will require you to have a numeric value for x. Similar question has already been answered here:
My int function is returning the function back instead of an integral - MATLAB Answers - MATLAB Central (mathworks.com)
Also, the same is mentioned in the Tips Section of the int documentation:
You can go through the documentations on integral and vpaintegral to try integrate the same function: