3 ms·
there is also sincos(), which is useful when you need both, such as building matrices. https://man7.org/linux/man-pages/man3/sincos.3.html https://man7.org/lin
by cmroanirgo 6y ago
there is also sincos(), which is useful when you need both, such as building matrices.
https://man7.org/linux/man-pages/man3/sincos.3.html https://man7.org/linux/man-pages/man3/sincos.3.html
https://home.deec.uc.pt/~jlobo/tc/opcode_f.html https://home.deec.uc.pt/~jlobo/tc/opcode_f.html
- eigenket 6y agoThats quite cute. I imagine it is (doing something equivalent to) using the complex exponential and taking the real an imaginary parts? exp(iz) = cos(z) + i sin(z), so by working out exp you can get cos and sin for free.