Why should it be exactly zero? sin(pi)
is zero but that’s not what you’re computing — you’re computing an approximation of sin(3.14)
.
More Related Contents:
- C++ Need help for a homework program that reads in a list of doubles from a file and add a string to each double
- Why same char is not equal [closed]
- Why are function objects better than function pointers?
- String return from member function in C++
- “expected unqualified-id” Thats all it says [duplicate]
- When to use virtual destructors?
- Fast bignum square computation
- Adding external library into Qt Creator project
- Is it safe to delete a void pointer?
- Why does C++ compilation take so long?
- Proper stack and heap usage in C++?
- c++ array – expression must have a constant value
- Read Unicode UTF-8 file into wstring
- About binding a const reference to a sub-object of a temporary
- Hide user input on password prompt [duplicate]
- Can I use a mask to iterate files in a directory with Boost?
- Which std::async implementations use thread pools?
- C++ how to generate all the permutations of function overloads?
- How many spaces for tab character(\t)?
- What does “#define STR(a) #a” do?
- Can I Allocate a specific memory address using pointers in c++?
- What is the difference between a const reference and normal parameter?
- Detecting CPU architecture compile-time
- Is optimisation level -O3 dangerous in g++?
- Different ways of initializing an object in c++
- Can OpenSSL on Windows use the system certificate store?
- How to make a variadic is_same?
- Singleton pattern in C++
- Difference between regex_match and regex_search?
- using static libraries instead of dynamic libraries in opencv