Aspects


vs


Cos

Cos is short for cosine, mathematical trigonometric function of an angle

Sin

Sin is short for sine, mathematical trigonometric function of an angle

Performance std slower

Quality Example
Slower

"After reading a question related with the performance of sin cos why is std sin and std cos slower than sin and cos"

from question "Why sin/cos are slower when optimizations are enabled?"

Faster

"Or maybe flip them on my machine sin seems faster than cos"

from question "Tips for optimising code in Cython"

Others

Quality Example
Faster

"So if we have a vector and want to calculate a component-wise function over it say sin and cos it is faster to use vvsincos from accelerate because it will pipeline the calculations of sin and cos for all the entries in the vector which is faster than using a for-loop over the vector"

from question "What are the open source equivalents of Apple's Accelerate Framework libraries?"

Bigger

"3.14 is pretty close but a little smaller than pi and sin 3.14 is thus pretty close but a little bigger than 0 cos 3.14 is thus pretty close but a little smaller in absolute terms than -1 so tan 3.14 is a little less than 0"

from question "Which tan method to use?"

Cheaper

"If i want to calculate a sin and a cos is it cheaper to calculate a sin and a cos or calculate a sin then a sqrt 1-sin 2 to get the cos"

from question "Which is more efficient for sines and cosines? Sin and Cos or Sin and Sqrt?"

Better

"Cos itself seems to be consistently a tick 0 01 better than sin but the case distinction to reconstruct the sign has an extra test"

from question "Using "sincos" in Java"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0