3 ms·
> for irrational things your only options are doubles That's obviously not true. For irrational things, if exact values matter, use symbolic arithmetic. http:
by wlievens 13y ago
> for irrational things your only options are doubles
That's obviously not true. For irrational things, if exact values matter, use symbolic arithmetic.
http://en.wikipedia.org/wiki/Symbolic_computation http://en.wikipedia.org/wiki/Symbolic_computation
- ajuc 13y agoYes, ok, my bad.
- nraynaud 13y agomost of the time it doesn't work very far. Very quickly you'll need some kind of truncated polynomial development or some Newton to compute a value. Last time I hit dead water very quickly, computing the length of a non-trivial curve is only doable in numerical world (that one was funny, because they expressed it as a quite complicated closed form of functions, and those functions had no closed form themselves).