Quantcast
Channel: User CPlus - Programming Language Design and Implementation Stack Exchange
Viewing all articles
Browse latest Browse all 65

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

$
0
0

Most languages seem to only have sincos and tan. While the other 3 are just 1/cos1/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 cscsec and cot from the existing sincos and tan to exclude them?


Viewing all articles
Browse latest Browse all 65

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>