The difference in the answers increases as I increase the value of a variable. I'll attach an image that shows the difference.
Type: Posts; User: acc988
The difference in the answers increases as I increase the value of a variable. I'll attach an image that shows the difference.
When c++ actually does the calcuations, does it use maximum precision? If not, then does setprecision work without cout? I'm making a DLL file for a program called Mathcad. When I compared my...
I am making a program (a zernike equation function) that needs to be accurate. Most things are accurate enough, but when I use sin or cos from the math.h file, it only returns 6 decimal places. I...