If O is an angle in standard position and its terminal side passes through the point(-7,24), find the exact value of cos 0 in simplest radical form.