I'm trying to evaluate this integral, but when I enter this code:
syms x;S= (6*(sin(x)^2)/(3*sin(x)+1));l= integral(S,0,pi)
it gives me the error message: Error using integral, first input argument must be a function handle.
I'm a beginner Matlab user, so the answer is probably pretty straightforward, but any help is appreciated, thanks in advance!
Best Answer