Skip to main content

Is there any particular reason to only include 3 out of the 6 trigonomotrytrigonometry functions?

Became Hot Network Question
Source Link
CPlus
  • 10.5k
  • 3
  • 38
  • 106

Is there any particular reason to only include 3 out of the 6 trigonomotry functions?

Most languages seem to only have sin cos and tan. While the other 3 are just 1/cos 1/sin and 1/tan, is there any way that supporting the other 3 directly could be faster than calculating one and then performing a division? Are there any other reasons beyond the triviality of deriving the other csc sec and cot from the existing sin cos and tan to exclude them?