About 22 results
Open links in new tab
  1. math - sin v/s sinf function in C - Stack Overflow

    Jan 10, 2017 · sinf() was added to C in C99, which Microsoft Visual C++ does not fully support (even so, Visual C++ 6 was released before C99 was standardized). You can use the sin() …

  2. Float inputs for which sinf and sin return different results?

    Oct 6, 2021 · Yes, this is because they are implicitly converted to double (because sin() requires a float), and back to float (because sin() returns a double) on entering and exiting from the sinf() …

  3. Any performance difference between sinf(), cosf() and sin(), cos()

    Apr 23, 2013 · It'd be easy enough to just do a search-and-replace and see whether there's any performance gain. Trouble is that I also need pointers to these functions. In MSVC, sinf(), …

  4. __builtin_sinf What is it? Where is it? How do I obtain the ...

    Jun 6, 2022 · Why does your title say __builtin_sinf when the body of the post asks about __builtin_sin? Why is the question tagged C when #include <cmath> shows it is using C++? – …

  5. c - arm-gcc unresolved reference 'sinf' - Stack Overflow

    Oct 27, 2013 · arm-gcc unresolved reference 'sinf' Ask Question Asked 11 years, 6 months ago. Modified 11 years, 6 months ...

  6. c - sinf() faster than sin() in <math.h>? - Stack Overflow

    I was just wondering what would be faster for my program since im using sin and cos in a float variable so I decided to test it this way: int c; float a; float b = 0.5; /*****/

  7. math.h - Sinf - Does it exist in C++? - Stack Overflow

    Feb 1, 2012 · The sinf function did not exist in the 1990 ISO C standard (nor did sind). The only sin function was sin, which takes a double argument and returns a double result. (The "Future …

  8. c++ - `cosf`, `sinf`, etc. are not in `std` - Stack Overflow

    Jun 3, 2019 · In C++11 (N3337) it says "The contents of these headers are the same as the Standard C library headers <math.h> and <stdlib.h> repsctively, with the following changes:" .

  9. SVPWM and sinf() slow calculation. - STMicroelectronics Community

    Jun 19, 2016 · 0.5 here is treated as a double format variable and then the whole calculation is calculated as double. Be sure that all sin() and cos() functions are actually sinf() and cosf() - …

  10. math - Fastest implementation of sine, cosine and square root in …

    Sep 6, 2013 · The standard C sinf() and cosf() functions are terribly slow and offer much more precision than what we actually need. What we really want is an approximation that offers the …

Refresh