From: SourceForge.net <no...@so...> - 2006-07-07 14:08:56
|
Bugs item #767401, was opened at 2003-07-07 16:26 Message generated for change (Settings changed) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=767401&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Lisp Core - Assume Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stavros Macrakis (macrakis) Assigned to: Nobody/Anonymous (nobody) Summary: Some problems with featurep/complex Initial Comment: declare(rrr,real) declare(zzz,complex) featurep(x,real) => false (!!) With domain=real, should be true. featurep(%i,imaginary) => false (!!) Should be true. featurep(cabs(zzz),real) unnecessarily asks whether SQRT(REALPART(zzz)^2+IMAGPART(zzz)^2) is positive or zero; similarly for sqrt(abs(x)+abs(y)). Though featurep(sqrt(x),real) asks x pos/neg/z and gives correct results, featurep(sqrt(x),imaginary) doesn't ask the questions and returns false. --------------- Note that (as best I understand its semantics), featurep *correctly* gives featurep(rrr,complex)=>true, etc. I believe that featurep is supposed to report whether the range of values of an expression is a subset of the set defined. Since rrr is real, and the reals are a subset of the complexes, 3 is also complex. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=767401&group_id=4933 |