*Hi evry body :)
can U help me to answer qustion num(c)? I don't Know how can i answer it :( PlZz help me =,(*
(a) Write an m-file named cosmx.m (“COS Minus X”) that defines the function:
(x) = cos x - x
Recall that a function m-file is one that starts with the word function. In this case it should start off as
function y = cosmx ( x )
y = ???
(This is very simple(the object of this exercise is to get going.)
(b) Now use your cosmx function to compute cosmx(1). Your result should be about -0.4597.
(c) Now use your cosmx function in the same plot sequence as above to plot cosmx and the horizontal axis on the interval -π < x < π. Hint: The horizontal axis is the line y = 0.