Function operationTan changed to void