sincos()
is just a way to compute sin()
and cos()
at once, possibly at improved performance compared to separate calls to sin()
and cos()
. However, many languages, notably C, lack this feature in the standard library. I do not see how this could be hard to implement, as the compiler could just emit separate calls to sin()
and cos()
if no facilities to compute them simultaneously is available.
Are there any disadvantages to adding sincos()
to a standard library of a language, particularly one that already has sin
and cos
?