Fixed constant and reversed calculations of sin and cos