About 15,500,000 results
Open links in new tab
  1. How does C compute sin () and other math functions?

    Feb 18, 2010 · In the C language the Standard C Library includes common math functions, not included in the language itself (e.g. pow, sin and cos for power, sine, and cosine respectively).

  2. math - sin v/s sinf function in C - Stack Overflow

    Jan 10, 2017 · 3 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 …

  3. c - Undefined reference to `sin` - Stack Overflow

    For truly size constrained applications, it permits reimplementations of the math library in a non-standard way (like pulling out just sin() and putting it in a custom built library. In any case, it is now part of the …

  4. How to use sin, tan, cos, and sec in C program? - Stack Overflow

    Jul 26, 2015 · How to use sin, tan, cos, and sec in C program? Asked 10 years, 4 months ago Modified 1 year, 1 month ago Viewed 22k times

  5. math - How to create a sine function in c - Stack Overflow

    Oct 23, 2016 · I know there is a sin function in math.h but I want to make that function on my own, just for fun. I have created sin function based on Macluarin expansion of the sine function. I wrote a …

  6. Write the given formulas Sin C + Sin D = ? SinC - SinD = ? Cos C

    May 10, 2018 · cos 2C −D cosC - cosD = 2sin 2C +D sin 2D−C Formulas (1) and (2) transform the sum and difference of two sines into a product of a pair of sine and cosine. Formula (3) transforms the …

  7. Sine function using Taylor expansion (C Programming)

    Jan 7, 2014 · sin(x+2n\pi) = sin(x) I'd recommend that you normalize your input angle using these to make your function work for all angles as written. There's a lot of inefficiency built into your code (e.g. …

  8. What is the fastest way to compute sin and cos together?

    The software sin function in their library delivers full double-precision accuracy. The fsincos instruction delivers somewhat more accuracy (double extended), but that extra accuracy gets thrown away in …

  9. sin and cos give unexpected results for well-known angles

    When I pass an angle of 180 degrees into C/C++'s cos() and sin() functions, I appear to receive an incorrect value. I know that it should be: sin of 0.0547 cos of 0.99 But, I get: sin of 3.

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

    Sep 6, 2013 · In fact if you want to calculate sin/cos/sqrt for a lot of values then the SSE functions in Intel library can do that for multiple values at once and is significantly faster than any of the above …