sin != cos; apparently one copy/paste too much