Topic: Absolute value error
It seems there's some error when i want to interpret abs(x) as (x^2)^.5
How come?
Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in /customers/5/9/f/padowan.dk/httpd.www/forum/include/functions.php on line 874 Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in /customers/5/9/f/padowan.dk/httpd.www/forum/include/functions.php on line 874 Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in /customers/5/9/f/padowan.dk/httpd.www/forum/include/functions.php on line 874
You are not logged in. Please login or register.
Graph Forums → Support → Absolute value error
It seems there's some error when i want to interpret abs(x) as (x^2)^.5
How come?
The reason is rounding errors. Because of rounding ((1-x)^2)^.5+((1-a)^2)^.5 sometimes becomes less than ((x-a)^2)^.5. It is not much but enough. I hope to find a way to solve this in a future version. A workaround that works now is to add an offset like ((1-x)^2)^.5+((1-a)^2)^.5>=((x-a)^2)^.5 - 0.0001
Graph Forums → Support → Absolute value error
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.010 seconds (53% PHP - 47% DB) with 11 queries