Write the matlab statements to evaluate tan theta


The tangent function is defined as tan theta = sin theta/cos theta. This expression can be evaluated to solve for the tangent as long as the magnitude of cos theta is not too near to 0. (If cos theta is 0. evaluating the equation for tan theta will produce the nonnumerical value Inf.) Assume that theta is given in degrees, and write the MATLAB statements to evaluate tan theta as long as the magnitude of cos theta is greater than or equal to 10-20. If the magnitude of cos theta is less than 10-20, write out an error message instead.

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Write the matlab statements to evaluate tan theta
Reference No:- TGS0746614

Expected delivery within 24 Hours