I have a global variable on which arithmetic operations are made, every time a function is called . The numbers used in the function are of the form a*exp(b), stored in double. I have a track of all operations. The difference in the global variable and an temp variable which is obtained by doing all the operations at that instance blows up after a couple of million operations.
How can to minimize this error
I tried kahansum algorithum, it didnt work
ram baddigam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.