Question: I need help writing this MATLAB program, where t=theta: The tangent function is defined as than (t)=sin(t)/cos(t). This expression can be evaluated to solve for
I need help writing this MATLAB program, where t=theta:
The tangent function is defined as than (t)=sin(t)/cos(t). This expression can be evaluated to solve for the tangent as long as the magnitude of cos(t) is not too near to 0. (If cos u is 0, evaluating the equation for tan u will produce the non-numerical value Inf.) Assume that (t) is given in degrees, and write the MATLAB statements to evaluate tan(t) as long as the magnitude of cos(t) is greater than or equal to 10^-2. If the magnitude of cos(t) is less than 10^-2, write out an error message instead.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
