can i use 'integral' for an analytic integration in case definite integral compare with using 'int'? because when using 'int ' taken time to implement a program.
please,help me, i would like to know about
- error between them ,
- is there an equivalent code for 'int' and
- is 'quad' or ' integral' sufficient. What do you advise me to avoid the accumulated error where it is used several times in the same code?
- Can i Implement ' int' to evaluate int(cos(pi*x).^n,x) , n>=1, by matlab.
This is my code.
>> syms x n>> int(cos(pi*x).^n,x, -10,10)
- This is what I'm getting by MATLAB 2013 a
Warning: Explicit integral could not be found. ans =int(cos(pi*x)^n, x == -10..10)
Best Answer