On a scientific calculator, first divide 1 by 7, then press the 2nd key and COS. Do this in the reverse order for a graphing calculator.