cos(x+y) = cos(x)*cos(y) - sin(x)*sin(y) (always)
~ cos(x)*1 - sin(x)*y (if y small)
Can't speak for the validity of small angle assumptions though.31 karma · joined March 12, 2019
cos(x+y) = cos(x)*cos(y) - sin(x)*sin(y) (always)
~ cos(x)*1 - sin(x)*y (if y small)
Can't speak for the validity of small angle assumptions though.https://en.cppreference.com/w/cpp/numeric/fenv/FE_exceptions
so... never?
I did and switched back to floating. AMA
JS would like to have a word with you.
You can work around both but it's clunky. And also it's a thing that's not a must have, just a nice(r) to have.
The argument to match clauses/scoping for example is weird in a world where a formatter automatically applies indentation. It might make sense when you have to manually check them on print-outs without an Editor. I'd argue GNU style fulfills that role even better or Horstmann if you care about vertical real estate (or be daring and combine the two). And now everyone hates me.
I also don't know how many cycles it takes for my implementation of quicksort apart from checking the output of a specific compiler and counting instructions. C is not, was not and will never be a portable assembler.