Create a function that will compute tan(x) and return the re…
Create a function that will compute tan(x) and return the result to command window. The value ‘x’ should be the first argument of your function which is angle in degree. The value ‘i’ should be the second argument of your function which will be the last integer value for n. For the computation, do not use sin(), cos(), or tan() function in Matlab!! (You will get an automatic zero if you use sin() , cos(), or tan() functions. sind(), cosd(), and tand() are not allowed as well! ) FEEL FREE TO USE ^ for power and factorial () for FACTORIAL n=0,1,2,3,4,, … (Use 50 for upper bound of n ..)
Read Details