結果 : how to differentiate sin and cos