Assume that theta is given in degrees and write the matlab


The tangent function is defined as tan (theta)= sin(theta)/cos(theta). This expression can be evaluate to solve for the tangent as long as the magnitude of cos(theta) is no too near to 0. (If cos(theta) is 0, evaluating the equation for tan(theta) will produce the no numerical 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 grater 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!!
Civil Engineering: Assume that theta is given in degrees and write the matlab
Reference No:- TGS0656038

Expected delivery within 24 Hours