Thread Links | Date Links | ||||
---|---|---|---|---|---|
Thread Prev | Thread Next | Thread Index | Date Prev | Date Next | Date Index |
Siegfried, Arnold and all On 19 Feb 2009, at 13:50, Arnold Neumaier wrote:
I don't see why this makes expensive alterations necessary. Convert any real +-inf to NaN before doing the standard operation, and you get the correct result. Setting x(isinf(x))=NaN before executing an operation with a real argument x is cheap, vectorizes, and should do the trick.
That's what I was about to propose. On the assumption (my preference) that any real x is regarded as [x,x] if finite, and emptyset if infinite, this seems to work for aa+b, aa-b, aa*b, aa/b, as well with the arguments swapped. What am I missing?
John