Hi, I have the next problem: In the following code, I want the cosine´s value numerically but all I get is the code´s copy I have written, not a number.
cos = Plot[Cos[x], {x, 0, 2 Pi}];
With[{x = Dynamic[MousePosition["Graphics", {0, 0}][[1]]]},
Show[cos, Graphics[Locator[{x, Cos[x]}]]]]

Is there any way to obtain the cosine´s value in number form? I think the problem is Mathematica interprets the x coordinate like a position´s coordinate, not like a number.