Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions