Use Matlab plots to determine how many real-valued solutions sin 2x = x has.
Please upvote :)
clc;clear all
x=-10:0.01:10; %Taking x in range of -10 to 10
y1=x; %Value of y1
y2=sin(2*x);
plot(x,y1,'-r',x,y2,'-b','LineWidth',2) %Plots the curve sin
2x=x
xlabel('x');ylabel('y');legend('y=x','y=sin 2x') %Adds label and
legend
grid on
%Clearly the graph intersects at 3 points, so 3 solutions exist to
x=sin2x
Get Answers For Free
Most questions answered within 1 hours.