From: <ke...@cr...> - 2005-10-04 18:43:34
|
arj...@wl... said: > In general what should happen if a mathematical function is to be > evaluated for a set of argument for which it is not defined? Hmm, in 8.5, you'll just be able to return NaN. :) Returning a clearer message is probably better than a simple division by zero, which is likely to get reported as a bug. I've got a bunch of such checks in places like modules/math/combinatorics.tcl, where there are [return -code error] for most of the corner cases. -- 73 de ke9tv/2, Kevin KENNY GE Corporate Research & Development ke...@cr... P. O. Box 8, Bldg. K-1, Rm. 5B36A Schenectady, New York 12301-0008 USA |