About 76 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() function, which …

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

    Oct 6, 2021 · I'm trying to understand something about sin and sinf from math.h. I understand that their types differ: the former takes and returns doubles, and the latter takes and returns floats. However, …

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

    Feb 1, 2012 · I was curious to know whether or not the sinf function existed in C++ through including math.h. When viewing my auto-completion in Qt Creator, it doesn't appear to pop up. It makes me …

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

    Jun 3, 2019 · `cosf`, `sinf`, etc. are not in `std` [duplicate] Asked 6 years, 7 months ago Modified 6 years, 7 months ago Viewed 6k times

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

    Apr 23, 2013 · float x = 1.23; float y = sin(x); Or does rounding rule preclude such an optimization? It'd be easy enough to just do a search-and-replace and see whether there's any performance gain. …

  6. math - Fastest implementation of sine, cosine and square root in C++ ...

    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 best …

  7. Floating point values with sin () and sinf () - Stack Overflow

    May 4, 2014 · However, when I replaced a variable, s, with sinf (x), the problem of inaccuracy did not occur (as seen in (2) vs (3)). I could guess sinf () might be implemented as the same thing as sin ().

  8. Looking for a trig function library? - STMicroelectronics

    Mar 2, 2017 · the sinf funtion reduced execution down to about 1us, very helpful and thanks. Since I'm new to the chip (coming from a TI fixed point world) how do I know if the FPU is enabled?

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

    Posted on June 19, 2016 at 16:46 Hello to everyone, i am building an old project with STM32F107 now. I am trying to calculate the SVPWM values on the fly but seems like compiler's code is so long.I am …

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

    Jun 6, 2022 · Can anyone offer any explaination as to what __builtin_sinf is, where it is located if it exists in a file on my system, and finally how to obtain the disassembly of this function?