write a matlab function that computes y1 tanx and


Write a Matlab function that computes y1= tan(x) and y2= sin(x)/cos(x), returns the difference |y1-y2| and prints a message whether the two are equal or not. Test your function for x = {?/2, ?/6} and discuss the results. How could one better compare floating-point numbers?

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: write a matlab function that computes y1 tanx and
Reference No:- TGS0393594

Expected delivery within 24 Hours