I'm converting a program from Scilab code to C++ and I've just read the following:
The IEEE standard does not require transcendental functions to be exactly rounded.
Source: What Every Computer Scientist Should Know About Floating-Point Arithmetic.
Note: Apparently the inaccuracy only resides on the last bit (according the answer found here). Also, the only transcendental functions I'm dealing with are sin(), cos(), and exp().
Is there a way I can go about handling these functions so that my calculations will remain the same in both languages?