Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c++ libstd compute sin and cos simultaneously

In C library math.h, there was a sincos function which was pretty efficient, because it computed both sine and cosine in a time closer to a single call to sin() or cos() than to the total time of calling both.

Is there such function in C++ standard library?

like image 692
galinette Avatar asked Jun 20 '14 13:06

galinette


1 Answers

Is there no such function in c++ standard library?

No, unfortunately there isn't.

In C library math.h, there was a sincos function

On Linux, it is available as GNU Extension. It's not standard in C either.

like image 118
Ali Avatar answered Oct 05 '22 05:10

Ali