Im trying to use the integral function without any success...
3 views (last 30 days)
Im trying to use integral to solve the following equation with the bounds from 1 to 4.
I managed to write this as (exp(-(t/3)).* sin(t^2)).
When i enter this in matlab as:
I get the following output :
While my calculator gives me the following???
What am i not getting right here??
Walter Roberson on 6 Oct 2022
In the symbolic toolbox, int() and solve() attempt to give indefinitely precise closed-form solutions. If int() is not able to find a closed form solution then it returns the integral unevaluated. If you want numeric results, use vpaintegral() or vpasolve() respectively, or vpa() the result of the int() call, or double() the result of the int() call
format long g
f = (exp(-(t/3)).* sin(t^2))
d = int(f, t, 1, 4)
vpaintegral(f, t, 1, 4)