The answer is only 0 for sin(pi) – did you include all the digits of Pi ?
-Has anyone else noticed a distinct lack of, irony/sense of humour around here?
More Related Contents:
- How does C compute sin() and other math functions?
- Rounding integer division (instead of truncating)
- How do you print the EXACT value of a floating point number?
- Representing integers in doubles
- Why is printf round floating point numbers up?
- Are floating point operations in C associative?
- Is there a function to round a float in C or do I need to write my own?
- C: How to wrap a float to the interval [-pi, pi)
- Conditional tests in primality by trial division
- Math.Round doesn’t behave like i want it to. (X.0xxxxx numbers) [closed]
- What is the behavior of integer division?
- ‘float’ vs. ‘double’ precision
- Sin and Cos give unexpected results for well-known angles
- Mapping a numeric range onto another
- What’s the use of suffix `f` on float value
- How to use nan and inf in C?
- How to extract the decimal part from a floating point number in C?
- How to concatenate two integers in C
- Convert double/float to string
- Fastest implementation of sine, cosine and square root in C++ (doesn’t need to be much accurate)
- How computer does floating point arithmetic?
- Precision in C floats
- My floating point number has extra digits when I print it
- What precisely does the %g printf specifier mean?
- Why is the behavior of the modulo operator (%) different between C and Ruby for negative integers?
- How to use % operator for float values in c
- pow() cast to integer, unexpected result
- C dynamically printf double, no loss of precision and no trailing zeroes
- Algorithm to pick values from array that sum closest to a target value?
- Is there any advantage to using pow(x,2) instead of x*x, with x double?