Miscellaneous > Programming & Networking
A programming challenge all up in your face.
H_TeXMeX_H:
Well you used float for all your numbers (not recommended), might wanna use double for better precision.
cymon:
If I understood this math, I would probably get the challenge.
worker201:
Could be. acos, sqrt, and pow all return doubles, so the program is probably running some internal float>>double conversions in a few places.
H_TeXMeX_H:
Yeah, something like that ... I always use double for any non-integer.
mobrien_12:
It would be interesting to see if it gets more decimal places correct using double precision.
As it is, there's only 0.1% error.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version