In: Advanced Math
Use your graphing calculator to find the solutions to the following equation for
0° ≤ θ < 360°
by defining the left side and right side of the equation as functions and then finding the intersection points of their graphs. Make sure your calculator is set to degree mode. (Round your answers to one decimal place. Enter your answers as a comma-separated list. If there is no solution, enter NO SOLUTION.)
3 sin2 θ + 1 = 5 sin θ
%%Matlab code for finding intersection point
clear all
close all
%all functions
f1=@(thta) 3.*(sin(2*thta))+1;
f2=@(thta) 5.*sin(thta);
%all theta values
tht=linspace(0,360,1001);
%theta in radian
tht_rad=deg2rad(tht);
hold on
plot(tht,f1(tht_rad))
plot(tht,f2(tht_rad))
xlabel('theta')
ylabel('f(theta)')
title('theta vs function plot')
legend('3*sin(2*theta)+1','5*sin(theta)')
box on; grid on
fprintf('Intersection occured at theta=51.84 and theta=175')
%%%%%%%%%%% end of code %%%%%%%%%%%