Question: USE MATLAB CODE AND END WITH RESULT CHECK Compute the integral of f = s i n ( x 3 ) between 0 and 3

USE MATLAB CODE AND END WITH RESULT "CHECK"
Compute the integral of f=sin(x3) between 0 and 3 using the integral function.
Assign your result to S1.
Compute the integral of f=cos(x3) between 0 and 3 using the integral function.
Assign your result to S2.
Is S1 smaller than S2? Check, using an appropriate relational operator. Assign the result
of the comparison to a variable named check.|
Script o.
f1=@(x)sin(x*??2);
f2=(x)sin(x*??3);
S1= integral (f1,0,3);
S2= integral (f2,0,3);
disp(S1);
disp(S2) ;
if S1
"S1is smaller than S2";
else
"S1is larger than S2";
end
 USE MATLAB CODE AND END WITH RESULT "CHECK" Compute the integral

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!