GNOME Bugzilla – Bug 607008
TDIST: unnecessary Excel incompatibility
Last modified: 2010-01-20 20:15:44 UTC
In Excel 2007 (and OOo), if x is negative TDIST(x,df,tails) returns an error,w hile we returning a value. For example TDIST(-1,10,1) is an error in Excel and OOo but 0.82955 in Gnumeric. Similarly TDIST(-1,10,2) is an error in Excel and OOo but 0.34089 in Gnumeric. This example also shows that our brahviour is a touch strange for negative x: we are returning the _right_ tail for tails=1 and both tails for tails=2, so the right tail for very negative x is larger than the two tails version. Since we have the properly behaved r-calling convention functions I would suggest to change this function to match Excel 2007.
I see no good reason to keep our behaviour (which is probably a coincidence of implementation).
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.